Learning Transferable Architectures for Scalable Image Recognition

Barret Zoph, Vijay Vasudevan, Jonathon Shlens, Quoc V. Le

Abstract

Developing neural network image classification models often requires significant architecture engineering. In this paper, we study a method to learn the model architectures directly on the dataset of interest. As this approach is expensive when the dataset is large, we propose to search for an architectural building block on a small dataset and then transfer the block to a larger dataset. The key contribution of this work is the design of a new search space (the "NASNet search space") which enables transferability. In our experiments, we search for the best convolutional layer (or "cell") on the CIFAR-10 dataset and then apply this cell to the ImageNet dataset by stacking together more copies of this cell, each with their own parameters to design a convolutional architecture, which we name a "NASNet architecture". We also introduce a new regularization technique called ScheduledDropPath that significantly improves generalization in the NASNet models. On CIFAR-10 itself, a NASNet found by our method achieves 2.4% error rate, which is state-of-the-art. Although the cell is not searched for directly on ImageNet, a NASNet constructed from the best cell achieves, among the published works, state-of-the-art accuracy of 82.7% top-1 and 96.2% top-5 on ImageNet. Our model is 1.2% better in top-1 accuracy than the best human-invented architectures while having 9 billion fewer FLOPS—a reduction of 28% in computational demand from the previous state-of-the-art model. Finally, the image features learned from image classification are generically useful and can be transferred to other computer vision problems. On the task of object detection, the learned features by NASNet used with the Faster-RCNN framework surpass state-of-the-art by 4.0% achieving 43.1% mAP on the COCO dataset.

Introduction

Designing high-performance neural network architectures for image recognition has traditionally been a manual "trial-and-error" process known as architecture engineering. While Neural Architecture Search (NAS) has emerged as a way to automate this, applying it directly to large-scale datasets like ImageNet is prohibitively expensive. This paper addresses two primary challenges: scalability (finding architectures efficiently) and transferability (ensuring blocks found on small datasets perform well on large ones).

Methodology: The NASNet Search Space

The authors propose a new paradigm: instead of searching for an entire network, they search for a modular convolutional cell on a small proxy dataset (CIFAR-10) and then stack that cell multiple times to build a larger network for the target task. This cell-based design makes the architecture "elastic," allowing it to scale in depth and width simply by changing the number of cell repeats or filter counts.

The NAS framework: an RNN controller samples architectures, which are trained to provide a reward signal for updating the controller via reinforcement learning.

The search focuses on two cell types: Normal Cells (preserving resolution) and Reduction Cells (reducing resolution). An RNN "controller" predicts the structure of these cells, and its parameters are updated using reinforcement learning based on the validation accuracy of the "child" networks it designs. To further improve generalization, the authors introduced ScheduledDropPath, a regularization technique where paths within the cell are stochastically dropped with an increasing probability during training.

Key Results and Performance

The best discovered cell, NASNet-A, set new benchmarks for both accuracy and efficiency. On CIFAR-10, it achieved a 2.4% error rate. When transferred to ImageNet, it reached 82.7% top-1 accuracy, surpassing human-designed models like SENet while requiring 9 billion fewer FLOPS—a 28% reduction in computational demand.

NASNet-A demonstrates a superior Pareto frontier compared to human-designed models, achieving higher accuracy at lower computational costs and parameter counts.

NASNet also excelled in constrained environments. A mobile-optimized version achieved 74.0% top-1 accuracy on ImageNet, outperforming equivalently sized MobileNet and ShuffleNet models by over 3%. Beyond classification, the learned features proved highly effective for object detection; using NASNet as a backbone for Faster-RCNN on the COCO dataset yielded a 43.1% mAP, a 4.0% improvement over previous state-of-the-art baselines.

Conclusion

NASNet demonstrates that architectural building blocks can be automatically learned on small datasets and successfully transferred to large-scale image recognition tasks. While the search process still requires significant resources (approximately 2,000 GPU hours), it offers a 7x improvement over previous NAS methods and produces models that are both more accurate and more efficient than those designed by human experts. Future work may extend this "search-and-transfer" paradigm to other domains such as natural language processing and video recognition.

Summary updated

BibTeX
@inproceedings{zoph2018learning,
  author = {Barret Zoph and Vijay Vasudevan and Jonathon Shlens and Quoc V. Le},
  title = {{Learning Transferable Architectures for Scalable Image Recognition}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2018},
  url = {https://openreview.net/forum?id=rk4LJpbOWB},
}
Figure