[Paper Review] QDrop: Randomly Dropping Quantization for Extremely Low-bit Post-Training Quantization
QDROP introduces randomized activation quantization dropping during PTQ reconstruction, enabling extremely low-bit PTQ (2-bit activations) with substantial accuracy gains across vision and language tasks, establishing a new state of the art.
Recently, post-training quantization (PTQ) has driven much attention to produce efficient neural networks without long-time retraining. Despite its low cost, current PTQ works tend to fail under the extremely low-bit setting. In this study, we pioneeringly confirm that properly incorporating activation quantization into the PTQ reconstruction benefits the final accuracy. To deeply understand the inherent reason, a theoretical framework is established, indicating that the flatness of the optimized low-bit model on calibration and test data is crucial. Based on the conclusion, a simple yet effective approach dubbed as QDROP is proposed, which randomly drops the quantization of activations during PTQ. Extensive experiments on various tasks including computer vision (image classification, object detection) and natural language processing (text classification and question answering) prove its superiority. With QDROP, the limit of PTQ is pushed to the 2-bit activation for the first time and the accuracy boost can be up to 51.49%. Without bells and whistles, QDROP establishes a new state of the art for PTQ. Our code is available at https://github.com/wimh966/QDrop and has been integrated into MQBench (https://github.com/ModelTC/MQBench)
Motivation & Objective
- Investigate the role of activation quantization in post-training quantization (PTQ).
- Develop a theoretical framework linking activation quantization to loss flatness and generalization.
- Propose a simple, plug-and-play method (QDROP) to randomly drop activation quantization during PTQ reconstruction.
- Demonstrate state-of-the-art PTQ performance across CNNs, vision tasks, and NLP models.
- Show that 2-bit activation PTQ becomes practical with substantial accuracy benefits.
Proposed method
- Model PTQ as joint perturbations of weights and activations.
- Provide a theoretical framework (Theorem 1) decomposing loss change into weight-perturbation and activation-perturbation terms.
- Conduct empirical studies comparing cases with different activation quantization strategies during block reconstruction.
- Propose QDROP: activation quantization is randomly dropped per forward pass with a Bernoulli probability p (element-wise).
- Demonstrate that QDROP yields flatter loss landscapes and better test accuracy across CNNs, transformers, and NLP models.
- Evaluate on ImageNet, MS COCO, GLUE, and SQuAD with common 8/4/2-bit configurations.
Experimental results
Research questions
- RQ1Does incorporating activation quantization into PTQ reconstruction improve accuracy under extremely low-bit settings?
- RQ2How does activation quantization affect weight tuning and the resulting loss landscape (flatness) on calibration and test data?
- RQ3Can random, per-forward-pass dropping of activation quantization improve generalization to test data?
- RQ4How does QDROP perform across computer vision and natural language processing benchmarks compared to existing PTQ methods?
Key findings
- Activation quantization during PTQ reconstruction significantly improves accuracy at very low bit-widths, with Case2/Case3 outperforming full activation quantization (Case1).
- A theoretical framework shows the loss change splits into weight-perturbation and activation-perturbation terms, linking flatness to test accuracy.
- QDROP consistently improves strong PTQ baselines across models and tasks, enabling practical 2-bit activation PTQ with substantial gains (up to 51.49% improvement cited).
- QDROP is a simple, plug-and-play module that works with CNNs and Transformers, improving PTQ on ImageNet, MS COCO, GLUE, and SQuAD.
- Across results, QDROP achieves state-of-the-art PTQ performance without extensive retraining or data augmentation.
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.