Model-Preserving Adaptive Rounding

Albert Tseng, Zhaofeng Sun, Christopher De Sa

Quantizing Large Language Models (LLMs) to 4-bit or lower precision is critical for efficient deployment. However, industry-standard post-training quantization (PTQ) algorithms like GPTQ and LDLQ rely on a myopic proxy objective: they minimize the error in a single layer's output activations. This approach ignores how errors in early layers propagate, amplify, or mitigate through subsequent layers. Ideally, quantization should minimize the difference between the original and compressed models' final output distributions—measured by KL divergence.

Until now, optimizing directly for this end-to-end error was considered mathematically and computationally intractable for billion-parameter models. Enter YAQA (Yet Another Quantization Algorithm), a novel adaptive rounding method that bridges the gap between local rounding and full-model optimization, achieving state-of-the-art accuracy without adding any inference overhead.

The YAQA Approach

YAQA shifts the quantization paradigm by targeting the true Hessian of the end-to-end loss. To make this computationally tractable, the authors employ a Kronecker-factored approximation ($H \approx H_O \otimes H_I$). While standard methods utilize only an input-side Hessian ($H_I$), YAQA incorporates an output-side factor ($H_O$) to capture how errors propagate to the final output.

To characterize the convergence of this adaptive rounding, the paper introduces a new theoretical metric: Structural Nilpotence Degree (SND). The authors prove that their Kronecker structure allows the algorithm to converge efficiently in a small, fixed number of steps ($m + n$).

Because computing the full Hessian remains impossible, YAQA utilizes two practical "sketches":

  • Sketch A: Assumes tokens are independent within a sequence. It uses a modified backward pass to power-iterate toward optimal factors rapidly.
  • Sketch B: Performs a single pass over a dataset to execute one round of power iteration on the true end-to-end Hessian. This captures sequence-mixing effects (like attention) and generally yields superior performance.

Crucially, because YAQA is applied entirely during the compression phase, the resulting model runs exactly like any other quantized model, introducing zero inference overhead.

Key Theoretical Insights

A standout contribution of this work is the Cosine Similarity Bound. The authors rigorously prove that the end-to-end quantization error is bounded by the cosine similarity between the approximate Hessian and the true Hessian. This provides a solid mathematical foundation for why better Hessian approximations directly yield better models.

Furthermore, YAQA introduces symmetric feedback. Traditional adaptive rounding only provides feedback along input channels. YAQA’s feedback is symmetric across both input and output channels, an approach that is theoretically elegant and empirically superior.

Empirical Results

Evaluated across a suite of models (Llama 3.1 8B/70B, Llama 3.2 1B/3B, Gemma 3 12B, Qwen 3 8B) and calibrated on RedPajama v1, YAQA demonstrates remarkable performance on downstream benchmarks (ARC, BoolQ, HellaSwag, PIQA, MMLU, GSM8K):

  • 30% Error Reduction: YAQA consistently reduces KL divergence by approximately 30% compared to LDLQ and GPTQ across 2, 3, and 4-bit widths.
  • State-of-the-Art Accuracy: On Llama 3.1 8B (4-bit), YAQA-B achieved a KL divergence of 0.013 (vs. LDLQ’s 0.019), translating to higher scores across almost all zero-shot benchmarks.
  • Outperforming QAT: Surprisingly, YAQA—a post-training method—can achieve lower KL divergence than Quantization Aware Training (QAT) recipes (e.g., Google's Gemma 3 QAT). This is likely because YAQA is strictly "model-preserving," whereas QAT alters the fundamental model dynamics.
  • Efficiency and Composability: Sketch B achieves state-of-the-art results using as few as 2,000 sequences (~1 GPU-hour). Furthermore, YAQA composes well with recovery fine-tuning to push PTQ quality even further.

Limitations and Future Directions

The primary trade-offs for YAQA's performance are memory and compute during the quantization phase. Storing both $H_O$ and $H_I$ roughly doubles the memory footprint of the quantization process. Additionally, generating the Hessian sketches requires backward passes, making it more compute-intensive than forward-only methods like GPTQ (Sketch B requires ~30 GPU-hours for a 10B model).

Looking ahead, the authors suggest that the end-to-end theoretical bounds introduced for YAQA could be extended to other compression techniques, such as structured pruning or low-rank matrix decomposition, paving the way for a new generation of model-preserving compression algorithms.

Summary updated

BibTeX
@inproceedings{tseng2026model,
  author = {Albert Tseng and Zhaofeng Sun and Christopher De Sa},
  title = {{Model-Preserving Adaptive Rounding}},
  booktitle = {International Conference on Machine Learning},
  year = {2026},
  url = {https://openreview.net/forum?id=PKFilPWjMI},
}
Figure