TL;DR
This paper systematically analyzes the impact of various heuristics used in training "super-nets" for weight-sharing Neural Architecture Search (NAS). They discover that many commonly-used heuristics actually hurt performance, while simpler factors like proper hyperparameter tuning are crucial. By disentangling super-net training from the search algorithm, they demonstrate that a well-trained super-net can make even basic random search competitive with complex NAS methods.
What Problem Does This Paper Address?
Neural Architecture Search (NAS) aims to automate the design of high-performing neural networks. Weight-sharing NAS is a popular approach that makes NAS more efficient by allowing multiple architectures to share parameters within a single "super-net." However, the effectiveness of weight-sharing NAS heavily relies on how this super-net is designed and trained. The paper highlights that existing NAS methods often use a variety of heuristics for super-net training without a clear understanding of their individual impact. This lack of systematic analysis makes it difficult to determine which heuristics are truly beneficial and which might be detrimental, leading to suboptimal NAS performance. The authors aim to fill this gap by dissecting and evaluating these heuristics to provide a clearer picture of what makes a super-net effective.
Methods
The core of this paper is a systematic evaluation of 14 frequently used heuristics for designing and training super-nets. They achieve this by:
- Disentangling Super-net Training: They separate the process of training the super-net from the actual search algorithm. This allows them to isolate the impact of super-net training heuristics.
- Controlled Evaluation: They use three well-established benchmark search spaces (NASBench-101, NASBench-201, and DARTS-NDS) that provide ground-truth performance for many architectures. This enables a controlled comparison of different heuristics.
- Novel Evaluation Metric: They introduce "sparse Kendall-Tau" (s-KdT), a robust metric that measures the correlation between the super-net's predicted architecture ranking and the actual stand-alone performance. This metric is designed to be less sensitive to minor performance differences than traditional Kendall-Tau.
- Factor-by-Factor Analysis: They meticulously test each of the 14 identified heuristics individually, analyzing their impact on super-net quality and, ultimately, on the performance of the final searched architecture.
Datasets
The paper utilizes three benchmark search spaces for evaluation:
- NASBench-101: A widely used benchmark with over 423,000 architectures.
- NASBench-201: A larger benchmark with more operations than NASBench-101.
- DARTS-NDS: A very large search space with over 10^13 architectures, for which a subset of 5,000 models was sampled and trained.
All these benchmarks are associated with pre-computed ground-truth stand-alone performance metrics on the CIFAR-10 dataset.
Key Insights and Ideas
- Hyperparameters Reign Supreme: The most significant improvements in performance come from carefully tuning hyperparameters like learning rate and the number of training epochs, rather than complex architectural modifications.
- Common Heuristics Can Be Harmful: Many heuristics that are widely adopted, such as certain types of dynamic channeling or low-fidelity estimates (e.g., reducing layers/channels), can negatively impact the correlation between super-net ranking and actual performance.
- Super-net Accuracy is Misleading: The commonly used "super-net accuracy" is a poor predictor of the final stand-alone performance. The proposed sparse Kendall-Tau metric is a much more reliable indicator of super-net quality.
- Batch Normalization Needs Care: The standard practice of using moving average statistics for batch normalization during inference in super-nets can lead to a train-test discrepancy. The paper proposes using batch statistics on the fly during evaluation for better results.
- Loss Landscape Matters: Super-nets have less smooth loss landscapes than standalone networks, suggesting that smaller learning rates are often necessary for effective training.
- Simplicity Wins: A well-trained super-net can make even a simple random search algorithm achieve competitive results, highlighting the importance of the training process over complex search strategies.
Key Results
- The paper demonstrates that by properly tuning hyperparameters and avoiding detrimental heuristics, a simple random search strategy can achieve performance competitive with state-of-the-art NAS algorithms.
- They show that factors like learning rate and number of epochs have a substantial impact on performance, while others like path sampling have a marginal effect.
- The proposed sparse Kendall-Tau metric consistently shows a higher correlation with final performance compared to super-net accuracy across all tested search spaces.
- By disabling dynamic channeling, they achieved a new state-of-the-art on NASBench-101.
Limitations and Future Work
- Computational Cost: While the paper focuses on making NAS more efficient, training and evaluating super-nets still requires significant computational resources (hundreds of GPU days).
- Search Space Specificity: The findings are based on cell-based search spaces. The applicability to other types of search spaces (e.g., chain-like) might require further investigation.
- Reproducibility: The authors provide their code and trained models to facilitate further research and ensure reproducibility.
The paper's findings lay a strong foundation for future work by providing a systematic understanding of super-net training. This knowledge can guide the development of more efficient and effective NAS algorithms.
Summary updated