# Learning Transferable Architectures for Scalable Image Recognition

NASNet cells searched on CIFAR-10 transfer to ImageNet and COCO detection

Zoph, Barret, Vasudevan, Vijay, Shlens, Jonathon, Le, Quoc V. · arXiv · 2017-7-21

- **Problem** Searching for image classifier architectures directly on a large dataset like ImageNet is computationally expensive. Earlier transfer from CIFAR-10 to ImageNet fell well below the previous best.
- **Method** NASNet searches for one convolutional cell on CIFAR-10 and then stacks copies of it into larger networks. Its search space is designed so the cell transfers without changes.
- **Results** NASNet reached 82.7% top-1 and 96.2% top-5 accuracy on ImageNet, among published works. That is 1.2% better top-1 than the best human-designed architectures, with 9 billion fewer FLOPS.

## Why searching on ImageNet is hard

Most image classifiers still come from hand design, built up through years of architecture engineering on ImageNet. Automated search could cut that manual work, but running it directly on a large dataset is computationally expensive. So the question is whether a search on a small proxy dataset can produce a design that still works on the large one.

An earlier evolutionary attempt transferred architectures from CIFAR-10 to ImageNet, but its 72.1% top-1 accuracy fell notably below the previous best. The authors' answer is to change the search space itself so that the transfer is built into the design.

## A cell searched once and stacked

The key idea is to search for one small convolutional block, called a cell, and then reuse copies of it. Every network in the NASNet search space stacks cells with identical structure but separate weights, so the search only has to find one good cell. Because the design fixes the complexity of a cell regardless of network depth or input size, a cell found on CIFAR-10 can be stacked deeper for ImageNet.

The authors argue that searching one cell is faster than searching a whole network. They also argue that a cell is more likely to carry over to other problems. On CIFAR-10 this approach cut search time by a factor of 7×, which is the speed-up discussed later in the search setup.

## Normal and Reduction Cells in the macro layout

Scalable networks need two cell types, because the spatial size has to shrink as the network gets deeper. A Normal Cell returns a feature map of the same height and width, while a Reduction Cell halves both. The Reduction Cell gets its halving from a stride of two in the initial operation on its inputs, and every operation in the search space supports striding.

The authors double the filter count whenever the spatial size is halved, which keeps the hidden state dimension roughly constant. The macro layout is set by hand, while the number of Normal Cell repeats N and the initial filter count are chosen per task. ImageNet gets more Reduction Cells than CIFAR-10 because its inputs are 299x299 rather than 32x32.

The authors could have used one architecture for both cell types, but they found learning two separate cells more beneficial.

## How the controller builds a cell

Each cell takes two inputs, the hidden states hi and hi-1, which come from the two previous cells or from the input image. The controller RNN then fills in the rest of the cell in B blocks, with five softmax decisions per block. B is 5 in the reported experiments.

The first two decisions pick two hidden states, either from the inputs or from hidden states created in earlier blocks. Steps three and four choose an operation for each picked state, and step five merges the two results by addition or by concatenation along the filter dimension. The merged result becomes a new hidden state that later blocks can select.

All hidden states left unused at the end are concatenated along depth to form the cell output.

The controller makes 2 × 5B predictions in total, with the first 5B for the Normal Cell and the second 5B for the Reduction Cell. Each block is therefore a short sequence of softmax layers, one per decision, as the controller diagram shows.

## Operations and the search loop

The operation set includes identity, pooling, standard and dilated convolutions, and depthwise-separable convolutions with kernels up to 7x7. The authors picked these operations from how often they appear in the CNN literature. Under reinforcement learning the choices come from the controller's softmax outputs, while under random search they are drawn from a uniform distribution.

The controller is trained with Proximal Policy Optimization, and each sampled child network's accuracy feeds back into it. The search ran for 4 days on 500 GPUs, and the authors compare this with the earlier 28-day search. The authors estimate the procedure is about 7× more efficient after discounting their faster GPUs, since the earlier run used K40s.

## Regularizing with ScheduledDropPath

DropPath randomly drops each path in a cell with a fixed probability during training. The authors found that this fixed setting did not work well for NASNets. ScheduledDropPath instead raises the drop probability linearly over the course of training.

The authors report that this schedule improves the final NASNet performance on both CIFAR and ImageNet. The main text gives no separate number for this change, so the benefit is described but not measured in isolation there.

## CIFAR-10 results

