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

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

Xiuying Wei, Ruihao Gong, Yuhang Li, Xianglong Liu, Fengwei Yu

Introduction

Deep neural networks are computationally expensive, making them difficult to deploy on edge devices like smartphones or IoT sensors. Quantization—representing weights and activations with fewer bits (e.g., 4-bit or 2-bit instead of 32-bit floats)—is a primary solution to this bottleneck.

Historically, there are two main ways to achieve this:

  1. Quantization-Aware Training (QAT): Retraining the whole model. While accurate, it is slow and requires access to the full original dataset, which can raise privacy and storage concerns.
  2. Post-Training Quantization (PTQ): Quantizing a pre-trained model using only a tiny "calibration" set (e.g., 1,000 images). It is fast and privacy-friendly but usually fails at "extremely low-bit" settings (below 4-bit), where accuracy often plummets.

Existing PTQ methods (like AdaRound or BRECQ) focus on optimizing weights to minimize the error in the model's output. However, they often ignore the noise introduced by activation quantization during this optimization, or they overfit to the tiny calibration set if they do attempt to include it.

To address this, researchers have introduced QDrop, a novel post-training quantization method that enables high-accuracy neural networks at extremely low bit-widths (down to 2-bit). By randomly "dropping" activation quantization during the weight-tuning phase, QDrop creates a flatter loss landscape that generalizes significantly better from tiny calibration sets to real-world test data.

Methodology

QDrop introduces a simple but mathematically grounded approach to bridge the gap between weight and activation quantization in PTQ.

  • Perceiving Activation Noise: Unlike previous methods that only consider weight noise during optimization, QDrop incorporates activation quantization into the reconstruction process. This allows weights to "learn" how to compensate for the errors that will be introduced by low-bit activations.
  • Random Dropping: To prevent the model from overfitting to the specific noise of the small calibration set, QDrop randomly disables (drops) activation quantization for certain neurons during each forward pass of the optimization. This mechanism is conceptually similar to how Dropout works in standard neural network training.
  • Coherent Optimization: Weights and activations shouldn't be optimized in isolation. By considering them together during the block-wise reconstruction phase, the weights can learn to diminish the negative influence of activation quantization.

Key Insights and Ideas

The Overfitting Trap

The authors discovered that while including activation quantization during PTQ helps, including all of it causes the model to overfit to the calibration data. "Dropping" half the quantization (setting a probability of $p=0.5$) provides the best regularization, preventing the model from memorizing the calibration noise.

Flatness is the Secret Sauce

The paper demonstrates that the success of low-bit quantization is fundamentally tied to the "flatness" of the loss landscape.

Loss landscape of a baseline approach, exhibiting a sharper minimum.

Without proper regularization, models often fall into sharp minima, making them highly sensitive to the perturbations caused by quantization.

Loss landscape of QDrop, demonstrating a significantly flatter minimum.

By randomly dropping quantization, QDrop effectively pushes the model toward flatter regions of the loss landscape. A flatter minimum means the model is inherently more tolerant of the "jitter" introduced by low-bit representations, leading to better generalization on unseen test data.

Experimental Results

The researchers evaluated QDrop across a wide range of tasks and architectures, including Computer Vision (ImageNet, MS COCO) and Natural Language Processing (GLUE, SQuAD 1.1). QDrop sets a new state-of-the-art for PTQ, particularly in the ultra-low-bit regime:

  • Breaking the 2-bit Barrier: QDrop is the first PTQ method to make 2-bit activation quantization viable. On ResNet-18 (using 2-bit weights and 2-bit activations), QDrop achieved 51.14% accuracy on ImageNet, a massive leap over the previous best method (BRECQ) which scored only 42.54%.
  • Near-Lossless 4-bit NLP: For BERT on the GLUE benchmark, QDrop achieved results within 1-4% of the full-precision model using 4-bit weights and activations. This significantly outperforms previous PTQ methods, which often crashed to near-zero accuracy under the same constraints.
  • Object Detection Gains: On MS COCO, QDrop improved the mAP (Mean Average Precision) of a 2-bit weight/4-bit activation ResNet-50 model by over 4% compared to existing baselines.

Limitations and Future Work

While QDrop represents a significant leap forward, a few challenges remain:

  • Hyperparameter Sensitivity: While the authors found that a drop probability of $p=0.5$ works well generally, a fine-grained search for the best $p$ for specific architectures might yield even better results.
  • Hardware Implementation: The paper focuses on the algorithmic side of quantization. To realize actual speedups on real devices, specialized hardware kernels that support 2-bit and 4-bit arithmetic are required.
  • Binary Quantization: While QDrop pushes the limit to 2-bit, 1-bit (binary) quantization remains an open challenge for post-training methods due to the extreme information loss involved.

Summary updated

BibTeX
@inproceedings{wei2022qdrop,
  author = {Xiuying Wei and Ruihao Gong and Yuhang Li and Xianglong Liu and Fengwei Yu},
  title = {{QDrop: Randomly Dropping Quantization for Extremely Low-bit Post-Training Quantization}},
  booktitle = {International Conference on Learning Representations},
  year = {2022},
  url = {https://openreview.net/forum?id=XjOEXIFSKhm},
}
Figure