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

Solving Oscillation Problem in Post-Training Quantization Through a Theoretical Perspective

Yuexiao Ma, Huixia Li, Xiawu Zheng, Xuefeng Xiao, Rui Wang, Shilei Wen, Xin Pan, Fei Chao, Rongrong Ji

Introduction

Deep Neural Networks (DNNs) are increasingly deployed on edge devices with limited computational resources, necessitating efficient model compression. Post-Training Quantization (PTQ) has emerged as a preferred method because it converts high-precision (32-bit) weights and activations into low-bit integers without requiring retraining on full datasets. While existing PTQ methods like BRECQ and AdaRound optimize networks layer-by-layer or block-by-block, they often encounter a structural hurdle: the oscillation problem.

As shown in the figure below, reconstruction loss does not always increase smoothly across network layers. Instead, it frequently exhibits erratic spikes or "oscillations." These spikes indicate points where quantization error becomes unmanageable, leading to significant degradation in final model accuracy. Previously dismissed as noise, this paper identifies these oscillations as a fundamental structural issue tied to network architecture.

Comparison of reconstruction loss between standard BRECQ and the proposed MRECG, highlighting the oscillation problem.

Theoretical Perspective: Module Capacity

The authors provide a theoretical foundation for these oscillations by defining Module Capacity (ModCap). This metric quantifies a module's ability to represent information based on its parameters, bit-width, and architectural features (e.g., strides).

The core theoretical insight is that loss spikes occur when a module with low capacity follows one with high capacity. In such cases, the subsequent "weak" module cannot effectively "absorb" or compensate for the accumulated quantization error from the preceding "strong" module. This is particularly prevalent in architectures using depth-wise separable convolutions, such as MobileNetV2, where capacity differences between layers are stark.

Mixed REConstruction Granularity (MRECG)

To address this, the authors introduce Mixed REConstruction Granularity (MRECG). Rather than adhering to a rigid layer-by-layer optimization, MRECG identifies adjacent modules with the largest capacity differences and jointly optimizes them. By grouping a low-capacity module with a high-capacity neighbor, the optimization process can find a better local minimum, effectively smoothing the error spikes.

The MRECG framework, illustrating both data-dependent and data-free capacity estimation for joint optimization.

The framework offers two implementation paths:

  • ModCap MRECG (Data-Free): Uses a mathematical formula to estimate capacity and rank modules. This approach is computationally efficient and adds virtually zero overhead to the quantization process.
  • Loss MRECG (Data-Dependent): Utilizes a small calibration set to measure actual reconstruction loss spikes. While slower due to the search phase, it provides a more precise mapping for smoothing the loss curve.

Experimental Results

The researchers evaluated MRECG on the ImageNet (ILSVRC2012) benchmark across various architectures, including ResNet-18/50, MobileNetV2, and RegNet.

Key findings include:

  • State-of-the-Art Performance: MRECG consistently outperformed previous SOTA methods like BRECQ and QDrop. On the challenging MobileNetV2 (0.5x scale) at 2/4 bit quantization, MRECG achieved 41.16% Top-1 accuracy—a 6.61% improvement over the BRECQ baseline.
  • ResNet Gains: On ResNet-50 (2/4 bit), the method achieved 70.53% accuracy, surpassing previous benchmarks by 1.9%.
  • Low Bit-Width Robustness: The method remains effective even at extremely low bit-widths (2-bit weights and activations), where traditional PTQ methods often fail to maintain functional accuracy.

Conclusion and Future Work

By identifying the oscillation problem as a structural mismatch in module capacity, this work provides a new lens through which to view PTQ optimization. MRECG demonstrates that smoothing these local loss spikes is critical for global model performance.

While highly effective for CNNs, future research is needed to determine how these capacity metrics translate to Transformer-based architectures (like ViT). Additionally, while the data-free ModCap version is efficient, the data-dependent Loss MRECG requires a search phase that could be further optimized for speed.

Summary updated

BibTeX
@inproceedings{ma2023solving,
  author = {Yuexiao Ma and Huixia Li and Xiawu Zheng and Xuefeng Xiao and Rui Wang and Shilei Wen and Xin Pan and Fei Chao and Rongrong Ji},
  title = {{Solving Oscillation Problem in Post-Training Quantization Through a Theoretical Perspective}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2023},
}
Figure