Rethinking Pruning Large Language Models: Benefits and Pitfalls of Reconstruction Error Minimization

Sungbin Shin, Wonpyo Park, Jaeho Lee, Namhoon Lee
6/21/2024
cs.CLcs.LG

No official code found. Best implementation: LOG-postech/rethinking-LLM-pruning (28 stars, last commit 2025-02-21). 1 more below.

Abstract

This work suggests fundamentally rethinking the current practice of pruning large language models (LLMs). The way it is done is by divide and conquer: split the model into submodels, sequentially prune them, and reconstruct predictions of the dense counterparts on small calibration data one at a time; the final model is obtained simply by putting the resulting sparse submodels together. While this approach enables pruning under memory constraints, it generates high reconstruction errors. In this work, we first present an array of reconstruction techniques that can significantly reduce this error by more than $90\%$. Unwittingly, however, we discover that minimizing reconstruction error is not always ideal and can overfit the given calibration data, resulting in rather increased language perplexity and poor performance at downstream tasks. We find out that a strategy of self-generating calibration data can mitigate this trade-off between reconstruction and generalization, suggesting new directions in the presence of both benefits and pitfalls of reconstruction for pruning LLMs.

View on arXivView PDF

Code Implementations(2)

285PythonSep 24, 20241 years ago

Code for the EMNLP 2024 paper "Rethinking Pruning Large Language Models: Benefits and Pitfalls of Reconstruction Error Minimization" compatible with Intel Gaudi2 Accelerator

20Shell, PythonJan 14, 20251 years ago

Similar Papers

Cite this paper

@article{shin2024rethinking,
  title  = {Rethinking Pruning Large Language Models: Benefits and Pitfalls of Reconstruction Error Minimization},
  author = {Sungbin Shin and Wonpyo Park and Jaeho Lee and Namhoon Lee},
  year   = {2024},
  eprint = {2406.15524},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2406.15524v2}
}

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

Discussion