paper-with-me

홈 › Papers

Analyzing Multi-Head Self-Attention: Specialized Heads Do the Heavy Lifting, the Rest Can Be Pruned

2019-05-23 · ACL 2019 7 · Elena Voita, David Talbot, Fedor Moiseev, Rico Sennrich, Ivan Titov

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 L0 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.

📄 PDF Abstract BibTeX arXiv:1905.09418

Code (1)

lena-voita/the-story-of-heads 공식 구현 tf

Tasks

Machine TranslationTranslation

Methods 이 논문이 사용한 방법론

Pruning 설명 없음
Linear Layer A Linear Layer is a projection $\mathbf{XW + b}$.
Absolute Position Encodings Absolute Position Encodings are a type of position embeddings for [Transformer-based models] where positional encodings are…
Position-Wise Feed-Forward Layer 설명 없음
Residual Connection 설명 없음
Adam 설명 없음
ReLU How Do I Communicate to Expedia? How Do I Communicate to Expedia? – Call ☎️ +1-(888) 829 (0881) or +1-805-330-4056 or +1-805-330-4056 for Live Support & Special Travel…
Dropout Dropout is a regularization technique for neural networks that drops a unit (along with connections) at training time with a specified probability $p$ (a common value is…

Similar Papers 제목 키워드 기반

Enlivening Redundant Heads in Multi-head Self-attention for Machine Translation

2021-11-01 · EMNLP 2021 11 · Tianfu Zhang, Heyan Huang, Chong Feng, Longbing Cao

Multi-head self-attention recently attracts enormous interest owing to its specialized functions, significant parallelizable computation, and flexible extensibility. However, very recent empirical studies show that some …

Machine TranslationTranslation

Attention in Space: Functional Roles of VLM Heads for Spatial Reasoning

2026-03-21 · Xueqi Ma, Shuo Yang, Yanbei Jiang, Shu Liu 외 arxiv

Despite remarkable advances in large Vision-Language Models (VLMs), spatial reasoning remains a persistent challenge. In this work, we investigate how attention heads within VLMs contribute to spatial reasoning by analyz…

Relational ReasoningSpatial Reasoning

Do We Really Need That Many Parameters In Transformer For Extractive Summarization? Discourse Can Help !

2020-12-03 · EMNLP (CODI) 2020 11 · Wen Xiao, Patrick Huber, Giuseppe Carenini

The multi-head self-attention of popular transformer models is widely used within Natural Language Processing (NLP), including for the task of extractive summarization. With the goal of analyzing and pruning the paramete…

Extractive SummarizationSentence

A Language Model with Limited Memory Capacity Captures Interference in Human Sentence Processing

2023-10-24 · William Timkey, Tal Linzen

Two of the central factors believed to underpin human sentence processing difficulty are expectations and retrieval from working memory. A recent attempt to create a unified cognitive model integrating these two factors …

Language ModelingLanguage ModellingRetrievalSentence

Tucker Attention: A generalization of approximate attention mechanisms

2026-03-31 · Timon Klein, Jonas Kusch, Sebastian Sager, Stefan Schnake 외 arxiv

The pursuit of reducing the memory footprint of the self-attention mechanism in multi-headed self attention (MHA) spawned a rich portfolio of methods, e.g., group-query attention (GQA) and multi-head latent attention (ML…