Alignment Attention by Matching Key and Query Distributions
Not on the map. Why?
Abstract (arXiv)
The neural attention mechanism has been incorporated into deep neural networks to achieve state-of-the-art performance in various domains. Most such models use multi-head self-attention which is appealing for the ability to attend to information from different perspectives. This paper introduces alignment attention that explicitly encourages self-attention to match the distributions of the key and query within each head. The resulting alignment attention networks can be optimized as an unsupervised regularization in the existing attention framework. It is simple to convert any models with self-attention, including pre-trained ones, to the proposed alignment attention. On a variety of language understanding tasks, we show the effectiveness of our method in accuracy, uncertainty estimation, generalization across domains, and robustness to adversarial attacks. We further demonstrate the general applicability of our approach on graph attention and visual question answering, showing the great potential of incorporating our alignment method into various attention-related tasks.
Key facts. Cited by 14 papers in the map (data through 14 Oct 2026). Builds on 62 of its 93 references that are in the map. First posted on arXiv 25 Oct 2021.
Builds on
62 of 93 references.
References · 62
- 2017Attention Is All You Needcited by 60,361
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
- 2014Adam: A Method for Stochastic Optimizationcited by 37,240
- 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 30,186
- 2014Microsoft COCO: Common Objects in Contextcited by 17,608
- 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,372
- 2017Graph Attention Networkscited by 8,923
- 2014Explaining and Harnessing Adversarial Examplescited by 7,364
- 2018GLUE: A Multi-Task Benchmark and Analysis Platform for Natural Language Understandingcited by 4,899
- 2014Neural Machine Translation by Jointly Learning to Align and Translatecited by 4,548
- 2016SQuAD: 100,000+ Questions for Machine Comprehension of Textcited by 4,148
- 2015Domain-Adversarial Training of Neural Networkscited by 3,044
38 more
- 2014Sequence to Sequence Learning with Neural Networkscited by 2,986
- 2019XLNet: Generalized Autoregressive Pretraining for Language Understandingcited by 2,811
- 2019ALBERT: A Lite BERT for Self-supervised Learning of Language Representationscited by 2,790
- 2017A Broad-Coverage Challenge Corpus for Sentence Understanding through Inferencecited by 2,682
- 2016Making the V in VQA Matter: Elevating the Role of Image Understanding in Visual Question Answeringcited by 2,516
- 2013Sinkhorn Distances: Lightspeed Computation of Optimal Transportation Distancescited by 2,316
- 2019ViLBERT: Pretraining Task-Agnostic Visiolinguistic Representations for Vision-and-Language Taskscited by 2,222
- 2014Unsupervised Domain Adaptation by Backpropagationcited by 1,917
- 2015A large annotated corpus for learning natural language inferencecited by 1,847
- 2018Know What You Don't Know: Unanswerable Questions for SQuADcited by 1,554
- 2015Show, Attend and Tell: Neural Image Caption Generation with Visual Attentioncited by 1,423
- 2019MixMatch: A Holistic Approach to Semi-Supervised Learningcited by 1,391
- 2017Adversarial Discriminative Domain Adaptationcited by 1,311
- 2019Can You Trust Your Model's Uncertainty? Evaluating Predictive Uncertainty Under Dataset Shiftcited by 1,287
- 2019Energy and Policy Considerations for Deep Learning in NLPcited by 1,254
- 2015Fast and Accurate Deep Network Learning by Exponential Linear Units (ELUs)cited by 1,070
- 2017SemEval-2017 Task 1: Semantic Textual Similarity - Multilingual and Cross-lingual Focused Evaluationcited by 1,001
- 2016Revisiting Semi-Supervised Learning with Graph Embeddingscited by 976
- 2018Neural Network Acceptability Judgmentscited by 958
- 2019SpanBERT: Improving Pre-training by Representing and Predicting Spanscited by 834
- 2019Is BERT Really Robust? A Strong Baseline for Natural Language Attack on Text Classification and Entailmentcited by 671
- 2017Wasserstein GANcited by 639
- 2016Self-critical Sequence Training for Image Captioningcited by 547
- 2018TextBugger: Generating Adversarial Text Against Real-world Applicationscited by 381
- 2016RETAIN: An Interpretable Predictive Model for Healthcare using Reverse Time Attention Mechanismcited by 349
- 2019Deep Modular Co-Attention Networks for Visual Question Answeringcited by 339
- 2018SWAG: A Large-Scale Adversarial Dataset for Grounded Commonsense Inferencecited by 333
- 2020BAE: BERT-based Adversarial Examples for Text Classificationcited by 316
- 2020Calibration of Pre-trained Transformerscited by 315
- 2019UNITER: UNiversal Image-TExt Representation Learningcited by 228
- 2016A Decomposable Attention Model for Natural Language Inferencecited by 215
- 2016Enhanced LSTM for Natural Language Inferencecited by 200
- 2015Training Very Deep Networkscited by 173
- 2018Evaluating Bayesian Deep Learning Methods for Semantic Segmentationcited by 143
- 2017The Cramer Distance as a Solution to Biased Wasserstein Gradientscited by 119
- 2017Interpretable Learning for Self-Driving Cars by Visualizing Causal Attentioncited by 107
- 2020Robust Optimal Transport with Applications in Generative Modeling and Domain Adaptationcited by 87
- 2017Tips and Tricks for Visual Question Answering: Learnings from the 2017 Challengecited by 76
50 most cited of 62 All 62 (JSON)
Built on by
Citing papers per year: 2022: 2; 2023: 3; 2024: 3; 2025: 4; 2026: 2.
14 papers.
Sort:
By area:
- 2023Preference-grounded Token-level Guidance for Language Model Fine-tuningcited by 31
- 2025MEDA: Dynamic KV Cache Allocation for Efficient Multimodal Long-Context Inferencecited by 31
- 2023POUF: Prompt-oriented unsupervised fine-tuning for large pre-trained modelscited by 29
- 2024Score Forgetting Distillation: A Swift, Data-Free Method for Machine Unlearning in Diffusion Modelscited by 23
- 2022Regularizing a Model-based Policy Stationary Distribution to Stabilize Offline Reinforcement Learningcited by 14
- 2022A Unified Framework for Alternating Offline Model Training and Policy Learningcited by 14
- 2025ESPFormer: Doubly-Stochastic Attention with Expected Sliced Transport Planscited by 10
- 2024SemRoDe: Macro Adversarial Training to Learn Representations That are Robust to Word-Level Attackscited by 3
- 2023A Prototype-Oriented Clustering for Domain Shift with Source Privacycited by 2
- 2026Dual-Space Knowledge Distillation with Key-Query Matching for Large Language Models with Vocabulary Mismatchcited by 1
- 2024Switchable Decision: Dynamic Neural Generation Networkscited by 0
- 2025Q-Align: Alleviating Attention Leakage in Zero-Shot Appearance Transfer via Query-Query Alignmentcited by 0
2 more
- 2026QTrans: A Quantum Transformer for Sentiment Classification10 Sep 2026
- 2026Dual-Space Knowledge Distillation with Key-Query Matching for Large Language Models with Vocabulary Mismatch23 Mar 2026
- 2025Indirect Attention: Turning Context Misalignment into a Feature30 Sep 2025
- 2025Q-Align: Alleviating Attention Leakage in Zero-Shot Appearance Transfer via Query-Query Alignment27 Aug 2025
- 2025MEDA: Dynamic KV Cache Allocation for Efficient Multimodal Long-Context Inference24 Feb 2025
- 2025ESPFormer: Doubly-Stochastic Attention with Expected Sliced Transport Plans11 Feb 2025
- 2024Score Forgetting Distillation: A Swift, Data-Free Method for Machine Unlearning in Diffusion Models17 Sep 2024
- 2024Switchable Decision: Dynamic Neural Generation Networks7 May 2024
- 2024SemRoDe: Macro Adversarial Training to Learn Representations That are Robust to Word-Level Attacks27 Mar 2024
- 2023Preference-grounded Token-level Guidance for Language Model Fine-tuning1 Jun 2023
- 2023POUF: Prompt-oriented unsupervised fine-tuning for large pre-trained models29 Apr 2023
- 2023A Prototype-Oriented Clustering for Domain Shift with Source Privacy8 Feb 2023
- 2023POUF: Prompt-oriented unsupervised fine-tuning for large pre-trained modelscited by 29
- 2025ESPFormer: Doubly-Stochastic Attention with Expected Sliced Transport Planscited by 10
- 2024SemRoDe: Macro Adversarial Training to Learn Representations That are Robust to Word-Level Attackscited by 3
- 2023A Prototype-Oriented Clustering for Domain Shift with Source Privacycited by 2
- 2024Switchable Decision: Dynamic Neural Generation Networkscited by 0
- 2025Q-Align: Alleviating Attention Leakage in Zero-Shot Appearance Transfer via Query-Query Alignmentcited by 0
- 2025Indirect Attention: Turning Context Misalignment into a Featurecited by 0
- 2026QTrans: A Quantum Transformer for Sentiment Classificationcited by 0
- 2026QTrans: A Quantum Transformer for Sentiment Classification10 Sep 2026
- 2025Indirect Attention: Turning Context Misalignment into a Feature30 Sep 2025
- 2025Q-Align: Alleviating Attention Leakage in Zero-Shot Appearance Transfer via Query-Query Alignment27 Aug 2025
- 2025ESPFormer: Doubly-Stochastic Attention with Expected Sliced Transport Plans11 Feb 2025
- 2024Switchable Decision: Dynamic Neural Generation Networks7 May 2024
- 2024SemRoDe: Macro Adversarial Training to Learn Representations That are Robust to Word-Level Attacks27 Mar 2024
- 2023POUF: Prompt-oriented unsupervised fine-tuning for large pre-trained models29 Apr 2023
- 2023A Prototype-Oriented Clustering for Domain Shift with Source Privacy8 Feb 2023