Compressing Large Language Models using Low Rank and Low Precision Decomposition

Rajarshi Saha, Naomi Sagan, Varun Srivastava, Andrea Goldsmith, Mert Pilanci

Abstract

Large Language Models (LLMs) face significant deployment challenges due to their immense memory requirements. While post-training quantization is a common mitigation strategy, model performance typically degrades sharply when compressed below 3 bits per parameter. This paper introduces CALDERA, a novel compression algorithm that decomposes weight matrices into a highly quantized backbone and low-rank, low-precision factors ($W \approx Q + LR$). By leveraging a calibration-aware optimization framework, CALDERA effectively captures the most critical information in the weight distribution's "head" while maintaining a lightweight "tail." Our results show that CALDERA outperforms existing state-of-the-art methods in the ultra-low bit-rate regime (2.1–2.4 bits), offering a viable path for running high-performance LLMs on consumer-grade hardware.

1. Introduction

The proliferation of Large Language Models (LLMs) has created a pressing need for efficient compression techniques to enable local execution on edge devices. Standard quantization methods often fail at extremely low bit-rates because they cannot adequately represent "outlier" weights—small subsets of parameters with disproportionately large magnitudes that significantly influence model behavior. Furthermore, traditional approaches often treat quantization and low-rank approximation as disjoint tasks.

CALDERA (Calibration-Aware Low-rank DEcomposition with Residual Adaptation) addresses these issues by unifying quantization and low-rank decomposition. By modeling the weight matrix as the sum of a low-precision backbone and a low-rank residual, the method preserves the structural integrity of the model's internal representations even under aggressive compression.

2. Methodology

The core innovation of CALDERA lies in its decomposition strategy: $W \approx Q + LR$.

2.1 The Q+LR Framework

The weight matrix $W$ is approximated by a backbone matrix $Q$, quantized to ultra-low precision (typically 2 bits), and a low-rank component formed by the product of two "skinny" matrices $L$ and $R$. Unlike previous methods that maintain $L$ and $R$ in full 16-bit precision, CALDERA quantizes these factors (e.g., to 4 bits). This allows for a higher rank $k$ within the same total bit budget, capturing more of the weight matrix's singular spectrum.

Decomposition of weight matrix W into quantized backbone Q and low-rank factors L and R.

2.2 Calibration-Aware Optimization

Rather than minimizing the Frobenius norm between the original and compressed weights, CALDERA employs a calibration-aware objective. It minimizes the error in the layer's output activations using a small subset of the RedPajama dataset. This ensures that the compression process prioritizes the preservation of features most relevant to the model's actual inference performance. This iterative refinement is handled by the LPLRFACTORIZE submodule.

3. Results and Analysis

We evaluated CALDERA across the Llama-2, Llama-3, and Mistral model families, focusing on the challenging sub-2.5 bits-per-parameter regime.

3.1 Performance in Ultra-Low Bit-Rates

CALDERA consistently achieves lower perplexity and higher zero-shot accuracy than QuIP#, the previous state-of-the-art for low-bit quantization. For instance, on Llama-3 8B at ~2.4 bits, CALDERA reached a perplexity of 8.22, significantly outperforming QuIP#'s 10.9. The model family also shows strong performance recovery when fine-tuning the low-rank factors via LoRA integration.

Performance comparison of CALDERA against QuIP# and unquantized baselines across various Llama models and benchmarks.

3.2 The Precision-Rank Trade-off

A key insight from our experiments is the "tunable knob" between rank and precision. We found that allocating bits to a higher-rank, lower-precision $LR$ component (e.g., rank 256 at 4-bit) often yields better results than a lower-rank, higher-precision component (e.g., rank 64 at 16-bit). This suggests that capturing a broader range of the singular value spectrum is more beneficial than high-fidelity capture of only the top few components.

4. Conclusion and Future Work

CALDERA demonstrates that the combination of low-rank decomposition and low-precision quantization, guided by calibration data, can push LLM compression boundaries further than previously thought possible. While the current implementation uses a static rank across all layers, future iterations could benefit from adaptive rank allocation based on layer sensitivity. Additionally, the development of specialized CUDA kernels for the $Q+LR$ format will be essential for maximizing inference throughput on diverse hardware.

Summary updated

BibTeX
@inproceedings{saha2024compressing,
  author = {Rajarshi Saha and Naomi Sagan and Varun Srivastava and Andrea Goldsmith and Mert Pilanci},
  title = {{Compressing Large Language Models using Low Rank and Low Precision Decomposition}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2024},
  url = {https://openreview.net/forum?id=lkx3OpcqSZ},
}
Figure