Analyzing Multi-Head Self-Attention: Specialized Heads Do the Heavy Lifting, the Rest Can Be Pruned
Open accessThe DOI matches its Crossref record; 34 of the 38 references it cites were found in a registry or an index.
Abstract
Multi-head self-attention is a key component of the Transformer, a state-of-the-art architecture for neural machine translation.In this work we evaluate the contribution made by individual attention heads in the encoder to the overall performance of the model and analyze the roles played by them.We find that the most important and confident heads play consistent and often linguistically-interpretable roles.When pruning heads using a method based on stochastic gates and a differentiable relaxation of the L 0 penalty, we observe that specialized heads are last to be pruned.Our novel pruning method removes the vast majority of heads without seriously affecting performance.For example, on the English-Russian WMT dataset, pruning 38 out of 48 encoder heads results in a drop of only 0.15 BLEU. 1
Overview
The claims and statistics of this paper haven’t been checked yet.
Free: it reads the open-access text and checks the first 5 claims that cite a source we can check. Create a free account to check every claim.
Integrity signals
Registry
Cites
Statistics
Figures










Verification
Claims the paper makes
The claims and statistics of this paper haven’t been checked yet.
Free: it reads the open-access text and checks the first 5 claims that cite a source we can check. Create a free account to check every claim.
Claims other papers make about this one
Each is checked against this paper’s own text: does it say what the citing paper says it does?
In the citing paper
“The authors then develop a gating mechanism to prune half of all the heads with less than 0.25 BLEU loss.”
From A Survey of Techniques for Optimizing Transformer Inference (2023) · cites this paper as [92]
In the citing paper
“Voita et al. [92] first analyze the intrinsic properties and determine each head's importance to conclude that specific heads take specific roles.”
From A Survey of Techniques for Optimizing Transformer Inference (2023) · cites this paper as [92]
Self-check
Percentages, sums and reported differences re-computed from the paper’s own numbers.
The self-check needs the paper’s full text.
Citations
Cites
Vaswani, A., Shazeer, N., Parmar, N., Uszkoreit, J., Jones, L., Gomez, A. N., Kaiser, L., & Polosukhin, I. (2017) · arXiv · doi:10.48550/arxiv.1706.03762 · Cited by 120,404 · cited 8×
“We use regularization as described in (Vaswani et al., 2017).”
MethodInfluentialAdam: A Method for Stochastic Optimization
Kingma, D. P., & Ba, J. (2014) · arXiv · doi:10.48550/arxiv.1412.6980 · Cited by 98,946 · cited 1×
“We use the Adam optimizer (Kingma and Ba, 2015) with β 1 = 0 .”
MethodExploiting Generative AI to Scale up Intelligent Tutoring Systems
Jakubův, J., Chvalovský, K., Goertzel, Z., Kaliszyk, C., Olšák, M., Piotrowski, B., Schulz, S., Suda, M., & Urban, J. (2023) · DROPS (Schloss Dagstuhl – Leibniz Center for Informatics) · doi:10.4230/lipics.itp.2023.19 · Cited by 76,658
Auto-Encoding Variational Bayes
Kingma, D. P., & Welling, M. (2013) · arXiv · doi:10.48550/arxiv.1312.6114 · Cited by 20,067 · cited 1×
“The objective is easy to optimize: the reparameterization trick (Kingma and Welling, 2014; Rezende et al., 2014) can be used to backpropagate through the sampling process for each g i , whereas the regularizer and its gradients are available in the closed form.”
The Stanford CoreNLP Natural Language Processing Toolkit
Manning, C., Surdeanu, M., Bauer, J., Finkel, J., Bethard, S., & McClosky, D. (2014) · Proceedings of 52nd Annual Meeting of the Association for Computational Linguistics: System Demonstrations · doi:10.3115/v1/p14-5010 · Cited by 7,037 · cited 2×
“We evaluate to what extent each head in the Transformer’s encoder accounts for a specific dependency relation by comparing its attention weights to a predicted dependency structure generated using CoreNLP (Manning et al., 2014) on a large number of held-out sentences.”
MethodOn Pixel-Wise Explanations for Non-Linear Classifier Decisions by Layer-Wise Relevance Propagation
Bach, S., Binder, A., Montavon, G., Klauschen, F., Müller, K.-R., & Samek, W. (2015) · PLOS ONE · doi:10.1371/journal.pone.0130140 · Cited by 4,524 · cited 1×
“Layer-wise relevance propagation (LRP) was originally designed to compute the contributions of single pixels to predictions of image classi-fiers (Bach et al., 2015).”
Categorical Reparameterization with Gumbel-Softmax
Jang, E., Gu, S., & Poole, B. (2016) · arXiv · doi:10.48550/arxiv.1611.01144 · Cited by 3,616 · cited 2×
“Intuitively, the Hard Concrete distribution is obtained by stretching the binary version of the Concrete (aka Gumbel softmax) distribution (Maddison et al., 2017; Jang et al., 2017) from the original support of (0, 1) to (− , 1 + ) and then collapsing the probability mass assigned to (− , 1] and [1, 1 + ) to single po…”
Stochastic Backpropagation and Approximate Inference in Deep Generative Models
Rezende, D. J., Mohamed, S., & Wierstra, D. (2014) · arXiv (Cornell University) · doi:10.48550/arxiv.1401.4082 · Cited by 2,405
The Concrete Distribution: A Continuous Relaxation of Discrete Random Variables
Maddison, C. J., Mnih, A., & Teh, Y. W. (2016) · arXiv (Cornell University) · doi:10.48550/arxiv.1611.00712 · Cited by 1,359 · cited 2×
“Intuitively, the Hard Concrete distribution is obtained by stretching the binary version of the Concrete (aka Gumbel softmax) distribution (Maddison et al., 2017; Jang et al., 2017) from the original support of (0 , 1) to ( − (cid:15), 1 + (cid:15) ) and then collapsing the probability mass…”
MethodTo prune, or not to prune: exploring the efficacy of pruning for model compression
Zhu, M., & Gupta, S. (2017) · arXiv · doi:10.48550/arxiv.1710.01878 · Cited by 805 · cited 1×
“This agrees with the observations made in works on model compression: sparse architectures learned through pruning cannot be trained from scratch to the same test set performance as a model trained with joint sparsification and optimization (Zhu and Gupta, 2017; Gale et al., 2019).”
Method
Research works printed but not linked: 3
- Hamidreza Ghader and Christof Monz. 2017. What does attention in neural machine translation pay at- tention to? In Proceedings of the Eighth Interna- tional Joint Conference on Natural Language Pro- cessing (Volume 1: Long Papers), pages 30-39. Asian Federation of Natural Language Processing.
- Rico Sennrich. 2017. How Grammatical is Character- level Neural Machine Translation? Assessing MT Quality with Contrastive Translation Pairs. In Pro- ceedings of the 15th Conference of the European Chapter of the Association for Computational Lin- guistics: Volume 2, Short Papers, pages 376-382, Valencia, Spain.
- Rico Sennrich, Barry Haddow, and Alexandra Birch. 2016. Neural machine translation of rare words with subword units. In Proceedings of the 54th An- nual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 1715- 1725, Berlin, Germany. Association for Computa- tional Linguistics. · DOI · Paper page
Cited by
Items 201–300 of 1,017
Improving Ponzi Scheme Contract Detection Using Multi-Channel TextCNN and Transformer
Chen, Y., Dai, H., Yu, X., Hu, W., Xie, Z., & Tan, C. (2021) · Sensors · doi:10.3390/s21196417 · Cited by 61
“After the concatenating from all heads and the linear transformation with W o ∈ R J vd × d model , we can obtain the output of the multi-head attention [47,57].”
MethodViT-CX: Causal Explanation of Vision Transformers
Xie, W., Li, X., Cao, C. C., & Zhang, N. L. (2023) · International Joint Conference on Artificial Intelligence · doi:10.24963/ijcai.2023/174 · Cited by 72
Classification of Plant Leaf Disease Recognition Based on Self-Supervised Learning
Wang, Y., Yin, Y., Li, Y., Qu, T., Guo, Z., Peng, M., Jia, S., Wang, Q., Zhang, W., & Li, F. (2024) · Agronomy · doi:10.3390/agronomy14030500 · Cited by 65
“ChannelAttentionModule The encoder of the model consists of N consecutive blocks, each containing mainly of a Multihead Self-A tt ention (MSA) [33] and a Multilayer Perceptron (MLP) [34] block.”
MethodInfluentialRevisiting Token Pruning for Object Detection and Instance Segmentation
Liu, Y., Gehrig, M., Messikommer, N., Cannici, M., & Scaramuzza, D. (2024) · IEEE Winter Conference on Applications of Computer Vision · doi:10.1109/wacv57701.2024.00264 · Cited by 99
“…cost, including designing alternative lightweight attention formulations [11, 27, 30, 45, 49, 53, 67], removing unnecessary network modules [17, 39, 52] approximating attention multiplications with low-rank decompositions [6, 12, 54], distilling knowledge into a more efficient student network…”
BackgroundMulti-Granularity Self-Attention for Neural Machine Translation
Hao, J., Wang, X., Shi, S., Zhang, J., & Tu, Z. (2019) · Conference on Empirical Methods in Natural Language Processing (EMNLP) · doi:10.18653/v1/d19-1082 · Cited by 69
“For example, Li et al. (2018) show that different attention heads generally attend to the same positions, and Voita et al. (2019) reveal that only specialized attention heads do the heavy lifting while the rest can be pruned.”
BackgroundModularized Transfomer-based Ranking Framework
Gao, L., Dai, Z., & Callan, J. (2020) · Conference on Empirical Methods in Natural Language Processing (EMNLP) · doi:10.18653/v1/2020.emnlp-main.342 · Cited by 69
“One line of research seeks to compress the big Transformer into smaller ones using model pruning (Voita et al., 2019) or knowledge distillation (Hinton et al., 2015; Sanh et al., 2019).”
BackgroundAttention-Enhancing Backdoor Attacks Against BERT-based Models
Lyu, W., Zheng, S., Pang, L., Ling, H., & Chen, C. (2023) · Findings of the Association for Computational Linguistics: EMNLP (Findings of EMNLP) · doi:10.18653/v1/2023.findings-emnlp.716 · Cited by 88
Rethinking Network Pruning – under the Pre-train and Fine-tune Paradigm
Xu, D., Yen, I. E.-H., Zhao, J., & Xiao, Z. (2021) · Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies (NAACL-HLT) · doi:10.18653/v1/2021.naacl-main.188 · Cited by 72
Dense Training, Sparse Inference: Rethinking Training of Mixture-of-Experts Language ModelsPreprint
Pan, B.-W., Shen, Y., Liu, H.-K., Mishra, M., Zhang, G.-Y., Oliva, A., Raffel, C. A., & Panda, R. (2024) · arXiv.org · doi:10.48550/arxiv.2404.05567 · Cited by 56
“Model pruning techniques Voita et al. (2019); Michel et al. (2019) leverage the inherent sparsity within dense models to eliminate superfluous neurons, enhancing efficiency.”
BackgroundChallenges in Deploying Long-Context Transformers: A Theoretical Peak Performance AnalysisPreprint
Fu, Y. (2024) · arXiv.org · doi:10.48550/arxiv.2405.08944 · Cited by 52
“YOCO [24] Use only one global KV cache C | P | D | S ✓ Head Voita et al. [26] Head pruning based on gating C | D | S ?”
Losing Heads in the Lottery: Pruning Transformer Attention in Neural Machine Translation
Behnke, M., & Heafield, K. (2020) · Conference on Empirical Methods in Natural Language Processing (EMNLP) · doi:10.18653/v1/2020.emnlp-main.211 · Cited by 76
“In particular, we go further than Voita et al. (2019) by removing rather than masking.”
BackgroundMethodResultInfluentialEnhanced prototypical network for few-shot relation extraction
Wen, W., Liu, Y., Ouyang, C., Lin, Q., & Chung, T. (2021) · Information Processing & Management · doi:10.1016/j.ipm.2021.102596 · Cited by 60
A global-frequency-domain network for medical image segmentation
Li, P., Zhou, R., He, J., Zhao, S., & Tian, Y. (2023) · Computers in Biology and Medicine · doi:10.1016/j.compbiomed.2023.107290 · Cited by 62
Sparse Attention with Linear Units
Zhang, B., Titov, I., & Sennrich, R. (2021) · Conference on Empirical Methods in Natural Language Processing (EMNLP) · doi:10.18653/v1/2021.emnlp-main.523 · Cited by 62
“This indicates that ReLA-g is capable of inducing heads with different roles (Voita et al., 2019).”
BackgroundSelf-citationDynamic Sparse No Training: Training-Free Fine-tuning for Sparse LLMs
Zhang, Y.-X., Zhao, L.-R., Lin, M., Sun, Y.-T., Yao, Y.-W., Han, X., Tanner, J., Liu, S.-W., & Ji, R.-R. (2023) · International Conference on Learning Representations · doi:10.48550/arxiv.2310.08915 · Cited by 94
“The coarse-grained granularity can be a group of weights (Gray et al., 2017; Ding et al., 2017), a complete neuron (Jiang et al., 2018); a filters/channels (Li et al., 2017), or an attention head (Voita et al., 2019), etc .”
BackgroundTinyStories: How Small Can Language Models Be and Still Speak Coherent English?
Eldan, R., & Li, Y. (2023) · arXiv · doi:10.48550/arxiv.2305.07759 · Cited by 52
“We use the method of Voita et al [30] to analyze the attention patterns of the heads and classify them into different types, such as positional, syntactic, or semantic.”
BackgroundMethodInfluentialCross-Lingual Abstractive Summarization with Limited Parallel Resources
Bai, Y., Gao, Y., & Huang, H. (2021) · doi:10.18653/v1/2021.acl-long.538 · Cited by 68
“We only retain the informative part of the y-axis, omit-ting the blank part that the model do not attend to. can be explicitly explained using probing into the attention heads (Michel et al., 2019; Voita et al., 2019).”
BackgroundDynamic network link prediction with node representation learning from graph convolutional networks
Mei, P., & Zhao, Y. (2024) · Scientific Reports · doi:10.1038/s41598-023-50977-6 · Cited by 51
“In this research, the multi-head attention model is utilized to learn features from diverse latent spaces, thereby enhancing the model’s representation capacity 24 .”
MethodCircuit Component Reuse Across Tasks in Transformer Language Models
Merullo, J., Eickhoff, C., & Pavlick, E. (2024) · International Conference on Learning Representations · doi:10.48550/arxiv.2310.08744 · Cited by 66
“More broadly, the ways attention heads are used by a model to build predictions in models has been widely studied (Voita et al., 2019; Vig, 2019) 7 C ONCLUSION AND F URTHER D ISCUSSION”
MethodDocument-level Entity-based Extraction as Template Generation
Huang, K.-H., Tang, S., & Peng, N. (2021) · Conference on Empirical Methods in Natural Language Processing · doi:10.18653/v1/2021.emnlp-main.426 · Cited by 64
Differentiable Subset Pruning of Transformer Heads
Li, J., Cotterell, R., & Sachan, M. (2021) · Transactions of the Association for Computational Linguistics · doi:10.1162/tacl_a_00436 · Cited by 73
“, 2021) and head pruning (Michel et al., 2019; Voita et al., 2019; McCarley et al., 2019) of Transformer-based models.”
BackgroundMethodInfluentialAttention Guided CAM: Visual Explanations of Vision Transformer Guided by Self-Attention
Leem, S., & Seo, H. (2024) · Proceedings of the AAAI Conference on Artificial Intelligence · doi:10.1609/aaai.v38i4.28077 · Cited by 76
FastFormers: Highly Efficient Transformer Models for Natural Language Understanding
Kim, Y. J., & Hassan, H. (2020) · Workshop on Simple and Efficient Natural Language Processing (SustaiNLP) · doi:10.18653/v1/2020.sustainlp-1.20 · Cited by 69
Cui, B., Li, Y., & Zhang, Z. M. (2021) · Neurocomputing · doi:10.1016/j.neucom.2021.05.084 · Cited by 59
On the Ability and Limitations of Transformers to Recognize Formal Languages
Bhattamishra, S., Ahuja, K., & Goyal, N. (2020) · Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing (EMNLP) · doi:10.18653/v1/2020.emnlp-main.576 · Cited by 48
“Voita et al. (2019) studied the role of different types of attention heads.”
BackgroundMoEfication: Transformer Feed-forward Layers are Mixtures of Experts
Zhang, Z., Lin, Y., Liu, Z., Li, P., Sun, M., & Zhou, J. (2022) · Findings of the Association for Computational Linguistics: ACL 2022 · doi:10.18653/v1/2022.findings-acl.71 · Cited by 48
“There are several techniques including knowledge distillation (Sanh et al., 2019; Sun et al., 2019; Jiao et al., 2020), model pruning (Voita et al., 2019; Michel et al., 2019; Zhang et al., 2021), attention approximation (Wang et al., 2020; Kitaev et al., 2020; Zaheer et al., 2020),and model…”
BackgroundMethodAttention Mixtures for Time-Aware Sequential Recommendation
Tran, V.-A., Salha-Galvan, G., Sguerra, B., & Hennequin, R. (2023) · International ACM SIGIR Conference on Research and Development in Information Retrieval (SIGIR) · doi:10.1145/3539618.3591951 · Cited by 64
“As this approach is known to suffer from redundant heads1 problems where different attention heads actually learn the same information [2, 23, 41], we build upon recent efforts fromNguyen et al.”
BackgroundResulteX-ViT: A Novel explainable vision transformer for weakly supervised semantic segmentation
Lu, Y., Xiang, W., Fang, J., Chen, Y. P., & Chi, L. (2023) · Pattern Recognition · doi:10.1016/j.patcog.2023.109666 · Cited by 54
Bansal, H., Gopalakrishnan, K., Dingliwal, S., Bodapati, S., Kirchhoff, K., & Roth, D. (2023) · Proceedings of the 61st Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers) · doi:10.18653/v1/2023.acl-long.660 · Cited by 13
Embeddings in Natural Language Processing: Theory and Advances in Vector Representations of Meaning
Pilehvar, M. T., & Camacho-Collados, J. (2020) · Synthesis lectures on human language technologies · doi:10.2200/s01057ed1v01y202009hlt047 · Cited by 93
Singh, A. K., Moskovitz, T., Hill, F., Chan, S. C. Y., & Saxe, A. (2024) · arXiv (Cornell University) · doi:10.48550/arxiv.2404.07129 · Cited by 58
CATS: Contextually-Aware Thresholding for Sparsity in Large Language ModelsPreprint
Lee, J.-Y., Lee, J.-Y., Zhang, G., Tiwari, M., & Mirhoseini, A. (2024) · arXiv (Cornell University) · doi:10.48550/arxiv.2404.08763 · Cited by 79
Low-Rank Bottleneck in Multi-head Attention Models
Bhojanapalli, S., Yun, C., Rawat, A. S., Reddi, S. J., & Kumar, S. (2020) · arXiv · doi:10.48550/arxiv.2002.07028 · Cited by 46
Pruning Redundant Mappings in Transformer Models via Spectral-Normalized Identity Prior
Lin, Z., Liu, J., Yang, Z., Hua, N., & Roth, D. (2020) · Findings of the Association for Computational Linguistics: EMNLP 2020 · doi:10.18653/v1/2020.findings-emnlp.64 · Cited by 34
Compressing Pre-trained Language Models by Matrix Decomposition
Noach, M. B., & Goldberg, Y. (2020) · AACL · doi:10.18653/v1/2020.aacl-main.88 · Cited by 102
“…have been many attempts to compress transformer models involving pruning (McCarley, 2019; Guo et al., 2019; Wang et al., 2019; Michel et al., 2019; Voita et al., 2019; Gordon et al., 2020), quantization (Zafrir et al., 2019; Shen et al., 2019) and distillation (Sanh et al., 2019; Zhao et al.,…”
BackgroundDodrio: Exploring Transformer Models with Interactive Visualization
Wang, Z. J., Turko, R., & Chau, D. H. (2021) · Annual Meeting of the Association for Computational Linguistics: System Demonstrations (ACL Demo) · doi:10.18653/v1/2021.acl-demo.16 · Cited by 57
“By default, we calculate the importance score c of an attention head by the average of its maximum attention for all instances in the dataset (Voita et al., 2019).”
MethodIncorporating Residual and Normalization Layers into Analysis of Masked Language Models
Kobayashi, G., Kuribayashi, T., Yokoi, S., & Inui, K. (2021) · Conference on Empirical Methods in Natural Language Processing (EMNLP) · doi:10.18653/v1/2021.emnlp-main.373 · Cited by 84
“Voita et al. (2019) also reported the same phenomenon using a pruning method with additional training.”
MethodApproximating How Single Head Attention LearnsPreprint
Snell, C. B., Zhong, R., Klein, D., & Steinhardt, J. (2021) · arXiv.org · doi:10.48550/arxiv.2103.07601 · Cited by 37
“In machine translation, while the standard gradient descent cannot train a high-accuracy transformer with relatively few attention heads, we can construct one by first training with more heads and then pruning the redundant heads (Voita et al., 2019; Michel et al., 2019).”
PARP: Prune, Adjust and Re-Prune for Self-Supervised Speech Recognition
Lai, C.-I., Zhang, Y., Liu, A. H., Chang, S.-Y., Liao, Y., Chuang, Y.-S., Qian, K.-Z., Khurana, S., Cox, D., & Glass, J. R. (2021) · Neural Information Processing Systems · doi:10.48550/arxiv.2106.05933 · Cited by 92
“[105] Elena Voita, David Talbot, Fedor Moiseev, Rico Sennrich, and Ivan Titov.”
BackgroundInterpretability at Scale: Identifying Causal Mechanisms in Alpaca
Wu, Z., Geiger, A., Icard, T., Potts, C., & Goodman, N. D. (2023) · neural information processing systems · doi:10.52202/075280-3418 · Cited by 166
Scheduled DropHead: A Regularization Method for Transformer Models
Zhou, W., Ge, T., Wei, F., Zhou, M., & Xu, K. (2020) · Findings of the Association for Computational Linguistics: EMNLP (Findings of EMNLP) · doi:10.18653/v1/2020.findings-emnlp.178 · Cited by 56
Learning Calibrated-Guidance for Object Detection in Aerial Images
Wei, Z., Liang, D., Zhang, D., Zhang, L., Geng, Q., Wei, M., & Zhou, H. (2022) · IEEE Journal of Selected Topics in Applied Earth Observations and Remote Sensing · doi:10.1109/jstars.2022.3158903 · Cited by 45
Li, L., Lin, Y., Chen, D., Ren, S., Li, P., Zhou, J., & Sun, X. (2021) · Findings of the Association for Computational Linguistics: EMNLP (Findings of EMNLP) · doi:10.18653/v1/2021.findings-emnlp.43 · Cited by 68
“Pruning methods deactivate the unimportant structures in the model like attention heads (Voita et al., 2019; Michel et al., 2019) and layers (Fan et al., 2019).”
BackgroundMethodSudden Drops in the Loss: Syntax Acquisition, Phase Transitions, and Simplicity Bias in MLMs
Chen, A., Shwartz-Ziv, R., Cho, K., Leavitt, M. L., & Saphra, N. (2024) · International Conference on Learning Representations · doi:10.48550/arxiv.2309.07311 · Cited by 81
“While instance-level causal experiments like Voita et al. (2019) may be epistemically stronger than the observational studies, the network’s failure to recover from a causal intervention does not indicate that it relies on the structure provided.”
InfluentialTowards a Mechanistic Interpretation of Multi-Step Reasoning Capabilities of Language Models
Hou, Y., Li, J., Fei, Y., Stolfo, A., Zhou, W., Zeng, G., Bosselut, A., & Sachan, M. (2023) · Conference on Empirical Methods in Natural Language Processing (EMNLP) · doi:10.18653/v1/2023.emnlp-main.299 · Cited by 93
LeGrad: An Explainability Method for Vision Transformers via Feature Formation Sensitivity
Bousselham, W., Boggust, A., Chaybouti, S., Strobelt, H., & Kuehne, H. (2025) · IEEE/CVF International Conference on Computer Vision (ICCV) · doi:10.1109/iccv51701.2025.01891 · Cited by 65
“Unlike prior methods such as CheferCAM [9, 10], Rollout [1], and IIA [3], which depend on complex matrix multiplication schemes to propagate relevance across attention maps, LeGrad employs a simpler yet more effective strategy: summing layer-wise gradients.”
Efficient self-attention with smart pruning for sustainable large language models
Belhouari, S. B., & Kraidia, I. (2025) · Scientific Reports · doi:10.1038/s41598-025-92586-5 · Cited by 49
“The Query matrix represents the token for which attention is being calculated, the Key matrix represents other tokens in the sequence that attention is directed towards, and the Value matrix contains the actual information of each token 30 .”
TPrune: Efficient Transformer Pruning for Mobile Devices
Mao, J., Yang, H., Li, A., Li, H., & Chen, Y. (2021) · ACM Transactions on Cyber-Physical Systems · doi:10.1145/3446640 · Cited by 42
“First, with the help of BSSL analysis, we could find some properties of Transformer models, which have already been discovered in previous works on Transformer understanding [20, 43].”
MethodResultInfluentialOn Attention Redundancy: A Comprehensive Study
Bian, Y., Huang, J., Cai, X., Yuan, J., & Church, K. (2021) · Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies (NAACL-HLT) · doi:10.18653/v1/2021.naacl-main.72 · Cited by 68
“Examples are attention visualization (Vig and Belinkov, 2019), common attention patterns (Kovaleva et al., 2019), attention head pruning (Voita et al., 2019), and probing test (Clark et al., 2019).”
BackgroundKey phrase aware transformer for abstractive summarization
Liu, S., Cao, J., Yang, R., & Wen, Z. (2022) · Information Processing & Management · doi:10.1016/j.ipm.2022.102913 · Cited by 46
SLMRec: Distilling Large Language Models into Small for Sequential Recommendation
Xu, W., Wu, Q., Liang, Z., Han, J., Ning, X., Shi, Y., Lin, W., & Zhang, Y. (2025) · International Conference on Learning Representations · doi:10.48550/arxiv.2405.17890 · Cited by 49
“These works have studied different components of the model architecture for pruning, including dropping attention heads (Voita et al., 2019; Michel et al., 2019), dropping layers (Fan et al., 2019; Zhang & He, 2020; Kim & Awadalla, 2020; Sajjad et al., 2023), dropping hidden xistates (Hou et al.,…”
Softmax is not Enough (for Sharp Size Generalisation)Preprint
Veličković, P., Perivolaropoulos, C., Barbero, F., & Pascanu, R. (2024) · arXiv (Cornell University) · doi:10.48550/arxiv.2410.01104 · Cited by 67
“We are not the first to observe dispersion in this setting empirically; prior works studying the capability of Transformers to execute algorithms (Yan et al., 2020) and perform random-access lookups (Ebrahimi et al., 2024) also note dispersion patterns.”
InfluentialModeling Structure‐Building in the Brain With CCG Parsing and Large Language Models
Stanojević, M., Brennan, J., Dunagan, D. G., Steedman, M. J., & Hale, J. (2023) · Cognitive Science · doi:10.1111/cogs.13312 · Cited by 62
Adaptive Disentangled Transformer for Sequential Recommendation
Zhang, Y. J., Wang, X. Y., Chen, H., & Zhu, W. (2023) · ACM SIGKDD Conference on Knowledge Discovery and Data Mining (KDD) · doi:10.1145/3580305.3599253 · Cited by 66
“Several studies [3, 10, 27, 35, 45, 51, 60] have analyzed attention mechanism.”
BackgroundSANVis: Visual Analytics for Understanding Self-Attention Networks
Park, C., Choo, J., Na, I., Jo, Y., Shin, S., Yoo, J., Kwon, B. C., Zhao, J., Noh, H., & Lee, Y. (2019) · Visualization · doi:10.1109/visual.2019.8933677 · Cited by 41
“Consequently, recent studies [24, 28] attempt to understand questions such as what kinds of features the model learned differently in heads or which head captured a specific set of linguistic features.”
BackgroundIntrinsic Probing through Dimension Selection
Hennigen, L. T., Williams, A., & Cotterell, R. (2020) · Conference on Empirical Methods in Natural Language Processing (EMNLP) · doi:10.18653/v1/2020.emnlp-main.15 · Cited by 58
Greedy Layer Pruning: Decreasing Inference Time of Transformer Models
Peer, D., Stabinger, S., Engl, S., & Rodríguez-Sánchez, A. J. (2021) · Pattern Recognition Letters · doi:10.1016/j.patrec.2022.03.023 · Cited by 54
Leveraging redundancy in attention with Reuse TransformersPreprint
Bhojanapalli, S., Chakrabarti, A., Veit, A., Łukasik, M., Jain, H., Liu, F., Chang, Y.-W., & Kumar, S. (2021) · arXiv (Cornell University) · doi:10.48550/arxiv.2110.06821 · Cited by 47
“Another line of research Voita et al. (2019); Michel et al. (2019) showed that one can prune away many heads in an attention layer of a BERT model, after training.”
BackgroundMethodNatural Language Processing Methods for Language Modeling
Nemeskey, D. M. (2021) · Eötvös Loránd Tudományegyetem · doi:10.15476/elte.2020.066 · Cited by 88
Enhancing Monotonic Multihead Attention for Streaming ASR
Inaguma, H., Mimura, M., & Kawahara, T. (2020) · Interspeech (USB) · doi:10.21437/interspeech.2020-1780 · Cited by 43
Interpretable & Time-Budget-Constrained Contextualization for Re-RankingPreprint
Hofstätter, S., Zlabinger, M., & Hanbury, A. (2020) · arXiv (Cornell University) · doi:10.48550/arxiv.2002.01854 · Cited by 66
“When a large number of pre-trained Transformer layers is involved, inference can be sped up by removing later layers and scoring the intermediate results instead [20] or by pruning unnecessary attention-heads [33].”
BackgroundOn the Pitfalls of Analyzing Individual Neurons in Language ModelsPreprint
Antverg, O., & Belinkov, Y. (2021) · International Conference on Learning Representations · doi:10.48550/arxiv.2110.07483 · Cited by 77
“Such knowledge may allow us to control the model’s output (Bau et al., 2019), to reduce the number of parameters in the model (Voita et al., 2019; Sajjad et al., 2020), and to gain a general scientific knowledge of the model.”
BackgroundMulti-Head RAG: Solving Multi-Aspect Problems with LLMs
Besta, M., Kubicek, A., Gerstenberger, R., Chrapek, M., Niggli, R., Okanovic, P., Zhu, Y., Iff, P., Podstawski, M., Weitzendorf, L., et al. (2024) · arXiv · doi:10.48550/arxiv.2406.05085
Rethinking the Value of Transformer Components
Wang, W., & Tu, Z. (2020) · Proceedings of the 28th International Conference on Computational Linguistics · doi:10.18653/v1/2020.coling-main.529 · Cited by 39
Explainability and Evaluation of Vision Transformers: An In-Depth Experimental Study
Stassin, S., Corduant, V., Mahmoudi, S. A., & Siebert, X. (2023) · Electronics · doi:10.3390/electronics13010175 · Cited by 46
“…contribution of node j to the value of node k , the general rule of the conservation axiom is as follows: The partial LRP method from Voita et al. [41] suggests employing the LRP method to assess to what extent different attention heads contribute to the model’s prediction instead of considering…”
Multi-branch CNN and grouping cascade attention for medical image classification
Liu, S., Yue, W., Guo, Z., & Wang, L. (2024) · Scientific Reports · doi:10.1038/s41598-024-64982-w · Cited by 48
Liu, C., Chen, Y., & Xu, X. (2024) · Composite Structures · doi:10.1016/j.compstruct.2024.118727 · Cited by 43
FIND: Human-in-the-Loop Debugging Deep Text Classifiers
Lertvittayakumjorn, P., Specia, L., & Toni, F. (2020) · Conference on Empirical Methods in Natural Language Processing (EMNLP) · doi:10.18653/v1/2020.emnlp-main.24 · Cited by 55
Tikhonov, A., & Ryabinin, M. (2021) · Findings of the Association for Computational Linguistics: ACL (Findings of ACL) · doi:10.18653/v1/2021.findings-acl.310 · Cited by 98
Attention-Aligned Transformer for Image Captioning
Fei, Z. (2022) · Proceedings of the AAAI Conference on Artificial Intelligence · doi:10.1609/aaai.v36i1.19940 · Cited by 53
“Some works also aim to employ masks as the analytical tools to indicate the importance (Kitada and Iyatomi 2020; Mohankumar et al. 2020), attention head (Fong and Vedaldi 2017), or the contributions of the pixels in the image to the model outputs (Voita et al. 2019).”
BackgroundExtremely low-resource neural machine translation for Asian languages
Rubino, R., Marie, B., Dabre, R., Fujita, A., Utiyama, M., & Sumita, E. (2020) · Machine Translation · doi:10.1007/s10590-020-09258-6 · Cited by 41
“For instance, Voita et al. (2019) evaluated the importance of each head in the multi-head attention mechanism in a layer-wise fashion.”
BackgroundLong-Span Summarization via Local Attention and Content Selection
Manakul, P., & Gales, M. (2021) · Proceedings of the 59th Annual Meeting of the Association for Computational Linguistics and the 11th International Joint Conference on Natural Language Processing (Volume 1: Long Papers) · doi:10.18653/v1/2021.acl-long.470 · Cited by 34
“Alternatively, it has been shown that some attention heads are redundant and can be pruned to reduce model size (Voita et al., 2019; Michel et al., 2019).”
BackgroundFu, R., Liang, H., Wang, S., Jia, C., Sun, G., Gao, T., Chen, D., & Wang, Y. (2023) · Expert Systems with Applications · doi:10.1016/j.eswa.2023.121734 · Cited by 40
Survey: Exploiting Data Redundancy for Optimization of Deep Learning
Chen, J.-A., Niu, W., Ren, B., Wang, Y., & Shen, X. (2023) · ACM Computing Surveys · doi:10.1145/3564663 · Cited by 48
“Many of the eforts resort to model pruning and quantization, while some compress models in the frequency domains [153] or optimize attentions in Transformer models [32, 113, 147].”
BackgroundMethodRobustifying Token Attention for Vision Transformers
Guo, Y. X., Stutz, D., & Schiele, B. (2023) · IEEE/CVF International Conference on Computer Vision (ICCV) · doi:10.1109/iccv51070.2023.01610 · Cited by 61
“, to learn deeper transformers [66] or prune attention heads [45].”
BackgroundThe MultiBERTs: BERT Reproductions for Robustness Analysis
Sellam, T., Yadlowsky, S., Wei, J., Saphra, N., D'Amour, A., Linzen, T., Bastings, J., Turc, I., Eisenstein, J., Das, D., et al. (2021) · arXiv · doi:10.48550/arxiv.2106.16163 · Cited by 37
“, 2018)? Does pruning attention heads degrade model performance on downstream tasks (Voita et al., 2019)? Does augmenting BERT with information about semantic roles improve performance on benchmark tasks (Zhang et al.”
BackgroundSpectral Filters, Dark Signals, and Attention Sinks
Cancedda, N. (2024) · Proceedings of the conference - Association for Computational Linguistics. Meeting · doi:10.18653/v1/2024.acl-long.263 · Cited by 69
Positional Artefacts Propagate Through Masked Language Model Embeddings
Luo, Z., Kulmizev, A., & Mao, X. (2020) · Annual Meeting of the Association for Computational Linguistics · doi:10.18653/v1/2021.acl-long.413 · Cited by 46
“One line of such work investigates the self-attention mechanism of Transformer-based models, aiming to e.g. characterize its patterns or decode syntactic structure (Raganato and Tiedemann, 2018; Vig, 2019; Mareˇcek and Rosa, 2018; Voita et al., 2019; Clark et al., 2019; Kobayashi et al., 2020).”
BackgroundLi, C., Yao, Z., Wu, X., Zhang, M., Holmes, C., Li, C., & He, Y. (2024) · Proceedings of the AAAI Conference on Artificial Intelligence · doi:10.1609/aaai.v38i16.29810 · Cited by 47
Gubelmann, R. (2024) · Philosophy & Technology · doi:10.1007/s13347-024-00696-1 · Cited by 36
“More quantitative evaluations such as the one conducted by Voita et al. (2019) do suggest that a subset of attention heads in the encoder has indeed assumed specific, identifiable functions (intriguingly, their research also suggests that the majority of encoder attention heads is simply superfluous).”
Transfer learning using attentions across atomic systems with graph neural networks (TAAG)
Kolluru, A., Shoghi, N., Shuaibi, M., Goyal, S., Das, A., Zitnick, C. L., & Ulissi, Z. W. (2022) · The Journal of Chemical Physics · doi:10.1063/5.0088019 · Cited by 43
Making Neural Networks Interpretable with Attribution: Application to Implicit Signals Prediction
Afchar, D., & Hennequin, R. (2020) · ACM Conference on Recommender Systems (RecSys) · doi:10.1145/3383313.3412253 · Cited by 38
“In [46], the authors also report a natural specialisation of different components of a multi-attention module.”
BackgroundRyu, S. H., & Lewis, R. L. (2021) · Workshop on Cognitive Modeling and Computational Linguistics (CMCL) · doi:10.18653/v1/2021.cmcl-1.6 · Cited by 65
How BPE Affects Memorization in TransformersPreprint
Kharitonov, E., Baroni, M., & Hupkes, D. (2021) · arXiv (Cornell University) · doi:10.48550/arxiv.2110.02782 · Cited by 39
Attention Satisfies: A Constraint-Satisfaction Lens on Factual Errors of Language Models
Yüksekgönül, M., Chandrasekaran, V., Jones, E., Gunasekar, S., Naik, R., Palangi, H., Kamar, E. S., & Nushi, B. (2023) · International Conference on Learning Representations · doi:10.48550/arxiv.2309.15098 · Cited by 45
Zeng, W., Li, M., Xiong, W., Tong, T., Lu, W.-J., Jin, T., Wang, R., & Huang, R. (2023) · IEEE/CVF International Conference on Computer Vision (ICCV) · doi:10.1109/iccv51070.2023.00466 · Cited by 71
“As observed in [4, 28, 32, 43, 44], not all attentions are equally important and different layer prefers different attention type.”
BackgroundMethodAdaptive Spatio-Temporal Relation Based Transformer for Traffic Flow Prediction
Wang, R., Xi, L., Ye, J., Zhang, F., Yu, X., & Xu, L. (2024) · IEEE Transactions on Vehicular Technology · doi:10.1109/tvt.2024.3390997 · Cited by 40
“The transformer encoder consists of a LayerNorm(LN), a multi-head self-attention layer(MSA) [65] and a position-wise feed-forward network(FFN) [66].”
Assessing BERT’s ability to learn Italian syntax: a study on null-subject and agreement phenomena
Guarasci, R., Silvestri, S., Pietro, G. D., Fujita, H., & Esposito, M. (2021) · Journal of Ambient Intelligence and Humanized Computing · doi:10.1007/s12652-021-03297-4 · Cited by 44
“Similarly to what happened in other NLP fields, the machine translation sector has given first push to the use of Trans-formers-based neural models for the extraction of syntactic relationships and dependent trees (Voita et al. 2019; Mareček and Rosa 2018; Raganato and Tiedemann 2018).”
MethodAdaptive Adapters: An Efficient Way to Incorporate BERT Into Neural Machine Translation
Guo, J., Zhang, Z., Xu, L., Chen, B., & Chen, E. (2021) · IEEE/ACM Transactions on Audio Speech and Language Processing · doi:10.1109/taslp.2021.3076863 · Cited by 41
“On the Transformer based networks, related works have studied to prune the multi-head attention components [50] or the entire layer [20], as well as dynamically selecting layers in very deep models [51], [52].”
MethodExplainable Sentiment Analysis: A Hierarchical Transformer-Based Extractive Summarization Approach
Bacco, L., Cimino, A., Dell’Orletta⋄, F., & Merone, M. (2021) · Electronics · doi:10.3390/electronics10182195 · Cited by 40
Neural Architecture Search for Parameter-Efficient Fine-tuning of Large Pre-trained Language Models
Lawton, N., Kumar, A., Thattai, G., Galstyan, A., & Steeg, G. V. (2023) · Findings of the Association for Computational Linguistics: ACL (Findings of ACL) · doi:10.18653/v1/2023.findings-acl.539 · Cited by 57
Koishekenov, Y., Berard, A., & Nikoulina, V. (2023) · Proceedings of the conference - Association for Computational Linguistics. Meeting · doi:10.18653/v1/2023.acl-long.198 · Cited by 72
Roles and Utilization of Attention Heads in Transformer-based Neural Language Models
Jo, J.-Y., & Myaeng, S.-H. (2020) · Proceedings of the 58th Annual Meeting of the Association for Computational Linguistics · doi:10.18653/v1/2020.acl-main.311 · Cited by 33
“Voita et al. (2019) provided a method to identify the major role of each attention head in a transformer model trained for MT.”
MethodThe Grammar-Learning Trajectories of Neural Language Models
Choshen, L., Hacohen, G., Weinshall, D., & Abend, O. (2022) · Proceedings of the conference - Association for Computational Linguistics. Meeting · doi:10.18653/v1/2022.acl-long.568 · Cited by 61
On Exploring Attention-based Explanation for Transformer Models in Text Classification
Liu, S., Le, F., Chakraborty, S., & Abdelzaher, T. (2021) · IEEE International Conference on Big Data (BigData) · doi:10.1109/bigdata52589.2021.9671639 · Cited by 44
“Voita et al. [44] extract the attention patterns and identify the “roles” of self attention heads for Transformers.”
BackgroundCE-BERT: Concise and Efficient BERT-Based Model for Detecting Rumors on Twitter
Anggrainingsih, R., Hassan, G. M., & Datta, A. (2023) · IEEE Access · doi:10.1109/access.2023.3299858 · Cited by 34
Controlling Computation versus Quality for Neural Sequence ModelsPreprint
Bapna, A., Arivazhagan, N., & Fırat, O. (2020) · arXiv (Cornell University) · doi:10.48550/arxiv.2002.07106 · Cited by 36
Relation Transformer NetworkPreprint
Koner, R., Shit, S., & Tresp, V. (2020) · arXiv (Cornell University) · doi:10.48550/arxiv.2004.06193 · Cited by 37
Sparse Attention with Linear UnitsPreprint
Zhang, B., Titov, I., & Sennrich, R. (2021) · arXiv (Cornell University) · doi:10.48550/arxiv.2104.07012 · Cited by 37
“This indicates that ReLA-g is capable of inducing heads with different roles (Voita et al., 2019).”
BackgroundSelf-citation
Metadata
- Authors
- Voita, E., Talbot, D., Moiseev, F., Sennrich, R., & Titov, I.
- Affiliations
- Yandex (Russia) (RU)
- Moscow Institute of Physics and Technology (RU)
- University of Zurich (CH)
- University of Amsterdam (NL)
- Corresponding author
- Moiseev, Fedor
- Venue
- Proceedings of the 57th Annual Meeting of the Association for Computational Linguistics
- Published
- 2019
- Pages
- 5797-5808
- ISSN
- 0736-587X (ISSN-L)
- OpenAlex
- W2946794439
- Semantic Scholar
- 07a64686ce8e43ac475a8d820a8a9f1d87989583
- Cited by
- 1,146
- References
- 38
- Citations by year
- 2026: 101 · 2025: 184 · 2024: 182 · 2023: 201 · 2022: 123 · 2021: 190 · 2020: 129 · 2019: 36
- FWCI
- 45.81
- Type
- conference paper
- Language
- en
- Open access
- hybrid
- doi.org
- Licence
- cc-by
- Locations
- Proceedings of the conference - Association for Computational Linguistics. Meeting (publishedVersion, cc-by)
- Zurich Open Repository and Archive (University of Zurich) (acceptedVersion, other-oa)
- arXiv (Cornell University) (submittedVersion)
- UvA-DARE (University of Amsterdam) (submittedVersion, cc-by)
- Data Archiving and Networked Services (DANS) (submittedVersion, other-oa)
- Edinburgh Research Explorer (University of Edinburgh) (submittedVersion, cc-by)
- Zurich Open Repository and Archive (University of Zurich) (submittedVersion, cc-by)
- arXiv (Cornell University)
- Zurich Open Repository and Archive (University of Zurich)
- Funders
- National Science Foundation
- Nederlandse Organisatie voor Wetenschappelijk Onderzoek (639.022.518)
- H2020 European Research Council (678254)
- Topics
- Physical Sciences › Computer Science › Artificial Intelligence › Topic Modeling
- Physical Sciences › Computer Science › Artificial Intelligence › Natural Language Processing Techniques
- Physical Sciences › Computer Science › Computer Vision and Pattern Recognition › Advanced Neural Network Applications
- Keywords
- multi-head self-attention, attention head pruning, Transformer encoder, neural machine translation, English-Russian translation
About these checks
Registry, retraction, Cites and statistics results are computed, not judged, with one exception: a printed reference that no index lists is read once by a model before it counts as a citation error. Claims are extracted by a model and kept only when their quote appears verbatim in the text; each cited source is then checked, with a model’s help, for whether it says what the claim relies on. Those verdicts can be wrong — read the claim’s quote and the cited source before relying on one.
Statistics and arithmetic are recomputed, not judged.
Confidence bands are shown only for fields calibrated on our annotated test set. None is calibrated yet, so no band is shown.
What counts as a claim ›How we measure confidence ›How we check this ›
Are you an author, or do you see a problem with this page? Request a review
Data sources
Bibliographic data: Semantic Scholar, OpenAlex, Crossref.
Contains information from the Semantic Scholar Academic Graph Datasets, made available under the ODC Attribution License (ODC-BY 1.0).
Semantic Scholar’s data is described in: Kinney, R., et al. (2023). The Semantic Scholar Open Data Platform. arXiv:2301.10140.