A Proximal Operator for Inducing 2:4-Sparsity

Jonas M Kübler, Yu-Xiang Wang, Shoham Sabach, Navid Ansari, Matthäus Kleindessner +3 more
1/29/2025
cs.LG

No confident code implementation found for this paper.

Abstract

Recent hardware advancements in AI Accelerators and GPUs allow to efficiently compute sparse matrix multiplications, especially when 2 out of 4 consecutive weights are set to zero. However, this so-called 2:4 sparsity usually comes at a decreased accuracy of the model. We derive a regularizer that exploits the local correlation of features to find better sparsity masks in trained models. We minimize the regularizer jointly with a local squared loss by deriving the proximal operator for which we show that it has an efficient solution in the 2:4-sparse case. After optimizing the mask, we use maskedgradient updates to further minimize the local squared loss. We illustrate our method on toy problems and apply it to pruning entire large language models up to 70B parameters. On models up to 13B we improve over previous state of the art algorithms, whilst on 70B models we match their performance.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{kbler2025proximal,
  title  = {A Proximal Operator for Inducing 2:4-Sparsity},
  author = {Jonas M Kübler and Yu-Xiang Wang and Shoham Sabach and Navid Ansari and Matthäus Kleindessner and Kailash Budhathoki and Volkan Cevher and George Karypis},
  year   = {2025},
  eprint = {2501.18015},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2501.18015v1}
}

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/2501.18015.svg)](https://codeofpaper.com/paper/2501.18015)

Discussion