NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

LRQ: Optimizing Post-Training Quantization for Large Language Models by Learning Low-Rank Weight-Scaling Matrices

Jung Hyun Lee, Jeonghoon Kim, June Yong Yang, Se Jung Kwon, Eunho Yang, Kang Min Yoo, Dongsoo Lee

Introduction

Post-training quantization (PTQ) is a critical technique for deploying large language models (LLMs) on resource-constrained hardware. By converting 16-bit floating-point (FP16) weights and activations into lower-precision formats like 8-bit or 4-bit integers, developers can significantly reduce memory footprints and accelerate inference. However, a persistent challenge remains: the "generalization gap." While weight-only quantization is relatively stable, weight-activation quantization (e.g., W8A8) often leads to substantial accuracy degradation, particularly on complex reasoning tasks.

Existing PTQ methods often fall into two extremes. Coarse-grained methods like SmoothQuant use a single scale per channel, which lacks the flexibility to capture nuanced weight distributions. Conversely, fine-grained methods like FlexRound learn unique scaling parameters for every weight. While FlexRound performs well on simple benchmarks, it suffers from severe overfitting on complex benchmarks like Massive Multitask Language Understanding (MMLU). This paper introduces Low-Rank Quantization (LRQ), a novel approach that bridges this gap by factorizing weight-scaling matrices into low-rank components, providing both flexibility and robust regularization.

The Overfitting Challenge in PTQ

The authors identify that the primary failure mode for high-parameter quantization schemes is overfitting to the small calibration datasets typically used in PTQ (often just a few hundred samples). When a model learns hundreds of millions of scaling parameters from such limited data, it tends to "memorize" the specific activation patterns of the calibration set rather than learning a generalizable quantization strategy.

Comparison of quantization methods across Llama model scales on Common Sense Reasoning (left) and MMLU (right).

As shown in Figure 3, while methods like FlexRound track closely with FP16 performance on simpler tasks, they diverge significantly on the more challenging MMLU benchmark. LRQ, by contrast, maintains near-FP16 performance across all model scales and tasks, effectively closing the generalization gap.

Methods: Low-Rank Quantization (LRQ)

LRQ addresses the overfitting problem by constraining the search space of scaling parameters. Instead of learning a full scaling matrix $S_2$ with the same dimensions as the weight matrix $W$, LRQ factorizes $S_2$ into two smaller matrices, $L_2$ and $U_2$, such that:

$$S_2 \approx L_2 U_2 + r_2 + c_2$$

By choosing a rank $r$ significantly smaller than the matrix dimensions, LRQ reduces the number of learnable parameters by 50-70% compared to per-weight scaling methods. This structure still allows every weight to have an individual scale, but those scales are constrained by the low-rank structure, which acts as a powerful regularizer.

Block-wise Reconstruction

The optimization process involves minimizing the Mean Squared Error (MSE) between the outputs of an original FP16 Transformer block and its quantized counterpart. This block-wise reconstruction ensures that the local errors introduced by quantization do not accumulate excessively through the network. The low-rank constraint forces the optimization to identify the most salient scaling patterns that generalize across different inputs.

Experimental Results

The effectiveness of LRQ was evaluated using Llama and Llama 2 models ranging from 7B to 70B parameters, using 512 random samples from the C4 dataset for calibration.

Performance on Complex Benchmarks

On the MMLU benchmark, LRQ demonstrated a clear advantage. For Llama 7B (W8A8), LRQ achieved a score of 34.39%, significantly outperforming FlexRound (29.43%) and SmoothQuant (29.94%), and approaching the FP16 baseline of 35.12%. For Llama 2 70B (W4A8), LRQ reached an average score of 66.61% on common sense tasks, nearly identical to the FP16 score of 66.77%.

Generalization and Error Analysis

To confirm the overfitting hypothesis, the authors compared the Root Mean Square Error (RMSE) of different methods on both calibration data and unseen samples.

RMSE across Transformer blocks for calibration vs. unseen samples. LRQ shows significantly better generalization than FlexRound and RTN on unseen data.

Figure 6 illustrates that while FlexRound achieves low error on calibration data, its error spikes on unseen samples, particularly in deeper layers of the model. LRQ maintains a much lower and more stable error profile on unseen data, confirming its superior generalization capabilities.

Efficiency and Speedup

Beyond accuracy, LRQ enables significant practical benefits:

  • Inference Speedup: By enabling 4-bit integer kernels, LRQ achieved up to 2.33x faster latency for Llama 2 70B compared to standard FP16 inference using cuBLAS.
  • Memory Efficiency: The quantization process itself is more memory-efficient, requiring approximately 21.3 GB for LRQ versus 23.6 GB for FlexRound on Llama 2 7B.

Conclusion

LRQ represents a significant advancement in post-training quantization for LLMs. By leveraging low-rank factorization, it provides a principled way to balance model flexibility with generalization. While challenges remain—such as the quantization of extremely dense models like Llama 3 or the move toward 4-bit activations (W4A4)—LRQ establishes a robust baseline for high-performance, low-precision LLM deployment.

Summary updated

BibTeX
@inproceedings{lee2025lrq,
  author = {Jung Hyun Lee and Jeonghoon Kim and June Yong Yang and Se Jung Kwon and Eunho Yang and Kang Min Yoo and Dongsoo Lee},
  title = {{LRQ: Optimizing Post-Training Quantization for Large Language Models by Learning Low-Rank Weight-Scaling Matrices}},
  booktitle = {Conference of the North American Chapter of the Association for Computational Linguistics},
  year = {2025},
  doi = {10.18653/v1/2025.naacl-long.393},
}
Figure