Lune

EMNLP2021Top-tier venue

Block Pruning For Faster Transformers

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

Abstract

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.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

73 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • TinyBERT: Distilling BERT for Natural Language Understanding cites Reducing Transformer Depth on Demand with Structured Dropout
  • TinyBERT: Distilling BERT for Natural Language Understanding cites MobileBERT: a Compact Task-Agnostic BERT for Resource-Limited Devices
  • MobileBERT: a Compact Task-Agnostic BERT for Resource-Limited Devices cites TinyBERT: Distilling BERT for Natural Language Understanding
  • Structured Pruning Learns Compact and Accurate Models cites TinyBERT: Distilling BERT for Natural Language Understanding
  • Structured Pruning Learns Compact and Accurate Models cites Movement Pruning: Adaptive Sparsity by Fine-Tuning
  • Structured Pruning Learns Compact and Accurate Models cites Reducing Transformer Depth on Demand with Structured Dropout
  • Structured Pruning Learns Compact and Accurate Models cites MobileBERT: a Compact Task-Agnostic BERT for Resource-Limited Devices
  • A Fast Post-Training Pruning Framework for Transformers cites Structured Pruning Learns Compact and Accurate Models
  • A Fast Post-Training Pruning Framework for Transformers cites Movement Pruning: Adaptive Sparsity by Fine-Tuning
  • A Fast Post-Training Pruning Framework for Transformers cites Reducing Transformer Depth on Demand with Structured Dropout
  • A Fast Post-Training Pruning Framework for Transformers cites MobileBERT: a Compact Task-Agnostic BERT for Resource-Limited Devices
  • Movement Pruning: Adaptive Sparsity by Fine-Tuning cites TinyBERT: Distilling BERT for Natural Language Understanding
  • Movement Pruning: Adaptive Sparsity by Fine-Tuning cites Reducing Transformer Depth on Demand with Structured Dropout
  • Sheared LLaMA: Accelerating Language Model Pre-training via Structured Pruning cites TinyBERT: Distilling BERT for Natural Language Understanding
  • Sheared LLaMA: Accelerating Language Model Pre-training via Structured Pruning cites Structured Pruning Learns Compact and Accurate Models
  • Sheared LLaMA: Accelerating Language Model Pre-training via Structured Pruning cites Movement Pruning: Adaptive Sparsity by Fine-Tuning
  • Sheared LLaMA: Accelerating Language Model Pre-training via Structured Pruning cites MobileBERT: a Compact Task-Agnostic BERT for Resource-Limited Devices
  • DeepSpeed-MoE: Advancing Mixture-of-Experts Inference and Training to Power Next-Generation AI Scale cites MobileBERT: a Compact Task-Agnostic BERT for Resource-Limited Devices
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers73

  1. DeepSpeed-MoE: Advancing Mixture-of-Experts Inference and Training to Power Next-Generation AI ScaleSamyam Rajbhandari, Conglong Li, Zhewei Yao, Minjia Zhang et al.ICML 2022 · 523 citations
  2. MInference 1.0: Accelerating Pre-filling for Long-Context LLMs via Dynamic Sparse AttentionHuiqiang Jiang, Yucheng Li, Chengruidong Zhang, Qianhui Wu et al.NeurIPS 2024 · 479 citations
  3. Sheared LLaMA: Accelerating Language Model Pre-training via Structured PruningMengzhou Xia, Tianyu Gao, Zhiyuan Zeng, Danqi ChenICLR 2024 · 453 citations
  4. A Fast Post-Training Pruning Framework for TransformersWoosuk Kwon, Sehoon Kim, Michael W. Mahoney, Joseph Hassoun et al.NeurIPS 2022 · 247 citations
  5. Structured Pruning Learns Compact and Accurate ModelsMengzhou Xia, Zexuan Zhong, Danqi ChenACL 2022 · 236 citations

Builds on8

  1. TinyBERT: Distilling BERT for Natural Language UnderstandingXiaoqi Jiao, Yichun Yin, Lifeng Shang, Xin Jiang et al.EMNLP Findings 2020 · 1,787 citations
  2. BART: Denoising Sequence-to-Sequence Pre-training for Natural Language Generation, Translation, and ComprehensionMike Lewis, Yinhan Liu, Naman Goyal, Marjan Ghazvininejad et al.ACL 2020 · 1,224 citations
  3. Reducing Transformer Depth on Demand with Structured DropoutAngela Fan, Edouard Grave, Armand JoulinICLR 2020 · 695 citations
  4. MobileBERT: a Compact Task-Agnostic BERT for Resource-Limited DevicesZhiqing Sun, Hongkun Yu, Xiaodan Song, Renjie Liu et al.ACL 2020 · 660 citations
  5. Movement Pruning: Adaptive Sparsity by Fine-TuningVictor Sanh, Thomas Wolf, Alexander M. RushNeurIPS 2020 · 656 citations

Related papers

  1. Gradient-based Intra-attention Pruning on Pre-trained Language ModelsZiqing Yang, Yiming Cui, Xin Yao, Shijin WangACL 2023 · 2 citations
  2. Blockwise Self-Attention for Long Document UnderstandingJiezhong Qiu, Hao Ma, Omer Levy, Wen-tau Yih et al.EMNLP Findings 2020 · 165 citations
  3. EfficientBERT: Progressively Searching Multilayer Perceptron via Warm-up Knowledge DistillationChenhe Dong, Guangrun Wang, Hang Xu, Jiefeng Peng et al.EMNLP Findings 2021 · 20 citations
  4. Constraint-aware and Ranking-distilled Token Pruning for Efficient Transformer InferenceJunyan Li, Li Lyna Zhang, Jiahang Xu, Yujing Wang et al.KDD 2023 · 12 citations
  5. Efficient Transformer-based Large Scale Language Representations using Hardware-friendly Block Structured PruningBingbing Li, Zhenglun Kong, Tianyun Zhang, Ji Li et al.EMNLP Findings 2020 · 39 citations
Dusk over the sea between two cliffs drawn in fine vertical lines