ASAP: Architecture Search, Anneal and Prune

Asaf Noy, Niv Nayman, Tal Ridnik, Nadav Zamir, Sivan Doveh, Itamar Friedman, Raja Giryes, Lihi Zelnik

Abstract

Neural Architecture Search (NAS) has revolutionized the design of deep learning models but often at a prohibitive computational cost. Traditional differentiable NAS methods like DARTS reduce search time but suffer from a "discretization gap" due to harsh pruning at the end of the search. We present ASAP (Architecture Search, Anneal and Prune), a framework that replaces abrupt pruning with a gradual, temperature-controlled annealing process. ASAP achieves a state-of-the-art 1.68% error rate on CIFAR-10 in just 0.2 GPU days, bridging the performance gap while significantly accelerating the search process.

Introduction: The Cost of Automation

Designing high-performance neural network architectures manually is an iterative, labor-intensive process requiring deep domain expertise. Neural Architecture Search (NAS) emerged to automate this task, yet early reinforcement learning and evolutionary approaches were computationally expensive, often requiring thousands of GPU days. For instance, the pioneering NASNet required 1,800 GPU days to find an optimal cell.

The advent of differentiable NAS, such as DARTS, reduced this overhead to a few days by relaxing the discrete search space into a continuous one. However, these methods introduce a "discretization gap." During the search, the model operates in a "blurry" space where multiple operations coexist. At the end of the search, the algorithm suddenly "snaps" to a single operation per connection (harsh pruning). This abrupt transition means the weights optimized during the search phase do not align with the final, pruned architecture, often leading to degraded performance.

Methodology: Bridging the Discretization Gap

ASAP addresses the discretization gap by making the transition from a wide search space to a final discrete model gradual and continuous.

Annealable Search Space and Gibbs-Boltzmann Distribution

Instead of using a standard softmax to select operations, ASAP employs a Gibbs-Boltzmann distribution characterized by a temperature parameter ($T$). This allows for a more controlled exploration of the search space.

The ASAP framework utilizes an annealing schedule and a threshold policy to gradually prune operations during the search.

The Annealing Schedule and Gradual Pruning

The search begins with a high temperature $T$, resulting in a nearly uniform distribution where all operations are explored equally. As training progresses, $T$ is systematically lowered according to an annealing schedule, "freezing" the distribution toward the most promising operations.

Simultaneously, ASAP implements gradual pruning. If an operation's importance weight falls below a predefined threshold, it is removed from the search space entirely. This is a departure from DARTS, which maintains all operations until the very end. By pruning "weak" operations early, ASAP reduces the computational load of the search itself, creating a positive feedback loop of efficiency.

Grace-Cycles and Theoretical Foundations

To ensure that pruning decisions are not made prematurely on uninitialized weights, ASAP includes "Grace-Cycles" — a warm-up period where only network weights are updated. Furthermore, the authors provide a theoretical PAC (Probably Approximately Correct) guarantee, demonstrating that ASAP has a high mathematical probability of converging to the optimal architecture under specific conditions.

Experimental Results

The effectiveness of ASAP was evaluated on CIFAR-10 and ImageNet, alongside several transferability benchmarks including CIFAR-100, SVHN, and Fashion-MNIST.

Efficiency and Accuracy

ASAP demonstrates a remarkable improvement in both speed and accuracy. The search on CIFAR-10 was completed in just 4.8 GPU hours (0.2 days). Despite this rapid search, the resulting "ASAP-Large" model achieved a 1.68% error rate on CIFAR-10, significantly outperforming DARTS (2.76%) and SNAS (2.85%).

ASAP variants (small, medium, large) achieve lower error rates in significantly less search time compared to existing NAS methods.

Transferability

Architectures discovered on CIFAR-10 were transferred to ImageNet to test scalability. ASAP achieved a 24.4% top-1 error rate, proving that the efficiency of the search does not come at the cost of generalization to larger datasets.

Key Insights

  • Smoothness and Weight Adjustment: By gradually pruning connections, the remaining weights in the network have sufficient time to adjust to the structural changes. This minimizes the performance drop typically seen during discretization.
  • Search Speed as a Feedback Loop: Pruning is not just a post-processing step; it is an integrated part of the search. As the search space shrinks, the GPU memory and compute requirements per epoch decrease, accelerating the discovery of the final model.
  • Entropy Stability: Analysis of normalized entropy shows that while DARTS remains uncertain until the final pruning step, ASAP’s entropy decays smoothly, reflecting a stable and confident convergence.

Limitations and Future Directions

While ASAP represents a significant leap forward, some challenges remain. The current implementation relies on a heuristic exponential decay for the annealing schedule, as the theoretically optimal schedule is too slow for practical use. Future work may explore more principled, data-driven ways to determine these schedules. Additionally, extending ASAP's principles beyond cell-based search spaces to more flexible, macro-architectures could further broaden its impact on automated deep learning design.

Summary updated

BibTeX
@inproceedings{noy2020asap,
  author = {Asaf Noy and Niv Nayman and Tal Ridnik and Nadav Zamir and Sivan Doveh and Itamar Friedman and Raja Giryes and Lihi Zelnik},
  title = {{ASAP: Architecture Search, Anneal and Prune}},
  booktitle = {International Conference on Artificial Intelligence and Statistics},
  year = {2020},
}
Figure