NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Bag of Tricks for Neural Architecture Search

Thomas Elsken, Benedikt Staffler, Arber Zela, Jan Hendrik Metzen, Frank HutterarXiv 2021

Abstract

Neural Architecture Search (NAS) has achieved state-of-the-art results across various domains, yet the field remains plagued by instability and extreme sensitivity to hyperparameter configurations. This paper synthesizes a "bag of tricks"—a collection of practical techniques and best practices often scattered across disparate literature and code repositories. By detailing these methods, the authors aim to help researchers stabilize training, accelerate the search process, and improve the final performance of NAS algorithms, ultimately addressing the reliability crisis in automated machine learning.

Introduction

While NAS has successfully automated the design of top-performing neural networks for tasks like image classification and object detection, it faces a significant reliability crisis. Many NAS methods—particularly "one-shot" and gradient-based approaches—are notoriously brittle. They are often highly sensitive to hyperparameter choices and, in some cases, fail to outperform simple random search.

Furthermore, the specific "tricks" required to achieve state-of-the-art results are frequently buried in supplementary materials or undocumented code, making it difficult for practitioners to apply them or to conduct fair comparisons between different algorithms. This paper addresses this gap by explicitly detailing the practical considerations necessary to make NAS stable, efficient, and performant.

Methodological Best Practices

Rather than proposing a novel algorithm, the authors synthesize key techniques used across the NAS literature to improve search pipelines. These techniques focus on stabilizing the optimization process and reducing the computational burden of the search.

1. Weights Warm-Up

In gradient-based NAS, optimizing architecture parameters and network weights simultaneously often leads to premature convergence. A common strategy is to train only the network weights for the initial phase of the search. This prevents the algorithm from unfairly favoring architectures that simply train faster in the early stages, such as those with an abundance of skip connections.

2. Loss Landscape Smoothing

Applying strong regularization—including drop path, weight decay, and advanced data augmentation—serves to smooth the optimization landscape. This smoothing effect makes the architecture search significantly more stable and less prone to getting stuck in poor local optima.

3. Normalization Adjustments

Standard Batch Normalization (BN) is problematic in continuous NAS because its learnable parameters can rescale and effectively invalidate architectural weights. Additionally, NAS often requires small batch sizes due to memory constraints, which degrades BN statistics. Recommended solutions include disabling learnable parameters in BN layers, utilizing Ghost Batch Normalization, or switching to Group Normalization.

4. Proxy Tasks and Feature Caching

To accelerate the search, practitioners often use lower-fidelity estimates, such as fewer layers, smaller datasets, or downscaled images. If a network backbone remains fixed during the search, its outputs can be pre-computed (cached) to save massive amounts of compute time.

Breaking the search into distinct phases—for example, optimizing a feature extractor first and then the detection head—reduces both memory consumption and total search time.

Benchmarking and Datasets

As a synthesis of best practices, this work does not introduce new datasets but discusses standard benchmarks used as proxy tasks, such as CIFAR-10, PennTreeBank, ImageNet, and WikiText-2.

Crucially, the authors advocate for the use of tabular NAS benchmarks—such as NAS-Bench-101, NAS-Bench-201, and NAS-Bench-1shot1. These benchmarks allow for fair, reproducible comparisons between algorithms by removing the confounding variables of different training pipelines and hardware environments.

Key Insights

The Pipeline Confounding Effect

A central insight of this work is that the training pipeline matters as much as the architecture itself. A mediocre architecture trained with a state-of-the-art pipeline (incorporating advanced data augmentation and optimized learning rate schedules) can easily outperform a superior architecture trained with a sub-optimal pipeline.

Weight Sharing Distortions

In one-shot NAS, the performance ranking of architectures that share weights often correlates poorly with their actual performance when trained from scratch. To mitigate this, practitioners should sample multiple top candidate architectures from the search phase and re-evaluate them in a higher-fidelity setting before selecting a final model.

The Search Space Trade-off

Restricting the search space to known high-quality building blocks (like inverted residual blocks) speeds up the search and guarantees respectable results. However, this "pre-optimization" can be a double-edged sword, as it may prevent the discovery of radically new, paradigm-shifting designs like the Transformer.

Quantitative Case Study: MobileNet

To illustrate the impact of training pipelines, the authors cite the comparison between MobileNetV2 and MobileNetV3. Originally, MobileNetV3 reported a 75.2% top-1 accuracy on ImageNet, a 3.2% improvement over MobileNetV2's 72.0%. However, when both architectures were trained using the exact same modern training pipeline, MobileNetV2 achieved 73.3% and MobileNetV3 achieved 75.3%. This reveals that the actual architectural improvement was only 2.0%, proving that training tweaks heavily confound reported advancements.

Conclusion and Future Work

The authors conclude that it remains poorly understood how weight sharing affects the true ranking of architectures. For NAS to discover entirely novel designs rather than merely tuning existing ones, the field must develop more powerful, potentially hierarchical search spaces. Finally, future research must rigorously decouple the training pipeline from the architecture to ensure that progress in the field is measured accurately and fairly.

Summary updated

BibTeX
@misc{elsken2021bag,
  author = {Thomas Elsken and Benedikt Staffler and Arber Zela and Jan Hendrik Metzen and Frank Hutter},
  title = {{Bag of Tricks for Neural Architecture Search}},
  year = {2021},
  eprint = {2107.03719},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2107.03719},
}
Figure