QDrop: Randomly Dropping Quantization for Extremely Low-bit Post-Training Quantization

Xiuying Wei, Ruihao Gong, Yuhang Li, Xianglong Liu, Fengwei Yu
3/11/2022
313 citations
cs.CVcs.AI
quantization-pruning

Official code: ModelTC/MQBench (890 stars, Python, Apache-2.0, last commit 2025-04-20). 1 more implementation below.

Abstract

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.

Show full abstract

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)

View on arXivView PDF

Code Implementations(2)

Code implementations of this paper
RepositoryTypeStarsLanguageLicenseLast commit
ModelTC/MQBenchOfficial890PythonApache-2.02025-04-20
wimh966/QDropOfficial136PythonMIT2025-09-23
ModelTC/MQBenchOfficial100%
Apache-2.0

Model Quantization Benchmark

890146Python, C++Aug 19, 20211 years agoApache-2.0
wimh966/QDropOfficial100%
MIT

The official PyTorch implementation of the ICLR2022 paper, QDrop: Randomly Dropping Quantization for Extremely Low-bit Post-Training Quantization

13615Python, ShellFeb 9, 20221 years agoMIT

Similar Papers

Cite this paper

@article{wei2022qdrop,
  title  = {QDrop: Randomly Dropping Quantization for Extremely Low-bit Post-Training Quantization},
  author = {Xiuying Wei and Ruihao Gong and Yuhang Li and Xianglong Liu and Fengwei Yu},
  year   = {2022},
  eprint = {2203.05740},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2203.05740}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2203.05740.svg)](https://codeofpaper.com/paper/2203.05740)

Discussion