Learning Transferable Architectures for Scalable Image Recognition

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

TL;DR

This paper introduces NASNet, a state-of-the-art convolutional neural network architecture designed not by humans, but by an automated search algorithm. By searching for optimal "building blocks" on a small dataset (CIFAR-10) and scaling them up for larger tasks, the authors achieved record-breaking accuracy on ImageNet while significantly reducing computational costs compared to manually engineered models.

What Problem Does This Paper Address?

Designing high-performance convolutional neural networks (CNNs) is a grueling process of "architecture engineering." Experts spend months tweaking layers, connections, and filter sizes to squeeze out better performance. While automated methods like Neural Architecture Search (NAS) exist, they are computationally astronomical—running them directly on massive datasets like ImageNet is practically impossible for most research teams.

The authors tackle two main challenges:

  1. Scalability: How can we automate architecture design for large-scale datasets without needing thousands of years of GPU time?
  2. Transferability: Can an architecture learned on a small, simple dataset (like CIFAR-10) actually perform well on a complex, high-resolution one (like ImageNet)?

Methods

The core innovation is the NASNet search space, which shifts the focus from designing an entire network to designing modular "cells."

  • Cell-Based Search: Instead of searching for a full end-to-end architecture, the algorithm searches for two specific motifs: a Normal Cell (which preserves feature map resolution) and a Reduction Cell (which halves the resolution).
  • The Controller: A Recurrent Neural Network (RNN) acts as the "controller," proposing new cell structures. These "child" networks are trained, and their validation accuracy is used as a reward signal to update the controller via reinforcement learning (specifically, Proximal Policy Optimization or PPO).
Figure 1. Overview of Neural Architecture Search [71]. A con- troller RNN predicts architecture A from a search space with prob- ability p. A child network with architecture A is trained to con- vergence achieving accuracy R. Scale the gradients of p by R to update the RNN controller.
  • Stacking for Scale: Once the best cells are found on CIFAR-10, they are stacked repeatedly to build a full network. This allows the architecture to adapt to any image size or computational budget simply by changing the number of cell repetitions ($N$) and the number of initial filters.
Figure 2. Scalable architectures for image classification consist of two repeated motifs termed Normal Cell and Reduction Cell. This diagram highlights the model architecture for CIFAR-10 and Ima- geNet. The choice for the number of times the Normal Cells that gets stacked between reduction cells, N, can vary in our experi- ments.
  • ScheduledDropPath: The authors found that standard regularization didn't work well for these complex, automatically-discovered cells. They introduced a new technique where the probability of dropping a connection path increases linearly during training, which significantly improved generalization.

Datasets

  • CIFAR-10: Used as the primary "proxy" dataset for the architecture search.
  • ImageNet (2012 ILSVRC): Used to evaluate how well the learned cells transfer to large-scale image classification.
  • COCO: Used to test the learned features on an object detection task using the Faster-RCNN framework.

Key Insights and Ideas

  • Decoupling Search from Scale: By searching for cells rather than full networks, the search process becomes independent of image resolution and network depth. This makes the search 7x more efficient than previous end-to-end NAS methods.
  • The Power of Separable Convolutions: The search algorithm heavily favored depthwise-separable convolutions, which are much more computationally efficient than standard convolutions. This aligns with recent human-designed trends like MobileNet and Xception.
  • Random Search is a Tough Baseline: Interestingly, the authors found that their search space is so well-structured that even random search performs reasonably well, though reinforcement learning still identifies the absolute best performers.

Key Results

NASNet set new benchmarks across the board:

  • CIFAR-10: Achieved a 2.4% error rate, a new state-of-the-art at the time.
  • ImageNet: The largest NASNet reached 82.7% top-1 accuracy, matching the best human-designed models (like SENet) while using 28% fewer FLOPS (9 billion fewer operations).
  • Mobile Efficiency: A small version of NASNet achieved 74.0% top-1 accuracy, outperforming equivalently sized MobileNet and ShuffleNet models by over 3%.
  • Object Detection: When used as a backbone for Faster-RCNN on the COCO dataset, NASNet improved mean Average Precision (mAP) by 4.0% over previous state-of-the-art baselines.
Figure 4. Architecture of the best convolutional cells (NASNet-A) with B = 5 blocks identified with CIFAR-10 . The input (white) is the hidden state from previous activations (or input image). The output (pink) is the result of a concatenation operation across all resulting branches. Each convolutional cell is the result of B blocks. A single block is corresponds to two primitive operations (yellow) and a combination operation (green). Note that colors correspond to operations in Figure 3.

Limitations and Future Work

While much more efficient than previous NAS attempts, the search still required 2,000 GPU-hours (using 500 GPUs over 4 days). This remains out of reach for many smaller labs.

Additionally, while the cells are learned, the macro-architecture (the specific way cells are stacked) is still manually predetermined. Future work could involve automating the design of this global structure as well. The authors also suggest that these learned cells could be applied to other domains beyond computer vision, such as natural language processing.

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