What Matters In The Structured Pruning of Generative Language Models?

Michael Santacroce, Zixin Wen, Yelong Shen, Yuanzhi Li
2/7/2023
cs.CLcs.LG

No official code found. Best implementation: huggingface/nn_pruning (408 stars, Apache-2.0, last commit 2022-06-21).

Abstract

Auto-regressive large language models such as GPT-3 require enormous computational resources to use. Traditionally, structured pruning methods are employed to reduce resource usage. However, their application to and efficacy for generative language models is heavily under-explored. In this paper we conduct an comprehensive evaluation of common structured pruning methods, including magnitude, random, and movement pruning on the feed-forward layers in GPT-type models. Unexpectedly, random pruning results in performance that is comparable to the best established methods, across multiple natural language generation tasks. To understand these results, we provide a framework for measuring neuron-level redundancy of models pruned by different methods, and discover that established structured pruning methods do not take into account the distinctiveness of neurons, leaving behind excess redundancies. In view of this, we introduce Globally Unique Movement (GUM) to improve the uniqueness of neurons in pruned models. We then discuss the effects of our techniques on different redundancy metrics to explain the improved performance.

View on arXivView PDF

Code Implementations(1)

Apache-2.0

Prune a model while finetuning or training.

40861HTML, PythonDec 22, 20204 years agoApache-2.0

Similar Papers

Cite this paper

@article{santacroce2023what,
  title  = {What Matters In The Structured Pruning of Generative Language Models?},
  author = {Michael Santacroce and Zixin Wen and Yelong Shen and Yuanzhi Li},
  year   = {2023},
  eprint = {2302.03773},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2302.03773v1}
}

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

Discussion