mlsanityData to 7 Oct 2026

Agent Attention: On the Integration of Softmax and Linear Attention

arXiv 2312.08874 ↗First posted 14 Dec 2023cs.CVcited by 90

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

  1. 2017Attention Is All You Needcited by 59,932
  2. 2021Learning Transferable Visual Models From Natural Language Supervisioncited by 33,456
  3. 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 29,915
  4. 2021High-Resolution Image Synthesis with Latent Diffusion Modelscited by 18,694
  5. 2014Microsoft COCO: Common Objects in Contextcited by 17,498
  6. 2021Swin Transformer: Hierarchical Vision Transformer using Shifted Windowscited by 12,082
  7. 2020Denoising Diffusion Implicit Modelscited by 9,655
  8. 2021Diffusion Models Beat GANs on Image Synthesiscited by 8,185
  9. 2020End-to-End Object Detection with Transformerscited by 7,384
  10. 2017Mask R-CNNcited by 7,259
  11. 2019EfficientNet: Rethinking Model Scaling for Convolutional Neural Networkscited by 6,415
  12. 2017mixup: Beyond Empirical Risk Minimizationcited by 5,155
38 more
  1. 2020Training data-efficient image transformers & distillation through attentioncited by 4,560
  2. 2022A ConvNet for the 2020scited by 3,545
  3. 2022DreamBooth: Fine Tuning Text-to-Image Diffusion Models for Subject-Driven Generationcited by 3,286
  4. 2021SegFormer: Simple and Efficient Design for Semantic Segmentation with Transformerscited by 2,923
  5. 2019CutMix: Regularization Strategy to Train Strong Classifiers with Localizable Featurescited by 2,875
  6. 2019RandAugment: Practical automated data augmentation with a reduced search spacecited by 2,261
  7. 2020Transformers are RNNs: Fast Autoregressive Transformers with Linear Attentioncited by 1,979
  8. 2021Pyramid Vision Transformer: A Versatile Backbone for Dense Prediction without Convolutionscited by 1,960
  9. 2020Rethinking Attention with Performerscited by 1,584
  10. 2017Cascade R-CNN: Delving into High Quality Object Detectioncited by 1,275
  11. 2018Unified Perceptual Parsing for Scene Understandingcited by 1,265
  12. 2017Random Erasing Data Augmentationcited by 1,235
  13. 2021Per-Pixel Classification is Not All You Need for Semantic Segmentationcited by 1,148
  14. 2018Self-Attention with Relative Position Representationscited by 1,112
  15. 2021Tokens-to-Token ViT: Training Vision Transformers from Scratch on ImageNetcited by 1,096
  16. 2016Semantic Understanding of Scenes through the ADE20K Datasetcited by 1,063
  17. 2022Token Merging: Your ViT But Fastercited by 995
  18. 2020Designing Network Design Spacescited by 954
  19. 2021CvT: Introducing Convolutions to Vision Transformerscited by 946
  20. 2021PVT v2: Improved Baselines with Pyramid Vision Transformercited by 749
  21. 2022Pseudo Numerical Methods for Diffusion Models on Manifoldscited by 695
  22. 2019Panoptic Feature Pyramid Networkscited by 644
  23. 2021CSWin Transformer: A General Vision Transformer Backbone with Cross-Shaped Windowscited by 526
  24. 2021MViTv2: Improved Multiscale Vision Transformers for Classification and Detectioncited by 516
  25. 2021Nystr"omformer: A Nystr"om-Based Algorithm for Approximating Self-Attentioncited by 468
  26. 2021Dynamic Neural Networks: A Surveycited by 405
  27. 20218-bit Optimizers via Block-wise Quantizationcited by 395
  28. 2018Efficient Attention: Attention with Linear Complexitiescited by 366
  29. 2022Vision Transformer with Deformable Attentioncited by 293
  30. 2021Focal Self-attention for Local-Global Interactions in Vision Transformerscited by 286
  31. 2022Neighborhood Attention Transformercited by 235
  32. 2023Token Merging for Fast Stable Diffusioncited by 220
  33. 2023FLatten Transformer: Vision Transformer using Focused Linear Attentioncited by 170
  34. 2023BiFormer: Vision Transformer with Bi-Level Routing Attentioncited by 150
  35. 2023Efficient and Explicit Modelling of Image Hierarchies for Image Restorationcited by 145
  36. 2021SOFT: Softmax-free Transformer with Linear Complexitycited by 128
  37. 2022Hydra Attention: Efficient Attention with Many Headscited by 55
  38. 2022Learning to Weight Samples for Dynamic Early-exiting Networkscited by 44

50 most cited of 56 All 56 (JSON)

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2023: 1; 2024: 24; 2025: 40; 2026: 25.

90 papers.

Sort:

By area:

  1. 2023GSVA: Generalized Segmentation via Multimodal Large Language Modelscited by 153
  2. 2024Demystify Mamba in Vision: A Linear Attention Perspectivecited by 101
  3. 2024Dynamic Diffusion Transformercited by 60
  4. 2024Bridging the Divide: Reconsidering Softmax and Linear Attentioncited by 48
  5. 2025Liger: Linearizing Large Language Models to Gated Recurrent Structurescited by 32
  6. 2025PolaFormer: Polarity-aware Linear Attention for Vision Transformerscited by 30
  7. 2025DFormerv2: Geometry Self-Attention for RGBD Semantic Segmentationcited by 30
  8. 2024Real-world Image Dehazing with Coherence-based Pseudo Labeling and Cooperative Unfolding Networkcited by 26
  9. 2024CLEAR: Conv-Like Linearization Revs Pre-Trained Diffusion Transformers Upcited by 26
  10. 2025Training-free Diffusion Acceleration with Bottleneck Samplingcited by 25
  11. 2024Efficient Diffusion Transformer with Step-wise Dynamic Attention Mediatorscited by 24
  12. 2024Referring Atomic Video Action Recognitioncited by 16
