Abstract
Neural architecture search (NAS) has shown promising results discovering models that are both accurate and fast. For NAS, training a one-shot model has become a popular strategy to rank the relative quality of different architectures (child models) using a single set of shared weights. However, while one-shot model weights can effectively rank different network architectures, the absolute accuracies from these shared weights are typically far below those obtained from stand-alone training. To compensate, existing methods assume that the weights must be retrained, finetuned, or otherwise post-processed after the search is completed. These steps significantly increase the compute requirements and complexity of the architecture search and model deployment. In this work, we propose BigNAS, an approach that challenges the conventional wisdom that post-processing of the weights is necessary to get good prediction accuracies. Without extra retraining or post-processing steps, we are able to train a single set of shared weights on ImageNet and use these weights to obtain child models whose sizes range from 200 to 1000 MFLOPs. Our discovered model family, BigNASModels, achieve top-1 accuracies ranging from 76.5% to 80.9%, surpassing state-of-the-art models in this range including EfficientNets and Once-for-All networks without extra retraining or post-processing.
Introduction
Neural Architecture Search (NAS) has traditionally been a computationally expensive two-step process. First, researchers search for an optimal architecture, often using a "one-shot" model with shared weights to rank candidates. Second, because these shared weights typically yield poor absolute accuracy, the discovered architecture must be retrained from scratch to reach production-level performance.
Even advanced methods like "Once-for-All" (OFA) require complex, multi-stage "progressive shrinking" and fine-tuning to ensure child models perform well. BigNAS challenges this conventional wisdom, proposing a simplified pipeline where a single training run produces a family of models ready for instant deployment without any post-processing.
Methods: The Single-Stage Pipeline
The core of BigNAS is a single-stage training pipeline for a super-network—a massive model containing many smaller "child" models as subsets. Unlike previous approaches that require retraining or progressive distillation stages, BigNAS enables direct extraction of high-performing sub-networks.
To achieve high accuracy without retraining, the authors introduced several key techniques:
- Sandwich Rule: In each training step, weights are updated using gradients from the largest model, the smallest model, and $N$ randomly sampled intermediate models. This ensures the entire search space is optimized simultaneously.
- Inplace Distillation: The largest model acts as an on-the-fly teacher. Its soft-label predictions supervise all smaller child models in the same batch, significantly boosting their performance.
- Modified Initialization & Regularization: The authors used a specific initialization trick (setting the last Batch Norm layer in residual blocks to zero) to stabilize training across varying widths. Furthermore, they found that applying heavy dropout or weight decay to small models caused underfitting; instead, regularization is only applied to the largest "full" model.
Key Insights: The Convergence Dilemma
A critical finding in the development of BigNAS is the mismatch in learning dynamics between different model sizes. Big models are "eager learners" that reach peak accuracy early in the training process. If training stops when the big model is at its best, smaller models remain under-trained. Conversely, if training continues, the big model may begin to overfit.
To solve this, the authors implemented a Constant Ending LR Schedule. By modifying the standard exponential decay to include a constant phase at the end of training, smaller models are given the necessary time to catch up without causing the weights of larger models to oscillate wildly.
Key Results
The resulting BigNASModels family consistently outperforms both manually designed and NAS-generated models across the 200M to 1000M FLOP range on ImageNet:
- BigNASModel-S: Achieved 76.5% top-1 accuracy at 242 MFLOPs (1.3% better than MobileNetV3).
- BigNASModel-M: Achieved 78.9% top-1 accuracy at 418 MFLOPs (1.6% better than EfficientNet-B0).
- BigNASModel-XL: Reached 80.9% top-1 accuracy at 1.04 GFLOPs.
- Zero Fine-tuning: These results were achieved with zero additional epochs of fine-tuning or retraining after the initial super-network training, representing a significant leap in NAS efficiency.
Conclusion
BigNAS demonstrates that the "train-once, deploy-anywhere" philosophy is viable for high-performance computer vision. By addressing the convergence dilemma and utilizing inplace distillation, BigNAS produces a family of models that are not only easier to deploy but also more accurate than those produced by more complex, multi-stage NAS frameworks. Future work may involve extending this single-stage approach to more diverse architectures and complex tasks like object detection.
Summary updated