TL;DR
Quantization-Aware Training (QAT) for ultra-low-bit ($\le$ 2 bits) Large Language Models typically relies on the Straight-Through Estimator (STE), which crudely pretends non-differentiable quantizers have an identity Jacobian during backpropagation. This paper introduces JacQuant, a framework that replaces STE by learning a lightweight, data-driven surrogate Jacobian that tracks local quantizer sensitivity. JacQuant stabilizes training, damps chaotic gradient oscillations near bin boundaries, and consistently improves LLM accuracy with negligible computational overhead.
What Problem Does This Paper Address?
To deploy massive Large Language Models (LLMs) on consumer hardware or edge devices, engineers use quantization to compress weights into low-precision formats. While Post-Training Quantization (PTQ) works well for 4-bit formats, pushing down to ultra-low precision ($\le$ 2 bits) causes catastrophic model degradation. To fix this, researchers turn to Quantization-Aware Training (QAT), which simulates quantization during the training loop so the model can adapt.
However, QAT has a dirty secret: it relies on the Straight-Through Estimator (STE). Because rounding operations are step functions with a derivative of zero everywhere (and undefined at boundaries), standard backpropagation fails. STE bypasses this by pretending the quantizer's derivative is simply the identity matrix ($I$).
At $\le$ 2 bits, this approximation breaks down. Many parameters hover near bin boundaries or hit clipping limits. STE over-propagates gradients in these saturated regions, causing optimization to become brittle, oscillate wildly, and settle into suboptimal solutions.
Methods
Instead of pretending the quantizer's Jacobian is the identity matrix, JacQuant explicitly learns the missing Jacobian via a lightweight surrogate sensitivity map, denoted as $B(W)$.
To keep things computationally cheap, $B(W)$ is parameterized as a block-diagonal matrix with just one scalar per quantization group (e.g., one scalar per 128 weights). This adds virtually zero memory overhead compared to the massive footprint of optimizer states like Adam.
The authors propose two practical ways to estimate this sensitivity map:
- JacQuant-Probe (Default): Periodically injects tiny Gaussian noise perturbations ($\delta$) into the weights and measures how the quantized output changes ($\Delta q$). It then fits a local slope using a fast, group-wise least-squares regression.
- JacQuant-Dither: Uses uniform subtractive dithering (adding noise before quantization and subtracting it after) to smooth out the step functions, allowing the framework to track mean-field sensitivity.
Crucially, JacQuant does not run these estimators at every single training step. Instead, it updates $B(W)$ intermittently (e.g., every 100 steps) and smooths the updates using an Exponential Moving Average (EMA). This amortized approach ensures that the throughput of the training pipeline remains virtually unchanged. JacQuant can also be combined with standard variance-reduction techniques (like L-SVRG) to neutralize any stochastic noise introduced by the probing process.
Datasets
The authors evaluated JacQuant by performing pre-training QAT on the FineWebEdu dataset.
For evaluation, they measured:
- Language Modeling Perplexity: Evaluated on WikiText-2.
- Downstream Reasoning Accuracy: Evaluated across eight standard zero-shot benchmarks: ARC-easy, ARC-challenge, BoolQ, PIQA, SIQA, HellaSwag, OBQA, and WinoGrande.
Key Insights and Ideas
- The "Missing Jacobian" Perspective: Instead of viewing QAT as an approximation problem where we must find a "good enough" proxy gradient, the authors frame it as a system missing its true Jacobian. Learning this missing piece dynamically is far more effective than applying static mathematical patches.
- Automatic Saturation Damping: When weights are pushed into clipped or saturated zones, their actual sensitivity to small changes drops to zero. JacQuant naturally learns this, driving the corresponding scalar in $B(W)$ toward zero. This acts as an automatic gain controller, damping down chaotic gradient updates that would otherwise cause training instability under STE.
- Amortization Defeats Overhead: A naive approach to calculating exact local gradients (like finite differences) adds a massive 10–20% runtime overhead. By realizing that the quantizer's local sensitivity changes slowly, JacQuant proves that updating the surrogate Jacobian only once every 50–200 steps is sufficient to stabilize training while keeping overhead below 2%.
Key Results
The authors integrated JacQuant into two state-of-the-art QAT baselines (ParetoQ and WinQ) across several model families (LLaMA3-1B/3B, Qwen3-1.7B, and LLaMA3-8B) at ultra-low bitwidths ($\le$ 2 bits).
- LLaMA3-1B (W2A16): Upgrading ParetoQ with JacQuant improved the validation perplexity from 13.5 to 12.3 and boosted average zero-shot accuracy from 55.7% to 56.6%. It also outperformed the "Rotation Trick," a competing STE-free geometric method.
- LLaMA3-8B Scaling: On a massive W2A16 training run, JacQuant monotonically improved ParetoQ across 30K, 60K, and 90K checkpoint intervals, demonstrating that the benefits scale up to larger models.
- Negligible Overhead: Storing $B(W)$ requires only 15–30 MB of extra memory ($<1.5\%$ of Adam's state memory). Runtime benchmarks on NVIDIA A100 GPUs showed a throughput slowdown of only 0.8% to 3.5% compared to standard, unstable STE training.
Limitations and Future Work
While JacQuant marks a significant step forward for ultra-low-bit LLM training, the authors note a few areas for improvement:
- Weight-Centric Focus: The current empirical evaluation focuses primarily on aggressive weight quantization (W1 or W2) paired with higher-precision activations (A8 or A16). Extending this learned Jacobian framework to aggressive, dynamic activation quantization remains an open challenge.
- Theoretical Assumptions: The convergence proofs rely on "code-preserving windows"—short training intervals where weights don't frequently jump across quantization bin boundaries. Relaxing this assumption to better model the chaotic "bin-flipping" behavior of transformers early in training is an important next step for theorists.
Summary updated