Papers › LQ-LoRA: Low-rank Plus Quantized Matrix Decomposition for Efficient Language Model Finetuning

LQ-LoRA: Low-rank Plus Quantized Matrix Decomposition for Efficient Language Model Finetuning

20 Nov 2023arXiv:2311.12023archive 2025-07-28

Han Guo, Philip Greengard, Eric P. Xing, Yoon Kim

We propose a simple approach for memory-efficient adaptation of pretrained language models. Our approach uses an iterative algorithm to decompose each pretrained matrix into a high-precision low-rank component and a memory-efficient quantized component. During finetuning, the quantized component remains fixed and only the low-rank component is updated. We present an integer linear programming formulation of the quantization component which enables dynamic configuration of quantization parameters (e.g., bit-width, block size) for each matrix given an overall target memory budget. We further explore a data-aware version of the algorithm which uses an approximation of the Fisher information matrix to weight the reconstruction objective during matrix decomposition. Experiments on finetuning RoBERTa and LLaMA-2 (7B and 70B) demonstrate that our low-rank plus quantized matrix decomposition approach (LQ-LoRA) outperforms strong QLoRA and GPTQ-LoRA baselines and enables aggressive quantization to sub-3 bits with only minor performance degradations. When finetuned on a language modeling calibration dataset, LQ-LoRA can also be used for model compression; in this setting our 2.75-bit LLaMA-2-70B model (which has 2.85 bits on average when including the low-rank components and requires 27GB of GPU memory) performs respectably compared to the 16-bit baseline.

PaperPDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2311.12023")

Code

Syntology Ran 7 of 12 code samples harvested from 1 repository linked to this paper; 5 have no recorded run. Of those that ran: 7 ran with no contract checked.

By repository: official repository: 12 samples from 1 repository, 7 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

hanguo97/lq-lora officialmentioned in papermentioned on GitHubjaxMIT report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

12 samples harvested; 7 ran; 0 honoured the contract we drafted; 5 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

7ran
5unverified

Licence: 0 of the 12 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from hanguo97/lq-lora. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

compute_empirical_Fisher_RoBERTa hanguo97/lq-lora/models/allocation_utils_2.py official repository ran MIT (permissive) · a3d0d1e07441f8ff · report
create_normal_float_scheme hanguo97/lq-lora/models/quantization_utils.py official repository ran MIT (permissive) · 40ba32e8f13af3e2 · report
create_quantization_scheme hanguo97/lq-lora/models/quantization_utils.py official repository ran MIT (permissive) · 3175476f3e4363e4 · report
pack_bools_into_integers hanguo97/lq-lora/models/packbits_utils.py official repository ran MIT (permissive) · def1ac254e2bf2ca · report
quantize_with_scheme hanguo97/lq-lora/models/quantization_utils.py official repository ran MIT (permissive) · 3a5ac3bc042f6593 · report
svd_decomposition hanguo97/lq-lora/models/factorizations_utils.py official repository ran MIT (permissive) · 426e5a6d0c6824e8 · report
weighted_svd_decomposition hanguo97/lq-lora/models/factorizations_utils.py official repository ran MIT (permissive) · 27c3361a9d756b76 · report
apply_three_tensor_op hanguo97/lq-lora/models/tensor_container_utils.py official repository unverified MIT (permissive) · e6327c65d67b9b9d · report
compute_empirical_Fisher_LLaMA hanguo97/lq-lora/models/allocation_utils.py official repository unverified MIT (permissive) · 75320a91f402092b · report
from_binary hanguo97/lq-lora/models/packbits_utils.py official repository unverified MIT (permissive) · 4e9c1bc486b3cb15 · report
get_hf_quantization_config hanguo97/lq-lora/models/lora_utils.py official repository unverified MIT (permissive) · adc7b34aa6bae5f9 · report
to_binary hanguo97/lq-lora/models/packbits_utils.py official repository unverified MIT (permissive) · 2327775e49455531 · report

Tasks

Language ModelingLanguage ModellingModel CompressionQuantization

1 archive task tag without a task page not shown.

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

AdamAttentionAttention DropoutBERTDense ConnectionsDropoutLayer NormalizationLinear LayerLinear Warmup With Linear DecayMulti-Head AttentionResidual ConnectionRoBERTaSoftmaxWeight DecayWordPiece

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections