TL;DR
Neural Architecture Optimization (NAO) shifts the paradigm of Neural Architecture Search (NAS) from inefficient discrete searching to continuous gradient-based optimization. By utilizing an encoder-predictor-decoder framework, the authors map discrete network topologies into a continuous space, perform gradient ascent to find "better" embeddings, and decode them back into state-of-the-art architectures for vision and language tasks.
The Challenge of Discrete Search Spaces
Designing a neural network is traditionally a manual, trial-and-error process. While Automatic Neural Architecture Search (NAS) has emerged to automate this, most early methods relied on Reinforcement Learning (RL) or Evolutionary Algorithms (EA).
The fundamental issue is that these methods operate in a discrete search space. Imagine trying to find the highest peak in a mountain range by teleporting to random coordinates (sampling); it’s highly inefficient because the "landscape" of architectures isn't smooth. You cannot easily tell if moving a "layer" to the left or right will improve performance without training the entire network from scratch. This paper tackles the inefficiency of discrete search by proposing a way to make the architecture landscape continuous and differentiable.
Methods: The NAO Framework
The authors introduce Neural Architecture Optimization (NAO), which consists of three main components trained jointly:
- The Encoder: An LSTM that takes a string representation of a network architecture (e.g., "node-1 conv 3x3...") and maps it into a continuous vector embedding.
- The Performance Predictor: A feed-forward network that takes that embedding and predicts how well the architecture will perform (e.g., its accuracy on a validation set).
- The Decoder: Another LSTM (with an attention mechanism) that performs the inverse of the encoder, turning a continuous embedding back into a discrete architecture string.
The Core Workflow: Instead of merely sampling new architectures, NAO trains these three components on a set of already-evaluated architectures. Once trained, the system takes a "seed" architecture, finds its embedding via the encoder, and then performs gradient ascent on that embedding to maximize the score given by the performance predictor. Finally, this "optimized" embedding is passed through the decoder to reveal a brand-new, theoretically superior architecture.
To accelerate this process, the authors also demonstrate that NAO can be combined with weight sharing (similar to ENAS), where child models share parameters to avoid training every candidate from scratch.
Key Insights and Ideas
- Smoothness Matters: By mapping architectures to a continuous space, the search process benefits from the "smoothness" of the embedding. Small steps in the vector space correspond to small, logical changes in the architecture.
- Joint Training is Crucial: The encoder and decoder are trained together in a multi-task setting. The requirement that the decoder must perfectly reconstruct the original architecture forces the encoder to learn a very high-quality, topologically-aware representation.
- Data Augmentation for Architectures: The authors realized that many different strings can describe the exact same computation graph (e.g., swapping the order of two branches in a node). They used data augmentation to ensure that symmetrical architectures result in similar embeddings, which improved the predictor's accuracy by about 2%.
Key Results
NAO achieved results that were either state-of-the-art or highly competitive, while being significantly more efficient than previous methods. The authors evaluated NAO on standard benchmarks for both computer vision (CIFAR-10) and natural language processing (Penn Treebank).
- CIFAR-10: As shown in the table above, NAO achieved a 2.11% error rate, outperforming famous models like NASNet and AmoebaNet while requiring orders of magnitude less computational power (evaluating only 1,000 models vs. 20,000+).
- PTB: Achieved a test perplexity of 56.0, which was the best result for an automatically discovered architecture at the time.
- Extreme Efficiency: When combined with weight sharing (NAONet-WS), NAO found a powerful CIFAR-10 architecture in less than 10 GPU hours (0.3 GPU days) on a single V100.
- Transferability: To prove the discovered "cells" were robust, they tested them on CIFAR-100 and WikiText-2 without re-running the search process. The cells performed excellently, proving the method finds generalizable architectural patterns rather than just over-fitting to one dataset.
Limitations and Future Work
While NAO represents a major step forward, the authors note a few areas for growth:
- Initial Seed Dependency: The method still requires an initial set of evaluated architectures to "warm up" the predictor and encoder.
- Complexity of Search Space: While it handles CNN and RNN cells well, scaling this to entirely new types of macro-architectures remains a challenge.
- Future Directions: The authors suggest applying NAO to more complex tasks like Neural Machine Translation (NMT) and exploring "mixture of softmax" techniques to further boost language modeling performance. They also mention a meta-learning angle: "teaching and learning to teach" neural models.
Summary updated