Compressing BERT: Studying the Effects of Weight Pruning on Transfer Learning

By Mitchell A. Gordon, Kevin Duh, Nicholas Andrews. 2020

378 citations recorded by the source corpus.

Pre-trained universal feature extractors, such as BERT for natural language processing and VGG for computer vision, have become effective methods for improving deep learning models without requiring more labeled data. While effective, feature extractors like BERT may be prohibitively large for some deployment scenarios. We explore weight pruning for BERT and ask: how does compression during pre-training affect transfer learning? We find that pruning affects transfer learning in three broad regimes. Low levels of pruning (30-40%) do not affect pre-training loss or transfer to downstream tasks at all. Medium levels of pruning increase the pre-training loss and prevent useful pre-training information from being transferred to downstream tasks. High levels of pruning additionally prevent models from fitting downstream datasets, leading to further degradation. Finally, we observe that fine-tuning BERT on a specific task does not improve its prunability. We conclude that BERT can be pruned once during pre-training rather than separately for each task without affecting performance.

Subfields: Artificial Intelligence, Efficiency & Compression

How researchers see this paper

The researchers whose trusted networks rank it highest, strongest advocate first. Every researcher gets a different order.

In Artificial Intelligence

  1. Yonatan Belinkov
  2. Zhiyuan Liu
  3. Mohit Bansal
  4. Luke S. Zettlemoyer
  5. Minlie Huang
  6. Kurt Keutzer
  7. Percy Liang
  8. Graham Neubig

In Efficiency & Compression

  1. Kurt Keutzer
  2. A. Gholami
  3. Zi-Mei Yao
  4. Michael W. Mahoney
  5. Dan Alistarh
  6. Sehoon Kim
  7. Alexander M. Rush
  8. Minjia Zhang

Citations in the corpus