LoaQ: Layer-wise Output Approximation Quantization

Li Lin, Xiaojun WanarXiv 2025 · DOI

Abstract

Post-training quantization (PTQ) is vital for deploying Large Language Models (LLMs) on resource-constrained hardware. However, standard layer-wise quantization often suffers from significant performance degradation at low bit-widths (2-3 bits) due to error accumulation. We present LoaQ (Layer-wise Output Approximation Quantization), a novel PTQ method that optimizes for entire sub-blocks, including residual connections and normalization layers. By shifting the focus from individual linear layers to normalized sub-block outputs, LoaQ effectively mitigates quantization noise. Experimental results on LLaMA and Qwen model families demonstrate that LoaQ significantly outperforms existing baselines like GPTQ and GPTAQ, particularly in 2-bit settings.

Introduction

Quantizing Large Language Models (LLMs) to 2 or 3 bits is essential for running them on consumer hardware, but it often leads to a massive drop in performance. Most current Post-Training Quantization (PTQ) methods, such as GPTQ, focus on a "layer-wise" approach: they attempt to minimize the difference between the output of a single quantized linear layer and its original full-precision version.

However, this perspective is often too narrow. In modern Transformer architectures, linear layers are integrated within residual connections and followed by normalization layers like RMSNorm. Standard methods ignore these components, leading to "quantization noise" that accumulates rapidly as signals pass through the network's residual paths. Even if a single linear layer is well-approximated, the cumulative output of the entire block can drift significantly from the original, leading to model collapse at very low bit-widths.

Methodology: Layer-wise Output Approximation

LoaQ introduces a hierarchical approach to output approximation. Instead of just matching linear layer outputs, LoaQ optimizes for three distinct levels:

  1. Linear-layer Approximation: The baseline matching of $XQ \approx XW$.
  2. Sub-block Approximation: Explicitly accounting for the residual connection. LoaQ ensures that the sum of the input and the quantized layer output matches the original sum ($h + XQ \approx h' + X'W$).
  3. Normalized Sub-block Approximation: Recognizing that the next layer only "sees" the output after it has been processed by RMSNorm. LoaQ refines the objective to match the normalized outputs, preventing Mean Squared Error (MSE) from exploding in deeper layers.
LoaQ Sub-block Architecture

Technically, LoaQ derives a closed-form solution for these objectives. It integrates into the existing GPTQ framework by introducing two tuning parameters ($\alpha$ and $ \beta$) that adjust the target weights before quantization. This makes it "orthogonal" to other techniques, allowing it to be used alongside methods like the Hadamard transform or advanced parameter initialization.

Experimental Evaluation

The researchers evaluated LoaQ across several prominent model families and sizes, including LLaMA 2 (7B, 13B, 70B), LLaMA 3 (8B, 70B), and Qwen (8B, 14B, 32B). Performance was measured using perplexity on the WikiText2 and C4 datasets, alongside zero-shot accuracy on five standard benchmarks: ARC-easy, ARC-challenge, PiQA, HellaSwag, and WinoGrande.

Key Results

LoaQ demonstrates its greatest strength in the most challenging 2-bit quantization scenarios. As shown in the results table, LoaQ maintains significantly better perplexity and accuracy than competitive baselines.

Comparison of 2-bit and 3-bit Quantization Results
  • 2-bit Performance: On LLaMA 2 7B, LoaQ achieved a Wiki2 perplexity of 214, whereas GPTQ and GPTAQ struggled with values over 1000.
  • 3-bit Consistency: In 3-bit settings, LoaQ consistently outperformed GPTQ, GPTAQ, and Qronos across almost every benchmark. For example, on LLaMA 3 8B, it improved average zero-shot accuracy by several percentage points.
  • Efficiency: The computational overhead is minimal. Quantizing a 32B model takes roughly 108 minutes on a single NVIDIA A40 GPU—slightly slower than GPTQ but significantly more accurate.

Discussion and Insights

A key insight of this work is the "Residual Gap." The paper demonstrates that error accumulation is not just about the weights; it's about the path. By including the residual state ($h$) in the loss function, LoaQ can compensate for errors introduced in previous layers. Furthermore, RMSNorm acts as a stabilizer. While raw error might increase with depth, RMSNorm acts as a ceiling. By optimizing for the post-norm output, LoaQ focuses its "correction budget" on the information that actually survives to the next layer.

Conclusion

LoaQ represents a significant step forward for low-bit LLM quantization. By accounting for the architectural context of linear layers—specifically residual connections and normalization—it effectively suppresses the error accumulation that plagues standard PTQ methods. While a performance gap still exists between 2-bit models and their full-precision counterparts, LoaQ makes 2-bit and 3-bit deployment far more viable for practical applications. Future work may explore more sophisticated error-compensation strategies and the applicability of sub-block approximation to other quantization paradigms.

Summary updated

BibTeX
@misc{lin2025loaq,
  author = {Li Lin and Xiaojun Wan},
  title = {{LoaQ: Layer-wise Output Approximation Quantization}},
  year = {2025},
  eprint = {2509.06297},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2509.06297},
}
Figure