You Only Search Once: Single Shot Neural Architecture Search via Direct Sparse Optimization

Xinbang Zhang, Zehao Huang, Naiyan Wang, Shiming Xiang, Chunhong Pan

TL;DR

This paper introduces DSO-NAS, a novel Neural Architecture Search (NAS) method that reformulates the problem as direct sparse optimization. By treating the entire architecture search space as a fully connected graph and pruning it, DSO-NAS achieves state-of-the-art performance on CIFAR-10 and ImageNet with significantly reduced computational cost and search time, making NAS more accessible for large-scale applications.

What Problem Does This Paper Address?

Neural Architecture Search (NAS) aims to automate the design of neural networks, a process that has traditionally required extensive human expertise and computational resources. Existing NAS methods often rely on computationally expensive techniques like reinforcement learning or evolutionary algorithms, making them impractical for large datasets like ImageNet. While some gradient-based methods have emerged, they often have limitations in their search space or still require significant computation. The challenge is to develop an efficient and scalable NAS method that can discover high-performing architectures for large-scale datasets without prohibitive costs.

Methods

The core innovation of DSO-NAS lies in its novel formulation of NAS as a Direct Sparse Optimization problem. Instead of searching for architectures incrementally, DSO-NAS starts with a "completely connected" graph representing all possible connections and operations within a block. This graph is then pruned by introducing learnable scaling factors ($\lambda$) for each connection. Sparse regularization is applied to these scaling factors, encouraging them to become zero, effectively pruning useless connections and nodes.

Key aspects of the method include:

  • Model Pruning View: NAS is reframed as a model pruning problem, where the goal is to identify and retain the most important connections and operations.
  • Direct Optimization: The entire architecture search space is considered at once, and the optimization directly targets the pruning of this space.
  • Efficient Optimization: A modified accelerated proximal gradient method is used to efficiently optimize the scaling factors and network weights simultaneously.
  • Unified Search and Training: The method unifies neural network weight learning and architecture search into a single optimization problem, eliminating the need for separate controllers or performance predictors.
  • Adaptive Budgets: DSO-NAS incorporates mechanisms to adapt the search process based on computational budgets like FLOPs (Floating Point Operations) or MAC (Memory Access Cost), allowing for the generation of architectures that meet specific performance constraints.

Datasets

The paper evaluates DSO-NAS on two standard benchmark datasets:

  • CIFAR-10: A dataset of 50,000 training images and 10,000 testing images, commonly used for image classification.
  • ImageNet (ILSVRC 2012): A much larger dataset with millions of images, used for large-scale image classification benchmarks.

Key Insights and Ideas

  • NAS as Pruning: The most significant insight is reframing NAS as a direct sparse optimization problem, akin to network pruning. This allows for a more holistic and efficient search.
  • Single Model Optimization: By optimizing a single, fully connected model and pruning it, DSO-NAS avoids the need for training multiple candidate architectures or using complex controllers, drastically reducing computational cost.
  • Scalability to Large Datasets: The efficiency of DSO-NAS makes it feasible to apply NAS directly to large datasets like ImageNet without requiring block structure sharing, a limitation of many prior methods.
  • Adaptive Budgeting for Practicality: The ability to incorporate computational budgets (FLOPs, MAC) directly into the search process is crucial for designing practical, deployable models that meet real-world constraints.

Key Results

DSO-NAS demonstrates competitive or superior performance compared to state-of-the-art NAS methods:

  • CIFAR-10: Achieves an average test error of 2.84% with a search cost of just 1 GPU day.
  • ImageNet: Achieves a top-1 error of 25.4% with less than 600M FLOPs, also within a very short search time.
  • Efficiency: The method significantly reduces search cost, often requiring only a single GPU day, compared to thousands of GPU days for some previous methods.
  • Generalization: Architectures searched on CIFAR-10 can be transferred to ImageNet, demonstrating good generalization capabilities.

Limitations and Future Work

  • Limitations: The paper acknowledges that while DSO-NAS is efficient, it still requires careful hyperparameter tuning for optimal performance. The "pre-train model" step is also noted as important for good initialization.
  • Future Work: The authors suggest incorporating hardware features for network co-design, as actual running speeds can vary across different hardware due to factors like cache size and memory bandwidth. They believe DSO-NAS opens a new direction for pursuing such objectives, aiming to make AutoML more accessible to everyone.

Summary updated

BibTeX
@article{zhang2021you,
  author = {Xinbang Zhang and Zehao Huang and Naiyan Wang and Shiming Xiang and Chunhong Pan},
  title = {{You Only Search Once: Single Shot Neural Architecture Search via Direct Sparse Optimization}},
  journal = {IEEE Trans. Pattern Anal. Mach. Intell.},
  year = {2021},
  doi = {10.1109/tpami.2020.3020300},
}
Figure