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

CLoQ: Enhancing Fine-Tuning of Quantized LLMs via Calibrated LoRA Initialization

Yanxia Deng, Aozhong Zhang, Selcuk Gurses, Naigang Wang, Zi Yang, Penghang Yin

Abstract

Fine-tuning large language models (LLMs) using low-rank adaptation (LoRA) has become a highly efficient approach for downstream tasks, particularly in scenarios with limited computational resources. However, applying LoRA techniques to quantized LLMs poses unique challenges due to the reduced representational precision of quantized weights. In this paper, we introduce CLoQ (Calibrated LoRA initialization for Quantized LLMs), a simplistic initialization strategy designed to overcome these challenges. Our approach focuses on minimizing the layer-wise discrepancy between the original LLM and its quantized counterpart with LoRA components during initialization. By leveraging a small calibration dataset, CLoQ quantizes a pre-trained LLM and determines the optimal LoRA components for each layer, ensuring a strong foundation for subsequent fine-tuning. A key contribution of this work is a novel theoretical result that enables the accurate and closed-form construction of these optimal LoRA components. We validate the efficacy of CLoQ across multiple tasks such as language generation, arithmetic reasoning, and commonsense reasoning, demonstrating that it consistently outperforms existing LoRA fine-tuning methods for quantized LLMs, especially at 2-bit.

Introduction

As Large Language Models (LLMs) scale to hundreds of billions of parameters, fine-tuning becomes prohibitively expensive. A common strategy combines Quantization (reducing weight precision to 2 or 4 bits) with LoRA (Low-Rank Adaptation). However, a significant "initialization gap" exists: standard LoRA initialization (Gaussian noise and zero) often fails when the base model is heavily quantized, as the large quantization error places the model in a poor initial state. While methods like LoftQ attempt to approximate this error, they often ignore the data distribution the model encounters. CLoQ addresses this by using calibration data to ensure LoRA adapters compensate for the quantization errors that most impact the model's activations.

Methodology: Calibrated Initialization

CLoQ operates in two primary phases to initialize the fine-tuning process:

  1. Post-Training Quantization (PTQ): Weights ($W$) are quantized into low-precision weights ($Q$) using the OPTQ algorithm, supplemented by MagR (Weight Magnitude Reduction) to stabilize outliers at low bit-widths.
  2. Generalized Low-Rank Approximation: CLoQ minimizes the error as perceived by the model's activations ($X$). It solves the optimization problem: $$\min_{A,B} \|X(AB^T - (W - Q))\|_F^2$$ The authors derive a closed-form solution (Theorem 3.1) using two Singular Value Decompositions (SVDs): one for the activation Gram matrix and another for the weighted residual. This "backpropagation-free" approach is significantly more efficient than gradient-based alternatives.
Figure 2: Comparison of initialization discrepancy (Spectral and Frobenius norms) between LoftQ and CLoQ across different layer indices.

A central finding is that data-awareness is critical. By using activations from a small calibration set (e.g., 128 samples from WikiText-2), CLoQ ensures adapters fix errors in the specific "directions" used during inference. This results in a much lower initialization discrepancy compared to data-free methods like LoftQ, as shown in the norm comparisons across layers.

Furthermore, CLoQ effectively breaks the "2-bit barrier." In many reasoning tasks, a 2-bit model initialized with CLoQ can outperform 4-bit models using standard QLoRA. This suggests that high-quality initialization can mitigate the performance loss typically associated with extreme quantization.

Figure 3: Performance of CLoQ compared to QLoRA, LoftQ, and LoRA baselines across various bit-widths for Llama2-7B and 13B models on WikiText-2, GSM8K, and Arithmetic Reasoning tasks.

Experimental Results

CLoQ was evaluated on Llama2 (7B, 13B), Llama3 (8B), and Mistral-7B across benchmarks including WikiText-2 (perplexity) and GSM8K (accuracy).

  • 2-bit Superiority: On Llama2-7B, CLoQ achieved a perplexity of 6.51 at 2-bit, outperforming LoftQ (7.85) and ApiQ (6.61).
  • Arithmetic Reasoning: Notably, INT2 CLoQ on Llama2-13B reached 41.7% accuracy, surpassing INT4 QLoRA at 39.9%.
  • Efficiency: Initialization for Llama2-13B took only 1.5 hours, compared to 6.5 hours for ApiQ-lw, demonstrating the speed of the closed-form solution.

Conclusion

CLoQ provides a robust and efficient initialization strategy for fine-tuning quantized LLMs. By minimizing activation-weighted quantization error through a closed-form mathematical solution, it enables high performance even at ultra-low bit-widths. Future work includes extending this approach to non-linear layers and investigating the long-term impact of this initialization on the optimization trajectory during training.

Summary updated

BibTeX
@article{deng2025cloq,
  author = {Yanxia Deng and Aozhong Zhang and Selcuk Gurses and Naigang Wang and Zi Yang and Penghang Yin},
  title = {{CLoQ: Enhancing Fine-Tuning of Quantized LLMs via Calibrated LoRA Initialization}},
  journal = {Accepted by TMLR},
  year = {2025},
  url = {https://openreview.net/forum?id=FHnTRAAdAZ},
}
Figure