38 more
  1. 2024TinyViM: Frequency Decoupling for Tiny Hybrid Vision Mambacited by 15
  2. 2025Simulating the Visual World with Artificial Intelligence: A Roadmapcited by 15
  3. 2025FlashVGGT: Efficient and Scalable Visual Geometry Transformers with Compressed Descriptor Attentioncited by 15
  4. 2025ViT3: Unlocking Test-Time Training in Visioncited by 15
  5. 2024MaDiNet: Mamba Diffusion Network for SAR Target Detectioncited by 13
  6. 2025Comba: Improving Bilinear RNNs with Closed-loop Controlcited by 12
  7. 2024Qihoo-T2X: An Efficient Proxy-Tokenized Diffusion Transformer for Text-to-Any-Taskcited by 9
  8. 2025LiT: Delving into a Simple Linear Diffusion Transformer for Image Generationcited by 9
  9. 2025DAMamba: Vision State Space Model with Dynamic Adaptive Scancited by 9
  10. 2024ENAT: Rethinking Spatial-temporal Interactions in Token-based Image Synthesiscited by 8
  11. 2026SiameseNorm: Breaking the Barrier to Reconciling Pre/Post-Normcited by 8
  12. 2025Vision Mamba in Remote Sensing: A Comprehensive Survey of Techniques, Applications and Outlookcited by 6
  13. 2025DiCo: Revitalizing ConvNets for Scalable and Efficient Diffusion Modelingcited by 6
  14. 2025FSDENet: A Frequency and Spatial Domains based Detail Enhancement Network for Remote Sensing Semantic Segmentationcited by 6
  15. 2025Adaptive Agent Selection and Interaction Network for Image-to-point cloud Registrationcited by 6
  16. 2024CARE Transformer: Mobile-Friendly Linear Visual Transformer via Decoupled Dual Interactioncited by 5
  17. 2025ProxyTransformation: Preshaping Point Cloud Manifold With Proxy Attention For 3D Visual Groundingcited by 5
  18. 2025TA-V2A: Textually Assisted Video-to-Audio Generationcited by 5
  19. 2024Rethinking Iterative Stereo Matching from Diffusion Bridge Model Perspectivecited by 4
  20. 2024End-to-end Semantic-centric Video-based Multimodal Affective Computingcited by 4
  21. 2024DeBiFormer: Vision Transformer with Deformable Agent Bi-level Routing Attentioncited by 4
  22. 2025Attention in Diffusion Model: A Surveycited by 4
  23. 2025Linear Differential Vision Transformer: Learning Visual Contrasts via Pairwise Differentialscited by 4
  24. 2025SlideBot: A Multi-Agent Framework for Generating Informative, Reliable, Multi-Modal Presentationscited by 4
  25. 2025MobileI2V: Fast and High-Resolution Image-to-Video on Mobile Devicescited by 4
  26. 2025Vision Transformers are Circulant Attention Learnerscited by 4
  27. 2024MacFormer: Semantic Segmentation with Fine Object Boundariescited by 3
  28. 2024SP2T: Sparse Proxy Attention for Dual-stream Point Transformercited by 3
  29. 2025SAGA: Selective Adaptive Gating for Efficient and Expressive Linear Attentioncited by 3
  30. 2025Task Vectors, Learned Not Extracted: Performance Gains and Mechanistic Insightcited by 3
  31. 2026LaplacianFormer:Rethinking Linear Attention with Laplacian Kernelcited by 3
  32. 2024ColorMamba: Towards High-quality NIR-to-RGB Spectral Translation with Mambacited by 2
  33. 2025HWA-UNETR: Hierarchical Window Aggregate UNETR for 3D Multimodal Gastric Lesion Segmentationcited by 2
  34. 2025Norm×Direction: Restoring the Missing Query Norm in Vision Linear Attentioncited by 2
  35. 2025Continual Multiple Instance Learning with Enhanced Localization for Histopathological Whole Slide Image Analysiscited by 2
  36. 2025MODA: MOdular Duplex Attention for Multimodal Perception, Cognition, and Emotion Understandingcited by 2
  37. 2025Novel Category Discovery with X-Agent Attention for Open-Vocabulary Semantic Segmentationcited by 2
  38. 2025Towards Interpretable and Efficient Attention: Compressing All by Contracting a Fewcited by 2

50 most cited of 90 All 90 (JSON)

Similar, not cited

Close in wording, no citation either way

  1. 2026On The Application of Linear Attention in Multimodal Transformers
  2. 2025Sigmoid Self-Attention has Lower Sample Complexity than Softmax Self-Attention: A Mixture-of-Experts Perspective
  3. 2025SEMA: a Scalable and Efficient Mamba like Attention via Token Localization and Averaging
  4. 2026A Provable Expressiveness Hierarchy in Hybrid Linear-Full Attention
  5. 2026Scaling Video Understanding via Compact Latent Multi-Agent Collaboration
  6. 2025The End of Transformers? On Challenging Attention and the Rise of Sub-Quadratic Architectures
  7. 2025Log-Linear Attention
  8. 2025SCOUT: Toward Sub-Quadratic Attention via Segment Compression for Optimized Utility in Transformers