A Continuous Relaxation of Quantization-Aware Training

Kartikeya Bhardwaj, Mohammed Almousa, Chaitanya Mullapudi, Ananth Balasubramanian, Nithin Ramesan, Tuc Nguyen, Harris TeaguearXiv 2026 · arXiv

TL;DR

Training a neural network with ultra-low precision (like 2-bit weights) is like trying to navigate a landscape made of perfectly flat plateaus and vertical cliffs—your optimizer gets stuck easily and has no idea which way is "down." RelaxQAT solves this by turning those cliffs into smooth ramps, gradually "relaxing" the bitwidth from high to low precision during training so the model can slide gracefully into its final, compressed form without losing its way.

What Problem Does This Paper Address?

We are living in the era of Large Language Models (LLMs), but running these giants on a phone or laptop is a massive headache for memory and power. The solution is quantization: shrinking those 32-bit floating-point weights down to just 2 bits.

The catch? 2-bit quantization is notoriously brutal. When you force weights into just a few discrete "bins," the mathematical "landscape" (the loss surface) becomes full of flat regions and saddle points. Standard optimizers like Adam or SGD rely on gradients (the slope of the hill) to find the minimum. If the hill is perfectly flat because of quantization, the gradient is zero, and the model stops learning.

Existing methods usually jump abruptly from high precision to low precision (e.g., 4-bit to 2-bit), which causes "loss spikes"—sudden shocks to the system that the model has to spend valuable training time recovering from.

Methods

The authors introduce RelaxQAT, which consists of two clever maneuvers:

  1. A Continuous Bitwidth Schedule: Instead of a sudden drop, they use a smooth, cyclical schedule (based on a sine wave) to transition the bitwidth. As shown in Figure 1, while other methods like UPQ take a "staircase" approach, RelaxQAT gradually eases into the target precision. It even "relaxes" back to higher precision periodically to help the model escape any flat regions where it might have gotten stuck.
  2. RelaxSEQ (The "Flipped" Quantizer): Standard quantizers usually "Clip then Round." This forces the extreme values of the weight distribution to jump between integers, creating a jagged staircase. RelaxQAT flips this to "Round then Clip." This subtle change allows the extreme values to remain as floating-point numbers that change smoothly during the schedule.
Figure 1
Comparison of extreme value changes

As you can see in Figure 2, the red line (standard) shows sudden, jarring drops in weight ranges, while the green line (RelaxQAT) shows a smooth, continuous transition.

Datasets

The authors didn't cut corners on evaluation. They tested their method on:

  • Models: Qwen3 (0.6B to 4B), Qwen3.5 (2B to 4B), and Gemma3-1B.
  • Language Tasks: Common Sense Reasoning (Arc, HellaSwag, PIQA, WinoGrande), MMLU (factual knowledge), and IFEval (instruction following).
  • Vision-Language Tasks: MMMU, DocVQA, and ScienceQA.
  • Training Data: A massive 10-billion token mix including DCLM-Edu and various instruction-tuning sets.

Key Insights and Ideas

  • The "Flatness" Problem is Real: The paper provides a beautiful visualization in Figure 3. It shows that as you increase the "scale" of quantization, the flat regions of the loss surface grow wider. By dynamically changing the bitwidth, RelaxQAT effectively shrinks these flat zones, giving the optimizer a "path" to follow.
  • Gradients Need Integers to Change: A key theoretical insight (Proposition 2) is that if the integer values of the weights don't change, the model is mostly just learning the "scale" parameters, not the actual weights. By smoothing the boundaries, RelaxQAT makes it much easier for weights to "flip" to a different integer bin, which is essential for true learning in low-bit regimes.
  • Cycles Matter: The authors found that doing a "half-cycle" (4-bit to 2-bit) gets you most of the way there, but adding full cycles (going back up to 4 and down to 2 again) provides a significant extra boost by letting the model re-explore the landscape with higher precision.
Figure 3

Key Results

RelaxQAT consistently outperformed leading Quantization-Aware Training (QAT) methods like ParetoQ and WinQ:

  • NLP Gains: On the Qwen3-0.6B model, it achieved a 7.7% higher average accuracy compared to the previous best method.
  • Vision-Language Gains: On the Qwen3.5-2B model, it saw a massive 6.26% average accuracy gain.
  • Efficiency: Despite the complex-sounding math, the authors implemented custom Triton kernels, making RelaxQAT actually slightly faster (about 2.4%) than the baseline ParetoQ in terms of total GPU hours.
  • Versatility: It’s not just for 2-bit; it also works for "ternary" (1.58-bit) quantization, showing a 4.2% gain there as well.

Limitations and Future Work

  • Weight-Only: This paper focuses specifically on quantizing weights. While weights are the biggest part of the memory footprint, the authors note that applying this to activations or the KV-cache is a logical next step.
  • Channelwise Focus: The work focuses on channelwise quantization because it's hardware-friendly. Other more complex schemes (like group-wise) weren't the primary focus here.
  • Hyperparameters: While robust, the method does introduce a few new knobs to turn, like the number of cycles ($n$) and the schedule length ($m_s$), though the authors provide good defaults.

Summary updated

Abstract

Quantization is a critical piece of the deployment pipeline in the era of large generative models. Low-bit quantization, particularly 2-bits or sub-2-bits, is a notoriously difficult problem, particularly when using a channelwise quantization scheme which has been shown as a leading candidate for hardware-efficiency. The key challenges with low-bit quantization range from limited quantization levels to saddle points or flat regions in the loss surface. In this paper, we look at the problem of flat quantization loss surfaces through a lens of dynamically changing bitwidth. Unlike existing techniques which either change the bit-precision abruptly or keep it fixed, we propose to gradually alter the bitwidth as the model trains. To this end, we propose RelaxQAT, a continuous relaxation of the QAT process. We also provide simple theoretical and empirical insights behind why RelaxQAT helps the QAT performance. Our extensive experiments demonstrate up to 6.3% average accuracy gains on vision and up to 7.7% better average accuracy on natural language tasks, compared to the leading QAT methods.
BibTeX
@misc{bhardwaj2026continuous,
  author = {Kartikeya Bhardwaj and Mohammed Almousa and Chaitanya Mullapudi and Ananth Balasubramanian and Nithin Ramesan and Tuc Nguyen and Harris Teague},
  title = {{A Continuous Relaxation of Quantization-Aware Training}},
  year = {2026},
  eprint = {2611.27056},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.27056},
}
Figure