mlsanityData to 7 Oct 2026

Randomized and Deterministic Attention Sparsification Algorithms for Over-parameterized Feature Dimension

arXiv 2304.04397 ↗First posted 10 Apr 2023cs.DS cs.LGcited by 37

Not on the map. Why?

Abstract (arXiv)

Large language models (LLMs) have shown their power in different areas. Attention computation, as an important subroutine of LLMs, has also attracted interests in theory. Recently the static computation and dynamic maintenance of attention matrix has been studied by [Alman and Song 2023] and [Brand, Song and Zhou 2023] from both algorithmic perspective and hardness perspective. In this work, we consider the sparsification of the attention problem. We make one simplification which is the logit matrix is symmetric. Let n denote the length of sentence, let d denote the embedding dimension. Given a matrix X ∈ ℝn × d, suppose d gg n and | X X^top |∞ < r with r ∈ (0,0.1), then we aim for finding Y ∈ ℝn × m (where mll d) such that beginalign* | D(Y)-1 exp( Y Y^top ) - D(X)-1 exp( X X^top) |∞ ≤ O(r) endalign* We provide two results for this problem. bullet Our first result is a randomized algorithm. It runs in widetildeO(nnz(X) + nω ) time, has 1-δ succeed probability, and chooses m = O(n log(n/δ)). Here nnz(X) denotes the number of non-zero entries in X. We use ω to denote the exponent of matrix multiplication. Currently ω ≈ 2.373. bullet Our second result is a deterministic algorithm. It runs in widetildeO(minsumi∈[d]nnz(Xi)2, dnω-1 + nω+1) time and chooses m = O(n). Here Xi denote the i-th column of matrix X. Our main findings have the following implication for applied LLMs task: for any super large feature dimension, we can reduce it down to the size nearly linear in length of sentence.

Key facts. Cited by 37 papers in the map (data through 7 Oct 2026). Builds on 46 of its 64 references that are in the map. First posted on arXiv 10 Apr 2023.

Builds on

46 of 64 references.

References · 46

  1. 2017Attention Is All You Needcited by 59,932
  2. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
  3. 2020Language Models are Few-Shot Learnerscited by 32,199
  4. 2023GPT-4 Technical Reportcited by 18,132
  5. 2022PaLM: Scaling Language Modeling with Pathwayscited by 5,304
  6. 2022OPT: Open Pre-trained Transformer Language Modelscited by 3,464
  7. 2020Transformers are RNNs: Fast Autoregressive Transformers with Linear Attentioncited by 1,979
  8. 2020Reformer: The Efficient Transformercited by 1,658
  9. 2019Generating Long Sequences with Sparse Transformerscited by 1,523
  10. 2020Linformer: Self-Attention with Linear Complexitycited by 1,462
  11. 2019CamemBERT: a Tasty French Language Modelcited by 368
  12. 2021Scatterbrain: Unifying Sparse and Low-rank Attention Approximationcited by 128
34 more
  1. 2023Fast Attention Requires Bounded Entriescited by 102
  2. 2018Solving Linear Programs in the Current Matrix Multiplication Timecited by 100
  3. 2021Pixelated Butterfly: Simple and Efficient Sparse training for Neural Network Modelscited by 75
  4. 2021Training Multi-Layer Over-Parametrized Neural Network in Subquadratic Timecited by 62
  5. 2023KDEformer: Accelerating Transformers via Kernel Density Estimationcited by 58
  6. 2020An Improved Cutting Plane Method for Convex Optimization, Convex-Concave Games and its Applicationscited by 57
  7. 2020A Refined Laser Method and Faster Matrix Multiplicationcited by 56
  8. 2019Solving Empirical Risk Minimization in the Current Matrix Multiplication Timecited by 53
  9. 2017Relative Error Tensor Low Rank Approximationcited by 45
  10. 2020Faster Dynamic Matrix Inverse for Faster LPscited by 44
  11. 2023Solving Regularized Exp, Cosh and Sinh Regression Problemscited by 44
  12. 2020SMYRF: Efficient Attention using Asymmetric Clusteringcited by 43
  13. 2019A Deterministic Linear Program Solver in Current Matrix Multiplication Timecited by 42
  14. 2023Algorithm and Hardness for Dynamic Attention Maintenance in Large Language Modelscited by 37
  15. 2022A Faster Small Treewidth SDP Solvercited by 36
  16. 2023Low Rank Matrix Completion via Robust Alternating Minimization in Nearly Linear Timecited by 31
  17. 2020A Nearly-Linear Time Algorithm for Linear Programs with Small Treewidth: A Multiscale Representation of Robust Central Pathcited by 29
  18. 2022Faster Algorithm for Structured John Ellipsoid Computationcited by 28
  19. 2022Sketching for First Order Method: Efficient Algorithm for Low-Bandwidth Channel and Vulnerabilitycited by 25
  20. 2022Speeding Up Sparsification using Inner Product Search Data Structurescited by 22
  21. 2022Sketching Meets Differential Privacy: Fast Algorithm for Dynamic Kronecker Projection Maintenancecited by 22
  22. 2022Discrepancy Minimization in Input-Sparsity Timecited by 22
  23. 2018Subspace Embedding and Linear Regression with Orlicz Normcited by 19
  24. 2022Dynamic Tensor Product Regressioncited by 17
  25. 2023A Nearly-Optimal Bound for Fast Regression with ℓ_∞ Guaranteecited by 14
  26. 2023Convex Minimization with Integer Minima in widetilde O(n4) Timecited by 12
  27. 2023Differentially Private Continual Releases of Streaming Frequency Moment Estimationscited by 10
  28. 2022Accelerating Frank-Wolfe Algorithm using Low-Dimensional and Adaptive Data Structurescited by 9
  29. 2019Dynamic Matrix Inverse: Improved Algorithms and Matching Conditional Lower Boundscited by 8
  30. 2015Unifying and Strengthening Hardness for Dynamic Problems via the Online Matrix-Vector Multiplication Conjecturecited by 5
  31. 2017Tight Cell Probe Bounds for Succinct Boolean Matrix-Vector Multiplicationcited by 4
  32. 2021Massively Parallel and Dynamic Algorithms for Minimum Size Clusteringcited by 4
  33. 2016Faster Online Matrix-Vector Multiplicationcited by 3
  34. 2019Streaming Balanced Clusteringcited by 1

