NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

MultiQuant: Training Once for Multi-bit Quantization of Neural Networks

Ke Xu, Qiantai Feng, Xingyi Zhang, Dong WangIJCAI 2022

Abstract

Quantization has become a popular technique to compress deep neural networks (DNNs) and reduce computational costs, but most prior work focuses on training DNNs at each individual fixed bit-width and accuracy trade-off point. How to produce a model with flexible precision is largely unexplored. This work proposes a multi-bit quantization framework (MultiQuant) to make the learned DNNs robust for different precision configuration during inference by adopting Lowest-Random-Highest bit-width co-training method. Meanwhile, we propose an online adaptive label generation strategy to alleviate the problem of vicious competition under different precision caused by one-hot labels in the supernet training. The trained supernet model can be flexibly set to different bit widths to support dynamic speed and accuracy trade-off. Furthermore, we adopt the Monte Carlo sampling-based genetic algorithm search strategy with quantization-aware accuracy predictor as evaluation criterion to incorporate the mixed precision technology in our framework. Experiment results on ImageNet datasets demonstrate MultiQuant method can attain the quantization results under different bit-widths comparable with quantization-aware training without retraining.

Introduction

Deep Neural Networks (DNNs) are increasingly deployed on resource-constrained edge devices, necessitating efficient compression techniques. Quantization—the process of mapping high-precision weights and activations to low-precision integers—is a primary strategy for reducing memory footprint and accelerating inference. However, existing approaches typically fall into two categories: Quantization-Aware Training (QAT), which yields high accuracy but requires expensive retraining for every target bit-width, and Post-Training Quantization (PTQ), which avoids retraining but suffers from significant accuracy degradation at low bit-widths (e.g., 2-bit or 4-bit).

A major challenge in training a single model for multiple precisions is "vicious competition." When a single set of weights is shared across different bit-widths, the noisy gradients from low-precision configurations often conflict with the requirements of high-precision ones, degrading overall performance. MultiQuant addresses these issues by enabling a "train once, deploy anywhere" paradigm, supporting a wide range of bit-widths (2-bit to 8-bit) and mixed-precision configurations without retraining.

Methodology

MultiQuant treats the training process as a supernet optimization where various bit-widths represent sub-networks sharing the same weights.

Lowest-Random-Highest (LRH) Co-Training

To ensure robustness across the precision spectrum, MultiQuant employs an LRH co-training strategy. In each training iteration, the model is updated using gradients from three configurations: the lowest supported bit-width (2-bit), the highest (8-bit), and a randomly sampled intermediate bit-width. This approach, inspired by the "sandwich rule" in neural architecture search, effectively "pushes up" the lower bound of performance while preserving the upper bound.

Online Adaptive Label (OAL)

To mitigate the competition between different precisions, the authors introduce Online Adaptive Labels. Instead of using static "hard" one-hot labels, OAL generates "soft" labels based on the consensus of the different bit-width sub-networks. This provides a smoother optimization target, allowing different precision levels to collaborate.

t-SNE visualization of feature distributions comparing Hard Labels vs. Online Adaptive Labels (OAL) at 2, 4, and 8 bits.

As shown in the t-SNE visualization above, OAL helps maintain more distinct and consistent feature clusters across different bit-widths compared to standard hard labels, which tend to produce more overlapping distributions at low precision.

MultiQuant further incorporates mixed-precision support, where different layers can operate at different bit-widths. The framework utilizes a Genetic Algorithm combined with a Monte Carlo sampling-based accuracy predictor to efficiently search for optimal layer-wise precision configurations that satisfy specific hardware constraints.

Experimental Results

The framework was evaluated on ImageNet and CIFAR-10 using ResNet18, ResNet50, and MobileNetV2 architectures.

Accuracy comparison of MultiQuant against baselines on ImageNet across different bit-widths for ResNet18, ResNet50, and MobileNetV2.

Performance on ImageNet

MultiQuant demonstrates significant improvements over existing multi-precision methods like AnyPrecision. On ResNet50, MultiQuant achieves 73.76% Top-1 accuracy at 2-bit, outperforming AnyPrecision (66.56%) by 7.2%. Across all tested models, MultiQuant maintains accuracy levels comparable to individual QAT models while offering the flexibility of a single shared-weight model.

Mixed-Precision Gains

The mixed-precision search allows for even better trade-offs. For instance, a 3-bit mixed-precision ResNet50 configuration can achieve accuracy levels similar to a 4-bit uniform model, providing higher compression without sacrificing performance.

Discussion and Conclusion

MultiQuant successfully addresses the retraining overhead of QAT and the accuracy limitations of PTQ. The key insight lies in the use of soft labels (OAL) to mediate the conflict between different precision levels. While the framework shows robust results on ResNet, compact architectures like MobileNetV2 remain challenging; accuracy drops significantly below 3-bit due to the inherent lack of redundancy in these models. Future work may involve hardware-in-the-loop optimization to better align the search process with real-world latency on specific instruction sets.

Summary updated

BibTeX
@inproceedings{xu2022multiquant,
  author = {Ke Xu and Qiantai Feng and Xingyi Zhang and Dong Wang},
  title = {{MultiQuant: Training Once for Multi-bit Quantization of Neural Networks}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {2022},
  url = {https://openreview.net/forum?id=6iUyVOGIVm},
}
Figure