Skip to main content
QUICK REVIEW

[Paper Review] Overcoming Oscillations in Quantization-Aware Training

Markus Nagel, Marios Fournarakis|arXiv (Cornell University)|Mar 21, 2022
Advanced Neural Network ApplicationsComputer Science18 citations
TL;DR

This paper identifies and addresses weight oscillations in quantization-aware training (QAT) that degrade model accuracy, especially in low-bit (3–4-bit) quantization of efficient networks like MobileNet and EfficientNet. It proposes two novel methods—oscillation dampening and iterative weight freezing—that stabilize training by reducing oscillations at the source, achieving state-of-the-art accuracy on ImageNet for 3- and 4-bit quantized models.

ABSTRACT

When training neural networks with simulated quantization, we observe that quantized weights can, rather unexpectedly, oscillate between two grid-points. The importance of this effect and its impact on quantization-aware training (QAT) are not well-understood or investigated in literature. In this paper, we delve deeper into the phenomenon of weight oscillations and show that it can lead to a significant accuracy degradation due to wrongly estimated batch-normalization statistics during inference and increased noise during training. These effects are particularly pronounced in low-bit ($\leq$ 4-bits) quantization of efficient networks with depth-wise separable layers, such as MobileNets and EfficientNets. In our analysis we investigate several previously proposed QAT algorithms and show that most of these are unable to overcome oscillations. Finally, we propose two novel QAT algorithms to overcome oscillations during training: oscillation dampening and iterative weight freezing. We demonstrate that our algorithms achieve state-of-the-art accuracy for low-bit (3 & 4 bits) weight and activation quantization of efficient architectures, such as MobileNetV2, MobileNetV3, and EfficentNet-lite on ImageNet. Our source code is available at {https://github.com/qualcomm-ai-research/oscillations-qat}.

Motivation & Objective

  • To investigate the root cause and impact of weight oscillations during quantization-aware training (QAT), particularly in low-bit quantization of efficient networks.
  • To analyze why existing QAT methods fail to mitigate oscillations, despite their widespread use.
  • To demonstrate that oscillations corrupt batch-normalization statistics and degrade optimization, leading to significant accuracy drops.
  • To develop and evaluate new QAT techniques that directly address oscillations at their source, improving model robustness and performance.
  • To establish state-of-the-art accuracy for 3- and 4-bit quantized MobileNetV2, MobileNetV3, and EfficientNet-lite on ImageNet.

Proposed method

  • Introduce oscillation dampening, a method that applies a gradient penalty to reduce the magnitude of weight updates near quantization boundaries, thereby suppressing oscillations.
  • Propose iterative weight freezing, which gradually freezes weights that oscillate beyond a threshold, using an annealing schedule to avoid premature convergence.
  • Use a modified straight-through estimator (STE) with adaptive thresholds to detect and stabilize oscillating weights during backpropagation.
  • Apply batch-normalization re-estimation after training as a baseline mitigation strategy to correct corrupted statistics caused by oscillations.
  • Integrate both methods into the LSQ (Learned Stepwise Quantization) framework to evaluate performance on standard benchmarks.
  • Use a dynamic threshold for weight freezing that increases over time, ensuring stabilization in later training stages when oscillations are most disruptive.

Experimental results

Research questions

  • RQ1Why do weights in quantization-aware training oscillate between adjacent quantization levels, and what causes this instability?
  • RQ2How do these oscillations affect batch-normalization statistics and overall model accuracy during inference?
  • RQ3To what extent do existing QAT methods fail to address oscillation-related degradation in low-bit quantization of efficient networks?
  • RQ4Can oscillation dampening and iterative weight freezing effectively suppress oscillations and improve training convergence and final accuracy?
  • RQ5How do the proposed methods compare in terms of accuracy, computational overhead, and robustness across different efficient architectures like MobileNet and EfficientNet?

Key findings

  • Weight oscillations in QAT significantly degrade model accuracy, especially in 3- and 4-bit quantization of depth-wise separable networks like MobileNetV2 and EfficientNet-lite.
  • Oscillations corrupt batch-normalization statistics during training, leading to poor inference performance, even after re-estimation.
  • The proposed oscillation dampening method improves ImageNet top-1 accuracy by 1.1% over the LSQ baseline for 4-bit MobileNetV2, achieving 70.6% accuracy.
  • Iterative weight freezing achieves 70.6% accuracy on 4-bit MobileNetV2, matching oscillation dampening while reducing oscillations to just 0.04% of weights.
  • Both methods outperform prior SOTA techniques like LSQ+BR and EWGS, with improvements of over 1% in accuracy for 3-bit quantization across models.
  • Iterative weight freezing has negligible computational overhead, while oscillation dampening increases training time by ~33%, but both methods achieve state-of-the-art results on multiple efficient architectures.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.