mlsanityData to 14 Oct 2026

Attention (as Discrete-Time Markov) Chains

arXiv 2507.17657 ↗First posted 23 Jul 2025cs.CVcited by 11

Not on the map. Why?

Abstract (arXiv)

We introduce a new interpretation of the attention matrix as a discrete-time Markov chain. Our interpretation sheds light on common operations involving attention scores such as selection, summation, and averaging in a unified framework. It further extends them by considering indirect attention, propagated through the Markov chain, as opposed to previous studies that only model immediate effects. Our key observation is that tokens linked to semantically similar regions form metastable states, i.e., regions where attention tends to concentrate, while noisy attention scores dissipate. Metastable states and their prevalence can be easily computed through simple matrix multiplication and eigenanalysis, respectively. Using these lightweight tools, we demonstrate state-of-the-art zero-shot segmentation. Lastly, we define TokenRank -- the steady state vector of the Markov chain, which measures global token importance. We show that TokenRank enhances unconditional image generation, improving both quality (IS) and diversity (FID), and can also be incorporated into existing segmentation techniques to improve their performance over existing benchmarks. We believe our framework offers a fresh view of how tokens are being attended in modern visual transformers.

Key facts. Cited by 11 papers in the map (data through 14 Oct 2026). Builds on 47 of its 57 references that are in the map. First posted on arXiv 23 Jul 2025.

Builds on

47 of 57 references.

References · 47

  1. 2017Attention Is All You Needcited by 60,361
  2. 2021Learning Transferable Visual Models From Natural Language Supervisioncited by 33,744
  3. 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 30,186
  4. 2021High-Resolution Image Synthesis with Latent Diffusion Modelscited by 18,863
  5. 2023DINOv2: Learning Robust Visual Features without Supervisioncited by 7,974
  6. 2021Emerging Properties in Self-Supervised Vision Transformerscited by 6,968
  7. 2016Grad-CAM: Visual Explanations from Deep Networks via Gradient-based Localizationcited by 6,733
  8. 2022LAION-5B: An open large-scale dataset for training next generation image-text modelscited by 4,152
  9. 2016Improved Techniques for Training GANscited by 2,970
  10. 2022Prompt-to-Prompt Image Editing with Cross Attention Controlcited by 2,431
  11. 2013Deep Inside Convolutional Networks: Visualising Image Classification Models and Saliency Mapscited by 2,371
  12. 2018Demystifying MMD GANscited by 1,293
35 more
  1. 2021Transformers in Vision: A Surveycited by 1,013
  2. 2022Plug-and-Play Diffusion Features for Text-Driven Image-to-Image Translationcited by 906
  3. 2023Vision Transformers Need Registerscited by 871
  4. 2019Analyzing Multi-Head Self-Attention: Specialized Heads Do the Heavy Lifting, the Rest Can Be Prunedcited by 856
  5. 2020Quantifying Attention Flow in Transformerscited by 775
  6. 2021Do Vision Transformers See Like Convolutional Neural Networks?cited by 675
  7. 2020Transformer Interpretability Beyond Attention Visualizationcited by 627
  8. 2023Point Transformer V3: Simpler, Faster, Strongercited by 589
  9. 2021Linear Transformers Are Secretly Fast Weight Programmerscited by 502
  10. 2020Hopfield Networks is All You Needcited by 475
  11. 2021Generic Attention-model Explainability for Interpreting Bi-Modal and Encoder-Decoder Transformerscited by 320
  12. 2023MeshGPT: Generating Triangle Meshes with Decoder-Only Transformerscited by 259
  13. 2022What the DAAM: Interpreting Stable Diffusion Using Cross Attentioncited by 236
  14. 2022MoFusion: A Framework for Denoising-Diffusion-based Motion Synthesiscited by 218
  15. 2019Transformer Dissection: A Unified Understanding of Transformer's Attention via the Lens of Kernelcited by 213
  16. 2016Layer-wise Relevance Propagation for Neural Networks with Local Renormalization Layerscited by 199
  17. 2023Interpreting CLIP's Image Representation via Text-Based Decompositioncited by 196
  18. 2022Improving Sample Quality of Diffusion Models Using Self-Attention Guidancecited by 154
  19. 2023Cross-Image Attention for Zero-Shot Appearance Transfercited by 136
  20. 2024Towards Understanding Cross and Self-Attention in Stable Diffusion for Text-Guided Image Editingcited by 135
  21. 2023Diffuse, Attend, and Segment: Unsupervised Zero-Shot Segmentation using Stable Diffusioncited by 131
  22. 2020Self-Attention Attribution: Interpreting Information Interactions Inside Transformercited by 125
  23. 2024AttnLRP: Attention-Aware Layer-Wise Relevance Propagation for Transformerscited by 120
  24. 2023Dataset Diffusion: Diffusion-based Synthetic Dataset Generation for Pixel-Level Semantic Segmentationcited by 112
  25. 2023DiffiT: Diffusion Vision Transformers for Image Generationcited by 106
  26. 2025ConceptAttention: Diffusion Transformers Learn Highly Interpretable Featurescited by 52
  27. 2024CleanDIFT: Diffusion Features without Noisecited by 44
  28. 2024From Self-Attention to Markov Models: Unveiling the Dynamics of Generative Transformerscited by 34
  29. 2024LeGrad: An Explainability Method for Vision Transformers via Feature Formation Sensitivitycited by 33
  30. 2024Monkey See, Monkey Do: Harnessing Self-attention in Motion Diffusion for Zero-shot Motion Transfercited by 31
  31. 2025Unleashing Diffusion Transformers for Visual Correspondence by Modulating Massive Activationscited by 23
  32. 2025Analysis of Attention in Video Diffusion Transformerscited by 15
  33. 2025Towards Mechanistic Interpretability of Graph Transformers via Attention Graphscited by 13
  34. 2025Do It Yourself: Learning Semantic Correspondence from Pseudo-Labelscited by 13
  35. 2024LibraGrad: Balancing Gradient Flow for Universally Better Vision Transformer Attributionscited by 5

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2026: 11.

11 papers.