The authors test the searched cell on CIFAR-10 itself, with N set to 4 or 6. The large NASNet-A with cutout scored a 2.40% error rate, averaged over 5 runs. The previous best in the comparison was 2.56%, from Shake-Shake 26 2x96d with cutout.

The margin is small, and the authors call it slightly better. The best single run reached 2.19%, so the 2.40% figure is an average and not the best case.

## ImageNet results and the model family

The cell is transferred without changes, and every ImageNet model is trained from scratch.

The authors list SENet at the same 82.7% as an unpublished result, and their model uses 23.8 B Mult-Adds against 42.3 B for SENet. Compared with the best human-designed architectures, the NASNet also uses 9 billion fewer FLOPS, a 28% reduction in computational demand.

Varying N and the filter count gives a family of models at different computational budgets.

## Models for mobile-scale budgets

The authors compare models under 1.5B multiply-accumulate operations per image, all at 224x224. The paper puts this at 3.1 points above previously engineered mobile architectures.

NASNet-A (4 @ 1056) uses 564 M Mult-Adds, close to the 569 M of MobileNet-224. So the gain comes at roughly the same operation count rather than from extra compute.

## COCO object detection

The authors plug ImageNet-pretrained NASNet-A featurizations into Faster-RCNN and retrain on COCO train plus val, excluding 8,000 mini-val images. Evaluation is single-model with 300-500 RPN proposals per image, and the score is mAP from the standard COCO library. The mobile NASNet-A (4 @ 1056) at 600x600 scored 29.6% mAP on mini-val.

The authors say this exceeds earlier mobile systems that use Faster-RCNN by over 5.0%. At 800x800, NASNet-A (6 @ 4032) scored 40.7% mAP in the text, while Table 4 lists 41.3% on mini-val and 40.7% on test-dev. That is 4.0% above Inception-ResNet-v2 systems at the same resolution.

At 1200x1200 the authors report 43.1% on test-dev, which they say beats the previous single-model best by over 4.0%. The authors read this as evidence that NASNet features transfer across computer vision tasks.

## Reinforcement learning versus random search

Random search is a strong baseline for black-box optimization, so the authors compare RL against it at equal compute on CIFAR-10. The efficiency plot tracks validation accuracy after 20 epochs as more architectures are sampled. In these runs random search was only slightly worse than RL on CIFAR-10.

The best RL model beat the best random-search model by over 1% on CIFAR-10. The top-5 and top-25 RL models also score better on average than their random-search counterparts. So random search is a viable strategy, but RL finds better cells in this space, with a gap smaller than in the original NAS work.

## Limitations

The number of blocks B = 5 was not searched exhaustively because of computational limits. The overall macro architecture, including N and the filter count, stays manual, so only the cell is searched. The cost comparison uses different GPU types, and the 7× figure is the authors' own estimate.

Transfer is tested on ImageNet classification and COCO object detection in this paper. The ImageNet models use 299x299 or 331x331 inputs, while the mobile-scale comparison uses 224x224.

## Paper info

