Agent Attention: On the Integration of Softmax and Linear Attention
Not on the map. Why?
Abstract (arXiv)
The attention module is the key component in Transformers. While the global attention mechanism offers high expressiveness, its excessive computational cost restricts its applicability in various scenarios. In this paper, we propose a novel attention paradigm, Agent Attention, to strike a favorable balance between computational efficiency and representation power. Specifically, the Agent Attention, denoted as a quadruple (Q, A, K, V), introduces an additional set of agent tokens A into the conventional attention module. The agent tokens first act as the agent for the query tokens Q to aggregate information from K and V, and then broadcast the information back to Q. Given the number of agent tokens can be designed to be much smaller than the number of query tokens, the agent attention is significantly more efficient than the widely adopted Softmax attention, while preserving global context modelling capability. Interestingly, we show that the proposed agent attention is equivalent to a generalized form of linear attention. Therefore, agent attention seamlessly integrates the powerful Softmax attention and the highly efficient linear attention. Extensive experiments demonstrate the effectiveness of agent attention with various vision Transformers and across diverse vision tasks, including image classification, object detection, semantic segmentation and image generation. Notably, agent attention has shown remarkable performance in high-resolution scenarios, owning to its linear attention nature. For instance, when applied to Stable Diffusion, our agent attention accelerates generation and substantially enhances image generation quality without any additional training. Code is available at https://github.com/LeapLabTHU/Agent-Attention.
Key facts. Cited by 90 papers in the map (data through 7 Oct 2026). Builds on 56 of its 63 references that are in the map. First posted on arXiv 14 Dec 2023.
Builds on
56 of 63 references.
References · 56
- 2017Attention Is All You Needcited by 59,932
- 2021Learning Transferable Visual Models From Natural Language Supervisioncited by 33,456
- 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 29,915
- 2021High-Resolution Image Synthesis with Latent Diffusion Modelscited by 18,694
- 2014Microsoft COCO: Common Objects in Contextcited by 17,498
- 2021Swin Transformer: Hierarchical Vision Transformer using Shifted Windowscited by 12,082
- 2020Denoising Diffusion Implicit Modelscited by 9,655
- 2021Diffusion Models Beat GANs on Image Synthesiscited by 8,185
- 2020End-to-End Object Detection with Transformerscited by 7,384
- 2017Mask R-CNNcited by 7,259
- 2019EfficientNet: Rethinking Model Scaling for Convolutional Neural Networkscited by 6,415
- 2017mixup: Beyond Empirical Risk Minimizationcited by 5,155
38 more
- 2020Training data-efficient image transformers & distillation through attentioncited by 4,560
- 2022A ConvNet for the 2020scited by 3,545
- 2022DreamBooth: Fine Tuning Text-to-Image Diffusion Models for Subject-Driven Generationcited by 3,286
- 2021SegFormer: Simple and Efficient Design for Semantic Segmentation with Transformerscited by 2,923
- 2019CutMix: Regularization Strategy to Train Strong Classifiers with Localizable Featurescited by 2,875
- 2019RandAugment: Practical automated data augmentation with a reduced search spacecited by 2,261
- 2020Transformers are RNNs: Fast Autoregressive Transformers with Linear Attentioncited by 1,979
- 2021Pyramid Vision Transformer: A Versatile Backbone for Dense Prediction without Convolutionscited by 1,960
- 2020Rethinking Attention with Performerscited by 1,584
- 2017Cascade R-CNN: Delving into High Quality Object Detectioncited by 1,275
- 2018Unified Perceptual Parsing for Scene Understandingcited by 1,265
- 2017Random Erasing Data Augmentationcited by 1,235
- 2021Per-Pixel Classification is Not All You Need for Semantic Segmentationcited by 1,148
- 2018Self-Attention with Relative Position Representationscited by 1,112
- 2021Tokens-to-Token ViT: Training Vision Transformers from Scratch on ImageNetcited by 1,096
- 2016Semantic Understanding of Scenes through the ADE20K Datasetcited by 1,063
- 2022Token Merging: Your ViT But Fastercited by 995
- 2020Designing Network Design Spacescited by 954
- 2021CvT: Introducing Convolutions to Vision Transformerscited by 946
- 2021PVT v2: Improved Baselines with Pyramid Vision Transformercited by 749
- 2022Pseudo Numerical Methods for Diffusion Models on Manifoldscited by 695
- 2019Panoptic Feature Pyramid Networkscited by 644
- 2021CSWin Transformer: A General Vision Transformer Backbone with Cross-Shaped Windowscited by 526
- 2021MViTv2: Improved Multiscale Vision Transformers for Classification and Detectioncited by 516
- 2021Nystr"omformer: A Nystr"om-Based Algorithm for Approximating Self-Attentioncited by 468
- 2021Dynamic Neural Networks: A Surveycited by 405
- 20218-bit Optimizers via Block-wise Quantizationcited by 395
- 2018Efficient Attention: Attention with Linear Complexitiescited by 366
- 2022Vision Transformer with Deformable Attentioncited by 293
- 2021Focal Self-attention for Local-Global Interactions in Vision Transformerscited by 286
- 2022Neighborhood Attention Transformercited by 235
- 2023Token Merging for Fast Stable Diffusioncited by 220
- 2023FLatten Transformer: Vision Transformer using Focused Linear Attentioncited by 170
- 2023BiFormer: Vision Transformer with Bi-Level Routing Attentioncited by 150
- 2023Efficient and Explicit Modelling of Image Hierarchies for Image Restorationcited by 145
- 2021SOFT: Softmax-free Transformer with Linear Complexitycited by 128
- 2022Hydra Attention: Efficient Attention with Many Headscited by 55
- 2022Learning to Weight Samples for Dynamic Early-exiting Networkscited by 44
50 most cited of 56 All 56 (JSON)
Built on by
Citing papers per year: 2023: 1; 2024: 24; 2025: 40; 2026: 25.
90 papers.
Sort:
By area:
- 2023GSVA: Generalized Segmentation via Multimodal Large Language Modelscited by 153
- 2024Demystify Mamba in Vision: A Linear Attention Perspectivecited by 101
- 2024Dynamic Diffusion Transformercited by 60
- 2024Bridging the Divide: Reconsidering Softmax and Linear Attentioncited by 48
- 2025Liger: Linearizing Large Language Models to Gated Recurrent Structurescited by 32
- 2025PolaFormer: Polarity-aware Linear Attention for Vision Transformerscited by 30
- 2025DFormerv2: Geometry Self-Attention for RGBD Semantic Segmentationcited by 30
- 2024Real-world Image Dehazing with Coherence-based Pseudo Labeling and Cooperative Unfolding Networkcited by 26
- 2024CLEAR: Conv-Like Linearization Revs Pre-Trained Diffusion Transformers Upcited by 26
- 2025Training-free Diffusion Acceleration with Bottleneck Samplingcited by 25
- 2024Efficient Diffusion Transformer with Step-wise Dynamic Attention Mediatorscited by 24
- 2024Referring Atomic Video Action Recognitioncited by 16
38 more
- 2024TinyViM: Frequency Decoupling for Tiny Hybrid Vision Mambacited by 15
- 2025Simulating the Visual World with Artificial Intelligence: A Roadmapcited by 15
- 2025FlashVGGT: Efficient and Scalable Visual Geometry Transformers with Compressed Descriptor Attentioncited by 15
- 2025ViT3: Unlocking Test-Time Training in Visioncited by 15
- 2024MaDiNet: Mamba Diffusion Network for SAR Target Detectioncited by 13
- 2025Comba: Improving Bilinear RNNs with Closed-loop Controlcited by 12
- 2024Qihoo-T2X: An Efficient Proxy-Tokenized Diffusion Transformer for Text-to-Any-Taskcited by 9
- 2025LiT: Delving into a Simple Linear Diffusion Transformer for Image Generationcited by 9
- 2025DAMamba: Vision State Space Model with Dynamic Adaptive Scancited by 9
- 2024ENAT: Rethinking Spatial-temporal Interactions in Token-based Image Synthesiscited by 8
- 2026SiameseNorm: Breaking the Barrier to Reconciling Pre/Post-Normcited by 8
- 2025Vision Mamba in Remote Sensing: A Comprehensive Survey of Techniques, Applications and Outlookcited by 6
- 2025DiCo: Revitalizing ConvNets for Scalable and Efficient Diffusion Modelingcited by 6
- 2025FSDENet: A Frequency and Spatial Domains based Detail Enhancement Network for Remote Sensing Semantic Segmentationcited by 6
- 2025Adaptive Agent Selection and Interaction Network for Image-to-point cloud Registrationcited by 6
- 2024CARE Transformer: Mobile-Friendly Linear Visual Transformer via Decoupled Dual Interactioncited by 5
- 2025ProxyTransformation: Preshaping Point Cloud Manifold With Proxy Attention For 3D Visual Groundingcited by 5
- 2025TA-V2A: Textually Assisted Video-to-Audio Generationcited by 5
- 2024Rethinking Iterative Stereo Matching from Diffusion Bridge Model Perspectivecited by 4
- 2024End-to-end Semantic-centric Video-based Multimodal Affective Computingcited by 4
- 2024DeBiFormer: Vision Transformer with Deformable Agent Bi-level Routing Attentioncited by 4
- 2025Attention in Diffusion Model: A Surveycited by 4
- 2025Linear Differential Vision Transformer: Learning Visual Contrasts via Pairwise Differentialscited by 4
- 2025SlideBot: A Multi-Agent Framework for Generating Informative, Reliable, Multi-Modal Presentationscited by 4
- 2025MobileI2V: Fast and High-Resolution Image-to-Video on Mobile Devicescited by 4
- 2025Vision Transformers are Circulant Attention Learnerscited by 4
- 2024MacFormer: Semantic Segmentation with Fine Object Boundariescited by 3
- 2024SP2T: Sparse Proxy Attention for Dual-stream Point Transformercited by 3
- 2025SAGA: Selective Adaptive Gating for Efficient and Expressive Linear Attentioncited by 3
- 2025Task Vectors, Learned Not Extracted: Performance Gains and Mechanistic Insightcited by 3
- 2026LaplacianFormer:Rethinking Linear Attention with Laplacian Kernelcited by 3
- 2024ColorMamba: Towards High-quality NIR-to-RGB Spectral Translation with Mambacited by 2
- 2025HWA-UNETR: Hierarchical Window Aggregate UNETR for 3D Multimodal Gastric Lesion Segmentationcited by 2
- 2025Norm×Direction: Restoring the Missing Query Norm in Vision Linear Attentioncited by 2
- 2025Continual Multiple Instance Learning with Enhanced Localization for Histopathological Whole Slide Image Analysiscited by 2
- 2025MODA: MOdular Duplex Attention for Multimodal Perception, Cognition, and Emotion Understandingcited by 2
- 2025Novel Category Discovery with X-Agent Attention for Open-Vocabulary Semantic Segmentationcited by 2
- 2025Towards Interpretable and Efficient Attention: Compressing All by Contracting a Fewcited by 2
50 most cited of 90 All 90 (JSON)
- 2026Cluster Attention Neural Operators for Solving Parametric Partial Differential Equations30 Sep 2026
- 2026Switching Linear Attention30 Sep 2026
- 2026VisionHOPE: Visual Backbones as Self-Modifying Learning Systems27 Sep 2026
- 2026FLARE++: Low-rank attention with dynamic attention routing12 Aug 2026
- 2026STAGformer: A Spatio-temporal Agent Graph Transformer for Micro Mobility Demand Forecasting7 Jul 2026
- 2026JetViT: Efficient High-Resolution Vision Transformer with Post-Training Attention Search26 May 2026
- 2026Synthetic Aperture Radar Image Change Detection Based on Global Dynamic Context-Aware Network16 May 2026
- 2026Representative Attention For Vision Transformers14 May 2026
- 2026TurboVGGT: Fast Visual Geometry Reconstruction with Adaptive Alternating Attention14 May 2026
- 2026Do Vision Transformers Need All-to-All Attention? Global Communication Through Elastic Learned Cores12 May 2026
- 2026Linear-Time Global Visual Modeling without Explicit Attention3 May 2026
- 2026LaplacianFormer:Rethinking Linear Attention with Laplacian Kernel22 Apr 2026
38 more
- 2026Advancing Vision Transformer with Enhanced Spatial Priors20 Apr 2026
- 2026ScenarioControl: Vision-Language Controllable Vectorized Latent Scenario Generation18 Apr 2026
- 2026Ge2mS-T: Multi-Dimensional Grouping for Ultra-High Energy Efficiency in Spiking Transformer10 Apr 2026
- 2026Efficiency Follows Global-Local Decoupling20 Mar 2026
- 2026Exploring Spatiotemporal Feature Propagation for Video-Level Compressive Spectral Reconstruction: Dataset, Model and Benchmark28 Feb 2026
- 2026Self-Attention And Beyond the Infinite: Towards Linear Transformers with Infinite Self-Attention26 Feb 2026
- 2026GFRRN: Explore the Gaps in Single Image Reflection Removal26 Feb 2026
- 2026SiameseNorm: Breaking the Barrier to Reconciling Pre/Post-Norm8 Feb 2026
- 2026MirrorLA: Reflecting Feature Map for Vision Linear Attention4 Feb 2026
- 2026Mixture-of-Top-k Attention: Efficient Attention via Scalable Fast Weights1 Feb 2026
- 2026Dynamic Differential Linear Attention: Enhancing Linear Diffusion Transformer for High-Quality Image Generation20 Jan 2026
- 2026SoLA-Vision: Fine-grained Layer-wise Linear Softmax Hybrid Attention16 Jan 2026
- 2026SfMamba: Efficient Source-Free Domain Adaptation via Selective Scan Modeling13 Jan 2026
- 2025Learning Where to Focus: Density-Driven Guidance for Detecting Dense Tiny Objects28 Dec 2025
- 2025Vision Transformers are Circulant Attention Learners25 Dec 2025
- 2025ViT3: Unlocking Test-Time Training in Vision1 Dec 2025
- 2025FlashVGGT: Efficient and Scalable Visual Geometry Transformers with Compressed Descriptor Attention1 Dec 2025
- 2025MobileI2V: Fast and High-Resolution Image-to-Video on Mobile Devices26 Nov 2025
- 2025SlideBot: A Multi-Agent Framework for Generating Informative, Reliable, Multi-Modal Presentations12 Nov 2025
- 2025Simulating the Visual World with Artificial Intelligence: A Roadmap11 Nov 2025
- 2025Adaptive Agent Selection and Interaction Network for Image-to-point cloud Registration8 Nov 2025
- 2025Linear Differential Vision Transformer: Learning Visual Contrasts via Pairwise Differentials2 Nov 2025
- 2025Efficient High-Accuracy PDEs Solver with the Linear Attention Neural Operator19 Oct 2025
- 2025FSDENet: A Frequency and Spatial Domains based Detail Enhancement Network for Remote Sensing Semantic Segmentation29 Sep 2025
- 2025Task Vectors, Learned Not Extracted: Performance Gains and Mechanistic Insight29 Sep 2025
- 2025Towards Interpretable and Efficient Attention: Compressing All by Contracting a Few21 Sep 2025
- 2025Hierarchical Self-Attention: Generalizing Neural Attention Mechanics to Multi-Scale Problems18 Sep 2025
- 2025SAGA: Selective Adaptive Gating for Efficient and Expressive Linear Attention16 Sep 2025
- 2025Novel Category Discovery with X-Agent Attention for Open-Vocabulary Semantic Segmentation1 Sep 2025
- 2025Lightweight Backbone Networks Only Require Adaptive Lightweight Self-Attention Mechanisms2 Aug 2025
- 2025DistrAttention: An Efficient and Flexible Self-Attention Mechanism on Modern GPUs23 Jul 2025
- 2025MODA: MOdular Duplex Attention for Multimodal Perception, Cognition, and Emotion Understanding7 Jul 2025
- 2025Continual Multiple Instance Learning with Enhanced Localization for Histopathological Whole Slide Image Analysis3 Jul 2025
- 2025End-to-End RGB-IR Joint Image Compression With Channel-wise Cross-modality Entropy Model27 Jun 2025
- 2025Norm×Direction: Restoring the Missing Query Norm in Vision Linear Attention26 Jun 2025
- 2025Da Yu: Towards USV-Based Image Captioning for Waterway Surveillance and Scene Understanding24 Jun 2025
- 2025Comba: Improving Bilinear RNNs with Closed-loop Control3 Jun 2025
- 2025MSLAU-Net: A Hybrid CNN-Transformer Network for Medical Image Segmentation24 May 2025
50 newest of 90 All 90 (JSON)
- 2024Dynamic Diffusion Transformercited by 60
- 2024CLEAR: Conv-Like Linearization Revs Pre-Trained Diffusion Transformers Upcited by 26
- 2025Training-free Diffusion Acceleration with Bottleneck Samplingcited by 25
- 2024Efficient Diffusion Transformer with Step-wise Dynamic Attention Mediatorscited by 24
- 2024Qihoo-T2X: An Efficient Proxy-Tokenized Diffusion Transformer for Text-to-Any-Taskcited by 9
- 2025LiT: Delving into a Simple Linear Diffusion Transformer for Image Generationcited by 9
- 2025DiCo: Revitalizing ConvNets for Scalable and Efficient Diffusion Modelingcited by 6
- 2025TA-V2A: Textually Assisted Video-to-Audio Generationcited by 5
- 2025Attention in Diffusion Model: A Surveycited by 4
- 2025MobileI2V: Fast and High-Resolution Image-to-Video on Mobile Devicescited by 4
- 2026Dynamic Differential Linear Attention: Enhancing Linear Diffusion Transformer for High-Quality Image Generationcited by 0
- 2026Dynamic Differential Linear Attention: Enhancing Linear Diffusion Transformer for High-Quality Image Generation20 Jan 2026
- 2025MobileI2V: Fast and High-Resolution Image-to-Video on Mobile Devices26 Nov 2025
- 2025DiCo: Revitalizing ConvNets for Scalable and Efficient Diffusion Modeling16 May 2025
- 2025Attention in Diffusion Model: A Survey1 Apr 2025
- 2025Training-free Diffusion Acceleration with Bottleneck Sampling24 Mar 2025
- 2025TA-V2A: Textually Assisted Video-to-Audio Generation12 Mar 2025
- 2025LiT: Delving into a Simple Linear Diffusion Transformer for Image Generation22 Jan 2025
- 2024CLEAR: Conv-Like Linearization Revs Pre-Trained Diffusion Transformers Up20 Dec 2024
- 2024Dynamic Diffusion Transformer4 Oct 2024
- 2024Qihoo-T2X: An Efficient Proxy-Tokenized Diffusion Transformer for Text-to-Any-Task6 Sep 2024
- 2024Efficient Diffusion Transformer with Step-wise Dynamic Attention Mediators11 Aug 2024
- 2024Demystify Mamba in Vision: A Linear Attention Perspectivecited by 101
- 2024TinyViM: Frequency Decoupling for Tiny Hybrid Vision Mambacited by 15
- 2024MaDiNet: Mamba Diffusion Network for SAR Target Detectioncited by 13
- 2025Vision Mamba in Remote Sensing: A Comprehensive Survey of Techniques, Applications and Outlookcited by 6
- 2024ColorMamba: Towards High-quality NIR-to-RGB Spectral Translation with Mambacited by 2
- 2025Surface Vision Mamba: Leveraging Bidirectional State Space Model for Efficient Spherical Manifold Representationcited by 1
- 2026SfMamba: Efficient Source-Free Domain Adaptation via Selective Scan Modelingcited by 0
- 2026SfMamba: Efficient Source-Free Domain Adaptation via Selective Scan Modeling13 Jan 2026
- 2025Vision Mamba in Remote Sensing: A Comprehensive Survey of Techniques, Applications and Outlook1 May 2025
- 2025Surface Vision Mamba: Leveraging Bidirectional State Space Model for Efficient Spherical Manifold Representation24 Jan 2025
- 2024TinyViM: Frequency Decoupling for Tiny Hybrid Vision Mamba26 Nov 2024
- 2024MaDiNet: Mamba Diffusion Network for SAR Target Detection12 Nov 2024
- 2024ColorMamba: Towards High-quality NIR-to-RGB Spectral Translation with Mamba15 Aug 2024
- 2024Demystify Mamba in Vision: A Linear Attention Perspective26 May 2024
- 2026Representative Attention For Vision Transformerscited by 0
- 2026Representative Attention For Vision Transformers14 May 2026
- 2024Bridging the Divide: Reconsidering Softmax and Linear Attentioncited by 48
- 2025Liger: Linearizing Large Language Models to Gated Recurrent Structurescited by 32
- 2025PolaFormer: Polarity-aware Linear Attention for Vision Transformerscited by 30
- 2025DFormerv2: Geometry Self-Attention for RGBD Semantic Segmentationcited by 30
- 2024Real-world Image Dehazing with Coherence-based Pseudo Labeling and Cooperative Unfolding Networkcited by 26
- 2024Referring Atomic Video Action Recognitioncited by 16
- 2025FlashVGGT: Efficient and Scalable Visual Geometry Transformers with Compressed Descriptor Attentioncited by 15
- 2025ViT3: Unlocking Test-Time Training in Visioncited by 15
- 2025Comba: Improving Bilinear RNNs with Closed-loop Controlcited by 12
- 2025DAMamba: Vision State Space Model with Dynamic Adaptive Scancited by 9
- 2024ENAT: Rethinking Spatial-temporal Interactions in Token-based Image Synthesiscited by 8
- 2026SiameseNorm: Breaking the Barrier to Reconciling Pre/Post-Normcited by 8
12 most cited of 64 All 64 (JSON)
- 2026Cluster Attention Neural Operators for Solving Parametric Partial Differential Equations30 Sep 2026
- 2026Switching Linear Attention30 Sep 2026
- 2026VisionHOPE: Visual Backbones as Self-Modifying Learning Systems27 Sep 2026
- 2026FLARE++: Low-rank attention with dynamic attention routing12 Aug 2026
- 2026STAGformer: A Spatio-temporal Agent Graph Transformer for Micro Mobility Demand Forecasting7 Jul 2026
- 2026JetViT: Efficient High-Resolution Vision Transformer with Post-Training Attention Search26 May 2026
- 2026Synthetic Aperture Radar Image Change Detection Based on Global Dynamic Context-Aware Network16 May 2026
- 2026TurboVGGT: Fast Visual Geometry Reconstruction with Adaptive Alternating Attention14 May 2026
- 2026Do Vision Transformers Need All-to-All Attention? Global Communication Through Elastic Learned Cores12 May 2026
- 2026Linear-Time Global Visual Modeling without Explicit Attention3 May 2026
- 2026LaplacianFormer:Rethinking Linear Attention with Laplacian Kernel22 Apr 2026
- 2026Advancing Vision Transformer with Enhanced Spatial Priors20 Apr 2026
12 newest of 64 All 64 (JSON)
Similar, not cited
Close in wording, no citation either way
- 2026On The Application of Linear Attention in Multimodal Transformers
- 2025Sigmoid Self-Attention has Lower Sample Complexity than Softmax Self-Attention: A Mixture-of-Experts Perspective
- 2025SEMA: a Scalable and Efficient Mamba like Attention via Token Localization and Averaging
- 2026A Provable Expressiveness Hierarchy in Hybrid Linear-Full Attention
- 2026Scaling Video Understanding via Compact Latent Multi-Agent Collaboration
- 2025The End of Transformers? On Challenging Attention and the Rise of Sub-Quadratic Architectures
- 2025Log-Linear Attention
- 2025SCOUT: Toward Sub-Quadratic Attention via Segment Compression for Optimized Utility in Transformers