mlsanityData to 7 Oct 2026

Sublinear Time Quantum Algorithm for Attention Approximation

arXiv 2602.00874 ↗First posted 31 Jan 2026quant-ph cs.DS cs.LGcited by 1

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

  1. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
  2. 2020Language Models are Few-Shot Learnerscited by 32,199
  3. 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 29,915
  4. 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,491
  5. 2023LLaMA: Open and Efficient Foundation Language Modelscited by 13,958
  6. 2020End-to-End Object Detection with Transformerscited by 7,384
  7. 2020Longformer: The Long-Document Transformercited by 3,362
  8. 2019XLNet: Generalized Autoregressive Pretraining for Language Understandingcited by 2,801
  9. 2020Informer: Beyond Efficient Transformer for Long Sequence Time-Series Forecastingcited by 2,141
  10. 2020Transformers are RNNs: Fast Autoregressive Transformers with Linear Attentioncited by 1,979
  11. 2020Big Bird: Transformers for Longer Sequencescited by 1,673
  12. 2020Rethinking Attention with Performerscited by 1,584
38 more
  1. 2019Generating Long Sequences with Sparse Transformerscited by 1,523
  2. 2020Linformer: Self-Attention with Linear Complexitycited by 1,462
  3. 2019TinyBERT: Distilling BERT for Natural Language Understandingcited by 1,153
  4. 2022Efficiently Scaling Transformer Inferencecited by 529
  5. 2020Efficient Content-Based Sparse Attention with Routing Transformerscited by 469
  6. 2021Nystr"omformer: A Nystr"om-Based Algorithm for Approximating Self-Attentioncited by 468
  7. 2015Attention-Based Models for Speech Recognitioncited by 400
  8. 2021Random Feature Attentioncited by 350
  9. 2021Attention Mechanisms in Computer Vision: A Surveycited by 232
  10. 2024Keyformer: KV Cache Reduction through Key Tokens Selection for Efficient Generative Inferencecited by 124
  11. 2024Reducing Transformer Key-Value Cache Size with Cross-Layer Attentioncited by 122
  12. 2023Fast Attention Requires Bounded Entriescited by 102
  13. 2023HyperAttention: Long-context Attention in Near-Linear Timecited by 85
  14. 2016Quantum Recommendation Systemscited by 69
  15. 2018q-means: A quantum algorithm for unsupervised machine learningcited by 55
  16. 2024LoRC: Low-Rank Compression for LLMs KV Cache with a Progressive Compression Strategycited by 50
  17. 2020SMYRF: Efficient Attention using Asymmetric Clusteringcited by 43
  18. 2025RocketKV: Accelerating Long-Context LLM Inference via Two-Stage KV Cache Compressioncited by 41
  19. 2023Algorithm and Hardness for Dynamic Attention Maintenance in Large Language Modelscited by 37
  20. 2023New Bounds for Matrix Multiplication: from Alpha to Omegacited by 34
  21. 2019Quantum Wasserstein Generative Adversarial Networkscited by 33
  22. 2023PolySketchFormer: Fast Transformers via Sketching Polynomial Kernelscited by 33
  23. 2023Low Rank Matrix Completion via Robust Alternating Minimization in Nearly Linear Timecited by 31
  24. 2025CriticalKV: Optimizing KV Cache Eviction from an Output Perturbation Perspectivecited by 28
  25. 2017Quantum SDP-Solvers: Better upper and lower boundscited by 27
  26. 2024More Asymmetry Yields Faster Matrix Multiplicationcited by 27
  27. 2024SubGen: Token Generation in Sublinear Time and Memorycited by 21
  28. 2023Solving Attention Kernel Regression Problem via Pre-conditionercited by 20
  29. 2018Convex optimization using quantum oraclescited by 19
  30. 2019Sublinear quantum algorithms for training linear and kernel-based classifierscited by 19
  31. 2022Faster Matrix Multiplication via Asymmetric Hashingcited by 19
  32. 2024HSR-Enhanced Sparse Attention Accelerationcited by 19
  33. 2018A Quantum Interior Point Method for LPs and SDPscited by 17
  34. 2021Near-Optimal Quantum Algorithms for Multivariate Mean Estimationcited by 16
  35. 2017Stability of the Lanczos Method for Matrix Function Approximationcited by 15
  36. 2018Quantum algorithms and lower bounds for convex optimizationcited by 15
  37. 2023Quantum speedups for stochastic optimizationcited by 12
  38. 2021Quantum Algorithms and Lower Bounds for Linear Regression with Norm Constraintscited by 11

50 most cited of 64 All 64 (JSON)

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2026: 1.

1 paper.