Distribution Consistent Neural Architecture Search

Junyi Pan, Chong Sun, Yizhou Zhou, Ying Zhang, Chen Li

Introduction

Designing high-performance deep learning architectures manually is a labor-intensive process. Neural Architecture Search (NAS) aims to automate this design, but the computational cost of training thousands of candidate models from scratch is prohibitive. One-shot NAS addresses this by using a "supernet"—a single large network containing all possible search paths—where sub-networks share weights. However, this approach suffers from the weight coupling problem: updates beneficial to one architecture may degrade the performance of another. This interference leads to a poor correlation between a sub-network's performance within the supernet and its true stand-alone accuracy, hindering the search for optimal architectures.

Methodology: DC-NAS

To mitigate weight coupling, we introduce Distribution Consistent Neural Architecture Search (DC-NAS). This method is grounded in a theoretical analysis of the parameter distribution gap between stand-alone models and weight-sharing supernets.

The DC-NAS pipeline involves iterative supernet weight updates and topology generation using a Meta Network to cluster compatible architectures.

The DC-NAS framework employs a two-stage iterative optimization process:

  1. Supernet Topology Generation: Instead of enforcing global weight sharing, a Meta Network predicts "matching degrees" between pairwise sub-networks. These degrees quantify how effectively two architectures can share weights. Based on these scores, K-means clustering groups compatible architectures together.
  2. Supernet Weight Update: Weights are updated using a modified gradient descent. Architectures within the same cluster share weights directly, while the Meta Network controls the exchange of beneficial gradient information between different clusters.
  3. Layer-wise Optimization: To maintain computational tractability, this optimization is performed layer-by-layer, progressively determining the local weight-sharing states throughout the network.

Key Insights: Solving the Weight Coupling Problem

The fundamental insight of DC-NAS is that global weight sharing is suboptimal; architectures can be "compatible" or "antagonistic." By moving from empirical heuristics to a principled optimization objective based on joint likelihood, DC-NAS significantly improves the reliability of the supernet as a performance estimator.

Comparison of the correlation between one-shot model accuracy and stand-alone accuracy for the baseline and DC-NAS.

As shown in the correlation analysis, DC-NAS produces a much tighter alignment between the supernet's predicted performance and actual stand-alone accuracy compared to traditional one-shot baselines. This improved "ranking" capability allows the search algorithm to more accurately identify the highest-performing architectures.

Experimental Results

DC-NAS was evaluated on ImageNet and the NAS-Bench-201 benchmark, demonstrating state-of-the-art performance with efficient search costs.

  • ImageNet: In the small-model regime (<350M FLOPs), "Ours-S" achieved 78.1% Top-1 accuracy, surpassing DNA-A (77.1%) and Cream-S (77.6%). In the large-model regime (<500M FLOPs), "Ours-L" reached 79.5% Top-1 accuracy, significantly outperforming EfficientNet-B0 (76.3%) and FairNAS-A (75.3%).
  • NAS-Bench-201: The method consistently outperformed other state-of-the-art NAS algorithms, including GDAS and SETN, across CIFAR-10, CIFAR-100, and ImageNet-16-120, closely approaching the theoretical optimal performance within the search space.

Conclusion and Future Work

DC-NAS provides a theoretically grounded solution to the weight coupling problem in one-shot NAS. While the iterative clustering and Meta Network add some implementation complexity and increased memory footprint during training, the gains in search accuracy and final model performance are substantial. Future work includes exploring the applicability of distribution consistency to more diverse search spaces, such as those for Transformer-based architectures.

Summary updated

BibTeX
@inproceedings{pan2022distribution,
  author = {Junyi Pan and Chong Sun and Yizhou Zhou and Ying Zhang and Chen Li},
  title = {{Distribution Consistent Neural Architecture Search}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2022},
  doi = {10.1109/cvpr52688.2022.01061},
}
Figure