Self-Attention And Beyond the Infinite: Towards Linear Transformers with Infinite Self-Attention
Not on the map. Why?
Abstract (arXiv)
The quadratic cost of softmax attention limits Transformer scalability in high-resolution vision. We introduce Infinite Self-Attention (InfSA), a spectral reformulation that treats each attention layer as a diffusion step on a content-adaptive token graph, accumulating multi-hop interactions through a discounted Neumann series over attention matrices. This links self-attention to classical graph centrality (Katz, PageRank, eigenvector centrality) for interpretable token weighting. We also show the Neumann kernel equals the fundamental matrix of an absorbing Markov chain, so a token's centrality is its expected number of random-walk visits before absorption. We then propose Linear-InfSA, a linear-time variant that approximates the principal eigenvector of the implicit attention operator without forming the full attention matrix. It keeps an auxiliary state of fixed size proportional to per-head dimension dh (independent of sequence length N), is drop-in compatible with Vision Transformers, and supports stable training at 4096 by 4096 and inference at 9216 by 9216 (about 332k tokens). In a 4-layer ViT (53.5M parameters, 59 GFLOPs at 224 by 224), Linear-InfSA reaches 84.7% top-1 on ImageNet-1K, a +3.2 point architectural gain over an equal-depth softmax ViT trained with the same recipe. On ImageNet-V2, InfViT variants outperform all compared baselines (up to 79.8% vs 76.8%), indicating robustness under distribution shift. On an A100 40GB GPU, Linear-InfViT runs at 231 images/s and 0.87 J/image (13x better throughput and energy than equal-depth ViT) and is the only tested model to complete 9216 by 9216 inference without out-of-memory. The linear approximation closely matches the dominant eigenvector of the quadratic operator (cosine 0.985).
Key facts. No citing papers in the map yet (data through 14 Oct 2026). Builds on 49 of its 76 references that are in the map. First posted on arXiv 26 Feb 2026.
Builds on
49 of 76 references.
References · 49
- 2017Attention Is All You Needcited by 60,361
- 2020Language Models are Few-Shot Learnerscited by 32,419
- 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 30,186
- 2017Squeeze-and-Excitation Networkscited by 4,789
- 2023Mamba: Linear-Time Sequence Modeling with Selective State Spacescited by 4,718
- 2020Training data-efficient image transformers & distillation through attentioncited by 4,586
- 2020Longformer: The Long-Document Transformercited by 3,413
- 2023FlashAttention-2: Faster Attention with Better Parallelism and Work Partitioningcited by 2,598
- 2017Non-local Neural Networkscited by 2,293
- 2020Rethinking Attention with Performerscited by 1,601
- 2019Do ImageNet Classifiers Generalize to ImageNet?cited by 1,515
- 2020Linformer: Self-Attention with Linear Complexitycited by 1,474
37 more
- 2019Energy and Policy Considerations for Deep Learning in NLPcited by 1,254
- 2021Swin Transformer V2: Scaling Up Capacity and Resolutioncited by 1,228
- 2018Deeper Insights into Graph Convolutional Networks for Semi-Supervised Learningcited by 1,102
- 2023RWKV: Reinventing RNNs for the Transformer Eracited by 827
- 2020Quantifying Attention Flow in Transformerscited by 775
- 2020Transformer Interpretability Beyond Attention Visualizationcited by 627
- 2017Interpretable Explanations of Black Boxes by Meaningful Perturbationcited by 612
- 2022InternImage: Exploring Large-Scale Vision Foundation Models with Deformable Convolutionscited by 482
- 2021Nystr"omformer: A Nystr"om-Based Algorithm for Approximating Self-Attentioncited by 471
- 2015Evaluating the visualization of what a Deep Neural Network has learnedcited by 419
- 2017Graph Signal Processing: Overview, Challenges and Applicationscited by 413
- 2024MambaVision: A Hybrid Mamba-Transformer Vision Backbonecited by 224
- 2023FLatten Transformer: Vision Transformer using Focused Linear Attentioncited by 171
- 2021SOFT: Softmax-free Transformer with Linear Complexitycited by 128
- 2024Demystify Mamba in Vision: A Linear Attention Perspectivecited by 102
- 2022Global Context Vision Transformerscited by 98
- 2023Agent Attention: On the Integration of Softmax and Linear Attentioncited by 90
- 2023RMT: Retentive Networks Meet Vision Transformerscited by 68
- 2021Fastformer: Additive Attention Can Be All You Needcited by 61
- 2023Scale-Aware Modulation Meet Transformercited by 49
- 2022Vision Transformer with Super Token Samplingcited by 44
- 2023SG-Former: Self-guided Transformer with Evolving Token Reallocationcited by 32
- 2024Breaking the Low-Rank Dilemma of Linear Attentioncited by 31
- 2023Lightweight Vision Transformer with Bidirectional Interactioncited by 25
- 2020Infinite Feature Selection: A Graph-based Feature Filtering Approachcited by 16
- 2024ViG: Linear-complexity Visual Sequence Learning with Gated Linear Attentioncited by 13
- 2025Attention (as Discrete-Time Markov) Chainscited by 11
- 2024Unveiling the Hidden Structure of Self-Attention via Kernel Principal Component Analysiscited by 7
- 2017Infinite Latent Feature Selection: A Probabilistic Latent Graph-Based Ranking Approachcited by 6
- 2017Ranking to Learn and Learning to Rank: On the Role of Ranking in Pattern Recognition Applicationscited by 4
- 2016Feature Selection Library (MATLAB Toolbox)cited by 3
- 2017Ranking to Learn: Feature Ranking and Selection via Eigenvector Centralitycited by 3
- 2024Hard-Attention Gates with Gradient Routing for Endoscopic Image Computingcited by 3
- 2024Exploring Advanced Large Language Models with LLMsuitecited by 3
- 2024HyenaPixel: Global Image Context with Convolutionscited by 2
- 2016Object Tracking via Dynamic Feature Selection Processescited by 1
- 2025The Origin of Self-Attention: Pairwise Affinity Matrices in Feature Selection and the Emergence of Self-Attentioncited by 1
Built on by
Not cited yet.