Angle-based Search Space Shrinking for Neural Architecture Search

Yiming Hu, Yuding Liang, Zichao Guo, Ruosi Wan, Xiangyu Zhang, Yichen Wei, Qingyi Gu, Jian Sun

Abstract

In this work, we present a simple and general search space shrinking method, called Angle-Based search space Shrinking (ABS), for Neural Architecture Search (NAS). Our approach progressively simplifies the original search space by dropping unpromising candidates, thus reducing the difficulty for existing NAS methods to find superior architectures. We propose an angle-based metric to guide the shrinking process, providing comprehensive evidence that in weight-sharing supernets, this metric is more stable and accurate than accuracy-based or magnitude-based metrics. ABS converges fast during supernet training, enabling efficient search space reduction. It is algorithm-agnostic and can be applied to various NAS approaches (e.g., SPOS, FairNAS, ProxylessNAS, DARTS, and PDARTS). Experimental results show that ABS dramatically enhances existing NAS approaches by providing a promising shrunk search space.

Introduction

Neural Architecture Search (NAS) aims to automate the design of deep learning models. However, it faces a significant "needle in a haystack" problem: search spaces often contain billions of possible architectures. While "weight-sharing"—training a massive "supernet" containing all possible paths—has accelerated NAS, the complexity of the search space still hinders convergence on optimal models.

Existing methods attempt to "shrink" this space by pruning unpromising operators early. However, they typically rely on two flawed metrics:

  1. Accuracy-based metrics: These are notoriously unstable in weight-sharing settings because a sub-model's performance within a supernet often correlates poorly with its standalone performance.
  2. Magnitude-based metrics: These favor weights with larger values, leading to a "rich-get-richer" problem where operations are prioritized based on early initialization or update biases rather than actual capability.

The ABS Framework

The authors introduce Angle-Based search space Shrinking (ABS) to address these limitations. The core innovation is a metric that measures how much an operator has "learned" by calculating the angle between its current weight vector ($W$) and its initial random state ($W_0$).

Overview of the Angle-Based Search Space Shrinking (ABS) process.

The Angle Metric

Modern networks utilizing Batch Normalization are often scale-invariant, meaning the direction of the weights is more critical than their absolute magnitude. ABS uses cosine similarity (specifically the $arccos$) to define this angle. A larger angle suggests the operator has moved significantly from its random starting point to minimize loss, indicating higher capability.

To handle non-parametric operations like Identity or Pooling, the authors assign fixed constant weights to pooling layers and construct a "weight vector" for child models by concatenating weights across paths. This block-wise construction ensures computational efficiency even in deep networks.

The ABS Workflow

  1. Supernet Training: Train the supernet for a few epochs using uniform sampling.
  2. Scoring: Calculate the angle-based score for every candidate operator.
  3. Shrinking: Drop the $k$ operators with the lowest scores.
  4. Search: Repeat the process until the search space is sufficiently small, then apply a standard NAS algorithm (e.g., DARTS or SPOS) on the refined space.

Key Insights

  • Stability: On NAS-Bench-201, the angle-based metric showed significantly higher Kendall’s Tau (ranking correlation) and lower variance than accuracy-based ranking.
  • Fast Convergence: The metric stabilizes early (within 5-10 epochs), allowing for effective shrinking before the supernet is fully trained.
  • Scale Invariance: Unlike magnitude-based pruning, the angle metric is robust to the effects of Batch Normalization.
  • Algorithm Agnostic: ABS acts as a pre-processing "plug-in" that boosted the performance of five popular NAS frameworks.

Key Results

Comprehensive experiments on CIFAR-10, CIFAR-100, and ImageNet-16-120 demonstrate that progressively shrinking the search space (from the original S1 to refined subsets like S8) consistently improves the final model accuracy across various NAS algorithms.

Performance comparison across different NAS algorithms and search space subsets.

On ImageNet, adding ABS to SPOS and ProxylessNAS increased Top-1 accuracy by 0.6%, while DARTS saw a massive 2.2% improvement. Furthermore, ABS is highly efficient; calculating the angle metric for 100 models takes less than 1 second, compared to over 250 seconds for accuracy-based inference.

Conclusion

ABS provides a reliable and efficient way to simplify the NAS search process. By focusing on the geometric trajectory of weights rather than raw accuracy or magnitude, it identifies superior architectures more consistently. Future work will focus on better discriminating between different non-parametric operations and extending the method to downstream tasks like object detection.

Summary updated

BibTeX
@inproceedings{hu2020angle,
  author = {Yiming Hu and Yuding Liang and Zichao Guo and Ruosi Wan and Xiangyu Zhang and Yichen Wei and Qingyi Gu and Jian Sun},
  title = {{Angle-based Search Space Shrinking for Neural Architecture Search}},
  booktitle = {European Conference on Computer Vision},
  year = {2020},
  doi = {10.1007/978-3-030-58529-7\_8},
}
Figure