- **Authors**: Zoph, Barret, Vasudevan, Vijay, Shlens, Jonathon, Le, Quoc V.
- **Venue**: arXiv · Preprint
- **First published**: 2017-7-21
- **Added**: 2026-11-11
- **Updated**: 2018-4-11
- **Version**: v4
- **arXiv**: 1707.07012
- **Category**: cs.CV · cs.LG · stat.ML
- **Original paper terms**: [arXiv non-exclusive 1.0](https://arxiv.org/licenses/nonexclusive-distrib/1.0/)
- **What we show**: Paper info and commentary

[Original paper ↗](https://arxiv.org/abs/1707.07012v4) · [PDF ↗](https://arxiv.org/pdf/1707.07012v4)

AI commentary is a separate explanation from the original paper and may contain errors. The original paper and figures follow each source's terms of use and any rights noted separately.

## Quote from the paper

Zoph, Barret, Vasudevan, Vijay, Shlens, Jonathon, Le, Quoc V. (2017). Learning Transferable Architectures for Scalable Image Recognition. arXiv:1707.07012v4. https://arxiv.org/abs/1707.07012v4

**BibTeX**

```
@misc{barret2017learning,
  title = {{Learning Transferable Architectures for Scalable Image Recognition}},
  author = {Zoph, Barret and Vasudevan, Vijay and Shlens, Jonathon and Le, Quoc V.},
  year = {2017},
  eprint = {1707.07012},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1707.07012v4}
}
```

## Other paper commentary

- [UCF101: A Dataset of 101 Human Actions Classes From Videos in The Wild](https://refivu.com/en/papers/a467933a-0520-4f34-b529-6224c8635422-ucf101-a-dataset-of-101-human-actions-classes.md)
- [Generalized Intersection over Union: A Metric and A Loss for Bounding Box Regression](https://refivu.com/en/papers/f29df16c-adc4-4f4f-bd28-ea43b995682d-generalized-intersection-over-union-a-metric-and-a.md)
- [FCOS: Fully Convolutional One-Stage Object Detection](https://refivu.com/en/papers/2e08cffe-e9be-4c49-9238-8afaab98cecc-fcos-fully-convolutional-one-stage-object-detection.md)
- [Dynamic Graph CNN for Learning on Point Clouds](https://refivu.com/en/papers/a7ba9236-fc2d-445b-bae5-b02e11ac4255-dynamic-graph-cnn-for-learning-on-point-clouds.md)
- [Cascade R-CNN: Delving into High Quality Object Detection](https://refivu.com/en/papers/8374d444-20db-4d12-9b4c-6fa3eca5e1d6-cascade-r-cnn-delving-into-high-quality-object.md)
- [Real-Time Single Image and Video Super-Resolution Using an Efficient Sub-Pixel Convolutional Neural Network](https://refivu.com/en/papers/c2c293f4-dc72-4731-8795-3cf7b87f96e1-real-time-single-image-and-video-super-resolution.md)
- [Recent Advances in Convolutional Neural Networks](https://refivu.com/en/papers/7bfaa2e2-6e96-45b8-b038-2820fa693e61-recent-advances-in-convolutional-neural-networks.md)
- [Convolutional Neural Networks on Graphs with Fast Localized Spectral Filtering](https://refivu.com/en/papers/0acc0ddc-2464-497b-a440-69d6bbfb7937-convolutional-neural-networks-on-graphs-with-fast-localized.md)
- [Dropout as a Bayesian Approximation: Representing Model Uncertainty in Deep Learning](https://refivu.com/en/papers/6721e929-d93e-4c00-ac0e-6ba7eeaa97a2-dropout-as-a-bayesian-approximation-representing-model.md)
- [Evaluation: from precision, recall and F-measure to ROC, informedness, markedness and correlation](https://refivu.com/en/papers/8d51315a-ef79-4c4f-a429-17bee5b397f4-evaluation-from-precision-recall-and-f-measure-to.md)
- [Progressive Growing of GANs for Improved Quality, Stability, and Variation](https://refivu.com/en/papers/8be12dd7-41d4-4ddd-8e8c-ec44b2d70443-progressive-growing-of-gans-for-improved-quality-stability.md)
- [Federated Machine Learning: Concept and Applications](https://refivu.com/en/papers/d845d53f-b001-4e9b-be12-12d49f74b856-federated-machine-learning-concept-and-applications.md)

## Terms in this paper

- [ImageNet](https://refivu.com/en/terms/5eadad128667-imagenet)
- [Object detection](https://refivu.com/en/terms/113bfdb14049-object-detection)
- [COCO](https://refivu.com/en/terms/41f3215c4f4a-coco)
- [Top-1 accuracy](https://refivu.com/en/terms/653c0b9eaa58-top-1-accuracy)
- [mAP](https://refivu.com/en/terms/477dad058d88-map)
- [Image classification](https://refivu.com/en/terms/e15c43f3bb32-image-classification)
- [proximal policy optimization](https://refivu.com/en/terms/59b59e5d0f9d-proximal-policy-optimization)
- [Random search](https://refivu.com/en/terms/4122ba3151ed-random-search)
- [Mean Average Precision (MAP)](https://refivu.com/en/terms/aea689215183-mean-average-precision-map)
- [Faster-RCNN](https://refivu.com/en/terms/7399dfe3365a-faster-rcnn)
- [Neural Architecture Search](https://refivu.com/en/terms/d4ae6f1efac1-neural-architecture-search)
- [Cutout](https://refivu.com/en/terms/a97c27442439-cutout)
- [cell](https://refivu.com/en/terms/f32f05765fbf-cell)
- [Mult-Adds](https://refivu.com/en/terms/6b992e996b7e-mult-adds)

---

AI-written text can contain mistakes. [Refivu](https://refivu.com/en/papers/5559067d-efe6-4393-97f1-bbf1a5119112-learning-transferable-architectures-for-scalable-image)
