Randomized and Deterministic Attention Sparsification Algorithms for Over-parameterized Feature Dimension
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
- 2017Attention Is All You Needcited by 59,932
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2023GPT-4 Technical Reportcited by 18,132
- 2022PaLM: Scaling Language Modeling with Pathwayscited by 5,304
- 2022OPT: Open Pre-trained Transformer Language Modelscited by 3,464
- 2020Transformers are RNNs: Fast Autoregressive Transformers with Linear Attentioncited by 1,979
- 2020Reformer: The Efficient Transformercited by 1,658
- 2019Generating Long Sequences with Sparse Transformerscited by 1,523
- 2020Linformer: Self-Attention with Linear Complexitycited by 1,462
- 2019CamemBERT: a Tasty French Language Modelcited by 368
- 2021Scatterbrain: Unifying Sparse and Low-rank Attention Approximationcited by 128
34 more
- 2023Fast Attention Requires Bounded Entriescited by 102
- 2018Solving Linear Programs in the Current Matrix Multiplication Timecited by 100
- 2021Pixelated Butterfly: Simple and Efficient Sparse training for Neural Network Modelscited by 75
- 2021Training Multi-Layer Over-Parametrized Neural Network in Subquadratic Timecited by 62
- 2023KDEformer: Accelerating Transformers via Kernel Density Estimationcited by 58
- 2020An Improved Cutting Plane Method for Convex Optimization, Convex-Concave Games and its Applicationscited by 57
- 2020A Refined Laser Method and Faster Matrix Multiplicationcited by 56
- 2019Solving Empirical Risk Minimization in the Current Matrix Multiplication Timecited by 53
- 2017Relative Error Tensor Low Rank Approximationcited by 45
- 2020Faster Dynamic Matrix Inverse for Faster LPscited by 44
- 2023Solving Regularized Exp, Cosh and Sinh Regression Problemscited by 44
- 2020SMYRF: Efficient Attention using Asymmetric Clusteringcited by 43
- 2019A Deterministic Linear Program Solver in Current Matrix Multiplication Timecited by 42
- 2023Algorithm and Hardness for Dynamic Attention Maintenance in Large Language Modelscited by 37
- 2022A Faster Small Treewidth SDP Solvercited by 36
- 2023Low Rank Matrix Completion via Robust Alternating Minimization in Nearly Linear Timecited by 31
- 2020A Nearly-Linear Time Algorithm for Linear Programs with Small Treewidth: A Multiscale Representation of Robust Central Pathcited by 29
- 2022Faster Algorithm for Structured John Ellipsoid Computationcited by 28
- 2022Sketching for First Order Method: Efficient Algorithm for Low-Bandwidth Channel and Vulnerabilitycited by 25
- 2022Speeding Up Sparsification using Inner Product Search Data Structurescited by 22
- 2022Sketching Meets Differential Privacy: Fast Algorithm for Dynamic Kronecker Projection Maintenancecited by 22
- 2022Discrepancy Minimization in Input-Sparsity Timecited by 22
- 2018Subspace Embedding and Linear Regression with Orlicz Normcited by 19
- 2022Dynamic Tensor Product Regressioncited by 17
- 2023A Nearly-Optimal Bound for Fast Regression with ℓ_∞ Guaranteecited by 14
- 2023Convex Minimization with Integer Minima in widetilde O(n4) Timecited by 12
- 2023Differentially Private Continual Releases of Streaming Frequency Moment Estimationscited by 10
- 2022Accelerating Frank-Wolfe Algorithm using Low-Dimensional and Adaptive Data Structurescited by 9
- 2019Dynamic Matrix Inverse: Improved Algorithms and Matching Conditional Lower Boundscited by 8
- 2015Unifying and Strengthening Hardness for Dynamic Problems via the Online Matrix-Vector Multiplication Conjecturecited by 5
- 2017Tight Cell Probe Bounds for Succinct Boolean Matrix-Vector Multiplicationcited by 4
- 2021Massively Parallel and Dynamic Algorithms for Minimum Size Clusteringcited by 4
- 2016Faster Online Matrix-Vector Multiplicationcited by 3
- 2019Streaming Balanced Clusteringcited by 1
Built on by
Citing papers per year: 2023: 23; 2024: 8; 2025: 6.
37 papers.
Sort:
By area:
- 2023H2O: Heavy-Hitter Oracle for Efficient Generative Inference of Large Language Modelscited by 805
- 2023Deja Vu: Contextual Sparsity for Efficient LLMs at Inference Timecited by 247
- 2023Attention Scheme Inspired Softmax Regressioncited by 49
- 2023The Closeness of In-Context Learning and Weight Shifting for Softmax Regressioncited by 41
- 2023An Iterative Algorithm for Rescaled Hyperbolic Functions Regressioncited by 35
- 2024LazyDiT: Lazy Learning for the Acceleration of Diffusion Transformerscited by 35
- 2024Conv-Basis: A New Paradigm for Efficient Attention Inference and Gradient Computation in Transformerscited by 32
- 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
- 2024The Fine-Grained Complexity of Gradient Computation for Training Large Language Modelscited by 30
- 2023A Mathematical Abstraction for Balancing the Trade-off Between Creativity and Reality in Large Language Modelscited by 29
- 2023InfoPrompt: Information-Theoretic Soft Prompt Tuning for Natural Language Understandingcited by 29
- 2023Differentially Private Attention Computationcited by 25
25 more
- 2024Multi-Layer Transformers Gradient Can be Approximated in Almost Linear Timecited by 22
- 2024Bypassing the Exponential Dependency: Looped Transformers Efficiently Learn In-context by Multi-step Gradient Descentcited by 21
- 2024The Computational Limits of State-Space Models and Mamba via the Lens of Circuit Complexitycited by 21
- 2023Solving Attention Kernel Regression Problem via Pre-conditionercited by 20
- 2023Beyond Classical Attention: Quantum Attention for Scalable Computationcited by 18
- 2023Zero-th Order Algorithm for Softmax Attention Optimizationcited by 16
- 2023Why Softmax Attention Outperforms Linear Attentioncited by 15
- 2025High-Order Matching for One-Step Shortcut Diffusion Modelscited by 15
- 2023Toward Highly Efficient and Private Submodular Maximization via Matrix-Based Accelerationcited by 11
- 2023Efficient SGD Neural Network Training via Sublinear Activated Neuron Identificationcited by 11
- 2023Federated Empirical Risk Minimization via Second-Order Methodcited by 9
- 2023Local Convergence of Approximate Newton Method for Two Layer Nonlinear Regressioncited by 9
- 2025Fast RoPE Attention: Combining the Polynomial Method and Fast Fourier Transformcited by 9
- 2023Solving Tensor Low Cycle Rank Approximationcited by 8
- 2023Faster Robust Tensor Power Method for Arbitrary Ordercited by 8
- 2023The Expressibility of Polynomial based Attention Schemecited by 7
- 2023One Pass Streaming Algorithm for Super Long Token Attention Approximation in Sublinear Spacecited by 6
- 2023Structured and Fast Optimization: The Kronecker SGD Algorithmcited by 5
- 2023Query Complexity of Active Learning for Function Family With Nearly Orthogonal Basiscited by 4
- 2025Scaling Law Phenomena Across Regression Paradigms: Multiple and Kernel Approachescited by 4
- 2025When Can We Solve the Weighted Low Rank Approximation Problem in Truly Subquadratic Time?cited by 3
- 2025Time and Memory Trade-off of KV-Cache Compression in Tensor Transformer Decodingcited by 2
- 2024Binary Hypothesis Testing for Softmax Models and Leverage Score Modelscited by 1
- 2025Towards Sampling Data Structures for Tensor Products in Turnstile Streamscited by 1
- 2024Enhancing Stochastic Gradient Descent: A Unified Framework and Novel Acceleration Methods for Faster Convergencecited by 0
- 2025Towards Sampling Data Structures for Tensor Products in Turnstile Streams4 Oct 2025
- 2025Fast RoPE Attention: Combining the Polynomial Method and Fast Fourier Transform17 May 2025
- 2025Time and Memory Trade-off of KV-Cache Compression in Tensor Transformer Decoding14 Mar 2025
- 2025Scaling Law Phenomena Across Regression Paradigms: Multiple and Kernel Approaches3 Mar 2025
- 2025When Can We Solve the Weighted Low Rank Approximation Problem in Truly Subquadratic Time?24 Feb 2025
- 2025High-Order Matching for One-Step Shortcut Diffusion Models2 Feb 2025
- 2024LazyDiT: Lazy Learning for the Acceleration of Diffusion Transformers17 Dec 2024
- 2024The Computational Limits of State-Space Models and Mamba via the Lens of Circuit Complexity9 Dec 2024
- 2024Bypassing the Exponential Dependency: Looped Transformers Efficiently Learn In-context by Multi-step Gradient Descent15 Oct 2024
- 2024Multi-Layer Transformers Gradient Can be Approximated in Almost Linear Time23 Aug 2024
- 2024Binary Hypothesis Testing for Softmax Models and Leverage Score Models9 May 2024
- 2024Conv-Basis: A New Paradigm for Efficient Attention Inference and Gradient Computation in Transformers8 May 2024
25 more
- 2024The Fine-Grained Complexity of Gradient Computation for Training Large Language Models7 Feb 2024
- 2024Enhancing Stochastic Gradient Descent: A Unified Framework and Novel Acceleration Methods for Faster Convergence2 Feb 2024
- 2023Local Convergence of Approximate Newton Method for Two Layer Nonlinear Regression26 Nov 2023
- 2023One Pass Streaming Algorithm for Super Long Token Attention Approximation in Sublinear Space24 Nov 2023
- 2023The Expressibility of Polynomial based Attention Scheme30 Oct 2023
- 2023Deja Vu: Contextual Sparsity for Efficient LLMs at Inference Time26 Oct 2023
- 2023Why Softmax Attention Outperforms Linear Attention18 Oct 2023
- 2023A Fast Optimization View: Reformulating Single Layer Attention in LLM Based on Tensor and SVM Trick, and Solving It in Matrix Multiplication Time14 Sep 2023
- 2023Solving Attention Kernel Regression Problem via Pre-conditioner28 Aug 2023
- 2023Zero-th Order Algorithm for Softmax Attention Optimization17 Jul 2023
- 2023Beyond Classical Attention: Quantum Attention for Scalable Computation16 Jul 2023
- 2023Efficient SGD Neural Network Training via Sublinear Activated Neuron Identification13 Jul 2023
- 2023H2O: Heavy-Hitter Oracle for Efficient Generative Inference of Large Language Models24 Jun 2023
- 2023InfoPrompt: Information-Theoretic Soft Prompt Tuning for Natural Language Understanding8 Jun 2023
- 2023Query Complexity of Active Learning for Function Family With Nearly Orthogonal Basis6 Jun 2023
- 2023A Mathematical Abstraction for Balancing the Trade-off Between Creativity and Reality in Large Language Models4 Jun 2023
- 2023Faster Robust Tensor Power Method for Arbitrary Order1 Jun 2023
- 2023Federated Empirical Risk Minimization via Second-Order Method27 May 2023
- 2023Toward Highly Efficient and Private Submodular Maximization via Matrix-Based Acceleration15 May 2023
- 2023Structured and Fast Optimization: The Kronecker SGD Algorithm13 May 2023
- 2023Differentially Private Attention Computation8 May 2023
- 2023An Iterative Algorithm for Rescaled Hyperbolic Functions Regression1 May 2023
- 2023The Closeness of In-Context Learning and Weight Shifting for Softmax Regression26 Apr 2023
- 2023Attention Scheme Inspired Softmax Regression20 Apr 2023
- 2023Solving Tensor Low Cycle Rank Approximation13 Apr 2023
- 2023Deja Vu: Contextual Sparsity for Efficient LLMs at Inference Timecited by 247
- 2023Attention Scheme Inspired Softmax Regressioncited by 49
- 2023The Closeness of In-Context Learning and Weight Shifting for Softmax Regressioncited by 41
- 2023An Iterative Algorithm for Rescaled Hyperbolic Functions Regressioncited by 35
- 2024Conv-Basis: A New Paradigm for Efficient Attention Inference and Gradient Computation in Transformerscited by 32
- 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
- 2024The Fine-Grained Complexity of Gradient Computation for Training Large Language Modelscited by 30
- 2023A Mathematical Abstraction for Balancing the Trade-off Between Creativity and Reality in Large Language Modelscited by 29
- 2023InfoPrompt: Information-Theoretic Soft Prompt Tuning for Natural Language Understandingcited by 29
- 2023Differentially Private Attention Computationcited by 25
- 2024Multi-Layer Transformers Gradient Can be Approximated in Almost Linear Timecited by 22
- 2024Bypassing the Exponential Dependency: Looped Transformers Efficiently Learn In-context by Multi-step Gradient Descentcited by 21
12 most cited of 32 All 32 (JSON)
- 2025Towards Sampling Data Structures for Tensor Products in Turnstile Streams4 Oct 2025
- 2025Fast RoPE Attention: Combining the Polynomial Method and Fast Fourier Transform17 May 2025
- 2025Scaling Law Phenomena Across Regression Paradigms: Multiple and Kernel Approaches3 Mar 2025
- 2025When Can We Solve the Weighted Low Rank Approximation Problem in Truly Subquadratic Time?24 Feb 2025
- 2024Bypassing the Exponential Dependency: Looped Transformers Efficiently Learn In-context by Multi-step Gradient Descent15 Oct 2024
- 2024Multi-Layer Transformers Gradient Can be Approximated in Almost Linear Time23 Aug 2024
- 2024Binary Hypothesis Testing for Softmax Models and Leverage Score Models9 May 2024
- 2024Conv-Basis: A New Paradigm for Efficient Attention Inference and Gradient Computation in Transformers8 May 2024
- 2024The Fine-Grained Complexity of Gradient Computation for Training Large Language Models7 Feb 2024
- 2024Enhancing Stochastic Gradient Descent: A Unified Framework and Novel Acceleration Methods for Faster Convergence2 Feb 2024
- 2023Local Convergence of Approximate Newton Method for Two Layer Nonlinear Regression26 Nov 2023
- 2023One Pass Streaming Algorithm for Super Long Token Attention Approximation in Sublinear Space24 Nov 2023
12 newest of 32 All 32 (JSON)