Efficiently Approximating Attention Is Hard
Not on the map. Why?
Abstract (arXiv)
Softmax attention is ubiquitous in modern machine learning, but its quadratic scaling with sequence length makes it costly. To reduce this cost, attention is often approximated with fast algorithms, which incur error but can still perform well in practice and on some inputs. At the same time, the growing diversity of attention applications makes approximation guarantees that do not depend on particular input structure a compelling target. For such uniform guarantees over all inputs, known runtime lower bounds rule out fast algorithms for near-exact attention, but leave open the practically important regime: is there an efficient algorithm with even a modest uniform approximation guarantee? We answer this question negatively. Under standard complexity-theoretic assumptions, no truly subquadratic algorithm can approximate attention with any nontrivial additive or relative guarantee uniformly over all inputs. This impossibility holds in the mildest parameter regime for which known algorithms do not already achieve strong approximation guarantees in near-linear time, and extends to practically relevant relaxations: even after polynomial preprocessing of the KV cache, no efficient algorithm can obtain a nontrivial uniform approximation guarantee, or identify a small set of keys receiving substantial attention under sparsity. Overall, our results settle the computational limits of uniform attention approximation.
Key facts. No citing papers in the map yet (data through 7 Oct 2026). Builds on 31 of its 33 references that are in the map. First posted on arXiv 29 Sep 2026.
Builds on
31 of 33 references.
References · 31
- 2017Attention Is All You Needcited by 59,932
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
- 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 29,915
- 2020Longformer: The Long-Document Transformercited by 3,362
- 2023FlashAttention-2: Faster Attention with Better Parallelism and Work Partitioningcited by 2,551
- 2020Informer: Beyond Efficient Transformer for Long Sequence Time-Series Forecastingcited by 2,141
- 2020Conformer: Convolution-augmented Transformer for Speech Recognitioncited by 1,838
- 2020Big Bird: Transformers for Longer Sequencescited by 1,673
- 2020Reformer: The Efficient Transformercited by 1,658
- 2020Rethinking Attention with Performerscited by 1,584
- 2019Generating Long Sequences with Sparse Transformerscited by 1,523
- 2020Linformer: Self-Attention with Linear Complexitycited by 1,462
19 more
- 2024SnapKV: LLM Knows What You are Looking for Before Generationcited by 848
- 2019Are Sixteen Heads Really Better than One?cited by 803
- 2024KIVI: A Tuning-Free Asymmetric 2bit Quantization for KV Cachecited by 604
- 2024Quest: Query-Aware Sparsity for Efficient Long-Context LLM Inferencecited by 487
- 2020Efficient Content-Based Sparse Attention with Routing Transformerscited by 469
- 2021Nystr"omformer: A Nystr"om-Based Algorithm for Approximating Self-Attentioncited by 468
- 2020Sparse Sinkhorn Attentioncited by 250
- 2021FQ-ViT: Post-Training Quantization for Fully Quantized Vision Transformercited by 148
- 2022On The Computational Complexity of Self-Attentioncited by 137
- 2020Fast Transformers with Clustered Attentioncited by 123
- 2024RetrievalAttention: Accelerating Long-Context LLM Inference via Vector Retrievalcited by 114
- 2024MagicPIG: LSH Sampling for Efficient LLM Generationcited by 112
- 2023Fast Attention Requires Bounded Entriescited by 102
- 2023HyperAttention: Long-context Attention in Near-Linear Timecited by 85
- 2023KDEformer: Accelerating Transformers via Kernel Density Estimationcited by 58
- 2018Hardness of Approximate Nearest Neighbor Searchcited by 19
- 2026WildCat: Near-Linear Attention in Theory and Practicecited by 6
- 2025Subquadratic Algorithms and Hardness for Attention with Any Temperaturecited by 4
- 2025Support Basis: Fast Attention Beyond Bounded Entriescited by 2
Built on by
Not cited yet.
Similar, not cited
Close in wording, no citation either way
- 2025vAttention: Verified Sparse Attention
- 2024How Sparse Attention Approximates Exact Attention? Your Attention is Naturally nC-Sparse
- 2026Towards Tight Bounds for Streaming Attention
- 2024MetaLA: Unified Optimal Linear Approximation to Softmax Attention Map
- 2025Mixture of Sparse Attention: Content-Based Learnable Sparse Attention via Expert-Choice Routing
- 2025Element-wise Attention Is All You Need
- 2026Scaling Attention via Feature Sparsity
- 2025Tactic: Adaptive Sparse Attention with Clustering and Distribution Fitting for Long-Context LLMs