Structured Pruning of a BERT-based Question Answering Model
Not on the map. Why?
Abstract (arXiv)
The recent trend in industry-setting Natural Language Processing (NLP) research has been to operate large %scale pretrained language models like BERT under strict computational limits. While most model compression work has focused on "distilling" a general-purpose language representation using expensive pretraining distillation, less attention has been paid to creating smaller task-specific language representations which, arguably, are more useful in an industry setting. In this paper, we investigate compressing BERT- and RoBERTa-based question answering systems by structured pruning of parameters from the underlying transformer model. We find that an inexpensive combination of task-specific structured pruning and task-specific distillation, without the expense of pretraining distillation, yields highly-performing models across a range of speed/accuracy tradeoff operating points. We start from existing full-size models trained for SQuAD 2.0 or Natural Questions and introduce gates that allow selected parts of transformers to be individually eliminated. Specifically, we investigate (1) structured pruning to reduce the number of parameters in each transformer layer, (2) applicability to both BERT- and RoBERTa-based models, (3) applicability to both SQuAD 2.0 and Natural Questions, and (4) combining structured pruning with distillation. We achieve a near-doubling of inference speed with less than a 0.5 F1-point loss in short answer accuracy on Natural Questions.
Key facts. Cited by 16 papers in the map (data through 7 Oct 2026). First posted on arXiv 14 Oct 2019.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2021: 8; 2022: 6; 2023: 0; 2024: 2.
16 papers.
Sort:
- 2021NAS-BERT: Task-Agnostic and Adaptive-Size BERT Compression with Neural Architecture Searchcited by 55
- 2021AutoFreeze: Automatically Freezing Model Blocks to Accelerate Fine-tuningcited by 48
- 2021Layer-wise Model Pruning based on Mutual Informationcited by 19
- 2021Causal Distillation for Language Modelscited by 19
- 2024OSSCAR: One-Shot Structured Pruning in Vision and Language Models with Combinatorial Optimizationcited by 17
- 2021KDLSQ-BERT: A Quantized Bert Combining Knowledge Distillation with Learned Step Size Quantizationcited by 14
- 2021You Only Compress Once: Towards Effective and Elastic BERT Compression via Exploit-Explore Stochastic Nature Gradientcited by 14
- 2022Pyramid-BERT: Reducing Complexity via Successive Core-set based Token Selectioncited by 13
- 2022MKQ-BERT: Quantized BERT with 4-bits Weights and Activationscited by 10
- 2022TextPruner: A Model Pruning Toolkit for Pre-Trained Language Modelscited by 10
- 2022Gradient-based Intra-attention Pruning on Pre-trained Language Modelscited by 9
- 2021DoT: An efficient Double Transformer for NLP tasks with tablescited by 8
4 more
- 2022Interactive Question Answering Systems: Literature Reviewcited by 7
- 2021On the Prunability of Attention Heads in Multilingual BERTcited by 4
- 2022Delta Keyword Transformer: Bringing Transformers to the Edge through Dynamically Pruned Multi-Head Self-Attentioncited by 2
- 2024What to Do When Your Discrete Optimization Is the Size of a Neural Network?cited by 0
- 2024OSSCAR: One-Shot Structured Pruning in Vision and Language Models with Combinatorial Optimization2 Mar 2024
- 2024What to Do When Your Discrete Optimization Is the Size of a Neural Network?15 Feb 2024
- 2022Gradient-based Intra-attention Pruning on Pre-trained Language Models15 Dec 2022
- 2022Interactive Question Answering Systems: Literature Review4 Sep 2022
- 2022TextPruner: A Model Pruning Toolkit for Pre-Trained Language Models30 Mar 2022
- 2022Pyramid-BERT: Reducing Complexity via Successive Core-set based Token Selection27 Mar 2022
- 2022MKQ-BERT: Quantized BERT with 4-bits Weights and Activations25 Mar 2022
- 2022Delta Keyword Transformer: Bringing Transformers to the Edge through Dynamically Pruned Multi-Head Self-Attention20 Mar 2022
- 2021Causal Distillation for Language Models5 Dec 2021
- 2021On the Prunability of Attention Heads in Multilingual BERT26 Sep 2021
- 2021Layer-wise Model Pruning based on Mutual Information28 Aug 2021
- 2021You Only Compress Once: Towards Effective and Elastic BERT Compression via Exploit-Explore Stochastic Nature Gradient4 Jun 2021
4 more
- 2021DoT: An efficient Double Transformer for NLP tasks with tables1 Jun 2021
- 2021NAS-BERT: Task-Agnostic and Adaptive-Size BERT Compression with Neural Architecture Search30 May 2021
- 2021AutoFreeze: Automatically Freezing Model Blocks to Accelerate Fine-tuning2 Feb 2021
- 2021KDLSQ-BERT: A Quantized Bert Combining Knowledge Distillation with Learned Step Size Quantization15 Jan 2021
- 2021NAS-BERT: Task-Agnostic and Adaptive-Size BERT Compression with Neural Architecture Searchcited by 55
- 2021AutoFreeze: Automatically Freezing Model Blocks to Accelerate Fine-tuningcited by 48
- 2021Layer-wise Model Pruning based on Mutual Informationcited by 19
- 2021Causal Distillation for Language Modelscited by 19
- 2024OSSCAR: One-Shot Structured Pruning in Vision and Language Models with Combinatorial Optimizationcited by 17
- 2021KDLSQ-BERT: A Quantized Bert Combining Knowledge Distillation with Learned Step Size Quantizationcited by 14
- 2021You Only Compress Once: Towards Effective and Elastic BERT Compression via Exploit-Explore Stochastic Nature Gradientcited by 14
- 2022Pyramid-BERT: Reducing Complexity via Successive Core-set based Token Selectioncited by 13
- 2022MKQ-BERT: Quantized BERT with 4-bits Weights and Activationscited by 10
- 2022TextPruner: A Model Pruning Toolkit for Pre-Trained Language Modelscited by 10
- 2022Gradient-based Intra-attention Pruning on Pre-trained Language Modelscited by 9
- 2021DoT: An efficient Double Transformer for NLP tasks with tablescited by 8
12 most cited of 16 All 16 (JSON)
- 2024OSSCAR: One-Shot Structured Pruning in Vision and Language Models with Combinatorial Optimization2 Mar 2024
- 2024What to Do When Your Discrete Optimization Is the Size of a Neural Network?15 Feb 2024
- 2022Gradient-based Intra-attention Pruning on Pre-trained Language Models15 Dec 2022
- 2022Interactive Question Answering Systems: Literature Review4 Sep 2022
- 2022TextPruner: A Model Pruning Toolkit for Pre-Trained Language Models30 Mar 2022
- 2022Pyramid-BERT: Reducing Complexity via Successive Core-set based Token Selection27 Mar 2022
- 2022MKQ-BERT: Quantized BERT with 4-bits Weights and Activations25 Mar 2022
- 2022Delta Keyword Transformer: Bringing Transformers to the Edge through Dynamically Pruned Multi-Head Self-Attention20 Mar 2022
- 2021Causal Distillation for Language Models5 Dec 2021
- 2021On the Prunability of Attention Heads in Multilingual BERT26 Sep 2021
- 2021Layer-wise Model Pruning based on Mutual Information28 Aug 2021
- 2021You Only Compress Once: Towards Effective and Elastic BERT Compression via Exploit-Explore Stochastic Nature Gradient4 Jun 2021
12 newest of 16 All 16 (JSON)