CAGE: Curvature-Aware Gradient Estimation For Accurate Quantization-Aware Training
Soroush Tabesh, Mher Safaryan, Andrei Panferov, Alexandra Volkova, Dan Alistarh
TL;DR
CAGE tackles the remaining gap between low-bit quantization-aware training and full-precision training by injecting a curvature-aware correction into the gradient, derived from a Pareto-optimality view that balances task loss and quantization constraints. The method yields strong theoretical guarantees (ergodic convergence to a Pareto-optimal point in the smooth non-convex setting) and an optimizer-agnostic, efficient implementation built on AdamW, leveraging existing optimizer statistics. Empirically, CAGE improves QAT performance in both fine-tuning and large-scale pretraining of Llama-style models, achieving lower loss and higher effective capacity than prior baselines (e.g., QuEST), with gains across multiple optimizers and precisions (W2A2, W3A3, W4A4). This work suggests that incorporating local curvature information and explicit quantization-error regularization can substantially close the gap to full-precision models, enabling more efficient training and deployment of large language models.
Abstract
Despite significant work on low-bit quantization-aware training (QAT), there is still an accuracy gap between such techniques and native training. To address this, we introduce CAGE (Curvature-Aware Gradient Estimation), a new QAT method that augments the straight-through estimator (STE) gradient with a curvature-aware correction designed to counteract the loss increase induced by quantization. CAGE is derived from a multi-objective view of QAT that balances loss minimization with the quantization constraints, yielding a principled correction term that depends on local curvature information. On the theoretical side, we introduce the notion of Pareto-optimal solutions for quantized optimization, and establish that CAGE yields strong convergence guarantees in the smooth non-convex setting. In terms of implementation, our approach is optimizer-agnostic, but we provide a highly-efficient implementation that leverages Adam statistics. CAGE significantly improves upon the prior state-of-the-art methods in terms of accuracy, for similar computational cost: for QAT fine-tuning, it halves the compression accuracy loss relative to the prior best method, while for QAT pre-training of Llama models, its accuracy for 3-bit weights-and-activations (W3A3) matches the accuracy achieved at 4-bits (W4A4) with the prior best method. The official implementation can be found over https://github.com/IST-DASLab/CAGE .
