Fast and Effective Weight Update for Pruned Large Language Models

Vladimír Boža
1/1/2024
cs.CLcs.LG

Official code: fmfi-compbio/admm-pruning (30 stars, MIT, last commit 2024-07-22).

Abstract

Pruning large language models (LLMs) is a challenging task due to their enormous size. The primary difficulty is fine-tuning the model after pruning, which is needed to recover the lost performance caused by dropping weights. Recent approaches have either ignored fine-tuning entirely, focusing on efficient pruning criteria, or attempted layer-wise weight updates, preserving the behavior of each layer. However, even layer-wise weight updates can be costly for LLMs, and previous works have resorted to various approximations. In our paper, we propose a fast and effective weight update algorithm for pruned layers based on the Alternating Direction Method of Multipliers (ADMM). We further extend it with a simple gradual pruning mask selection and achieve state-of-the-art pruning performance across a wide range of LLMs. Code is available at https://github.com/fmfi-compbio/admm-pruning.

View on arXivView PDF

Code Implementations(1)

MIT
302PythonJan 1, 20242 years agoMIT

Similar Papers

Cite this paper

@article{boa2024fast,
  title  = {Fast and Effective Weight Update for Pruned Large Language Models},
  author = {Vladimír Boža},
  year   = {2024},
  eprint = {2401.02938},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2401.02938v2}
}

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

Discussion