Improving Transformers with Probabilistic Attention Keys
Not on the map. Why?
Abstract (arXiv)
Multi-head attention is a driving force behind state-of-the-art transformers, which achieve remarkable performance across a variety of natural language processing (NLP) and computer vision tasks. It has been observed that for many applications, those attention heads learn redundant embedding, and most of them can be removed without degrading the performance of the model. Inspired by this observation, we propose Transformer with a Mixture of Gaussian Keys (Transformer-MGK), a novel transformer architecture that replaces redundant heads in transformers with a mixture of keys at each head. These mixtures of keys follow a Gaussian mixture model and allow each attention head to focus on different parts of the input sequence efficiently. Compared to its conventional transformer counterpart, Transformer-MGK accelerates training and inference, has fewer parameters, and requires fewer FLOPs to compute while achieving comparable or better accuracy across tasks. Transformer-MGK can also be easily extended to use with linear attention. We empirically demonstrate the advantage of Transformer-MGK in a range of practical applications, including language modeling and tasks that involve very long sequences. On the Wikitext-103 and Long Range Arena benchmark, Transformer-MGKs with 4 heads attain comparable or better performance to the baseline transformers with 8 heads.
Key facts. Cited by 28 papers in the map (data through 14 Oct 2026). Builds on 79 of its 110 references that are in the map. First posted on arXiv 16 Oct 2021.
Builds on
79 of 110 references.
References · 79
- 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
- 2020Language Models are Few-Shot Learnerscited by 32,419
- 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 30,186
- 2019PyTorch: An Imperative Style, High-Performance Deep Learning Librarycited by 20,305
- 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,372
- 2019Momentum Contrast for Unsupervised Visual Representation Learningcited by 7,513
- 2020Training data-efficient image transformers & distillation through attentioncited by 4,586
- 2014Neural Machine Translation by Jointly Learning to Align and Translatecited by 4,548
- 2019DistilBERT, a distilled version of BERT: smaller, faster, cheaper and lightercited by 4,307
- 2016SQuAD: 100,000+ Questions for Machine Comprehension of Textcited by 4,148
38 more
- 2014Learning Phrase Representations using RNN Encoder-Decoder for Statistical Machine Translationcited by 4,057
- 2020Longformer: The Long-Document Transformercited by 3,413
- 2016Pointer Sentinel Mixture Modelscited by 3,096
- 2021Switch Transformers: Scaling to Trillion Parameter Models with Simple and Efficient Sparsitycited by 3,073
- 2019XLNet: Generalized Autoregressive Pretraining for Language Understandingcited by 2,811
- 2017A Broad-Coverage Challenge Corpus for Sentence Understanding through Inferencecited by 2,682
- 2020Transformers are RNNs: Fast Autoregressive Transformers with Linear Attentioncited by 2,022
- 2019Transformer-XL: Attentive Language Models Beyond a Fixed-Length Contextcited by 1,850
- 2020Reformer: The Efficient Transformercited by 1,668
- 2020Rethinking Attention with Performerscited by 1,601
- 2019Generating Long Sequences with Sparse Transformerscited by 1,546
- 2019fairseq: A Fast, Extensible Toolkit for Sequence Modelingcited by 1,488
- 2020Linformer: Self-Attention with Linear Complexitycited by 1,474
- 2019BERT Rediscovers the Classical NLP Pipelinecited by 1,059
- 2019What Does BERT Look At? An Analysis of BERT's Attentioncited by 1,003
- 2019Analyzing Multi-Head Self-Attention: Specialized Heads Do the Heavy Lifting, the Rest Can Be Prunedcited by 856
- 2019Are Sixteen Heads Really Better than One?cited by 816
- 2019How Contextual are Contextualized Word Representations? Comparing the Geometry of BERT, ELMo, and GPT-2 Embeddingscited by 784
- 2018Image Transformercited by 772
- 2019Fast Transformer Decoding: One Write-Head is All You Needcited by 717
- 2018Universal Transformerscited by 647
- 2019Designing and Interpreting Probes with Control Taskscited by 640
- 2019Patient Knowledge Distillation for BERT Model Compressioncited by 508
- 2021Linear Transformers Are Secretly Fast Weight Programmerscited by 502
- 2020Efficient Content-Based Sparse Attention with Routing Transformerscited by 471
- 2021Nystr"omformer: A Nystr"om-Based Algorithm for Approximating Self-Attentioncited by 471
- 2021Dynamic Neural Networks: A Surveycited by 408
- 2018Efficient Attention: Attention with Linear Complexitiescited by 368
- 2019Axial Attention in Multidimensional Transformerscited by 358
- 2021Random Feature Attentioncited by 354
- 2018Generating Wikipedia by Summarizing Long Sequencescited by 335
- 2017SkipNet: Learning Dynamic Routing in Convolutional Networkscited by 332
- 2017A Structured Self-attentive Sentence Embeddingcited by 318
- 2020Sparse Sinkhorn Attentioncited by 251
- 2019Analyzing the Structure of Attention in a Transformer Language Modelcited by 243
- 2018Adaptive Input Representations for Neural Language Modelingcited by 226
- 2016A Decomposable Attention Model for Natural Language Inferencecited by 215
- 2019Transformer Dissection: A Unified Understanding of Transformer's Attention via the Lens of Kernelcited by 213
50 most cited of 79 All 79 (JSON)
Built on by
Citing papers per year: 2022: 4; 2023: 5; 2024: 6; 2025: 10; 2026: 3.
28 papers.
Sort:
By area:
- 2023Transformers Implement Functional Gradient Descent to Learn Non-Linear Functions In Contextcited by 63
- 2022Architecture Agnostic Federated Learning for Neural Networkscited by 30
- 2023Primal-Attention: Self-attention through Asymmetric Kernel SVD in Primal Representationcited by 29
- 2023On Efficient Training of Large-Scale Deep Learning Models: A Literature Reviewcited by 26
- 2022Designing Robust Transformers using Robust Kernel Density Estimationcited by 11
- 2024OTSeg: Multi-prompt Sinkhorn Attention for Zero-Shot Semantic Segmentationcited by 9
- 2025Efficient Degradation-agnostic Image Restoration via Channel-Wise Functional Decomposition and Manifold Regularizationcited by 8
- 2024Unveiling the Hidden Structure of Self-Attention via Kernel Principal Component Analysiscited by 7
- 2024Elliptical Attentioncited by 7
- 2025Devil is in the Uniformity: Exploring Diverse Learners within Transformer for Image Restorationcited by 5
- 2022DBA: Efficient Transformer with Dynamic Bilinear Low-Rank Attentioncited by 4
- 2023Attention: Marginal Probability is All You Need?cited by 4
16 more
- 2024A Primal-Dual Framework for Transformers and Neural Networkscited by 4
- 2025Transformer Meets Twicing: Harnessing Unattended Residual Informationcited by 3
- 2022Transformer with Fourier Integral Attentionscited by 2
- 2024A Manifold Representation of the Key in Vision Transformerscited by 2
- 2025Generalization Guarantees for Representation Learning via Data-Dependent Gaussian Mixture Priorscited by 2
- 2025Reasoning is Periodicity? Improving Large Language Models Through Effective Periodicity Modelingcited by 2
- 2025PSA-MIL: A Probabilistic Spatial Attention-Based Multiple Instance Learning for Whole Slide Image Classificationcited by 2
- 2024A Semantic and Motion-Aware Spatiotemporal Transformer Network for Action Detectioncited by 1
- 2025Multiview Representation Learning via Distributed Joint Latent Space Structuringcited by 1
- 2025Robust Filter Attention: Self-Attention as Precision-Weighted State Estimationcited by 1
- 2026QUEST: A robust attention formulation using query-modulated spherical attentioncited by 1
- 2023Stochastic Vision Transformers with Wasserstein Distance-Aware Attentioncited by 0
- 2025EventSSEG: Event-driven Self-Supervised Segmentation with Probabilistic Attentioncited by 0
- 2025ForecastGAN: A Decomposition-Based Adversarial Framework for Multi-Horizon Time Series Forecastingcited by 0
- 2026Zonkey: A Hierarchical Diffusion Language Model with Differentiable Tokenization and Probabilistic Attentioncited by 0
- 2026One for All: A Non-Linear Transformer can Enable Cross-Domain Generalization for In-Context Reinforcement Learningcited by 0
- 2026One for All: A Non-Linear Transformer can Enable Cross-Domain Generalization for In-Context Reinforcement Learning10 May 2026
- 2026QUEST: A robust attention formulation using query-modulated spherical attention31 Mar 2026
- 2026Zonkey: A Hierarchical Diffusion Language Model with Differentiable Tokenization and Probabilistic Attention29 Jan 2026
- 2025ForecastGAN: A Decomposition-Based Adversarial Framework for Multi-Horizon Time Series Forecasting6 Nov 2025
- 2025Robust Filter Attention: Self-Attention as Precision-Weighted State Estimation4 Sep 2025
- 2025EventSSEG: Event-driven Self-Supervised Segmentation with Probabilistic Attention20 Aug 2025
- 2025Efficient Degradation-agnostic Image Restoration via Channel-Wise Functional Decomposition and Manifold Regularization24 May 2025
- 2025Multiview Representation Learning via Distributed Joint Latent Space Structuring25 Apr 2025
- 2025Devil is in the Uniformity: Exploring Diverse Learners within Transformer for Image Restoration26 Mar 2025
- 2025PSA-MIL: A Probabilistic Spatial Attention-Based Multiple Instance Learning for Whole Slide Image Classification20 Mar 2025
- 2025Transformer Meets Twicing: Harnessing Unattended Residual Information2 Mar 2025
- 2025Reasoning is Periodicity? Improving Large Language Models Through Effective Periodicity Modeling28 Feb 2025
16 more
- 2025Generalization Guarantees for Representation Learning via Data-Dependent Gaussian Mixture Priors21 Feb 2025
- 2024A Primal-Dual Framework for Transformers and Neural Networks19 Jun 2024
- 2024Elliptical Attention19 Jun 2024
- 2024Unveiling the Hidden Structure of Self-Attention via Kernel Principal Component Analysis19 Jun 2024
- 2024A Semantic and Motion-Aware Spatiotemporal Transformer Network for Action Detection13 May 2024
- 2024OTSeg: Multi-prompt Sinkhorn Attention for Zero-Shot Semantic Segmentation21 Mar 2024
- 2024A Manifold Representation of the Key in Vision Transformers1 Feb 2024
- 2023Transformers Implement Functional Gradient Descent to Learn Non-Linear Functions In Context11 Dec 2023
- 2023Stochastic Vision Transformers with Wasserstein Distance-Aware Attention30 Nov 2023
- 2023Primal-Attention: Self-attention through Asymmetric Kernel SVD in Primal Representation31 May 2023
- 2023Attention: Marginal Probability is All You Need?7 Apr 2023
- 2023On Efficient Training of Large-Scale Deep Learning Models: A Literature Review7 Apr 2023
- 2022DBA: Efficient Transformer with Dynamic Bilinear Low-Rank Attention24 Nov 2022
- 2022Designing Robust Transformers using Robust Kernel Density Estimation11 Oct 2022
- 2022Transformer with Fourier Integral Attentions1 Jun 2022
- 2022Architecture Agnostic Federated Learning for Neural Networks15 Feb 2022
- 2023Transformers Implement Functional Gradient Descent to Learn Non-Linear Functions In Contextcited by 63
- 2022Architecture Agnostic Federated Learning for Neural Networkscited by 30
- 2023Primal-Attention: Self-attention through Asymmetric Kernel SVD in Primal Representationcited by 29
- 2023On Efficient Training of Large-Scale Deep Learning Models: A Literature Reviewcited by 26
- 2022Designing Robust Transformers using Robust Kernel Density Estimationcited by 11
- 2024OTSeg: Multi-prompt Sinkhorn Attention for Zero-Shot Semantic Segmentationcited by 9
- 2025Efficient Degradation-agnostic Image Restoration via Channel-Wise Functional Decomposition and Manifold Regularizationcited by 8
- 2024Unveiling the Hidden Structure of Self-Attention via Kernel Principal Component Analysiscited by 7
- 2024Elliptical Attentioncited by 7
- 2025Devil is in the Uniformity: Exploring Diverse Learners within Transformer for Image Restorationcited by 5
- 2022DBA: Efficient Transformer with Dynamic Bilinear Low-Rank Attentioncited by 4
- 2023Attention: Marginal Probability is All You Need?cited by 4
12 most cited of 25 All 25 (JSON)
- 2026QUEST: A robust attention formulation using query-modulated spherical attention31 Mar 2026
- 2025ForecastGAN: A Decomposition-Based Adversarial Framework for Multi-Horizon Time Series Forecasting6 Nov 2025
- 2025Robust Filter Attention: Self-Attention as Precision-Weighted State Estimation4 Sep 2025
- 2025EventSSEG: Event-driven Self-Supervised Segmentation with Probabilistic Attention20 Aug 2025
- 2025Efficient Degradation-agnostic Image Restoration via Channel-Wise Functional Decomposition and Manifold Regularization24 May 2025
- 2025Multiview Representation Learning via Distributed Joint Latent Space Structuring25 Apr 2025
- 2025Devil is in the Uniformity: Exploring Diverse Learners within Transformer for Image Restoration26 Mar 2025
- 2025PSA-MIL: A Probabilistic Spatial Attention-Based Multiple Instance Learning for Whole Slide Image Classification20 Mar 2025
- 2025Transformer Meets Twicing: Harnessing Unattended Residual Information2 Mar 2025
- 2025Generalization Guarantees for Representation Learning via Data-Dependent Gaussian Mixture Priors21 Feb 2025
- 2024A Primal-Dual Framework for Transformers and Neural Networks19 Jun 2024
- 2024Elliptical Attention19 Jun 2024
12 newest of 25 All 25 (JSON)