mlsanityData to 7 Oct 2026

Beyond Classical Attention: Quantum Attention for Scalable Computation

arXiv 2307.08045 ↗First posted 16 Jul 2023quant-ph cs.LGcited by 18

Not on the map. Why?

Abstract (arXiv)

As large language models (LLMs) demonstrate outstanding performance across various tasks, attention-driven models have profoundly transformed the field of machine learning. Since attention computations account for the primary computational overhead in both model inference and training, efficiently computing attention matrices has become one of the core challenges in accelerating large language models. It is well-known that quantum machines possess computational advantages over classical machines, and the role of quantum computing in LLMs remains largely unexplored. In this work, we focus on leveraging the Grover search algorithm to efficiently compute a sparse attention matrix. Through comparisons with classical algorithms, we demonstrate that our method achieves quantum acceleration in polynomial time. Additionally, we observe that the generated quantum attention matrices naturally exhibit low-rank structures, providing further theoretical support for efficient modeling. Moreover, within the specific context of attention matrix computation, we conduct a systematic and detailed analysis of the error and time complexity of the proposed algorithm.

Key facts. Cited by 18 papers in the map (data through 7 Oct 2026). Builds on 54 of its 80 references that are in the map. First posted on arXiv 16 Jul 2023.

Builds on

54 of 80 references.

References · 54

  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. 2023GPT-4 Technical Reportcited by 18,132
  4. 2022PaLM: Scaling Language Modeling with Pathwayscited by 5,304
  5. 2022OPT: Open Pre-trained Transformer Language Modelscited by 3,464
  6. 2020Informer: Beyond Efficient Transformer for Long Sequence Time-Series Forecastingcited by 2,141
  7. 2020Transformers are RNNs: Fast Autoregressive Transformers with Linear Attentioncited by 1,979
  8. 2020Rethinking Attention with Performerscited by 1,584
  9. 2019Generating Long Sequences with Sparse Transformerscited by 1,523
  10. 2020Linformer: Self-Attention with Linear Complexitycited by 1,462
  11. 2023H2O: Heavy-Hitter Oracle for Efficient Generative Inference of Large Language Modelscited by 805
  12. 2020Variational Quantum Algorithmscited by 687
