- Introduced by
- Zoph, B. & Le, Q.V.
- Year
- 2017
- Type
- Automated architecture optimization (deep learning)
What does it do?
Neural Architecture Search (NAS) automates the design of deep network architectures, covering choices such as depth, width, and connection structure that would otherwise be set by hand.
It treats these choices as a search problem over a defined space of candidate architectures. Zoph and Le introduced it in a 2016 arXiv preprint, published at ICLR 2017. Notable methods include DARTS, ENAS, and Once-for-All.
The intuition behind the method
Designing a deep network by hand means guessing how many layers to stack, how wide each should be, and how they should connect — a slow trial-and-error craft. NAS turns this craft into a search problem: a computer explores a defined space of candidate architectures, scores them, and converges on a design that performs well, so the architecture is discovered rather than guessed.
History
Neural Architecture Search was introduced by Zoph and Le in a 2016 arXiv preprint, published at ICLR 2017, using reinforcement learning with a controller that proposes network architectures. Because that approach was expensive, later methods aimed to reduce the cost: ENAS introduced weight sharing across candidates, DARTS (Liu et al., 2019) made the search differentiable so that it could be optimised by gradient descent, and Once-for-All trained a single super-network from which specialised sub-networks can be drawn.
When to use it
Choose NAS when you need a deep network, most often for image or sequence tasks where NAS is best established, when the search space can be specified clearly, and when you have a large dataset together with substantial GPU or TPU resources. As a rule of thumb, the dataset should be large relative to the size of the search space and the candidate models; the amount needed depends on the task and should be checked with a validation protocol. With small samples, candidate architectures cannot be compared reliably and tend to overfit the validation data. NAS is also not a good choice when a standard model would meet the problem's needs, because the search cost is high and the benefit is uncertain. For tabular data, start from a standard model as the baseline.
Limitations and considerations
- Requires a large computational budget and often a GPU or TPU cluster.
- Needs a large dataset, relative to the search space and model size, to rank candidate architectures reliably.
- Results depend heavily on a well-defined search space, which itself requires domain and methodological expertise.
- Because the search is guided by validation loss, a small or unrepresentative validation set makes the selected architecture unreliable.
- Search outcomes vary with random seeds, so a single run can overstate the quality of the found architecture.
Source conditions do not replace independent scientific review or validation by an analysis engine.
Strengths
- Automates architecture design, replacing slow manual trial and error with a systematic search.
- Can find architectures that outperform hand-crafted designs on the target task, provided the search space and validation data are adequate.
- Flexible across tasks and data types once the search space is specified.
- Weight-sharing and super-network variants (ENAS, Once-for-All) reduce the cost of evaluating candidates.
Applications
- Designing image classification networks automatically.
- Designing architectures for sequence and language tasks.
- Searching for efficient sub-networks that fit a hardware budget, such as mobile or edge devices.
- Automated model design in settings where manual architecture tuning is impractical.
How it works
How it works
First, a search space is defined: the set of architectural choices the procedure may consider, such as the number of layers, the width of each layer, the candidate operations, and how blocks may connect. The result depends heavily on this definition. A search space that is too narrow may exclude good designs, and one that is too broad makes the search impractical to explore.
A search strategy then explores this space. Early NAS used reinforcement learning, with a controller proposing architectures (Zoph and Le). The objective in the formula is a bilevel problem: choose architecture parameters alpha that minimise the validation loss of the weights w*(alpha), where w*(alpha) are the weights that minimise the training loss for that architecture. This is the differentiable formulation of DARTS (Liu et al.). DARTS relaxes discrete choices into continuous weights so that gradient descent can optimise the architecture parameters against validation loss, and it approximates w*(alpha) with a single gradient step rather than training to convergence. This stage is compute-hungry and typically requires GPU or TPU resources and a large computational budget.
Formula
\alpha^* = \arg\min_{\alpha} \; \mathcal{L}_{val}\big(w^*(\alpha), \alpha\big) \quad \text{s.t.} \quad w^*(\alpha) = \arg\min_{w} \; \mathcal{L}_{train}(w, \alpha)Candidate architectures are trained and evaluated on the data, and the best-performing design is selected and trained to completion. Because evaluating many candidates is expensive, ENAS shares weights across candidates, and Once-for-All trains a single super-network from which many sub-architectures can be extracted, which reduces the cost of evaluation. The final design should be judged on held-out test data that played no part in the search.
Common pitfalls
- Running NAS on a small dataset, where candidates overfit and their rankings carry little meaning.
- Defining a search space that is too broad to explore or too narrow to contain good designs.
- Underestimating the compute cost and stopping the search before it converges.
- Selecting an architecture on the validation split and then not retraining it from scratch and testing it on held-out data.
- Using NAS when the search space is undefined or the budget cannot cover the training runs that the search needs.
- Reporting a gain over a baseline without a tuned baseline or repeated seeds; an improvement smaller than the seed-to-seed variation is not evidence of a better architecture.
Frequently asked questions
How is NAS different from hyperparameter tuning?
Hyperparameter tuning adjusts settings of a fixed architecture, such as the learning rate or number of trees. NAS searches over the architecture itself, including the number and width of layers, the operations, and how they connect, so it discovers the network structure rather than only tuning a chosen one.
Why is NAS so computationally expensive?
Naive NAS trains and evaluates many candidate architectures, and each one is a full deep network. This typically requires a GPU or TPU cluster and a large budget. ENAS (weight sharing) and Once-for-All (a single super-network) were developed to reduce this cost.
How much data do I need for NAS?
NAS expects a large dataset relative to the size of the search space and the candidate models. There is no universal cut-off; the amount needed depends on the task and should be checked with a validation protocol. With little data, the search cannot rank candidates reliably and they tend to overfit, so a simpler, more established model is usually the safer choice.
What does DARTS contribute?
DARTS makes the search differentiable by relaxing the discrete choice of operations into continuous weights, so the architecture can be optimised with gradient descent rather than reinforcement learning. It was designed to make architecture search considerably cheaper than the original reinforcement-learning approach.
Related methods
Sources
Zoph, B. & Le, Q.V. (2017). Neural Architecture Search with Reinforcement Learning. ICLR.
Open publication referenceLiu, H. et al. (2019). DARTS: Differentiable Architecture Search. ICLR.
Open publication referenceNeural Networks and Deep Learning (2018), bibliography entry [569], p. 490