Sublinear Time Quantum Algorithm for Attention Approximation
Not on the map. Why?
Abstract (arXiv)
Given the query, key and value matrices Q, K, V∈ ℝn× d, the attention module is defined as Att(Q, K, V)=D-1AV where A=exp(QK^top/√d) with exp(·) applied entrywise, D=diag(Abf 1n). The attention module is the backbone of modern transformers and large language models, but explicitly forming the softmax matrix D-1A incurs Omega(n2) time, motivating numerous approximation schemes that reduce runtime to widetilde O(nd) via sparsity or low-rank factorization. We propose a quantum data structure that approximates any row of Att(Q, K, V) using only row queries to Q, K, V. Our algorithm preprocesses these matrices in widetildeOleft( ε-1 n0.5 left( sλ2.5 + sλ1.5 d + α0.5 d right) right) time, where ε is the target accuracy, sλ is the λ-statistical dimension of the exponential kernel defined by Q and K, and α measures the row distortion of V that is at most d/rm srank(V), the stable rank of V. Each row query can be answered in widetildeO(sλ2 + sλ d) time. To our knowledge, this is the first quantum data structure that approximates rows of the attention matrix in sublinear time with respect to n. Our approach relies on a quantum Nystr"om approximation of the exponential kernel, quantum multivariate mean estimation for computing D, and quantum leverage score sampling for the multiplication with V.
Key facts. Cited by 1 paper in the map (data through 7 Oct 2026). Builds on 64 of its 86 references that are in the map. First posted on arXiv 31 Jan 2026.
Builds on
64 of 86 references.
References · 64
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 29,915
- 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,491
- 2023LLaMA: Open and Efficient Foundation Language Modelscited by 13,958
- 2020End-to-End Object Detection with Transformerscited by 7,384
- 2020Longformer: The Long-Document Transformercited by 3,362
- 2019XLNet: Generalized Autoregressive Pretraining for Language Understandingcited by 2,801
- 2020Informer: Beyond Efficient Transformer for Long Sequence Time-Series Forecastingcited by 2,141
- 2020Transformers are RNNs: Fast Autoregressive Transformers with Linear Attentioncited by 1,979
- 2020Big Bird: Transformers for Longer Sequencescited by 1,673
- 2020Rethinking Attention with Performerscited by 1,584
38 more
- 2019Generating Long Sequences with Sparse Transformerscited by 1,523
- 2020Linformer: Self-Attention with Linear Complexitycited by 1,462
- 2019TinyBERT: Distilling BERT for Natural Language Understandingcited by 1,153
- 2022Efficiently Scaling Transformer Inferencecited by 529
- 2020Efficient Content-Based Sparse Attention with Routing Transformerscited by 469
- 2021Nystr"omformer: A Nystr"om-Based Algorithm for Approximating Self-Attentioncited by 468
- 2015Attention-Based Models for Speech Recognitioncited by 400
- 2021Random Feature Attentioncited by 350
- 2021Attention Mechanisms in Computer Vision: A Surveycited by 232
- 2024Keyformer: KV Cache Reduction through Key Tokens Selection for Efficient Generative Inferencecited by 124
- 2024Reducing Transformer Key-Value Cache Size with Cross-Layer Attentioncited by 122
- 2023Fast Attention Requires Bounded Entriescited by 102
- 2023HyperAttention: Long-context Attention in Near-Linear Timecited by 85
- 2016Quantum Recommendation Systemscited by 69
- 2018q-means: A quantum algorithm for unsupervised machine learningcited by 55
- 2024LoRC: Low-Rank Compression for LLMs KV Cache with a Progressive Compression Strategycited by 50
- 2020SMYRF: Efficient Attention using Asymmetric Clusteringcited by 43
- 2025RocketKV: Accelerating Long-Context LLM Inference via Two-Stage KV Cache Compressioncited by 41
- 2023Algorithm and Hardness for Dynamic Attention Maintenance in Large Language Modelscited by 37
- 2023New Bounds for Matrix Multiplication: from Alpha to Omegacited by 34
- 2019Quantum Wasserstein Generative Adversarial Networkscited by 33
- 2023PolySketchFormer: Fast Transformers via Sketching Polynomial Kernelscited by 33
- 2023Low Rank Matrix Completion via Robust Alternating Minimization in Nearly Linear Timecited by 31
- 2025CriticalKV: Optimizing KV Cache Eviction from an Output Perturbation Perspectivecited by 28
- 2017Quantum SDP-Solvers: Better upper and lower boundscited by 27
- 2024More Asymmetry Yields Faster Matrix Multiplicationcited by 27
- 2024SubGen: Token Generation in Sublinear Time and Memorycited by 21
- 2023Solving Attention Kernel Regression Problem via Pre-conditionercited by 20
- 2018Convex optimization using quantum oraclescited by 19
- 2019Sublinear quantum algorithms for training linear and kernel-based classifierscited by 19
- 2022Faster Matrix Multiplication via Asymmetric Hashingcited by 19
- 2024HSR-Enhanced Sparse Attention Accelerationcited by 19
- 2018A Quantum Interior Point Method for LPs and SDPscited by 17
- 2021Near-Optimal Quantum Algorithms for Multivariate Mean Estimationcited by 16
- 2017Stability of the Lanczos Method for Matrix Function Approximationcited by 15
- 2018Quantum algorithms and lower bounds for convex optimizationcited by 15
- 2023Quantum speedups for stochastic optimizationcited by 12
- 2021Quantum Algorithms and Lower Bounds for Linear Regression with Norm Constraintscited by 11
50 most cited of 64 All 64 (JSON)
Built on by
Citing papers per year: 2026: 1.
1 paper.