LoftQ: LoRA-Fine-Tuning-Aware Quantization for Large Language Models

Yixiao Li, Yifan Yu, Chen Liang, Pengcheng He, Nikos Karampatziakis +2 more
2/12/2026

No official code found. Best implementation: yxli2123/LoftQ (235 stars, MIT, last commit 2024-06-11).

Abstract

Quantization is an indispensable technique for serving Large Language Models (LLMs) and has recently found its way into LoRA fine-tuning. In this work we focus on the scenario where quantization and LoRA fine-tuning are applied together on a pre-trained model. In such cases it is common to observe a consistent gap in the performance on downstream tasks between full fine-tuning and quantization plus LoRA fine-tuning approach. In response, we propose LoftQ (LoRA-Fine-Tuning-aware Quantization), a novel quantization framework that simultaneously quantizes an LLM and finds a proper low-rank initialization for LoRA fine-tuning. Such an initialization alleviates the discrepancy between the quantized and full-precision model and significantly improves generalization in downstream tasks. We evaluate our method on natural language understanding, question answering, summarization, and natural language generation tasks. Experiments show that our method is highly effective and outperforms existing quantization methods, especially in the challenging 2-bit and 2/4-bit mixed precision regimes. The code is available on https://github.com/yxli2123/LoftQ.

View on arXivView PDF

Code Implementations(1)

yxli2123/LoftQCommunity100%
MIT
23525Shell, PythonOct 12, 20232 years agoMIT

Similar Papers

Cite this paper

@article{li2026loftq,
  title  = {LoftQ: LoRA-Fine-Tuning-Aware Quantization for Large Language Models},
  author = {Yixiao Li and Yifan Yu and Chen Liang and Pengcheng He and Nikos Karampatziakis and Weizhu Chen and Tuo Zhao},
  year   = {2026},
  eprint = {2310.08659},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/pdf/2310.08659},
  journal = {ICLR 2023 2023}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2310.08659.svg)](https://codeofpaper.com/paper/2310.08659)

Discussion