Once Quantization-Aware Training: High Performance Extremely Low-bit Architecture Search

Mingzhu Shen, Feng Liang, Ruihao Gong, Yuhang Li, Chuming Li, Chen Lin, Fengwei Yu, Junjie Yan, Wanli Ouyang

Abstract

Quantization Neural Networks (QNN) have attracted a lot of attention due to their high efficiency. To enhance the quantization accuracy, prior works mainly focus on designing advanced quantization algorithms but still fail to achieve satisfactory results under the extremely low-bit case. In this work, we take an architecture perspective to investigate the potential of high-performance QNN. Therefore, we propose to combine Network Architecture Search methods with quantization to enjoy the merits of the two sides. However, a naive combination inevitably faces unacceptable time consumption or unstable training problem. To alleviate these problems, we first propose the joint training of architecture and quantization with a shared step size to acquire a large number of quantized models. Then a bit-inheritance scheme is introduced to transfer the quantized models to the lower bit, which further reduces the time cost and meanwhile improves the quantization accuracy. Equipped with this overall framework, dubbed as Once Quantization-Aware Training (OQAT), our searched model family, OQATNets, achieves a new state-of-the-art compared with various architectures under different bit-widths. In particular, OQAT-2bit-M achieves 61.6% ImageNet Top-1 accuracy, outperforming 2-bit counterpart MobileNetV3 by a large margin of 9% with 10% less computation cost.

Introduction

The deployment of deep neural networks on edge devices is often constrained by limited computational resources and power budgets. Quantization, which reduces the precision of weights and activations, is a primary technique for improving efficiency. While 8-bit quantization is widely adopted with minimal accuracy loss, "extremely low-bit" regimes (2-bit to 4-bit) often suffer from significant performance degradation.

Existing research has largely focused on sophisticated quantization algorithms. However, these efforts often ignore the impact of the underlying neural architecture. A critical observation is the "Ranking Gap": the best architecture for floating-point (FP) precision is rarely the optimal choice for low-bit quantization. Furthermore, searching for quantized architectures directly is computationally expensive and often unstable, particularly at 2-bit precision.

The OQAT Framework

To address these challenges, we introduce Once Quantization-Aware Training (OQAT). This framework shifts the paradigm from "NAS-then-Quantize" to a unified search and training process specifically designed for low-bit robustness.

Comparison of OQAT with existing NAS and quantization paradigms.

Quantized Supernet with Shared Step Size

OQAT utilizes a "one-shot" NAS approach by training a massive supernet that encompasses a vast search space of sub-architectures. A key innovation is the use of a shared quantization step size for all subnets within a layer. By observing that subnets in the same layer share similar weight and activation distributions, we can use a single scale factor. This allows any subnet to be extracted and deployed immediately without the need for costly individual retraining.

Bit-Inheritance Scheme

Training 2-bit models from scratch is notoriously unstable. OQAT employs a bit-inheritance strategy to stabilize this process. We first train a 4-bit supernet, then use its learned weights and step sizes to initialize a 3-bit supernet, and finally progress to 2-bit. This progressive refinement acts as a "warm start," significantly reducing initialization error and improving final accuracy.

Experimental Results

We evaluated OQAT on the ImageNet dataset, comparing it against standard architectures like MobileNetV2, MobileNetV3, and EfficientNet-B0 across various bit-widths.

Top-1 Accuracy vs. FLOPs for 3-bit and 2-bit quantization across different models.

As shown in the performance plots, OQATNets consistently outperform existing models. In the 2-bit regime, OQAT-2bit-M achieves 61.6% Top-1 accuracy, a dramatic improvement over the 52.8% achieved by a 2-bit MobileNetV3 using state-of-the-art LSQ quantization. Notably, OQAT achieves these gains while maintaining lower computational costs (FLOPs). In the 4-bit regime, our OQAT-MBV2-4bit-L model matches the accuracy of the previous leader (APQ) but uses 43.7% less computation.

Insights into Quantization-Friendly Architectures

Our search process revealed several key characteristics of "quantization-friendly" architectures (QFA):

  1. Resolution vs. Depth: For a fixed computation budget, low-bit models benefit from higher input resolution and shallower depth. Deep networks tend to accumulate quantization noise across layers, making them more sensitive.
  2. Width Matters: Wider models (more channels) are more robust to quantization than narrower ones, even when they share the same floating-point accuracy.
  3. Efficiency: The joint training and shared step size eliminate the need for a separate retraining phase for every searched model, drastically reducing the total GPU-hour cost compared to traditional methods.

Conclusion

OQAT provides a robust and efficient framework for discovering high-performance, extremely low-bit neural architectures. By combining a quantized supernet with a bit-inheritance training scheme, we bridge the gap between NAS and quantization. The resulting OQATNets set a new state-of-the-art for 2-bit and 3-bit models, offering a practical path for deploying advanced AI on resource-constrained edge devices.

Summary updated

BibTeX
@inproceedings{shen2020once,
  author = {Mingzhu Shen and Feng Liang and Ruihao Gong and Yuhang Li and Chuming Li and Chen Lin and Fengwei Yu and Junjie Yan and Wanli Ouyang},
  title = {{Once Quantization-Aware Training: High Performance Extremely Low-bit Architecture Search}},
  booktitle = {IEEE/CVF International Conference on Computer Vision},
  year = {2020},
}
Figure