Differentiable Subset Pruning of Transformer Heads
Not on the map. Why?
Abstract (arXiv)
Multi-head attention, a collection of several attention mechanisms that independently attend to different parts of the input, is the key ingredient in the Transformer. Recent work has shown, however, that a large proportion of the heads in a Transformer's multi-head attention mechanism can be safely pruned away without significantly harming the performance of the model; such pruning leads to models that are noticeably smaller and faster in practice. Our work introduces a new head pruning technique that we term differentiable subset pruning. Intuitively, our method learns per-head importance variables and then enforces a user-specified hard constraint on the number of unpruned heads. The importance variables are learned via stochastic gradient descent. We conduct experiments on natural language inference and machine translation; we show that differentiable subset pruning performs comparably or better than previous works while offering precise control of the sparsity level.
Key facts. Cited by 46 papers in the map (data through 7 Oct 2026). Builds on 47 of its 64 references that are in the map. First posted on arXiv 10 Aug 2021.
Builds on
47 of 64 references.
References · 47
- 2017Attention Is All You Needcited by 59,932
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2014Neural Machine Translation by Jointly Learning to Align and Translatecited by 4,530
- 2015Dropout as a Bayesian Approximation: Representing Model Uncertainty in Deep Learningcited by 4,416
- 2019XLNet: Generalized Autoregressive Pretraining for Language Understandingcited by 2,801
- 2016Categorical Reparameterization with Gumbel-Softmaxcited by 2,708
- 2017A Broad-Coverage Challenge Corpus for Sentence Understanding through Inferencecited by 2,665
- 2015Deep Compression: Compressing Deep Neural Networks with Pruning, Trained Quantization and Huffman Codingcited by 2,291
- 2018The Lottery Ticket Hypothesis: Finding Sparse, Trainable Neural Networkscited by 2,250
- 2013Estimating or Propagating Gradients Through Stochastic Neurons for Conditional Computationcited by 2,031
- 2015Learning both Weights and Connections for Efficient Neural Networkscited by 1,998
35 more
- 2019fairseq: A Fast, Extensible Toolkit for Sequence Modelingcited by 1,486
- 2016The Concrete Distribution: A Continuous Relaxation of Discrete Random Variablescited by 1,135
- 2016Pruning Filters for Efficient ConvNetscited by 1,129
- 2019What Does BERT Look At? An Analysis of BERT's Attentioncited by 994
- 2019Analyzing Multi-Head Self-Attention: Specialized Heads Do the Heavy Lifting, the Rest Can Be Prunedcited by 844
- 2019Are Sixteen Heads Really Better than One?cited by 803
- 2017Channel Pruning for Accelerating Very Deep Neural Networkscited by 697
- 2017Learning Efficient Convolutional Networks through Network Slimmingcited by 673
- 2017To prune, or not to prune: exploring the efficacy of pruning for model compressioncited by 596
- 2017Learning Sparse Neural Networks through L0 Regularizationcited by 571
- 2016Learning Structured Sparsity in Deep Neural Networkscited by 538
- 2015Variational Dropout and the Local Reparameterization Trickcited by 489
- 2017ThiNet: A Filter Level Pruning Method for Deep Neural Network Compressioncited by 438
- 2019Reducing Transformer Depth on Demand with Structured Dropoutcited by 434
- 2020Movement Pruning: Adaptive Sparsity by Fine-Tuningcited by 398
- 2019What BERT is not: Lessons from a new suite of psycholinguistic diagnostics for language modelscited by 317
- 2016EIE: Efficient Inference Engine on Compressed Deep Neural Networkcited by 291
- 2017Variational Dropout Sparsifies Deep Neural Networkscited by 265
- 2016Dynamic Network Surgery for Efficient DNNscited by 233
- 2019Stochastic Beams and Where to Find Them: The Gumbel-Top-k Trick for Sampling Sequences Without Replacementcited by 205
- 2019Assessing BERT's Syntactic Abilitiescited by 191
- 2020Compressing BERT: Studying the Effects of Weight Pruning on Transfer Learningcited by 184
- 2017Data-Driven Sparse Structure Selection for Deep Neural Networkscited by 181
- 2019Facebook FAIR's WMT19 News Translation Task Submissioncited by 179
- 2014A* Samplingcited by 150
- 2020On the Effect of Dropping Layers of Pre-trained Transformer Modelscited by 118
- 2020When BERT Plays the Lottery, All Tickets Are Winningcited by 114
- 2018Neural Nearest Neighbors Networkscited by 98
- 2018Faster gaze prediction with dense networks and Fisher pruningcited by 92
- 2017REBAR: Low-variance, unbiased gradient estimates for discrete latent variable modelscited by 78
- 2019Reparameterizable Subset Sampling via Continuous Relaxationscited by 69
- 2019Head-Driven Phrase Structure Grammar Parsing on Penn Treebankcited by 43
- 2019Learning Sparse Networks Using Targeted Dropoutcited by 40
- 2020Successfully Applying the Stabilized Lottery Ticket Hypothesis to the Transformer Architecturecited by 23
- 2017Probabilistic Typology: Deep Generative Models of Vowel Inventoriescited by 8
Built on by
Citing papers per year: 2021: 1; 2022: 7; 2023: 15; 2024: 12; 2025: 7; 2026: 4.
46 papers.
Sort:
By area:
- 2023Continual Pre-training of Language Modelscited by 194
- 2022Structured Pruning Learns Compact and Accurate Modelscited by 167
- 2024Transformers are Multi-State RNNscited by 120
- 2023X-Pruner: eXplainable Pruning for Vision Transformerscited by 66
- 2022Rethinking the Role of Scale for In-Context Learning: An Interpretability-based Case Study at 66 Billion Scalecited by 64
- 2024Model Compression and Efficient Inference for Large Language Models: A Surveycited by 62
- 2023Discrete Prompt Compression with Reinforcement Learningcited by 42
- 2023Transformers in Speech Processing: A Surveycited by 38
- 2024Activation Scaling for Steering and Interpreting Language Modelscited by 33
- 2023Neural Architecture Search for Parameter-Efficient Fine-tuning of Large Pre-trained Language Modelscited by 25
- 2021Pruning Self-attentions into Convolutional Layers in Single Pathcited by 24
- 2023Faster Causal Attention Over Large Sequences Through Sparse Flash Attentioncited by 24
34 more
- 2023Adapting a Language Model While Preserving its General Knowledgecited by 23
- 2024Controllable Context Sensitivity and the Knob Behind Itcited by 22
- 2022How Much Does Attention Actually Attend? Questioning the Importance of Attention in Pretrained Transformerscited by 20
- 2022Mokey: Enabling Narrow Fixed-Point Inference for Out-of-the-Box Floating-Point Transformer Modelscited by 16
- 2025Causal Head Gating: A Framework for Interpreting Roles of Attention Heads in Transformerscited by 16
- 2023Interpreting and Exploiting Functional Specialization in Multi-Head Attention under Multi-task Learningcited by 9
- 2023Tailoring Instructions to Student's Learning Levels Boosts Knowledge Distillationcited by 8
- 2025Identifying and Evaluating Inactive Heads in Pretrained LLMscited by 8
- 2022Probing via Promptingcited by 7
- 2023Sub-network Discovery and Soft-masking for Continual Learning of Mixed Taskscited by 7
- 2025Joint Localization and Activation Editing for Low-Resource Fine-Tuningcited by 7
- 2023PreQuant: A Task-agnostic Quantization Approach for Pre-trained Language Modelscited by 5
- 2024Sparsity-Accelerated Training for Large Language Modelscited by 5
- 2022Auto-Compressing Subset Pruning for Semantic Image Segmentationcited by 4
- 2023Token Sparsification for Faster Medical Image Segmentationcited by 4
- 2023Just CHOP: Embarrassingly Simple LLM Compressioncited by 4
- 2023Modular Transformers: Compressing Transformers into Modularized Layers for Flexible Efficient Inferencecited by 4
- 2024From PEFT to DEFT: Parameter Efficient Finetuning for Reducing Activation Density in Transformerscited by 4
- 2024Automatic Channel Pruning for Multi-Head Attentioncited by 3
- 2022Delta Keyword Transformer: Bringing Transformers to the Edge through Dynamically Pruned Multi-Head Self-Attentioncited by 2
- 2025Efficient Token Compression for Vision Transformer with Spatial Information Preservedcited by 2
- 2023Finding the Pillars of Strength for Multi-Head Attentioncited by 1
- 2024Tiny Reinforcement Learning for Quadruped Locomotion using Decision Transformerscited by 1
- 2024NeuroPrune: A Neuro-inspired Topological Sparse Training Algorithm for Large Language Modelscited by 1
- 2025SHRP: Specialized Head Routing and Pruning for Efficient Encoder Compressioncited by 1
- 2026Greedy-Gnorm: A Gradient Matrix Norm-Based Alternative to Attention Entropy for Head Pruningcited by 1
- 2026Accelerating Vision Foundation Models with Drop-in Depthwise Convolutioncited by 1
- 2024Speeding Up Image Classifiers with Little Companionscited by 0
- 2024(PASS) Visual Prompt Locates Good Structure Sparsity through a Recurrent HyperNetworkcited by 0
- 2024Identifying Sub-networks in Neural Networks via Functionally Similar Representationscited by 0
- 2025Understanding Differential Transformer Unchains Pretrained Self-Attentionscited by 0
- 2025Assortment of Attention Heads: Accelerating Federated PEFT with Head Pruning and Strategic Client Selectioncited by 0
- 2026Complementary Attention Head Pruning for Efficient Transformerscited by 0
- 2026Interpretability-Guided Soft Pruning of Attention Heads in Vision Transformerscited by 0
- 2026Interpretability-Guided Soft Pruning of Attention Heads in Vision Transformers31 Jul 2026
- 2026Complementary Attention Head Pruning for Efficient Transformers17 Jun 2026
- 2026Accelerating Vision Foundation Models with Drop-in Depthwise Convolution21 May 2026
- 2026Greedy-Gnorm: A Gradient Matrix Norm-Based Alternative to Attention Entropy for Head Pruning4 Feb 2026
- 2025SHRP: Specialized Head Routing and Pruning for Efficient Encoder Compression3 Dec 2025
- 2025Assortment of Attention Heads: Accelerating Federated PEFT with Head Pruning and Strategic Client Selection31 May 2025
- 2025Understanding Differential Transformer Unchains Pretrained Self-Attentions22 May 2025
- 2025Causal Head Gating: A Framework for Interpreting Roles of Attention Heads in Transformers19 May 2025
- 2025Identifying and Evaluating Inactive Heads in Pretrained LLMs4 Apr 2025
- 2025Efficient Token Compression for Vision Transformer with Spatial Information Preserved30 Mar 2025
- 2025Joint Localization and Activation Editing for Low-Resource Fine-Tuning3 Feb 2025
- 2024Controllable Context Sensitivity and the Knob Behind It11 Nov 2024
34 more
- 2024Identifying Sub-networks in Neural Networks via Functionally Similar Representations21 Oct 2024
- 2024Activation Scaling for Steering and Interpreting Language Models7 Oct 2024
- 2024(PASS) Visual Prompt Locates Good Structure Sparsity through a Recurrent HyperNetwork24 Jul 2024
- 2024Speeding Up Image Classifiers with Little Companions24 Jun 2024
- 2024Sparsity-Accelerated Training for Large Language Models3 Jun 2024
- 2024Automatic Channel Pruning for Multi-Head Attention31 May 2024
- 2024NeuroPrune: A Neuro-inspired Topological Sparse Training Algorithm for Large Language Models28 Feb 2024
- 2024Tiny Reinforcement Learning for Quadruped Locomotion using Decision Transformers20 Feb 2024
- 2024Model Compression and Efficient Inference for Large Language Models: A Survey15 Feb 2024
- 2024From PEFT to DEFT: Parameter Efficient Finetuning for Reducing Activation Density in Transformers2 Feb 2024
- 2024Transformers are Multi-State RNNs11 Jan 2024
- 2023Interpreting and Exploiting Functional Specialization in Multi-Head Attention under Multi-task Learning16 Oct 2023
- 2023Sub-network Discovery and Soft-masking for Continual Learning of Mixed Tasks13 Oct 2023
- 2023Discrete Prompt Compression with Reinforcement Learning17 Aug 2023
- 2023Modular Transformers: Compressing Transformers into Modularized Layers for Flexible Efficient Inference4 Jun 2023
- 2023Faster Causal Attention Over Large Sequences Through Sparse Flash Attention1 Jun 2023
- 2023PreQuant: A Task-agnostic Quantization Approach for Pre-trained Language Models30 May 2023
- 2023Neural Architecture Search for Parameter-Efficient Fine-tuning of Large Pre-trained Language Models26 May 2023
- 2023Just CHOP: Embarrassingly Simple LLM Compression24 May 2023
- 2023Finding the Pillars of Strength for Multi-Head Attention22 May 2023
- 2023Tailoring Instructions to Student's Learning Levels Boosts Knowledge Distillation16 May 2023
- 2023Transformers in Speech Processing: A Survey21 Mar 2023
- 2023Token Sparsification for Faster Medical Image Segmentation11 Mar 2023
- 2023X-Pruner: eXplainable Pruning for Vision Transformers8 Mar 2023
- 2023Continual Pre-training of Language Models7 Feb 2023
- 2023Adapting a Language Model While Preserving its General Knowledge21 Jan 2023
- 2022Rethinking the Role of Scale for In-Context Learning: An Interpretability-based Case Study at 66 Billion Scale18 Dec 2022
- 2022How Much Does Attention Actually Attend? Questioning the Importance of Attention in Pretrained Transformers7 Nov 2022
- 2022Probing via Prompting4 Jul 2022
- 2022Structured Pruning Learns Compact and Accurate Models1 Apr 2022
- 2022Mokey: Enabling Narrow Fixed-Point Inference for Out-of-the-Box Floating-Point Transformer Models23 Mar 2022
- 2022Delta Keyword Transformer: Bringing Transformers to the Edge through Dynamically Pruned Multi-Head Self-Attention20 Mar 2022
- 2022Auto-Compressing Subset Pruning for Semantic Image Segmentation26 Jan 2022
- 2021Pruning Self-attentions into Convolutional Layers in Single Path23 Nov 2021
- 2024Transformers are Multi-State RNNscited by 120
- 2023Discrete Prompt Compression with Reinforcement Learningcited by 42
- 2023Token Sparsification for Faster Medical Image Segmentationcited by 4
- 2025Efficient Token Compression for Vision Transformer with Spatial Information Preservedcited by 2
- 2025Efficient Token Compression for Vision Transformer with Spatial Information Preserved30 Mar 2025
- 2024Transformers are Multi-State RNNs11 Jan 2024
- 2023Discrete Prompt Compression with Reinforcement Learning17 Aug 2023
- 2023Token Sparsification for Faster Medical Image Segmentation11 Mar 2023
- 2023Continual Pre-training of Language Modelscited by 194
- 2022Structured Pruning Learns Compact and Accurate Modelscited by 167
- 2023X-Pruner: eXplainable Pruning for Vision Transformerscited by 66
- 2024Model Compression and Efficient Inference for Large Language Models: A Surveycited by 62
- 2023Transformers in Speech Processing: A Surveycited by 38
- 2024Activation Scaling for Steering and Interpreting Language Modelscited by 33
- 2023Neural Architecture Search for Parameter-Efficient Fine-tuning of Large Pre-trained Language Modelscited by 25
- 2021Pruning Self-attentions into Convolutional Layers in Single Pathcited by 24
- 2023Faster Causal Attention Over Large Sequences Through Sparse Flash Attentioncited by 24
- 2023Adapting a Language Model While Preserving its General Knowledgecited by 23
- 2024Controllable Context Sensitivity and the Knob Behind Itcited by 22
- 2022How Much Does Attention Actually Attend? Questioning the Importance of Attention in Pretrained Transformerscited by 20
12 most cited of 39 All 39 (JSON)
- 2026Interpretability-Guided Soft Pruning of Attention Heads in Vision Transformers31 Jul 2026
- 2026Complementary Attention Head Pruning for Efficient Transformers17 Jun 2026
- 2026Accelerating Vision Foundation Models with Drop-in Depthwise Convolution21 May 2026
- 2026Greedy-Gnorm: A Gradient Matrix Norm-Based Alternative to Attention Entropy for Head Pruning4 Feb 2026
- 2025SHRP: Specialized Head Routing and Pruning for Efficient Encoder Compression3 Dec 2025
- 2025Assortment of Attention Heads: Accelerating Federated PEFT with Head Pruning and Strategic Client Selection31 May 2025
- 2025Understanding Differential Transformer Unchains Pretrained Self-Attentions22 May 2025
- 2025Causal Head Gating: A Framework for Interpreting Roles of Attention Heads in Transformers19 May 2025
- 2025Identifying and Evaluating Inactive Heads in Pretrained LLMs4 Apr 2025
- 2025Joint Localization and Activation Editing for Low-Resource Fine-Tuning3 Feb 2025
- 2024Controllable Context Sensitivity and the Knob Behind It11 Nov 2024
- 2024Identifying Sub-networks in Neural Networks via Functionally Similar Representations21 Oct 2024
12 newest of 39 All 39 (JSON)