38 more
  1. 2023A Watermark for Large Language Modelscited by 667
  2. 2020Efficient Content-Based Sparse Attention with Routing Transformerscited by 469
  3. 2019Efficient Learning for Deep Quantum Neural Networkscited by 160
  4. 2020Soft Threshold Weight Reparameterization for Learnable Sparsitycited by 150
  5. 2023Fast Attention Requires Bounded Entriescited by 102
  6. 2023On Provable Copyright Protection for Generative Modelscited by 97
  7. 2021Sparse is Enough in Scaling Transformerscited by 86
  8. 2018A quantum-inspired classical algorithm for recommendation systemscited by 70
  9. 2023KDEformer: Accelerating Transformers via Kernel Density Estimationcited by 58
  10. 2023Attention Scheme Inspired Softmax Regressioncited by 49
  11. 2022Quantum Vision Transformerscited by 48
  12. 2023An Over-parameterized Exponential Regressioncited by 45
  13. 2020SMYRF: Efficient Attention using Asymmetric Clusteringcited by 43
  14. 2023The Closeness of In-Context Learning and Weight Shifting for Softmax Regressioncited by 41
  15. 2019Sampling-based sublinear low-rank matrix arithmetic framework for dequantizing quantum machine learningcited by 37
  16. 2023Algorithm and Hardness for Dynamic Attention Maintenance in Large Language Modelscited by 37
  17. 2023Randomized and Deterministic Attention Sparsification Algorithms for Over-parameterized Feature Dimensioncited by 37
  18. 2023An Iterative Algorithm for Rescaled Hyperbolic Functions Regressioncited by 35
  19. 2021Does Preprocessing Help Training Over-parameterized Neural Networks?cited by 32
  20. 2023Towards provably efficient quantum algorithms for large-scale machine-learning modelscited by 32
  21. 2023In-Context Learning for Attention Scheme: from Single Softmax Regression to Multiple Softmax Regression via a Tensor Trickcited by 32
  22. 2023A survey on the complexity of learning quantum statescited by 31
  23. 2023A Mathematical Abstraction for Balancing the Trade-off Between Creativity and Reality in Large Language Modelscited by 29
  24. 2023InfoPrompt: Information-Theoretic Soft Prompt Tuning for Natural Language Understandingcited by 29
  25. 2017Quantum SDP-Solvers: Better upper and lower boundscited by 27
  26. 2022QSAN: A Near-term Achievable Quantum Self-Attention Networkcited by 25
  27. 2023Differentially Private Attention Computationcited by 25
  28. 2022A Sublinear Adversarial Training Algorithmcited by 22
  29. 2018Convex optimization using quantum oraclescited by 19
  30. 2020Quantum statistical query learningcited by 19
  31. 2018Quantum-inspired low-rank stochastic regression with logarithmic dependence on the dimensioncited by 18
  32. 2018A Quantum Interior Point Method for LPs and SDPscited by 17
  33. 2018Quantum algorithms for feedforward neural networkscited by 14
  34. 2020Space-Efficient Interior Point Method, with applications to Linear Programming and Maximum Weight Bipartite Matchingcited by 14
  35. 2018On The Hardness of Approximate and Exact (Bichromatic) Maximum Inner Productcited by 12
  36. 2022Quantum Speedups of Optimizing Approximately Convex Functions with Applications to Logarithmic Regret Stochastic Convex Banditscited by 11
  37. 2023Differentially Private Continual Releases of Streaming Frequency Moment Estimationscited by 10
  38. 2019Quantum algorithm for estimating volumes of convex bodiescited by 8

50 most cited of 54 All 54 (JSON)

Built on by

Cited by year

Citing papers per year: 2023: 9; 2024: 4; 2025: 5.

18 papers.

Sort:

By area:

  1. 2024Conv-Basis: A New Paradigm for Efficient Attention Inference and Gradient Computation in Transformerscited by 32
  2. 2023A Fast Optimization View: Reformulating Single Layer Attention in LLM Based on Tensor and SVM Trick, and Solving It in Matrix Multiplication Timecited by 30
  3. 2024The Fine-Grained Complexity of Gradient Computation for Training Large Language Modelscited by 30
  4. 2023How to Protect Copyright Data in Optimization of Large Language Models?cited by 26
  5. 2023GradientCoin: A Peer-to-Peer Decentralized Large Language Modelscited by 23
  6. 2024Multi-Layer Transformers Gradient Can be Approximated in Almost Linear Timecited by 22
  7. 2023Solving Attention Kernel Regression Problem via Pre-conditionercited by 20
  8. 2024Exploring the Frontiers of Softmax: Provable Optimization, Applications in Diffusion Model, and Beyondcited by 15
  9. 2023Unmasking Transformers: A Theoretical Approach to Data Recovery via Attention Weightscited by 11
  10. 2023Local Convergence of Approximate Newton Method for Two Layer Nonlinear Regressioncited by 9
  11. 2025Fast RoPE Attention: Combining the Polynomial Method and Fast Fourier Transformcited by 9
  12. 2023The Expressibility of Polynomial based Attention Schemecited by 7
6 more
  1. 2025Only Large Weights (And Not Skip Connections) Can Prevent the Perils of Rank Collapsecited by 7
  2. 2023Convergence of Two-Layer Regression with Nonlinear Unitscited by 6
  3. 2023A Theoretical Insight into Attack and Defense of Gradient Leakage in Transformercited by 6
  4. 2025Subquadratic Algorithms and Hardness for Attention with Any Temperaturecited by 4
  5. 2025Quantum Graph Attention Networks: Trainable Quantum Encoders for Inductive Graph Learningcited by 1
  6. 2025Vectorized Attention with Learnable Encoding for Quantum Transformercited by 0