ApiQ: Finetuning of 2-Bit Quantized Large Language Model
Authors:
- Baohao LiaoBLBaohao Liao
- Christof MonzCMChristof Monz
Preprint
Abstract
Memory-efficient finetuning of large language models (LLMs) has recently attracted huge attention with the increasing size of LLMs, primarily due to the constraints posed by GPU memory limitations and the comparable results of these methods with full finetuning. Despite the advancements, current strategies for memory-efficient finetuning, such as QLoRA, exhibit inconsistent performance across diverse bit-width quantizations and multifaceted tasks. This inconsistency largely stems from the detrimental impact of the quantization process on preserved knowledge, leading to catastrophic forgetting and undermining the utilization of pretrained models for finetuning purposes. In this work, we introduce a novel quantization framework named ApiQ, designed to restore the lost information from quantization by concurrently initializing LoRA components and quantizing the weights of LLMs. This approach ensures the maintenance of the original LLM's activation precision while mitigating the error propagation from shallower into deeper layers. Through comprehensive evaluations conducted on a spectrum of language tasks with various models, ApiQ demonstrably minimizes activation error during quantization. Consequently, it consistently achieves superior finetuning outcomes across various bit-widths of quantization.Keywords
All Related Versions
This publication has 7 references indexed in Scilit:
- AWQ: Activation-aware Weight Quantization for On-Device LLM Compression and AccelerationGetMobile: Mobile Computing and Communications, 2025
- Parameter-Efficient Fine-Tuning without Introducing New Latency2023
- Nonuniform-to-Uniform Quantization: Towards Accurate Quantization via Generalized Straight-Through Estimation2022
- Intrinsic Dimensionality Explains the Effectiveness of Language Model Fine-Tuning2021
- BERT: Pre-training of Deep Bidirectional Transformers for Language Understanding2019
- Quantization and Training of Neural Networks for Efficient Integer-Arithmetic-Only Inference2018
- A Broad-Coverage Challenge Corpus for Sentence Understanding through Inference2018