# detnas_backbone_search_for_object_detection__464e0a46.pdf Det NAS: Backbone Search for Object Detection Yukang Chen1 , Tong Yang2 , Xiangyu Zhang2 , Gaofeng Meng1, Xinyu Xiao1, Jian Sun2 1National Laboratory of Pattern Recognition, Institute of Automation, Chinese Academy of Sciences 2Megvii Technology {yukang.chen, gfmeng, xinyu.xiao}@nlpr.ia.ac.cn {yangtong, zhangxiangyu, sunjian}@megvii.com Object detectors are usually equipped with backbone networks designed for image classification. It might be sub-optimal because of the gap between the tasks of image classification and object detection. In this work, we present Det NAS to use Neural Architecture Search (NAS) for the design of better backbones for object detection. It is non-trivial because detection training typically needs Image Net pre-training while NAS systems require accuracies on the target detection task as supervisory signals. Based on the technique of one-shot supernet, which contains all possible networks in the search space, we propose a framework for backbone search on object detection. We train the supernet under the typical detector training schedule: Image Net pre-training and detection fine-tuning. Then, the architecture search is performed on the trained supernet, using the detection task as the guidance. This framework makes NAS on backbones very efficient. In experiments, we show the effectiveness of Det NAS on various detectors, for instance, one-stage Retina Net and the two-stage FPN. We empirically find that networks searched on object detection shows consistent superiority compared to those searched on Image Net classification. The resulting architecture achieves superior performance than hand-crafted networks on COCO with much less FLOPs complexity. Code and models have been made available at: https://github.com/megvii-model/Det NAS. 1 Introduction Backbones play an important role in object detectors. The performance of object detectors highly relies on features extracted by backbones. For example, a large accuracy increase could be obtained by simply replacing a Res Net-50 [8] backbone with stronger networks, e.g., Res Net-101 or Res Net-152. The importance of backbones is also demonstrated in Det Net [12], Deformable Conv Nets v2 [30], Thunder Net [22] in real-time object detection, and HRNet [25] in keypoint detection. However, many object detectors directly use networks designed for Image classification as backbones. It might be sub-optimal because image classification focus on what the main object of an image is, while object detection aims at finding where and what each object instance. For instance, the recent hand-crafted network, Det Net [12], has demonstrated this point. Res Net-101 performs better than Det Net-59 [12] on Image Net classification, but is inferior to Det Net-59 [12] on object detection. However, the handcrafting process heavily relies on expert knowledge and tedious trials. NAS has achieved great progress in recent years. On image classification [31, 32, 23], searched networks reach or even surpass the performance of the hand-crafted networks. However, NAS for backbones in object detectors is still challenging. It is infeasible to simply employ previous NAS methods for backbone search in object detectors. The typical detector training schedule requires backbone networks to be pre-trained on Image Net. This results in two difficulties for searching Equal contribution. Work done during an internship at Megvii Technology. Corresponding author. 33rd Conference on Neural Information Processing Systems (Neur IPS 2019), Vancouver, Canada. Figure 1: The pipeline of Det NAS that searches for backbones in object detectors. There are three steps: supernet pre-training on Image Net, supernet fine-tuning on the detection training set, e.g., COCO, and architecture search on the trained supernet with the evolution algorithm. The validation set is actually split from COCO trainval35k and consists of 5k images. backbones in object detectors: 1) hard to optimize: NAS systems require accuracies on target tasks as reward signals, pre-training accuracy is unqualified for this requirement; 2) inefficiency: In order to obtain the precious performance, each candidate architecture during search has to be first pretrained (e.g. on Image Net) then finetuned on the detection dataset, which is very costly. Even though training from scratch is an alternative [10], it requires more training iterations to compensate for the lack of pre-training. Moreover, training from scratch breaks down in small datasets, e.g. PASCAL VOC. In this work, we present the first effort on searching for backbones in object detectors. Recently, a NAS work on object detection, NAS-FPN [5], is proposed. It searches for feature pyramid networks (FPN) [14] rather than backbones. It can perform with a pre-trained backbone network and search with the previous NAS algorithm [31]. Thus, the difficulty of backbone search is still unsolved. Inspired by one-shot NAS methods [7, 1, 2], we solve this issue by decoupling the weight training and architecture search. Most previous NAS methods optimize weights and architectures in a nested manner. Only if we decouple them into two stages, the pre-training step can be incorporated economically. This framework avoids the inefficiency issue caused by the pre-training and makes backbone search feasible. The framework of Det NAS consists of three steps: (1) pre-training the one-shot supernet on Image Net, (2) fine-tuning the one-shot supernet on detection datasets, (3) architecture search on the trained supernet with an evolutionary algorithm (EA). In experiments, the main result backbone network, Det NASNet, with much fewer FLOPs, achieves 2.9% better mm AP than Res Net-50 on COCO with the FPN detector. Its enlarged version, Det NASNet (3.8), is superior to Res Net-101 by 2.0% on COCO with the FPN detector. In addition, we validate the effectiveness of Det NAS in different detectors (the two-stage FPN [14] and the one-stage Retina Net [15]) and various datasets (COCO and VOC). Det NAS are consistently better than the network searched on Image Net classification by more than 3% on VOC and 1% on COCO, no matter on FPN or Retina Net. Our main contributions are summarized as below: We present Det NAS, a framework that enables backbone search for object detection. To our best knowledge, this is the first work on this challenging task. We introduce a powerful search space. It helps the searched networks obtain inspiring accuracies with limited FLOPs complexity. Our result networks, Det NASNet and Det NASNet (3.8), outperforms the hand-crafted networks by a large margin. Without the effect of search space, we show the effectiveness of Det NAS in different detectors (two-stage FPN and one-stage Retina Net), various datasets (COCO and VOC). The searched networks have consistently better performance and meaningful structural patterns. 2 Related Work 2.1 Object Detection Object detection aims to locate each object instance and assign a class to it in an image. With the rapid progress of deep convolutional networks, object detectors, such as FPN [14] and Retina Net [15], have achieved great improvements in accuracy. In general, an object detector can be divided into two parts, a backbone network, and a "head". In the past few years, many advances in object detection come from the study of "head", such as architecture [14], loss [15, 24], and anchor [29, 26]. FPN [14] develops a top-down architecture with lateral connections to integrate features at all scales as an effective feature extractor. The focal loss [15] is proposed in Retina Net to solve the problem of class imbalance, which leads to the instability in early training. Meta Anchor [29] proposes a dynamic anchor mechanism to boost the performance for anchor-based object detectors. However, for the backbone network, almost all object detectors adopt networks for image classification, which might be sub-optimal. Because object detection cares about not only "what" object is, which image classification only focuses, but also "where" it is. Similar to our work, Det Net [12] also exploits the architecture of the backbone that specially designed for object detection manually. Inspired by NAS, we present Det NAS to find the optimal backbone automatically for object detection in this work. 2.2 Neural Architecture Search NAS on image classification Techniques to design networks automatically have attracted increasing research interests. NAS [31] and NASNet [32] use reinforcement learning (RL) to determine neural architectures sequentially. In addition to these RL-based methods, the evolution algorithm (EA) also shows its potential. Ameoba Net [23] proves that the basic evolutionary algorithm without any controller can also achieve comparable results and even surpass RL-base methods. To save computational resources, some works propose to use weight sharing or one-shot methods, e.g., ENAS [21] and DARTS [17]. Many following works, including SNAS [28], Proxyless [3] and FBNet [27] and others [4], also belong to one-shot NAS to some extent. NAS on other tasks In addition to NAS works on image classification, some recent works attempt to develop NAS to other tasks, especially semantic segmentation. [19] proposes to search auxiliary cells as the segmentation decoders. Auto-Deep Lab [16] applies the gradient-based method to search backbones for segmentation models. To our best knowledge, no works have attempted to search neural architectures for backbones in object detectors. One main reason might come from the costly Image Net pre-training for object detectors. Training from scratch scheme [10], as a substitute, proves to bring no computational savings and tends to break down in small datasets. In this work, we overcome this obstacle with a one-shot supernet and the evolutionary search algorithm. 3 Detection Backbone Search Our goal is to extend NAS to search for backbones in object detectors. In general, object detector training typically requires Image Net pre-training. Meanwhile, NAS systems require supervisory signals from target tasks. For each network candidate, it needs Image Net pre-training, which is computationally expensive. Additionally, training from scratch is an alternative method while it requires more iterations to optimize and breaks down in small datasets. Inspired by the one-shot NAS [7, 2, 1], we decouple the one-shot supernet training and architecture optimization to overcome this obstacle. In this section, we first clarify the motivation of our methodology. 3.1 Motivation Without loss of generality, the architecture search space A can be denoted by a directed acyclic graph (DAG). Any path in the graph corresponds to a specific architecture, a 2 A. For the specific architecture, its corresponding network can be represented as N(a, w) with the network weights w. NAS aims to find the optimal architecture a 2 A that minimizes the validation loss Lval(N(a , w )). w denotes the optimal network weights of the architecture a . It is obtained by minimizing the training loss. We can formulate NAS process as a nested optimization problem: min a2A Lval(N(a, w (a))) (1) s.t. w (a) = arg min w Ltrain(w, a) (2) The above formulation can represent NAS on tasks that work without pre-training, e.g., image classification. But for object detection, which needs pre-training and fine-tuning schedule, Eq. (2) needs to be reformulated as follow: w (a) = arg min w wp(a) Ldet train(w, a) s.t. wp(a) = arg min train(wp, a) (3) where w wp(a) is to optimize w with wp(a) as initialization. The pre-trained weights wp(a) can not directly serve for the Eq. (1), but it is necessary for w(a) . Thus, we can not skip the Image Net pre-training in Det NAS. However, Image Net pre-training usually costs several GPU days just for a single network. It is unaffordable to train all candidate networks individually. In one-shot NAS methods [7, 2, 1], the search space is encoded in a supernet which consists of all candidate architectures. They share the weights in their common nodes. In this way, Eq. (1) and Eq. (2) become: min a2A Lval(N(a, W A(a))) s.t. W A = arg min Ltrain(N(A, W)) (4) where all individual network weights w(a) are inherited from the one-shot supernet WA. The supernet training, WA optimization, is decoupled from the architecture a optimization. Based on this point, we go further step to incorporate pre-training step. This enables NAS on the more complicated task, backbone search in object detecion: min a2A Ldet A = arg min train(N(A, W)) (6) p A = arg min train(N(A, Wp)) (7) 3.2 Our NAS Pipeline As in Fig. 1, Det NAS consists of 3 steps: supernet pre-training on Image Net, supernet fine-tuning on detection datasets and architecture search on the trained supernet. Step 1: Supernet pre-training. Image Net pre-training is the fundamental step of the fine-tuning schedule. For some one-shot methods [17, 27], they relax the actually discrete search space into a continuous one, which makes the weights of individual networks deeply coupled. However, in supernet pre-training, we adopt a path-wise [7] manner to ensure the trained supernet can reflect the relative performance of candidate networks. Specifically, in each iteration, only one single path is sampled for feedforward and backward propagation. No gradient or weight update acts on other paths or nodes in the supernet graph. Step 2: Supernet fine-tuning. The supernet fine-tuning is also path-wise but equipped with detection head, metrics and datasets. The other necessary detail to mention is about batch normalization (BN). BN is a popular normalization method to help optimization. Typically, the parameters of BN, during fine-tuning, are fixed as the pre-training batch statistics. However, the freezing BN is infeasible in Det NAS, because the features to normalize are not equal on different paths. On the other hand, object detectors are trained with high-resolution images, unlike image classification. This results in small batch sizes as constrained by memory and severely degrades the accuracy of BN. To this end, we replace the conventional BN with Synchronized Batch Normalization (Sync BN) [20] during supernet training. It computes batch statistics across multiple GPUs and increases the effective batch size. We formulate the supernet training process in Algorithm 1 in the supplementary material. Step 3: Search on supernet with EA. The third step is to conduct the architecture search on the trained supernet. Paths in the supernet are picked and evaluated under the direction of the evolutionary controller. For the evolutionary search, please refer to Section 3.4 for details. The necessary detail in this step is also about BN. During search, different child networks are sampled path-wise in the Table 1: Search space of Det NAS. Large (40 blocks) Small (20 blocks) Stage Block c1 n1 c2 n2 0 Conv3 3-BN-Re LU 48 1 16 1 1 Shuffle Netv2 block (search) 96 8 64 4 2 Shuffle Netv2 block (search) 240 8 160 4 3 Shuffle Netv2 block (search) 480 16 320 8 4 Shuffle Netv2 block (search) 960 8 640 4 Shuffle Netv2 block has 4 choices for search: 3x3, 5x5, 7x7 and Xception 3x3. supernet. The issue is that the batch statistics on one path should be independent of others. Therefore, we need to recompute batch statistics for each single path (child networks) before each evaluation. This detail is indispensable in Det NAS. We extract a small subset of the training set (500 images) to recompute the batch statistics for the single path to be evaluated. This step is to accumulate reasonable running mean and running variance values for BN. It involves no gradient backpropagation. 3.3 Search Space Design The details about the search space are described in the Table 1. Our search space is based on the Shuffle Netv2 block. It is a kind of efficient and lightweight convolution architectures and involves channel split and shuffle operation [18]. We design two search spaces with different sizes, the large one for the main result and the small one for ablation studies. Large (40 blocks) This search space is a large one and designed for the main results to compare with hand-crafted backbone networks. The channels and blocks in each stage are specified by c1 and n1. In each stage, the first block has stride 2 for downsampling. Except for the first stage, there are 4 stages that contain 8 + 8 + 16 + 8 = 40 blocks for search. For each block to search, there are 4 choices developed from the original Shuffle Netv2 block: changing the kernel size with {3 3, 5 5, 7 7} or replacing the right branch with an Xception block (three repeated separable depthwise 3 3 convolutions). It is easy to count that this search space includes 440 1.2 1024 candidate architectures. Most networks in this search space have more than 1G FLOPs. We construct this large search space is for the comparisons with hand-crafted large networks. For example, Res Net-50 and Res Net-101 have 3.8G and 7.6G FLOPs respectively. Small (20 blocks) This search space is smaller and designed for ablation studies. The channels and blocks in each stage are specified by c2 and n2. The block numbers n1 are twice as n2. The channel numbers c1 are 1.5 times as c2 in all searched stages. This search space includes 420 1.0 1012 possible architectures. It is still a large number and enough for ablation studies. Most networks in this search space have around 300M FLOPs. We conduct all situation comparisons in this search space, including various object detectors (FPN or Retina Net), different datasets (COCO or VOC), and different schemes (training from scratch or with pre-training). 3.4 Search Algorithm The architecture search step is based on the evolution algorithm. At first, a population of networks P is initialized randomly. Each individual P consists of its architecture P. and its fitness P.f. Any architecture against the constraint would be removed and a substitute would be picked. After initialization, we start to evaluate the individual architecture P. to obtain its fitness P.f on the validation set VDet. Among these evaluated networks, we select the top |P| as parents to generate child networks. The next generation networks are generated by mutation and crossover half by half under the constraint . By repeating this process in iterations, we can find a single path best with the best validation accuracy or fitness, fbest. We formulate this process as Algorithm 2 in the supplementary material. The hyper-parameters in this step are introduced in Section 4. Compared to RL-based [32, 31, 21] and gradient-based NAS methods [17, 27, 3], the evolutionary search can stably meet hard constraints, e.g., FLOPs or inference speed. To optimize FLOPs or inference speed, RL-based methods need a carefully tuned reward function while gradient-based methods require a wise designed loss function. But their outputs are still hard to totally meet the required constraints. To this end, Det NAS chooses the evolutionary search algorithm. Table 2: Main result comparisons. Image Net Classification Object Detection with FPN on COCO Backbone FLOPs Accuracy m AP AP50 AP75 APs APm APl Res Net-50 3.8G 76.15 37.3 58.2 40.8 21.0 40.2 49.4 Res Net-101 7.6G 77.37 40.0 61.4 43.7 23.8 43.1 52.2 Shuffle Netv2-40 1.3G 77.18 39.2 60.8 42.4 23.6 42.3 52.2 Shuffle Netv2-40 (3.8) 3.8G 78.47 40.8 62.1 44.8 23.4 44.2 54.2 Det NASNet 1.3G 77.20 40.2 61.5 43.6 23.3 42.5 53.8 Det NASNet (3.8) 3.8G 78.44 42.0 63.9 45.8 24.9 45.1 56.8 These are trained with the same 1x settings in Section 4. The 2x results are in the supplementary material. 4 Experimental Settings Supernet pre-training. For Image Net classification dataset, we use the commonly used 1.28M training images for supernet pre-training. To train the one-shot supernet backbone on Image Net, we use a batch size of 1024 on 8 GPUs for 300k iterations. We set the initial learning rate to be 0.5 and decrease it linearly to 0. The momentum is 0.9 and weight decay is 4 10 5. Supernet fine-tuning. We validate our method with two different detectors. The training images are resized such that the shorter size is 800 pixels. We train on 8 GPUs with a total of 16 images per minibatch for 90k iterations on COCO and 22.5k iterations on VOC. The initial learning rate is 0.02 which is divided by 10 at {60k, 80k} iterations on COCO and {15k, 20k} iterations on VOC. We use weight decay of 1 10 4 and momentum of 0.9. For the head of FPN, we replace two fully-connected layers (2fc) with 4 convolutions and 1 fully-connected layer (4conv1fc), which is also used in all baselines in this work, e.g., Res Net-50, Res Net-101, Shuffle Netv2-20 and Shuffle Netv2-40. For Retina Net, the training settings is similar to FPN, except that the initial learning rate is 0.01. Search on the trained supernet. We split the detection datasets into a training set for supernet fine-tuning, a validation set for architecture search, and a test set for final evaluation. For VOC, the validation set contains 5k images randomly selected from trainval2007 + trainval2012 and the remains for supernet fine-tuning. For COCO, the validation set contains 5k images randomly selected from trainval35k [13] and the remains for supernet fine-tuning. For evolutionary search, the evolution process is repeated for 20 iterations. The population size |P| is 50 and the parents size |P| is 10. Thus, there are 1000 networks evaluated in one search. Final architecture evaluation. The selected architectures are also retrained in the pre-training and fine-tuning schedule. The training configuration is the same as that of the supernet. For COCO, the test set is minival. For VOC, the test set is test2007. Results are mainly evaluated with COCO standard metrics (i.e. mm AP) and VOC metric (IOU=.5). All networks listed in the paper are trained with the 1x training setting used in Detectron [6] to keep consistency with the supernet fine-tuning. 5 Experimental Results 5.1 Main Results Our main result architecture, Det NASNet, is searched on FPN in the large search space. The architecture of Det NASNet is depicted in the supplementary material. We search on FPN because it is a mainstream two-stage detector that has been used in other vision tasks, e.g., instance segmentation and skeleton detection [9]. Table 2 shows the main results. We list three hand-crafted networks for comparisons, including Res Net-50, Res Net-101 and Shuffle Netv2-40. Det NASNet achieves 40.2% mm AP with only 1.3G FLOPs. It is superior to Res Net-50 and equal to Res Net-101. To eliminate the effect of search space, we compare with the hand-crafted Shuffle Netv2-40, a baseline in this search space. It has 40 blocks and is scaled to 1.3G FLOPs, which are identical to Det NASNet. Shuffle Netv2-40 is inferior to Res Net-101 and Det NAS by 0.8% mm AP on COCO. This shows the effectiveness of Det NAS without the effect of search space. Table 3: Ablation studies. Image Net COCO (mm AP, %) VOC (m AP, %) (Top1 Acc, %) FPN Retina Net FPN Retina Net Shuffle Netv2-20 73.1 34.8 32.1 80.6 79.4 Cls NASNet 74.3 35.1 31.2 78.5 76.5 Det NAS-scratch 73.8 - 74.3 35.9 32.8 81.1 79.9 Det NAS 73.9 - 74.1 36.6 33.3 81.5 80.1 Det NAS and Det NAS-scratch both have 4 specific networks in each case (COCO/VOC, FPN/Retina Net). The Image Net classification accuracies of Det NAS and Det NAS-scratch are the minimal to the maximal. Table 4: Computation cost for each step on COCO. Supernet pre-training Supernet fine-tuning Search on the supernet Det NAS 3 105 iterations 9 104 iterations 20 50 models 8 GPUs on 1.5 days 8 GPUs on 1.5 days 20 GPUs on 1 day For the small search space, GPUs are GTX 1080Ti . For the large search space, GPUs are Tesla V100. After that, we include the effect of search space for consideration and increase the channels of Det NASNet by 1.8 times to 3.8G FLOPs, Det NASNet (3.8). Its FLOPs are identical to that of Res Net-50. It achieves 42.0% mm AP which surpasses Res Net-50 by 4.7 % and Res Net-101 by 2.0%. 5.2 Ablation Studies The ablation studies are conducted in the small search space introduced in Table 1. This search space is much smaller than the large one, but it is efficient and enough for making ablation studies. As in Table 3, we validate the effectiveness of Det NAS with various detectors (FPN and Retina Net) and datasets (COCO and VOC). All models in Table 3 and Table 5 are trained with the same settings described in Section 4. Their FLOPs are all similar and under 300M. Comparisons to the hand-crafted network. Shuffle Netv2-20 is a baseline network constructed with 20 blocks and scaled to 300M FLOPs. It has the same number of blocks to architectures searched in the search space. As in Table 3, Det NAS shows a consistent superiority to the hand-crafted Shuffle Netv2-20. Det NAS outperforms Shuffle Netv2-20 by more than 1% mm AP in COCO on both FPN and Retina Net detectors. This shows that NAS in object detection can also achieve a better performance than the hand-crafted network. Comparisons to the network for Image Net classification. Some NAS works tend to search on small proxy tasks and then transfer to other tasks or datasets. For example, NASNet is searched from CIFAR-10 image classification and directly applied to object detection [32]. We empirically show this manner sub-optimal. Cls NASNet is the best architecture searched on Image Net classification. The search method and search space follow Det NAS. We use it as the backbone of object detectors. Cls NASNet is the best on Image Net classification in Table 3 while its performance on object detection is disappointing. It is the worst in all cases, except a slightly better than Shuffle Netv2-20 on COCO-FPN. This shows that NAS on target tasks can perform better than NAS on proxy tasks. Comparisons to the from-scratch counterpart. Det NAS-scratch is a from-scratch baseline to ablate the effect of pre-training. In this case, the supernet is trained from scratch on detection datasets without being pre-trained on Image Net. To compensate for the lack of pretraining, its training iterations on detection datasets are twice as those of Det NAS, that is, 180k on COCO and 45k on VOC. In this way, the computation cost of Det NAS and Det NAS-scratch are similar. All other settings are the same as Det NAS. Both Det NAS and Det NAS-scratch have consistent improvements on Cls NASNet and Shuffle Netv2-20. This shows that searching directly on object detection is a better choice, no matter from scratch or with Image Net pre-training. In addition, Det NAS performs also better than Det NAS-scratch in all cases, which reflects the importance of pre-training. Table 5: Comparisons to the random baseline. Image Net COCO (mm AP, %) VOC (m AP, %) (Top1 Acc, %) FPN Retina Net FPN Retina Net Random 73.9 0.2 35.6 0.6 32.5 0.4 80.9 0.2 79.0 0.7 Det NAS 73.9 - 74.1 36.6 33.3 81.5 80.1 Figure 2: Curve of EA and Random during search. Figure 3: Random models on COCO-FPN. Comparisons to the random baseline. As stated in many NAS works [11, 17], the random baseline is also competit ive. In this work, we also include the random baseline for comparisons as in Table 5. In Figure 2, the mm AP curve on the supernet search are depicted to compare EA with Random. For each iteration, top 50 models until the current iteration are depicted at each iteration. EA demonstrates a clearly better sampling efficiency than Random. In addition, we randomly pick 20 networks in the search space and train them with the same settings to other result models. On Image Net classification, the random baseline is comparable to Det NAS. But on the object detection tasks, Det NAS performs better than Random. In Figure 3, we depicted the scatter and the average line of random models and the line of Det NAS. Det NAS in the small search space is 36.6% while the Random is 35.6 0.6%. From these points of view, Det NAS performs better than Random not only during search but also in the output models. 5.3 Det NAS Architecture and Discussions Our architectures searched for object detectors show meaningful patterns that are distinct from architectures searched for image classification. Figure 4 illustrates three neural architectures searched in the 20 blocks search space. The architecture in the top of Figure 4 is Cls NASNet. The other two are searched with FPN and Retina Net detectors respectively. These architectures are depicted block-wise. The yellow and orange blocks are 5 5 and 7 7 Shuffle Netv2 blocks. The blue blocks have kernel sizes as 3. The larger blue blocks are Xception Shuffle Netv2 blocks which are deeper than the small 3 3 Shuffle Netv2 blocks. Figure 5 illustrates the architecture of Det NASNet. It has 40 blocks in total and {8, 8, 16, 8} blocks each stage. In contrast to Cls NASNet, architectures of Det NAS have large-kernel blocks in low-level layers and deep blocks in high-level layers. In Det NAS, blocks of large kernels (5 5, 7 7) almost gather in low-level layers, Stage 1 and Stage 2. In contrast, Cls NASNet has all 7 7 blocks in Stage 3 and Stage 4. This pattern also conforms to the architectures of Proxyless NAS [3] that is also searched on image classification and Image Net dataset. On the other hand, blocks with blue color have 3 3 kernel size. As in the middle of Figure 4, blue blocks are almost grouped in Stage 3 and Stage 4. Among these 8 blue blocks, 6 blocks are Xception ShufflNetv2 blocks that are deeper than common 3 3 ShufflNetv2 blocks. In Cls NASNet, only one Xception Shuffle Netv2 block exists in high-level layers. In addition, Det NASNet also shows the meaningful pattern that most high-levels blocks have 3 3 kernel size. Based on these observations, we find that the networks suitable for object detection are visually different from the networks for classification. Therefore, these distinctions further confirm the necessity of directly searching on the target tasks, instead of proxy tasks. Shuffle Unit 5x5 Shuffle Unit 7x7 Shuffle Unit 5x5 Shuffle Unit 7x7 Shuffle Unit 5x5 Shuffle Unit 5x5 Shuffle Unit 7x7 Shuffle Unit 7x7 Shuffle Unit 7x7 Shuffle Unit 5x5 Shuffle Unit 5x5 Shuffle Unit 7x7 Shuffle Unit 7x7 Shuffle Unit 5x5 Shuffle Unit 7x7 Shuffle Unit 7x7 Shuffle Unit 5x5 Shuffle Unit 7x7 Shuffle Unit 5x5 Shuffle Unit 5x5 Shuffle Unit 5x5 Shuffle Unit 5x5 Shuffle Unit 7x7 Shuffle Unit 5x5 Shuffle Unit 5x5 Shuffle Unit 5x5 Shuffle Unit 7x7 Shuffle Unit 7x7 Stage 1 Stage 2 Stage 3 Stage 4 Shuffle Unit 5x5 Shuffle Unit 5x5 Shuffle Unit 7x7 Shuffle Unit 5x5 Shuffle Unit 5x5 Shuffle Unit 5x5 Shuffle Unit 5x5 Shuffle Unit 7x7 Figure 4: The searched architecture pattern comparison in the small (20 blocks) search space. From top to bottom, they are Cls NASNet, Det NAS (COCO-FPN) and Det NAS (COCO-Retina Net). Shuffle Unit 5x5 Shuffle Unit 7x7 Shuffle Unit 5x5 Shuffle Unit 7x7 Shuffle Unit 5x5 Shuffle Unit 7x7 Shuffle Unit 7x7 Shuffle Unit 7x7 Shuffle Unit 5x5 Shuffle Unit 5x5 Shuffle Unit 7x7 Shuffle Unit 7x7 Shuffle Unit 7x7 Shuffle Unit 7x7 Shuffle Unit 5x5 Shuffle Unit 5x5 Shuffle Unit 5x5 Stage 1 Stage 2 Stage 3 Stage 3 Stage 4 Figure 5: Det NASNet architecture 6 Conclusion We present Det NAS, the first attempt to search backbones in object detectors without any proxy. Our method consists of three steps: supernet pre-training on Image Net, supernet fine-tuning on detection datasets and searching on the trained supernet with EA. Table 4 shows the computation cost for each steps. The computation cost of Det NAS, 44 GPU days on COCO, is just two times as training a common object detector. In experiments, the main result of Det NAS achieves superior performance than Res Net-101 on COCO and the FPN detector with much fewer FLOPs complexity. We also make comprehensive comparisons to show the effectiveness of Det NAS. We test Det NAS on various object detectors (FPN and Retina Net) and different datasets (COCO and VOC). For further discussions, we spotlight the architecture-level gap between image classification and object detection. Cls NASNet and Det NAS have different and meaningful architecture-level patterns. This might, in return, provide some insights for the hand-crafted architecture design. Acknowledgement This work is supported by Major Project for New Generation of AI Grant (No. 2018AAA0100402), National Key R&D Program of China (No. 2017YFA0700800), and the National Natural Science Foundation of China under Grants 61976208, 91646207, 61573352, and 61773377. This work is also supported by Beijing Academy of Artificial Intelligence (BAAI). [1] Gabriel Bender, Pieter-Jan Kindermans, Barret Zoph, Vijay Vasudevan, and Quoc V. Le. Under- standing and simplifying one-shot architecture search. In ICML, pages 549 558, 2018. [2] Andrew Brock, Theodore Lim, James M. Ritchie, and Nick Weston. SMASH: one-shot model architecture search through hypernetworks. Co RR, abs/1708.05344, 2017. [3] Han Cai, Ligeng Zhu, and Song Han. Proxylessnas: Direct neural architecture search on target task and hardware. ICLR, abs/1812.00332, 2019. [4] Jianlong Chang, Xinbang Zhang, Yiwen Guo, Gaofeng Meng, Shiming Xiang, and Chunhong Pan. Differentiable architecture search with ensemble gumbel-softmax. abs/1905.01786, 2019. [5] Golnaz Ghiasi, Tsung-Yi Lin, Ruoming Pang, and Quoc V. Le. NAS-FPN: learning scalable feature pyramid architecture for object detection. Co RR, abs/1904.07392, 2019. [6] Ross Girshick, Ilija Radosavovic, Georgia Gkioxari, Piotr Dollár, and Kaiming He. Detectron, [7] Zichao Guo, Xiangyu Zhang, Haoyuan Mu, Wen Heng, Zechun Liu, Yichen Wei, and Jian Sun. Single path one-shot neural architecture search with uniform sampling. abs/1904.00420, 2019. [8] Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In CVPR, pages 770 778, 2016. [9] Kaiming He, Georgia Gkioxari, Piotr Dollár, and Ross Girshick. Mask r-cnn. In ICCV, pages 2961 2969, 2017. [10] Kaiming He, Ross Girshick, and Piotr Dollár. Rethinking imagenet pre-training. page abs/1811.08883, 2019. [11] Liam Li and Ameet Talwalkar. Random search and reproducibility for neural architecture search. Co RR, abs/1902.07638, 2019. [12] Zeming Li, Chao Peng, Gang Yu, Xiangyu Zhang, Yangdong Deng, and Jian Sun. Detnet: Design backbone for object detection. In ECCV, pages 339 354. [13] Tsung-Yi Lin, Michael Maire, Serge Belongie, James Hays, Pietro Perona, Deva Ramanan, Piotr Dollár, and C Lawrence Zitnick. Microsoft coco: Common objects in context. In ECCV, pages 740 755, 2014. [14] Tsung-Yi Lin, Piotr Dollár, Ross B. Girshick, Kaiming He, Bharath Hariharan, and Serge J. Belongie. Feature pyramid networks for object detection. In CVPR, pages 936 944, 2017. [15] Tsung-Yi Lin, Priya Goyal, Ross B. Girshick, Kaiming He, and Piotr Dollár. Focal loss for dense object detection. In ICCV, pages 2999 3007, 2017. [16] Chenxi Liu, Liang-Chieh Chen, Florian Schroff, Hartwig Adam, Wei Hua, Alan L. Yuille, and Li Fei-Fei. Auto-deeplab: Hierarchical neural architecture search for semantic image segmentation. Co RR, abs/1901.02985, 2019. [17] Hanxiao Liu, Karen Simonyan, and Yiming Yang. DARTS: differentiable architecture search. ICLR, abs/1806.09055, 2019. [18] Ningning Ma, Xiangyu Zhang, Hai-Tao Zheng, and Jian Sun. Shufflenet V2: practical guidelines for efficient CNN architecture design. 2018. [19] Vladimir Nekrasov, Hao Chen, Chunhua Shen, and Ian D. Reid. Fast neural architecture search of compact semantic segmentation models via auxiliary cells. Co RR, abs/1810.10804, 2018. [20] Chao Peng, Tete Xiao, Zeming Li, Yuning Jiang, Xiangyu Zhang, Kai Jia, Gang Yu, and Jian Sun. Megdet: A large mini-batch object detector. In CVPR, pages 6181 6189, 2018. [21] Hieu Pham, Melody Y. Guan, Barret Zoph, Quoc V. Le, and Jeff Dean. Efficient neural architecture search via parameter sharing. In ICML, pages 4092 4101, 2018. [22] Zheng Qin, Zeming Li, Zhaoning Zhang, Yiping Bao, Gang Yu, Yuxing Peng, and Jian Sun. Thundernet: Towards real-time generic object detection. Co RR, abs/1903.11752. [23] Esteban Real, Alok Aggarwal, Yanping Huang, and Quoc V. Le. Regularized evolution for image classifier architecture search. Co RR, abs/1802.01548, 2018. [24] Hamid Rezatofighi, Nathan Tsoi, Jun Young Gwak, Amir Sadeghian, Ian Reid, and Silvio Savarese. Generalized intersection over union: A metric and a loss for bounding box regression. Co RR, abs/1902.09630, 2019. [25] Ke Sun, Bin Xiao, Dong Liu, and Jingdong Wang. Deep high-resolution representation learning for human pose estimation. Co RR, abs/1902.09212, 2019. [26] Jiaqi Wang, Kai Chen, Shuo Yang, Chen Change Loy, and Dahua Lin. Region proposal by guided anchoring. Co RR, abs/1901.03278, 2019. [27] Bichen Wu, Xiaoliang Dai, Peizhao Zhang, Yanghan Wang, Fei Sun, Yiming Wu, Yuandong Tian, Peter Vajda, Yangqing Jia, and Kurt Keutzer. Fbnet: Hardware-aware efficient convnet design via differentiable neural architecture search. CVPR, abs/1812.03443, 2019. [28] Sirui Xie, Hehui Zheng, Chunxiao Liu, and Liang Lin. SNAS: stochastic neural architecture search. ICLR, abs/1812.09926, 2019. [29] Tong Yang, Xiangyu Zhang, Zeming Li, Wenqiang Zhang, and Jian Sun. Metaanchor: Learning to detect objects with customized anchors. In NIPS, pages 318 328, 2018. [30] Xizhou Zhu, Han Hu, Stephen Lin, and Jifeng Dai. Deformable convnets v2: More deformable, better results. Co RR, abs/1811.11168, 2018. [31] Barret Zoph and Quoc V. Le. Neural architecture search with reinforcement learning. Co RR, abs/1611.01578, 2016. [32] Barret Zoph, Vijay Vasudevan, Jonathon Shlens, and Quoc V. Le. Learning transferable architectures for scalable image recognition. pages 8697 8710, 2018.