Lune

NeurIPS2024顶会

Compressing Large Language Models using Low Rank and Low Precision Decomposition

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

2024年份
74被引次数
25顶会引用

摘要

The prohibitive sizes of Large Language Models (LLMs) today make it difficult to deploy them on memory-constrained edge devices. This work introduces CALDERA\rm CALDERA -- a new post-training LLM compression algorithm that harnesses the inherent low-rank structure of a weight matrix W\mathbf{W} by approximating it via a low-rank, low-precision decomposition as W≈Q+LR\mathbf{W} \approx \mathbf{Q} + \mathbf{L}\mathbf{R}. Here, L\mathbf{L} and R\mathbf{R} are low rank factors, and the entries of Q\mathbf{Q}, L\mathbf{L} and R\mathbf{R} are quantized. The model is compressed by substituting each layer with its Q+LR\mathbf{Q} + \mathbf{L}\mathbf{R} decomposition, and the zero-shot performance of the compressed model is evaluated. Additionally, L\mathbf{L} and R\mathbf{R} are readily amenable to low-rank adaptation, consequently enhancing the zero-shot performance. CALDERA\rm CALDERA obtains this decomposition by formulating it as an optimization problem min⁡Q,L,R∥(Q+LR−W)X⊤∥F2\min_{\mathbf{Q},\mathbf{L},\mathbf{R}}\lVert(\mathbf{Q} + \mathbf{L}\mathbf{R} - \mathbf{W})\mathbf{X}^\top\rVert_{\rm F}^2, where X\mathbf{X} is the calibration data, and Q,L,R\mathbf{Q}, \mathbf{L}, \mathbf{R} are constrained to be representable using low-precision formats. Theoretical upper bounds on the approximation error of CALDERA\rm CALDERA are established using a rank-constrained regression framework, and the tradeoff between compression ratio and model performance is studied by analyzing the impact of target rank and quantization bit budget. Results illustrate that compressing LlaMa-22 77B/13B13B/7070B and LlaMa-33 88B models using CALDERA\rm CALDERA outperforms existing post-training LLM compression techniques in the regime of less than 2.52.5 bits per parameter. The implementation is available at: https://github.com/pilancilab/caldera.

问问这篇 Paper

智能体会读完全文。

Lune 把这篇 Paper 索引到了每一个公式,引用它的顶会 Paper 也一样。你提问,回答直接引用原文。

可以从这些问题问起

智能体调用

Luneget_paper_fulltext

在 Lune 里问

免费开始,无需绑卡

引用它的顶会 Paper25

问问它们各自怎么用它

它引用的顶会 Paper17

相关 Paper

黄昏的海面,两侧是细线勾勒的悬崖