Abstract
Neural Architecture Search (NAS) has revolutionized the design of deep learning models by automating the discovery of optimal architectures. However, the search process is often hindered by the computational cost and noise associated with evaluating billions of candidates. Weight-sharing supernets offer a solution but struggle with unstable accuracy-based metrics and biased magnitude-based metrics. This paper introduces Angle-Based search space Shrinking (ABS), a novel "plug-in" for NAS that utilizes the angular displacement of weights from their random initialization as a proxy for generalization capability. By iteratively pruning operators with low angular change, ABS significantly improves the performance and efficiency of popular NAS frameworks like DARTS and SPOS.
Introduction
The primary challenge in Neural Architecture Search (NAS) is the efficient evaluation of candidate architectures within a vast search space. Weight-sharing supernets address this by training a single large network containing all possible paths, where child models share weights. Despite its efficiency, this approach faces two major hurdles: accuracy-based metrics are highly unstable during early training, and magnitude-based metrics unfairly favor operators initialized with larger weights.
To overcome these limitations, we propose a metric based on the direction of weights rather than their magnitude or immediate performance. This approach is motivated by the prevalence of Batch Normalization in modern architectures, which makes the absolute scale of weights less critical than their orientation.
Methodology
The Angle-based Metric
The core of our approach is the angular change ($\Delta_W$) between the current weights ($W$) and their random initialization ($W_0$). The metric is defined as:
$$\Delta_W = \arccos\left(\frac{\langle W, W_0 \rangle}{\|W\|_F \cdot \|W_0\|_F}\right)$$
A larger angle indicates that the weights have moved significantly from their random starting point, suggesting that the operator has effectively learned features that contribute to generalization. This metric is notably more stable than accuracy and converges much faster, allowing for reliable operator ranking within the first few epochs of training.
Handling Non-Parametric Operators
A significant difficulty in NAS is the presence of non-parametric operations such as "Identity" or "Pooling." To incorporate these into our angle-based framework, we assign fixed, dummy weights to these layers. We then construct a "global weight vector" for each child model by concatenating weights along all paths from input to output, ensuring that every operation contributes to the final score.
The ABS Pipeline
The ABS framework operates as an iterative "plug-in" that can be added to existing NAS algorithms. The process consists of four main steps:
- Supernet Training: The supernet is trained for a short period (e.g., 5–10 epochs) using uniform sampling.
- Operator Scoring: The average angular change is calculated for child models containing each specific operator.
- Search Space Shrinking: The operators with the lowest scores (the "tail") are removed from the search space.
- Iteration: The process repeats until the search space is reduced to a manageable size for the final search phase.
To maintain the sensitivity of the metric in high-dimensional spaces—where weights naturally tend toward orthogonality (90°)—we implement a "Reset" trick, periodically updating the base weight ($W_0$) during training.
Key Results
We evaluated ABS on several benchmarks, including NAS-Bench-201, ImageNet, CIFAR-10, and CIFAR-100. On NAS-Bench-201, the angle-based metric demonstrated a high ranking correlation (Kendall’s Tau > 0.8) with ground-truth performance, significantly outperforming random and accuracy-based selection.
As shown in the experimental results across various datasets, ABS consistently enhances the performance of baseline NAS algorithms. For instance, adding ABS to DARTS resulted in a substantial 2.2% increase in Top-1 accuracy on ImageNet. Furthermore, the method is highly efficient; calculating the angle for 100 models takes less than a second, compared to several minutes for accuracy-based evaluation.
Conclusion
Angle-Based search space Shrinking (ABS) provides a simple, robust, and efficient way to prune unpromising architectures early in the NAS process. By focusing on the orientation of weights, ABS avoids the pitfalls of noisy accuracy metrics and biased magnitude metrics. While future work will explore better distinctions between different pooling types and extension to downstream tasks like object detection, ABS currently stands as a powerful tool for making NAS more practical and effective.
Summary updated