Efficient Neural Architecture Search via Parameter Sharing

Hieu Pham, Melody Y. Guan, Barret Zoph, Quoc V. Le, Jeff Dean

TL;DR

Efficient Neural Architecture Search (ENAS) slashes the computational cost of automatic model design by over 1000x. By forcing all candidate architectures to share a single set of weights within a large "super-graph," ENAS can discover state-of-the-art models for image classification and language modeling in less than 16 hours on a single GPU.

Designing neural networks is traditionally a manual, trial-and-error process led by human experts. Neural Architecture Search (NAS) sought to automate this, but early methods were prohibitively expensive. For example, the original NASNet required 450 GPUs running for four days—roughly 40,000 GPU hours—to find a single high-performing architecture.

The bottleneck is that standard NAS treats every candidate architecture (a "child model") as a blank slate. It trains each one from scratch to convergence just to measure its performance and provide feedback to a "controller" (the AI designing the AI). Once measured, those trained weights are typically discarded. ENAS addresses this massive waste of computation.

Methodology: Parameter Sharing via a Super-Graph

The core innovation of ENAS is Parameter Sharing. Instead of treating each architecture as an independent entity, the authors represent the entire search space as a single Directed Acyclic Graph (DAG).

In this DAG, nodes represent local computations (like a convolution or an activation function), and edges represent the flow of data. Any specific neural network architecture is simply a subgraph of this larger DAG.

A DAG representing the search space, a sampled subgraph, and its corresponding neural network.

The process involves two alternating phases:

  1. Training the Shared Weights ($\omega$): The controller samples a subgraph, and its parameters are updated on a batch of training data. Because all subgraphs share the same set of weights, training one architecture effectively "pre-trains" others that share its nodes and edges.
  2. Training the Controller ($\theta$): The controller (an LSTM) is trained via Reinforcement Learning (REINFORCE) to sample subgraphs that maximize performance on a validation set.

By the end of the search, the controller has learned to identify the most promising paths through the DAG, and the shared weights have been co-optimized across many different structures.

Datasets

The authors evaluated ENAS on two classic benchmarks:

  • Penn Treebank (PTB): A standard dataset for language modeling.
  • CIFAR-10: A popular image classification dataset consisting of 60,000 32x32 color images across 10 classes.

Key Insights

  • Weights are Transferable: The most surprising insight is that weights learned for one architecture can actually be useful for a completely different one within the same search space. This "superposition" of models allows the search to skip the expensive "train-from-scratch" step for every candidate.
  • Macro vs. Micro Search: The paper explores two ways to build networks. In Macro search, the controller designs the entire network's connectivity. In Micro search (or cell-based search), the controller designs a small modular "cell" which is then stacked multiple times to form the final network.
  • Efficiency is the New SOTA: ENAS proves that you don't need a massive server farm to do cutting-edge architecture search. Achieving competitive results on a single consumer-grade GPU (GTX 1080Ti) in under a day democratizes NAS for researchers with limited resources.

Performance and Efficiency

ENAS delivers performance on par with the most expensive search methods while being orders of magnitude faster.

  • Language Modeling (PTB): ENAS discovered a novel recurrent cell that achieved a test perplexity of 56.3. This outperformed the original NAS (62.4) and reached the level of state-of-the-art models that use complex post-training enhancements.
  • Image Classification (CIFAR-10): The method found an architecture with a 2.89% test error (using CutOut augmentation). For context, the original NASNet achieved 2.65% but cost 1000x more to find.
  • Speed: The search for these architectures took less than 16 hours on a single GPU.

Limitations and Future Work

While ENAS is a massive leap in efficiency, some limitations remain:

  • Search Space Bias: The performance of ENAS is still bounded by the human-designed DAG. If the "optimal" architecture cannot be represented as a subgraph of the DAG, ENAS will never find it.
  • Derivation Heuristics: After the search, the authors still have to sample several models and pick the best one based on a single minibatch of validation data. Refining how we "harvest" the final model from the trained super-graph is an area for improvement.
  • Scaling to ImageNet: While the paper focuses on CIFAR-10, future work would involve testing how well these shared-weight search strategies scale to massive datasets like ImageNet without requiring a linear increase in search time.

Summary updated

BibTeX
@inproceedings{pham2018efficient,
  author = {Hieu Pham and Melody Y. Guan and Barret Zoph and Quoc V. Le and Jeff Dean},
  title = {{Efficient Neural Architecture Search via Parameter Sharing}},
  booktitle = {International Conference on Machine Learning},
  year = {2018},
  url = {https://openreview.net/forum?id=SyZQDnWdbr},
}
Figure