Repulsive Attention: Rethinking Multi-head Attention as Bayesian Inference
Not on the map. Why?
Abstract (arXiv)
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.
Key facts. Cited by 13 papers in the map (data through 7 Oct 2026). First posted on arXiv 20 Sep 2020.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2021: 5; 2022: 4; 2023: 0; 2024: 3; 2025: 0; 2026: 1.
13 papers.
Sort:
By area:
- 2022Visual Attention Methods in Deep Learning: An In-Depth Surveycited by 37
- 2022Unraveling Attention via Convex Duality: Analysis and Interpretations of Vision Transformerscited by 30
- 2021Code Structure Guided Transformer for Source Code Summarizationcited by 29
- 2021Dynamic Inference with Neural Interpreterscited by 24
- 2022Exploring Predictive Uncertainty and Calibration in NLP: A Study on the Impact of Method & Data Scarcitycited by 24
- 2021Transformers with Competitive Ensembles of Independent Mechanismscited by 19
- 2024Superiority of Multi-Head Attention in In-Context Linear Regressioncited by 17
- 2021Pathologies in priors and inference for Bayesian transformerscited by 13
- 2024An In-depth Investigation of Sparse Rate Reduction in Transformer-like Modelscited by 4
- 2022Analysis of Self-Attention Head Diversity for Conformer-based Automatic Speech Recognitioncited by 3
- 2024Balancing Speciality and Versatility: A Coarse to Fine Framework for Mitigating Catastrophic Forgetting in Large Language Modelscited by 3
- 2021Cascaded Head-colliding Attentioncited by 0
1 more
- 2026A statistical perspective on transformers for small longitudinal cohort data18 Feb 2026
- 2024An In-depth Investigation of Sparse Rate Reduction in Transformer-like Models26 Nov 2024
- 2024Balancing Speciality and Versatility: A Coarse to Fine Framework for Mitigating Catastrophic Forgetting in Large Language Models16 Apr 2024
- 2024Superiority of Multi-Head Attention in In-Context Linear Regression30 Jan 2024
- 2022Exploring Predictive Uncertainty and Calibration in NLP: A Study on the Impact of Method & Data Scarcity20 Oct 2022
- 2022Analysis of Self-Attention Head Diversity for Conformer-based Automatic Speech Recognition13 Sep 2022
- 2022Unraveling Attention via Convex Duality: Analysis and Interpretations of Vision Transformers17 May 2022
- 2022Visual Attention Methods in Deep Learning: An In-Depth Survey16 Apr 2022
- 2021Dynamic Inference with Neural Interpreters12 Oct 2021
- 2021Pathologies in priors and inference for Bayesian transformers8 Oct 2021
- 2021Cascaded Head-colliding Attention31 May 2021
- 2021Code Structure Guided Transformer for Source Code Summarization19 Apr 2021
1 more
- 2022Visual Attention Methods in Deep Learning: An In-Depth Surveycited by 37
- 2022Unraveling Attention via Convex Duality: Analysis and Interpretations of Vision Transformerscited by 30
- 2021Code Structure Guided Transformer for Source Code Summarizationcited by 29
- 2021Dynamic Inference with Neural Interpreterscited by 24
- 2022Exploring Predictive Uncertainty and Calibration in NLP: A Study on the Impact of Method & Data Scarcitycited by 24
- 2021Transformers with Competitive Ensembles of Independent Mechanismscited by 19
- 2024Superiority of Multi-Head Attention in In-Context Linear Regressioncited by 17
- 2021Pathologies in priors and inference for Bayesian transformerscited by 13
- 2024An In-depth Investigation of Sparse Rate Reduction in Transformer-like Modelscited by 4
- 2022Analysis of Self-Attention Head Diversity for Conformer-based Automatic Speech Recognitioncited by 3
- 2021Cascaded Head-colliding Attentioncited by 0
- 2026A statistical perspective on transformers for small longitudinal cohort datacited by 0
- 2026A statistical perspective on transformers for small longitudinal cohort data18 Feb 2026
- 2024An In-depth Investigation of Sparse Rate Reduction in Transformer-like Models26 Nov 2024
- 2024Superiority of Multi-Head Attention in In-Context Linear Regression30 Jan 2024
- 2022Exploring Predictive Uncertainty and Calibration in NLP: A Study on the Impact of Method & Data Scarcity20 Oct 2022
- 2022Analysis of Self-Attention Head Diversity for Conformer-based Automatic Speech Recognition13 Sep 2022
- 2022Unraveling Attention via Convex Duality: Analysis and Interpretations of Vision Transformers17 May 2022
- 2022Visual Attention Methods in Deep Learning: An In-Depth Survey16 Apr 2022
- 2021Dynamic Inference with Neural Interpreters12 Oct 2021
- 2021Pathologies in priors and inference for Bayesian transformers8 Oct 2021
- 2021Cascaded Head-colliding Attention31 May 2021
- 2021Code Structure Guided Transformer for Source Code Summarization19 Apr 2021
- 2021Transformers with Competitive Ensembles of Independent Mechanisms27 Feb 2021