Skip to main content
QUICK REVIEW

[Paper Review] Accurate LoRA-Finetuning Quantization of LLMs via Information Retention

Haotong Qin, Xudong Ma|arXiv (Cornell University)|Feb 8, 2024
Advanced Vision and ImagingComputer Science42 citations
TL;DR

IR-QLoRA introduces Information Calibration Quantization and Information Elastic Connection to preserve information during quantization and LoRA finetuning, achieving higher accuracy for ultra-low-bit LLMs with minimal overhead.

ABSTRACT

The LoRA-finetuning quantization of LLMs has been extensively studied to obtain accurate yet compact LLMs for deployment on resource-constrained hardware. However, existing methods cause the quantized LLM to severely degrade and even fail to benefit from the finetuning of LoRA. This paper proposes a novel IR-QLoRA for pushing quantized LLMs with LoRA to be highly accurate through information retention. The proposed IR-QLoRA mainly relies on two technologies derived from the perspective of unified information: (1) statistics-based Information Calibration Quantization allows the quantized parameters of LLM to retain original information accurately; (2) finetuning-based Information Elastic Connection makes LoRA utilizes elastic representation transformation with diverse information. Comprehensive experiments show that IR-QLoRA can significantly improve accuracy across LLaMA and LLaMA2 families under 2-4 bit-widths, e.g., 4- bit LLaMA-7B achieves 1.4% improvement on MMLU compared with the state-of-the-art methods. The significant performance gain requires only a tiny 0.31% additional time consumption, revealing the satisfactory efficiency of our IR-QLoRA. We highlight that IR-QLoRA enjoys excellent versatility, compatible with various frameworks (e.g., NormalFloat and Integer quantization) and brings general accuracy gains. The code is available at https://github.com/htqin/ir-qlora.

Motivation & Objective

  • Motivate accurate quantization of LoRA-finetuned LLMs at ultra-low bit-widths.
  • Identify information loss as a core bottleneck in current LoRA-quantization methods.
  • Propose ICQ to calibrate quantizers by entropy maximization to preserve information.
  • Propose IEC to enhance LoRA by enabling parameter-free, elastic information transfer.
  • Demonstrate universal improvements across LLaMA, LLaMA2, and various quantization schemes.

Proposed method

  • Adopt a baseline LoRA-finetuning quantization framework as context.
  • Propose Information Calibration Quantization (ICQ) to maximize entropy of quantized weights via a calibrated shift parameter τ and optimized scaling s.
  • Introduce Information Elastic Connection (IEC) to make LoRA access and diversify information from the quantized LLM via a parameter-free, elastic pathway.
  • Formulate the ICQ and IEC mechanisms with specific equations for quantization and LoRA integration (e.g., Eq. 8–11 for ICQ and Eq. 12–15 for IEC).
  • Show compatibility with NormalFloat and Integer quantization and report negligible training/inference overhead.

Experimental results

Research questions

  • RQ1Can information loss from ultra-low-bit quantization be effectively recovered during LoRA finetuning?
  • RQ2How can we maximize information retention in quantized LLM weights to improve downstream task accuracy?
  • RQ3Can a parameter-free connection (IEC) augment LoRA to better leverage quantized representations?
  • RQ4Are ICQ and IEC broadly compatible with existing LoRA-based quantization pipelines across model families (LLaMA/LLaMA2) and bit-widths?

Key findings

  • IR-QLoRA consistently outperforms SOTA LoRA-finetuning quantization methods across LLaMA and LLaMA2 families at 2-4 bit-widths.
  • On 4-bit LLaMA-7B, IR-QLoRA achieves 40.8% average on MMLU vs. 38.4% for QLoRA.
  • 2-3 bit results show IR-QLoRA maintaining strong performance, e.g., 2-bit IR-QLoRA approaches 0.5% above 4-bit baselines on some sizes and datasets.
  • ICQ raises entropy of quantized weights, yielding measurable accuracy gains (up to 1.9% in ablations).
  • IEC provides a substantial accuracy uplift by enabling LoRA to access richer, elastic information from the quantized LLM.
  • IR-QLoRA adds only around 0.31%-0.46% training-time overhead and minimal extra storage, with results that generalize to QA-LoRA and LLaMA2.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.