[Paper Review] BatchQuant: Quantized-for-all Architecture Search with Robust Quantizer
This paper proposes Quantized-for-All (QFA), a novel one-shot mixed-precision neural architecture search framework that enables joint search over architecture and arbitrary ultra-low bitwidth quantization policies without retraining. It introduces BatchQuant, a robust, batch statistics-based quantizer that stabilizes training of a compact, weight-shared supernet—achieving SOTA ImageNet Top-1 accuracy under 20 MFLOPs with only 190 GPU epochs and enabling deployment of over 10^76 quantized subnets from a single supernet.
As the applications of deep learning models on edge devices increase at an accelerating pace, fast adaptation to various scenarios with varying resource constraints has become a crucial aspect of model deployment. As a result, model optimization strategies with adaptive configuration are becoming increasingly popular. While single-shot quantized neural architecture search enjoys flexibility in both model architecture and quantization policy, the combined search space comes with many challenges, including instability when training the weight-sharing supernet and difficulty in navigating the exponentially growing search space. Existing methods tend to either limit the architecture search space to a small set of options or limit the quantization policy search space to fixed precision policies. To this end, we propose BatchQuant, a robust quantizer formulation that allows fast and stable training of a compact, single-shot, mixed-precision, weight-sharing supernet. We employ BatchQuant to train a compact supernet (offering over $10^{76}$ quantized subnets) within substantially fewer GPU hours than previous methods. Our approach, Quantized-for-all (QFA), is the first to seamlessly extend one-shot weight-sharing NAS supernet to support subnets with arbitrary ultra-low bitwidth mixed-precision quantization policies without retraining. QFA opens up new possibilities in joint hardware-aware neural architecture search and quantization. We demonstrate the effectiveness of our method on ImageNet and achieve SOTA Top-1 accuracy under a low complexity constraint ($<20$ MFLOPs). The code and models will be made publicly available at https://github.com/bhpfelix/QFA.
Motivation & Objective
- Address the challenge of jointly searching over vast, mixed-precision quantization and architecture spaces in resource-constrained edge deployment.
- Overcome instability in training mixed-precision weight-sharing supernets, which hinders efficient one-shot NAS with quantization.
- Eliminate the need for retraining or finetuning when deploying searched quantized subnets, enabling rapid adaptation to new scenarios.
- Achieve state-of-the-art accuracy under low FLOP constraints by enabling flexible, arbitrary bitwidth combinations across layers.
- Reduce search cost and carbon emissions by minimizing marginal GPU hours and CO2 footprint per new deployment scenario.
Proposed method
- Propose BatchQuant (BQ), a plug-and-play quantizer that uses batch statistics to adaptively estimate scale factors, improving robustness to activation distribution shifts during mixed-precision subnet selection.
- Introduce a novel extreme value estimator (Equation 8) that stabilizes training by replacing vanilla running min/max with a differentiable, batch-based quantile estimation method.
- Train a single, compact, mixed-precision weight-sharing supernet that supports over 10^76 distinct quantized subnets via parameter sharing across architecture and bitwidth choices.
- Leverage NSGA-II for Pareto-optimal architecture discovery, enabling simultaneous optimization of accuracy and FLOPs across diverse quantization policies.
- Use a lightweight accuracy predictor trained on a small validation set to avoid costly evaluation during search, enabling fast, scalable exploration.
- Integrate BQ into a supernet training pipeline that maintains full-precision weights while dynamically fusing quantizers per subnet, enabling zero-retraining inference.
Experimental results
Research questions
- RQ1Can a single, unified supernet be trained stably under mixed-precision quantization with arbitrary bitwidths across layers, without retraining for each configuration?
- RQ2How can quantizer design mitigate activation distribution shifts caused by dynamic quantization policy selection during supernet training?
- RQ3To what extent does the proposed BatchQuant formulation improve training stability and convergence compared to running min/max or learnable quantizer baselines?
- RQ4Can joint architecture and quantization policy search via a single supernet achieve SOTA performance under strict FLOP constraints (e.g., <20 MFLOPs) without retraining?
- RQ5What is the marginal cost and carbon footprint of deploying new quantized models in dynamic edge scenarios using this method?
Key findings
- BatchQuant enables stable training of a mixed-precision, weight-sharing supernet with over 10^76 possible quantized subnets, achieving convergence in only 190 GPU epochs—significantly fewer than OQA’s 495 epochs.
- The method achieves SOTA ImageNet Top-1 accuracy under 20 MFLOPs, outperforming both APQ and SPOS by a large margin in the accuracy vs. FLOPs trade-off.
- The marginal CO2 emission for searching in a new deployment scenario is negligible (0 lbs), with only 40 hours of additional data collection and training beyond the initial supernet training.
- Removal of the residual terms γ and β in BQ causes training loss divergence, demonstrating their critical role in stabilizing the quantization process.
- Only Equation 8 (a batch-based extreme value estimator) enables stable training; Equations 7 and 9 lead to divergence, proving the importance of the statistical formulation.
- The QFA framework eliminates the need for retraining or finetuning after search, as weights are directly inherited from the supernet for any valid architecture-quantization combination.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.