Paper commentary
Neural Architecture Search with Reinforcement Learning
Neural Architecture Search trains a recurrent controller to design networks
- Problem Designing neural networks still takes expert judgment and time. Hyperparameter search covers only fixed-length settings, so it cannot describe networks whose depth and wiring vary.
- Method Neural Architecture Search uses a recurrent controller that writes a network as tokens and trains it. Validation accuracy serves as the reward for REINFORCE policy gradient updates.
- Results On Penn Treebank, the found cell reaches 62.4 test perplexity, 3.6 better than the previous state of the art.
Why network design is the bottleneck
Designing neural networks still leans heavily on expert judgment and a lot of time, even though the field has moved from hand-crafted features to hand-designed architectures. Hyperparameter optimization can search well, but it works over a fixed-length set of settings, so it can't easily describe a network whose depth and wiring vary. Bayesian methods that allow variable-length architectures exist, yet the authors judge them less general and less flexible than their own approach.
Neuro-evolution is flexible enough for novel models, but it is usually impractical at large scale, and its search is slow or leans on many heuristics.
The question is whether a learned generator of architectures, rather than a fixed search space, can find good networks from scratch. The starting point is that a network's structure and connectivity can be written as a variable-length string, so a sequence model can generate it. The controller borrows its step-by-step decoding from sequence-to-sequence learning, but its reward is the accuracy of a network, which is non-differentiable.
A controller that writes networks and learns from accuracy
The key idea is to let a recurrent controller write a network as a list of hyperparameter tokens, train that network, and use its validation accuracy as the learning signal. The controller predicts each token with a softmax classifier and feeds that choice back in as the next input. Generation stops once the layer count passes a value that grows during training, and the built network is then trained until it converges.
Because the reward isn't differentiable, the controller is trained with a policy gradient, using the REINFORCE rule from Williams (1992). The gradient sums, over the T tokens, the gradient of each token's log-probability times the reward, and in practice this is averaged over m sampled architectures. To cut the variance the authors subtract a baseline b, an exponential moving average of earlier accuracies, from each reward.
Because b doesn't depend on the current action, the estimate stays unbiased.
Each gradient step needs one child network trained to convergence, and that can take hours, so the authors distribute the work. A parameter server with S shards holds shared parameters for K controller replicas, and each replica samples m child architectures to train in parallel. On CIFAR-10 the setup used S set to 20, K set to 100 and m set to 8, so 800 networks trained at once on 800 GPUs.
Letting the controller choose skip connections
The first search space had no skip connections or branching layers, though modern designs such as GoogleNet and ResNet use them. To let the controller choose inputs, the authors add an anchor point at each layer, with N−1 content-based sigmoids over the earlier layers. The probability that layer j feeds layer i is \( P(\text{Layer } j \text{ is an input to layer } i) = \text{sigmoid}(v^T \tanh(W_{prev} h_j + W_{curr} h_i)) \), where the h terms are controller hidden states.
The sigmoids are sampled to pick the inputs, and REINFORCE still applies because these choices are also probability distributions.
Skip connections can cause compilation failures, so the authors use three fixes. A layer with no input uses the image, the final layer concatenates all unconnected outputs before the classifier, and inputs of unequal size are zero-padded. Other layer types such as pooling or batchnorm need an extra controller step that predicts the layer type first.
Searching recurrent cells as trees
Basic RNN and LSTM cells can both be written as a tree of steps that take x_t and h_{t-1} and produce h_t, so one search can cover both. For each node the controller picks a combination method, such as addition or elementwise multiplication, and an activation, such as tanh or sigmoid. The nodes are indexed so the controller visits them in order, and its last two blocks choose which nodes connect to the memory variables c_{t-1} and c_t.
The authors work through a tree with two leaf nodes, indexed 0 and 1, and one internal node, indexed 2, which they call a base 2 architecture. The memory predictions then give \(\hat{a}_0 = \mathrm{ReLU}(a_0 + c_{t-1})\), \(a_2 = \mathrm{sigmoid}(\hat{a}_0 \odot a_1)\), and \(h_t = a_2\), with \(c_t\) set to the index-1 output before its activation.
The internal nodes have no learnable parameters, and the base number is set to 8 in the experiments so the cell is expressive.
CIFAR-10 convolutional results
The validation set held 5,000 examples, the controller trained 12,800 architectures, and the controller's Adam learning rate was 0.0006.
With no strides or pooling, the search found a 15-layer network with 5.50% test error. Densely connecting its layers gave 5.56%, but removing all skip connections raised the error to 7.97%. This points to skip connections carrying much of the gain, though only this one architecture was tested that way. The authors call the 15-layer network a local optimum, since perturbing it made performance worse.
Allowing strides gave a 20-layer network at 6.01%, which the authors call not much worse than the first set of runs. Adding two pooling layers at layers 13 and 24 gave a 39-layer network at 4.47%, compared to 3.74% for the best human-invented architecture cited. That model is 1.05x as fast as the DenseNet at 3.74%, and the authors say it performs better.
Penn Treebank cell results
On Penn Treebank the controller setup was kept, but each child model had two layers with hidden units matched to medium baselines. Each node chooses add or elem mult, and identity, tanh, sigmoid or relu, with the base number set to 8. The reward was c times validation perplexity squared, with c usually set at 80.
That is almost 3.6 perplexity better than the previous best in the table, which is 66.0.
The found cell resembles the LSTM in its first steps, for example by computing W1 h_{t-1} + W2 x_t several times.
Transfer to characters and translation
To test transfer, the authors applied the word-level cell to character language modeling on Penn Treebank, following a HyperLSTM setup with variational dropout. A larger 16.28M model with 800 hidden units per layer reached 1.214, which the authors call a new state of the art.
The cell was also dropped into the GNMT framework, which was tuned for LSTM cells, for an English to German translation model. With hyperparameters adjusted to keep the same computational complexity as the base model, the new cell gained 0.5 test BLEU over the default LSTM. The authors call this modest but encouraging, since the cell was used without any tuning for GNMT.
Random search and wider search space checks
The authors compare policy gradient with random search, which picks architectures without a learned policy, and plot the perplexity improvement every 400 models. The best policy-gradient model beat the best random-search model, and the average of the top models was also much better as training progressed. Because the result is a curve over iterations, it shows a trend rather than a single number.
Adding max to the combination functions and sin to the activations still gave somewhat comparable performance.
Limitations
The Penn Treebank cell search space is about 6×1016 architectures, and the controller was allowed to evaluate about 15,000 of them. The 3.46% DenseNet-BC comparison isn't exact, because that model uses 1x1 convolutions to cut parameters and this search doesn't. The CIFAR-10 search ran 800 networks concurrently on 800 GPUs, a setup far larger than the controller alone would need.
The 1.214 character result uses a 16.28M model trained for 600K steps, a different budget from the 6.57M comparison.
Paper info
- Authors
- Barret Zoph, Quoc V. Le
- Venue
- arXiv · Preprint
- First published
- 2016-11-5
- Added
- 2026-11-11
- Updated
- 2017-2-15
- Version
- v2
- arXiv
- 1611.01578
- Category
- cs.LG · cs.AI · cs.NE
- Original paper terms
- arXiv non-exclusive 1.0
- What we show
- Paper info and commentary
AI commentary is a separate explanation from the original paper and may contain errors. The original paper and figures follow each source's terms of use and any rights noted separately.
Quote from the paper
Barret Zoph, Quoc V. Le (2016). Neural Architecture Search with Reinforcement Learning. arXiv:1611.01578v2. https://arxiv.org/abs/1611.01578v2
BibTeX
@misc{zoph2016neural,
title = {{Neural Architecture Search with Reinforcement Learning}},
author = {Barret Zoph and Quoc V. Le},
year = {2016},
eprint = {1611.01578},
archivePrefix = {arXiv},
url = {https://arxiv.org/abs/1611.01578v2}
}