INT2.1: Towards Fine-Tunable Quantized Large Language Models with Error Correction through Low-Rank Adaptation
Yuji Chai, John Gkountouras, Glenn G. Ko, David Brooks, Gu-Yeon Wei
TL;DR
The paper tackles the challenge of memory-intensive fine-tuning of large language models by introducing Extremely Memory-Efficient Finetuning (EMEF) that leverages Low-Rank Adaptation (LoRA) on quantized models to drastically reduce VRAM requirements. It further proposes Low-Rank Error Correction (LREC), a quantization-agnostic framework that uses additional LoRA parameters to mitigate degradation from quantization, enabling fully functional INT2/INT4 LLMs and extending applicability to INT3 and INT8. The authors validate their approach on LLaMA-7B with INT4 and INT2 configurations, reporting substantial memory savings (e.g., ~4.93–5.96 GB VRAM on consumer GPUs) while maintaining competitive downstream performance and enabling instruction-tuning with Alpaca. Qualitative and ablation analyses demonstrate the effectiveness of LREC and EMEF in preserving text quality and stability, despite some limitations in speed and optimization. Overall, the work advances accessible fine-tuning of quantized LLMs on low-resource hardware and lays groundwork for broader adoption of ultra-low-bit strategies with error correction.
Abstract
We introduce a method that dramatically reduces fine-tuning VRAM requirements and rectifies quantization errors in quantized Large Language Models. First, we develop an extremely memory-efficient fine-tuning (EMEF) method for quantized models using Low-Rank Adaptation (LoRA), and drawing upon it, we construct an error-correcting algorithm designed to minimize errors induced by the quantization process. Our method reduces the memory requirements by up to 5.6 times, which enables fine-tuning a 7 billion parameter Large Language Model (LLM) on consumer laptops. At the same time, we propose a Low-Rank Error Correction (LREC) method that exploits the added LoRA layers to ameliorate the gap between the quantized model and its float point counterpart. Our error correction framework leads to a fully functional INT2 quantized LLM with the capacity to generate coherent English text. To the best of our knowledge, this is the first INT2 Large Language Model that has been able to reach such a performance. The overhead of our method is merely a 1.05 times increase in model size, which translates to an effective precision of INT2.1. Also, our method readily generalizes to other quantization standards, such as INT3, INT4, and INT8, restoring their lost performance, which marks a significant milestone in the field of model quantization. The strategies delineated in this paper hold promising implications for the future development and optimization of quantized models, marking a pivotal shift in the landscape of low-resource machine learning computations.
