Block Pruning For Faster Transformers

By François Lagunas, Ella Charlaix, Victor Sanh, Alexander M. Rush. 2021

267 citations recorded by the source corpus.

Pre-training has improved model accuracy for both classification and generation tasks at the cost of introducing much larger and slower models. Pruning methods have proven to be an effective way of reducing model size, whereas distillation methods are proven for speeding up inference. We introduce a block pruning approach targeting both small and fast models. Our approach extends structured methods by considering blocks of any size and integrates this structure into the movement pruning paradigm for fine-tuning. We find that this approach learns to prune out full components of the underlying model, such as attention heads. Experiments consider classification and generation tasks, yielding among other results a pruned model that is a 2.4x faster, 74% smaller BERT on SQuAD v1, with a 1% drop on F1, competitive both with distilled models in speed and pruned models in size.

Subfields: Artificial Intelligence, Model Architectures, 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. Yi Tay
  2. Mostafa Dehghani
  3. Donald Metzler
  4. Christopher R'e
  5. Kurt Keutzer
  6. Quoc V. Le
  7. Mohit Bansal
  8. Dara Bahri

In Model Architectures

  1. Christopher R'e
  2. Tri Dao
  3. Yi Tay
  4. Mostafa Dehghani
  5. Donald Metzler
  6. Atri Rudra
  7. Dara Bahri
  8. Beidi Chen

In Efficiency & Compression

  1. A. Gholami
  2. Kurt Keutzer
  3. Tri Dao
  4. Sehoon Kim
  5. Sheng Shen
  6. Christopher R'e
  7. Yi Tay
  8. Atri Rudra

Citations in the corpus