Transition Rate Scheduling for Quantization-Aware Training

Junghyup Lee, Dohyung Kim, Jeimin Jeon, Bumsub Ham · DOI

Introduction

Deep neural networks are increasingly deployed on edge devices with limited computational resources. Quantization-Aware Training (QAT) has emerged as a primary technique to mitigate the accuracy loss associated with converting 32-bit floating-point weights into low-precision integers (e.g., 1-bit or 2-bit). However, standard optimization techniques, which rely on manually scheduled learning rate (LR) decay, often struggle with the discrete nature of quantized weights. This paper identifies a fundamental mismatch between continuous optimization and discrete weight transitions, proposing Transition Rate (TR) Scheduling as a robust alternative.

The Effective Step Size Paradox

In standard training, a smaller learning rate typically translates to smaller weight updates. In QAT, however, this relationship breaks down. A quantized weight only changes its value when its underlying latent full-precision value crosses a discrete transition point. The authors identify an "effective step size paradox": if many latent weights are clustered near these transition points, even a vanishingly small learning rate can trigger a cascade of weight flips.

Effective step sizes for 2-bit weights comparing standard SGD and the proposed SGDT.

As shown in the figure above, standard SGD maintains a high and noisy effective step size even late in the training process. This "flickering" prevents the model from converging to a stable optimum, particularly in aggressive low-bit regimes. By contrast, the proposed SGDT method stabilizes these transitions, allowing the effective step size to decay smoothly.

Transition-Adaptive Learning Rate (TALR)

To address this instability, the authors propose scheduling the Transition Rate (TR)—the fraction of weights that change their discrete level in a single step—rather than the learning rate itself. They introduce the Transition-Adaptive Learning Rate (TALR), a feedback mechanism that dynamically adjusts the optimizer's step size to match a predefined target TR schedule.

The TALR mechanism functions as a feedback loop:

  • If the observed TR is lower than the target, the learning rate increases to encourage more weight transitions.
  • If the TR is too high (indicating excessive flickering), the learning rate decreases to stabilize the model.

By ensuring the TR decays to zero by the end of training, the model is forced to settle into a stable, non-oscillating state, effectively achieving a "coarse-to-fine" quantization process.

Experimental Results

The proposed method, implemented as SGDT and AdamT, was evaluated across diverse benchmarks including ImageNet, CIFAR, and MS COCO. The results demonstrate significant improvements over standard QAT. For instance, on MobileNetV2 with 2-bit weights and activations, accuracy improved from 46.9% using standard SGD to 53.6% with SGDT—a substantial 6.7% gain.

Test accuracy comparison between full-precision (FP), standard 2-bit QAT (SGD), and 2-bit QAT with Transition Rate Scheduling (SGDT).

As illustrated in the accuracy curves, SGDT (red) significantly outperforms standard SGD (blue) in the low-bit setting, narrowing the gap to the full-precision baseline. Furthermore, the method achieved a new state-of-the-art accuracy of 65.7% for binary models on ReActNet-18. The authors note that calculating the TR adds negligible overhead, increasing training time by only about 2%.

Conclusion

Transition Rate Scheduling provides a principled way to manage the optimization of discrete neural networks. By focusing on weight transitions rather than arbitrary step sizes, the method achieves superior stability and accuracy across various architectures and bit-widths. Future work may extend this "transition-aware" logic to other discrete optimization problems, such as neural architecture search or hardware-aware pruning.

Summary updated

BibTeX
@misc{lee2024transition,
  author = {Junghyup Lee and Dohyung Kim and Jeimin Jeon and Bumsub Ham},
  title = {{Transition Rate Scheduling for Quantization-Aware Training}},
  year = {2024},
  eprint = {2404.19248},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2404.19248},
}
Figure