Abstract
Large Language Models (LLMs) face significant deployment challenges due to their immense memory footprints. While weight quantization offers a solution, existing methods often suffer from severe accuracy degradation at ultra-low bit-widths (e.g., 2-bit) due to the limitations of rank-one quantization codebooks. We present LCQ (Low-Rank Codebook based Quantization), a novel approach that breaks this "rank-one barrier" by employing more expressive low-rank matrices for codebook representation. By optimizing these codebooks through gradient descent and utilizing double quantization to minimize storage overhead, LCQ achieves state-of-the-art performance across various LLM families. Our results demonstrate significant perplexity improvements and higher zero-shot accuracy compared to existing baselines in the 2-bit and 3-bit regimes.
Introduction
The deployment of Large Language Models (LLMs) like LLaMA and GPT on resource-constrained devices is hindered by their massive parameter counts. Weight quantization—reducing precision from 16-bit floating point to 4-bit or lower—is a standard compression technique. However, current state-of-the-art methods such as AWQ and GPTQ encounter a "quality wall" when pushed below 4 bits.
The primary bottleneck identified in this work is the reliance on rank-one codebooks. Traditional methods represent groups of weights using a single scaling factor multiplied by fixed quantization levels. This mathematical simplicity restricts the model's representational capacity, leading to substantial accuracy loss at high compression ratios. LCQ addresses this by introducing a more flexible, low-rank mathematical framework for quantization.
Methodology
Low-Rank Codebook Formulation
The core innovation of LCQ is the replacement of the standard scaling factor with a Low-Rank Codebook $C$. The codebook is formulated as: $$C = S^T V - B$$ where $S$ and $V$ are low-rank matrices and $B$ is an offset vector. By allowing the rank ($N_D$) to be greater than one, the model can capture more nuanced weight distributions than traditional rank-one approaches.
Gradient-based Optimization
Unlike heuristic-based methods, LCQ learns optimal parameters for $S$, $V$, and $B$ by minimizing reconstruction error across entire Transformer blocks. To handle the non-differentiable nature of quantization, the authors employ a Straight-Through Estimator (STE). Furthermore, a tanh-based reparameterization strategy is used to stabilize training by decoupling weight ranges from the optimization process, ensuring consistent gradients across layers with varying scales.
Double Quantization and Pipeline
To maintain the storage efficiency of the model, LCQ utilizes a "double quantization" scheme. The additional parameters introduced by the low-rank codebook are themselves quantized, ensuring that the final storage overhead remains negligible compared to standard rank-one methods. This pipeline ensures that the expressive power of the low-rank representation does not compromise the primary goal of model compression.
Experimental Results
The authors evaluated LCQ on the OPT, LLaMA, and LLaVA model families using the Pile dataset for calibration. Performance was measured via perplexity on WikiText2 and C4, alongside zero-shot accuracy on tasks like PIQA, WinoGrande, and ARC-easy.
Performance in the 2-bit Regime
LCQ demonstrates its greatest strength at ultra-low bit-widths. For LLaMA-7B at 2-bit quantization:
- Perplexity: LCQ achieved a WikiText2 perplexity of 9.14, significantly outperforming AWQ (12.90) and OmniQuant (12.33).
- Zero-Shot Accuracy: On the PIQA task, LCQ reached 72.36% accuracy, a notable improvement over AWQ's 69.21%.
Storage Overhead
Despite the increased complexity of the codebook, the storage "retention rate" remains competitive. At 2-bit quantization, LCQ's retention rate is approximately 0.138, nearly identical to AWQ's 0.134, proving that the expressivity gains do not come at the cost of significant memory bloat.
Discussion and Conclusion
The success of LCQ highlights the "Rank-One Bottleneck" as a critical limitation in current quantization research. By moving to rank-2 or rank-3 representations, LCQ provides a massive boost in expressivity for a minimal bit-cost. While the gradient-based optimization requires more computational time during the compression phase (typically 10 epochs), the resulting models offer superior accuracy and are highly efficient for inference. Future work includes extending LCQ to activation quantization (W2A2 scenarios) and developing specialized hardware kernels to fully realize the theoretical inference speedups provided by low-rank dequantization.
Summary updated