paper-with-me

Papers

Repulsive Attention: Rethinking Multi-head Attention as Bayesian Inference

2020-09-20 · EMNLP 2020 11 · Bang An, Jie Lyu, Zhenyi Wang, Chunyuan Li, Changwei Hu, Fei Tan, Ruiyi Zhang, Yifan Hu, Changyou Chen

The neural attention mechanism plays an important role in many natural language processing applications. In particular, the use of multi-head attention extends single-head attention by allowing a model to jointly attend information from different perspectives. Without explicit constraining, however, multi-head attention may suffer from attention collapse, an issue that makes different heads extract similar attentive features, thus limiting the model's representation power. In this paper, for the first time, we provide a novel understanding of multi-head attention from a Bayesian perspective. Based on the recently developed particle-optimization sampling techniques, we propose a non-parametric approach that explicitly improves the repulsiveness in multi-head attention and consequently strengthens model's expressiveness. Remarkably, our Bayesian interpretation provides theoretical inspirations on the not-well-understood questions: why and how one uses multi-head attention. Extensive experiments on various attention models and applications demonstrate that the proposed repulsive attention can improve the learned feature diversity, leading to more informative representations with consistent performance improvement on various tasks.

📄 PDF Abstract BibTeX arXiv:2009.09364

Code (0)

등록된 구현이 없습니다.

Tasks

Bayesian InferenceDiversity

Methods 이 논문이 사용한 방법론

Attention 설명 없음
Softmax The Softmax output function transforms a previous layer's output into a vector of probabilities. It is commonly used for multiclass classification. Given an input vector $x$…
Linear Layer A Linear Layer is a projection $\mathbf{XW + b}$.
Multi-Head Attention 설명 없음

Similar Papers 제목 키워드 기반

More Expressive Attention with Negative Weights

2024-11-11 · Ang Lv, Ruobing Xie, Shuaipeng Li, Jiayi Liao 외

We propose a novel attention mechanism, named Cog Attention, that enables attention weights to be negative for enhanced expressiveness, which stems from two key factors: (1) Cog Attention enhances parameter flexibility. …

DecoderImage GenerationLanguage ModelingLanguage Modelling

Rethinking Self-Attention: Towards Interpretability in Neural Parsing

2019-11-10 · Findings of the Association for Computational Linguistics 2020 · Khalil Mrini, Franck Dernoncourt, Quan Tran, Trung Bui 외

Attention mechanisms have improved the performance of NLP tasks while allowing models to remain explainable. Self-attention is currently widely used, however interpretability is difficult due to the numerous attention di…

Constituency ParsingDependency Parsing

Rethinking LLM Inference Bottlenecks: Insights from Latent Attention and Mixture-of-Experts

2025-07-21 · Sungmin Yun, Seonyong Park, Hwayong Nam, Younjoo Lee 외 arxiv

Computational workloads composing traditional transformer models are starkly bifurcated. Multi-Head Attention (MHA) and Grouped-Query Attention are memory-bound due to low arithmetic intensity, while FeedForward Networks…

You Need to Pay Better Attention: Rethinking the Mathematics of Attention Mechanism

2024-03-03 · Mehran Hosseini, Peyman Hosseini

Scaled Dot Product Attention (SDPA) is the backbone of many modern deep-learning models. It is so versatile that it has been used in natural language, vision, and multi-modal domains with very little change compared to i…

Machine TranslationMathematical Reasoning

Rethinking Graph Convolution for 2D-to-3D Hand Pose Lifting

2026-05-13 · Chanyoung Kim, Donghyun Kim, Dong-Hyun Sim, Seong Jae Hwang 외 arxiv

Graph convolutional networks (GCNs) are widely used for 3D hand pose estimation, where the hand skeleton is encoded as a fixed adjacency graph. We revisit whether this is the most effective way to incorporate hand topolo…

3D Hand Pose Estimation