HASSLE-free: A unified Framework for Sparse plus Low-Rank Matrix Decomposition for LLMs

Mehdi Makni, Kayhan Behdin, Zheng Xu, Natalia Ponomareva, Rahul Mazumder
2/2/2025
stat.MLcs.LG

No official code found. Best implementation: mazumder-lab/HASSLE-free (4 stars, MIT, last commit 2025-03-02).

Abstract

The impressive capabilities of large foundation models come at a cost of substantial computing resources to serve them. Compressing these pre-trained models is of practical interest as it can democratize deploying them to the machine learning community at large by lowering the costs associated with inference. A promising compression scheme is to decompose foundation models' dense weights into a sum of sparse plus low-rank matrices. In this paper, we design a unified framework coined HASSLE-free for (semi-structured) sparse plus low-rank matrix decomposition of foundation models. Our framework introduces the local layer-wise reconstruction error objective for this decomposition, we demonstrate that prior work solves a relaxation of this optimization problem; and we provide efficient and scalable methods to minimize the exact introduced optimization problem. HASSLE-free substantially outperforms state-of-the-art methods in terms of the introduced objective and a wide range of LLM evaluation benchmarks. For the Llama3-8B model with a 2:4 sparsity component plus a 64-rank component decomposition, a compression scheme for which recent work shows important inference acceleration on GPUs, HASSLE-free reduces the test perplexity by 12% for the WikiText-2 dataset and reduces the gap (compared to the dense model) of the average of eight popular zero-shot tasks by 15% compared to existing methods.

View on arXivView PDF

Code Implementations(1)

MIT

A unified Framework for Sparse plus Low-Rank Matrix Decomposition for LLMs

40Shell, PythonMar 2, 20251 years agoMIT

Similar Papers

Cite this paper

@article{makni2025hasslefree,
  title  = {HASSLE-free: A unified Framework for Sparse plus Low-Rank Matrix Decomposition for LLMs},
  author = {Mehdi Makni and Kayhan Behdin and Zheng Xu and Natalia Ponomareva and Rahul Mazumder},
  year   = {2025},
  eprint = {2502.00899},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2502.00899v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2502.00899.svg)](https://codeofpaper.com/paper/2502.00899)

Discussion