Built on by

Cited by year

Citing papers per year: 2023: 23; 2024: 8; 2025: 6.

37 papers.

Sort:

By area:

  1. 2023H2O: Heavy-Hitter Oracle for Efficient Generative Inference of Large Language Modelscited by 805
  2. 2023Deja Vu: Contextual Sparsity for Efficient LLMs at Inference Timecited by 247
  3. 2023Attention Scheme Inspired Softmax Regressioncited by 49
  4. 2023The Closeness of In-Context Learning and Weight Shifting for Softmax Regressioncited by 41
  5. 2023An Iterative Algorithm for Rescaled Hyperbolic Functions Regressioncited by 35
  6. 2024LazyDiT: Lazy Learning for the Acceleration of Diffusion Transformerscited by 35
  7. 2024Conv-Basis: A New Paradigm for Efficient Attention Inference and Gradient Computation in Transformerscited by 32
  8. 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
  9. 2024The Fine-Grained Complexity of Gradient Computation for Training Large Language Modelscited by 30
  10. 2023A Mathematical Abstraction for Balancing the Trade-off Between Creativity and Reality in Large Language Modelscited by 29
  11. 2023InfoPrompt: Information-Theoretic Soft Prompt Tuning for Natural Language Understandingcited by 29
  12. 2023Differentially Private Attention Computationcited by 25
25 more
  1. 2024Multi-Layer Transformers Gradient Can be Approximated in Almost Linear Timecited by 22
  2. 2024Bypassing the Exponential Dependency: Looped Transformers Efficiently Learn In-context by Multi-step Gradient Descentcited by 21
  3. 2024The Computational Limits of State-Space Models and Mamba via the Lens of Circuit Complexitycited by 21
  4. 2023Solving Attention Kernel Regression Problem via Pre-conditionercited by 20
  5. 2023Beyond Classical Attention: Quantum Attention for Scalable Computationcited by 18
  6. 2023Zero-th Order Algorithm for Softmax Attention Optimizationcited by 16
  7. 2023Why Softmax Attention Outperforms Linear Attentioncited by 15
  8. 2025High-Order Matching for One-Step Shortcut Diffusion Modelscited by 15
  9. 2023Toward Highly Efficient and Private Submodular Maximization via Matrix-Based Accelerationcited by 11
  10. 2023Efficient SGD Neural Network Training via Sublinear Activated Neuron Identificationcited by 11
  11. 2023Federated Empirical Risk Minimization via Second-Order Methodcited by 9
  12. 2023Local Convergence of Approximate Newton Method for Two Layer Nonlinear Regressioncited by 9
  13. 2025Fast RoPE Attention: Combining the Polynomial Method and Fast Fourier Transformcited by 9
  14. 2023Solving Tensor Low Cycle Rank Approximationcited by 8
  15. 2023Faster Robust Tensor Power Method for Arbitrary Ordercited by 8
  16. 2023The Expressibility of Polynomial based Attention Schemecited by 7
  17. 2023One Pass Streaming Algorithm for Super Long Token Attention Approximation in Sublinear Spacecited by 6
  18. 2023Structured and Fast Optimization: The Kronecker SGD Algorithmcited by 5
  19. 2023Query Complexity of Active Learning for Function Family With Nearly Orthogonal Basiscited by 4
  20. 2025Scaling Law Phenomena Across Regression Paradigms: Multiple and Kernel Approachescited by 4
  21. 2025When Can We Solve the Weighted Low Rank Approximation Problem in Truly Subquadratic Time?cited by 3
  22. 2025Time and Memory Trade-off of KV-Cache Compression in Tensor Transformer Decodingcited by 2
  23. 2024Binary Hypothesis Testing for Softmax Models and Leverage Score Modelscited by 1
  24. 2025Towards Sampling Data Structures for Tensor Products in Turnstile Streamscited by 1
  25. 2024Enhancing Stochastic Gradient Descent: A Unified Framework and Novel Acceleration Methods for Faster Convergencecited by 0