Movement Pruning: Adaptive Sparsity by Fine-Tuning

Victor Sanh, Thomas Wolf, Alexander M. Rush
5/15/2020
687 citations
cs.CLcs.LG
quantization-pruning

Official code: huggingface/transformers (169,409 stars, Python, Apache-2.0, PyTorch, last commit 2026-04-30).

Abstract

Magnitude pruning is a widely used strategy for reducing model size in pure supervised learning; however, it is less effective in the transfer learning regime that has become standard for state-of-the-art natural language processing applications. We propose the use of movement pruning, a simple, deterministic first-order weight pruning method that is more adaptive to pretrained model fine-tuning.

Show full abstract

We give mathematical foundations to the method and compare it to existing zeroth- and first-order pruning methods. Experiments show that when pruning large pretrained language models, movement pruning shows significant improvements in high-sparsity regimes. When combined with distillation, the approach achieves minimal accuracy loss with down to only 3% of the model parameters.

View on arXivView PDF

Code Implementations(1)

PyTorchApache-2.0

🤗 Transformers: the model-definition framework for state-of-the-art machine learning models in text, vision, audio, and multimodal models, for both inference and training.

169,40935,271Python, DockerfileOct 29, 20187 months agoApache-2.0
audiodeep-learningdeepseekgemmaglm+14 more

Similar Papers

Cite this paper

@article{sanh2020movement,
  title  = {Movement Pruning: Adaptive Sparsity by Fine-Tuning},
  author = {Victor Sanh and Thomas Wolf and Alexander M. Rush},
  year   = {2020},
  eprint = {2005.07683},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2005.07683}
}

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

Discussion