Faster Discovery of Neural Architectures by Searching for Paths in a Large Model

Hieu Pham, Melody Y. Guan, Barret Zoph, Quoc V. Le, Jeff DeanWorkshops @ ICLR 2018

Introduction

Neural Architecture Search (NAS) has revolutionized deep learning by using reinforcement learning to automate the design of neural networks, often discovering architectures that outperform human-designed models. However, the original NAS approach was notoriously expensive. Designing a high-performing vision model, for instance, required 450 GPUs running for four days—a compute budget far beyond the reach of most researchers.

The primary bottleneck of standard NAS is that it treats every candidate architecture as a brand-new entity. It trains thousands of "child" models from scratch to convergence simply to measure their performance. Efficient Neural Architecture Search (ENAS) addresses this massive inefficiency. By forcing all candidate models to share weights within a single large computational graph, ENAS slashes the computational cost of automated model design by up to 1,000x, discovering state-of-the-art architectures in less than 16 hours on a single GPU.

Methods: The Super-Graph and Weight Sharing

The core innovation of ENAS is weight sharing. Instead of training each architecture independently, the authors represent the entire search space as a single, massive Directed Acyclic Graph (DAG).

Every possible architecture in the search space is simply a sub-graph of this one large DAG. Because these sub-graphs share nodes and edges, they also share the underlying machine learning weights.

A conceptual Directed Acyclic Graph (DAG) representing the ENAS search space, where red arrows indicate a sampled sub-graph architecture.

To navigate this space, ENAS employs an RNN-based Controller. The controller learns to "sample" paths through the DAG. For a recurrent cell, it decides which previous nodes to connect to and which activation functions (e.g., ReLU, tanh) to apply. For convolutional models, it decides on operations (like convolutions or pooling) and skip connections.

Mapping a sampled path within the DAG to a specific recurrent neural network cell architecture.

The training process happens in two alternating phases:

  1. Training Child Weights ($\omega$): The controller samples an architecture, and its corresponding weights in the super-graph are updated using standard Stochastic Gradient Descent (SGD) on the training set.
  2. Training the Controller ($\theta$): The shared weights are fixed, and the controller is trained via Policy Gradient (REINFORCE) to select architectures that maximize performance on a validation set.

By the end of this alternating process, the controller has learned to identify the most promising "paths" through the shared weights.

Key Insights

  • Weight Inheritance: The fundamental "aha moment" of ENAS is that child models do not need to be fully trained to convergence to be ranked against one another. A model that performs well using shared parameters is highly likely to perform well when trained from scratch.
  • The DAG as a Search Space: Representing the search space as a DAG allows the search to be framed as a simple path-finding problem. This is significantly more efficient than exploring a discrete, disconnected space of independent models.
  • Democratizing NAS: By reducing the search time from thousands of GPU-hours to just half a day on a single consumer-grade card (like a GTX 1080Ti), ENAS effectively democratizes architecture search for smaller labs and individual researchers.

Results

The authors evaluated ENAS on two classic benchmarks, proving that efficiency does not come at the cost of performance:

  • Language Modeling (Penn Treebank): ENAS discovered a novel recurrent cell that achieved a test perplexity of 57.8, setting a new state-of-the-art for automated design at the time of publication.
  • Image Classification (CIFAR-10): ENAS designed a macro-architecture that achieved a 2.89% test error (using CutOut augmentation). This is comparable to the results of the original, massively expensive NAS.
  • Unprecedented Speedup: ENAS proved to be 1,000x more efficient than standard NAS in terms of total GPU-hours, finishing its search in less than 16 hours on a single GPU compared to the 3,000+ GPU-hours required by previous methods.

Limitations and Future Directions

While ENAS represents a massive leap in efficiency, it is not without limitations.

First, the search is strictly confined to the predefined "super-graph." If the optimal architecture requires connectivity or operation types outside the bounds of the initial DAG, ENAS cannot discover it. Second, there is an inherent "rank-order" assumption: ENAS assumes that a model performing well with shared weights will also be the best when trained independently. While this correlation is strong enough to find excellent models, it is not perfect. Finally, implementing the weight-sharing logic within a DAG is significantly more complex than training standalone models, requiring careful management of gradients and memory.

Future work involves expanding these shared search spaces to even more complex tasks, such as object detection and semantic segmentation, where the computational savings of ENAS would be even more impactful.

Summary updated

BibTeX
@inproceedings{pham2018faster,
  author = {Hieu Pham and Melody Y. Guan and Barret Zoph and Quoc V. Le and Jeff Dean},
  title = {{Faster Discovery of Neural Architectures by Searching for Paths in a Large Model}},
  booktitle = {Workshops @ ICLR},
  year = {2018},
}
Figure