Pruning Pre-trained Language Models Without Fine-Tuning

Ting Jiang, Deqing Wang, Fuzhen Zhuang, Ruobing Xie, Feng Xia
10/12/2022
cs.CLcs.LG

Official code: kongds/SMP (5 stars, Python, last commit 2023-05-10).

Abstract

To overcome the overparameterized problem in Pre-trained Language Models (PLMs), pruning is widely used as a simple and straightforward compression method by directly removing unimportant weights. Previous first-order methods successfully compress PLMs to extremely high sparsity with little performance drop.

Show full abstract

These methods, such as movement pruning, use first-order information to prune PLMs while fine-tuning the remaining weights. In this work, we argue fine-tuning is redundant for first-order pruning, since first-order pruning is sufficient to converge PLMs to downstream tasks without fine-tuning. Under this motivation, we propose Static Model Pruning (SMP), which only uses first-order pruning to adapt PLMs to downstream tasks while achieving the target sparsity level. In addition, we also design a new masking function and training objective to further improve SMP. Extensive experiments at various sparsity levels show SMP has significant improvements over first-order and zero-order methods. Unlike previous first-order methods, SMP is also applicable to low sparsity and outperforms zero-order methods. Meanwhile, SMP is more parameter efficient than other methods due to it does not require fine-tuning.

View on arXivView PDF

Code Implementations(1)

kongds/SMPOfficial100%

Pruning Pre-trained Language Models Without Fine-Tuning

51Python, ShellMay 10, 20233 years ago

Similar Papers

Cite this paper

@article{jiang2022pruning,
  title  = {Pruning Pre-trained Language Models Without Fine-Tuning},
  author = {Ting Jiang and Deqing Wang and Fuzhen Zhuang and Ruobing Xie and Feng Xia},
  year   = {2022},
  eprint = {2210.06210},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2210.06210}
}

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

Discussion