A Fast Optimization View: Reformulating Single Layer Attention in LLM Based on Tensor and SVM Trick, and Solving It in Matrix Multiplication Time
Not on the map. Why?
Abstract (arXiv)
Large language models (LLMs) have played a pivotal role in revolutionizing various facets of our daily existence. Solving attention regression is a fundamental task in optimizing LLMs. In this work, we focus on giving a provable guarantee for the one-layer attention network objective function L(X,Y) = sumj0 = 1n sumi0 = 1d ( langle langle exp( mathsfAj0 x ) , bf 1n rangle-1 exp( mathsfAj0 x ), A3 Y*,i0 rangle - bj0,i0 )2. Here mathsfA ∈ ℝn2 × d2 is Kronecker product between A1 ∈ ℝn × d and A2 ∈ ℝn × d. A3 is a matrix in ℝn × d, mathsfAj0 ∈ ℝn × d2 is the j0-th block of mathsfA. The X, Y ∈ ℝd × d are variables we want to learn. B ∈ ℝn × d and bj0,i0 ∈ ℝ is one entry at j0-th row and i0-th column of B, Y*,i0 ∈ ℝd is the i0-column vector of Y, and x ∈ ℝd2 is the vectorization of X. In a multi-layer LLM network, the matrix B ∈ ℝn × d can be viewed as the output of a layer, and A1= A2 = A3 ∈ ℝn × d can be viewed as the input of a layer. The matrix version of x can be viewed as QK^top and Y can be viewed as V. We provide an iterative greedy algorithm to train loss function L(X,Y) up ε that runs in widetildeO( (cal Tmat(n,n,d) + cal Tmat(n,d,d) + d2ω) log(1/ε) ) time. Here cal Tmat(a,b,c) denotes the time of multiplying a × b matrix another b × c matrix, and ω≈ 2.37 denotes the exponent of matrix multiplication.
Key facts. Cited by 30 papers in the map (data through 7 Oct 2026). Builds on 158 of its 207 references that are in the map. First posted on arXiv 14 Sep 2023.
Builds on
158 of 207 references.
References · 158
- 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
- 2023LLaMA: Open and Efficient Foundation Language Modelscited by 13,958
- 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 12,865
- 2023Direct Preference Optimization: Your Language Model is Secretly a Reward Modelcited by 7,916
- 2020Scaling Laws for Neural Language Modelscited by 6,411
- 2014Neural Machine Translation by Jointly Learning to Align and Translatecited by 4,530
- 2021Prefix-Tuning: Optimizing Continuous Prompts for Generationcited by 3,878
- 2022OPT: Open Pre-trained Transformer Language Modelscited by 3,464
- 2022Locating and Editing Factual Associations in GPTcited by 2,609
- 2023Sparks of Artificial General Intelligence: Early experiments with GPT-4cited by 2,579
38 more
- 2020Reformer: The Efficient Transformercited by 1,658
- 2015Show, Attend and Tell: Neural Image Caption Generation with Visual Attentioncited by 1,421
- 2023Is Your Code Generated by ChatGPT Really Correct? Rigorous Evaluation of Large Language Models for Code Generationcited by 1,332
- 2015Effective Approaches to Attention-based Neural Machine Translationcited by 1,024
- 2023A Multitask, Multilingual, Multimodal Evaluation of ChatGPT on Reasoning, Hallucination, and Interactivitycited by 888
- 2018A Convergence Theory for Deep Learning via Over-Parameterizationcited by 784
- 2022Discovering Latent Knowledge in Language Models Without Supervisioncited by 733
- 2018Gradient Descent Provably Optimizes Over-parameterized Neural Networkscited by 655
- 2017The Implicit Bias of Gradient Descent on Separable Datacited by 649
- 2021Knowledge Neurons in Pretrained Transformerscited by 590
- 2019On Exact Computation with an Infinitely Wide Neural Netcited by 572
- 2019Fine-Grained Analysis of Optimization and Generalization for Overparameterized Two-Layer Neural Networkscited by 562
- 2023Is ChatGPT a General-Purpose Natural Language Processing Task Solver?cited by 486
- 2023Fine-Tuning Language Models with Just Forward Passescited by 337
- 2020Kernel and Rich Regimes in Overparametrized Modelscited by 302
- 2023MEGA: Multilingual Evaluation of Generative AIcited by 291
- 2023On Evaluating Adversarial Robustness of Large Vision-Language Modelscited by 281
- 2023Sentiment Analysis in the Era of Large Language Models: A Reality Checkcited by 262
- 2018Learning Overparameterized Neural Networks via Stochastic Gradient Descent on Structured Datacited by 260
- 2023Sophia: A Scalable Stochastic Second-order Optimizer for Language Model Pre-trainingcited by 260
- 2018Characterizing Implicit Bias in Terms of Optimization Geometrycited by 259
- 2023Reasoning or Reciting? Exploring the Capabilities and Limitations of Language Models Through Counterfactual Taskscited by 243
- 2023Does Localization Inform Editing? Surprising Differences in Causality-Based Localization vs. Knowledge Editing in Language Modelscited by 237
- 2019Visualizing and Measuring the Geometry of BERTcited by 215
- 2023On the Robustness of ChatGPT: An Adversarial and Out-of-distribution Perspectivecited by 208
- 2023Assessing Cross-Cultural Alignment between ChatGPT and Human Societies: An Empirical Studycited by 203
- 2023ChatGPT Beyond English: Towards a Comprehensive Evaluation of Large Language Models in Multilingual Learningcited by 203
- 2018Just Interpolate: Kernel "Ridgeless" Regression Can Generalizecited by 190
- 2019Towards moderate overparameterization: global convergence guarantees for training shallow neural networkscited by 176
- 2020Directional convergence and alignment in deep learningcited by 172
- 2019Towards Explaining the Regularization Effect of Initial Large Learning Rate in Training Neural Networkscited by 162
- 2023Should ChatGPT be Biased? Challenges and Risks of Bias in Large Language Modelscited by 144
- 2022Thinking Fast and Slow in Large Language Modelscited by 136
- 2023Representational Strengths and Limitations of Transformerscited by 132
- 2019Implicit regularization for deep neural networks driven by an Ornstein-Uhlenbeck like processcited by 123
- 2023A Systematic Study and Comprehensive Evaluation of ChatGPT on Benchmark Datasetscited by 123
- 2021Label Noise SGD Provably Prefers Flat Global Minimizerscited by 121
- 2019An Improved Analysis of Training Over-parameterized Deep Neural Networkscited by 120
50 most cited of 158 All 158 (JSON)
Built on by
Citing papers per year: 2023: 8; 2024: 14; 2025: 7; 2026: 1.
30 papers.
Sort:
By area:
- 2023How to Capture Higher-order Correlations? Generalizing Matrix Softmax Attention to Kronecker Computationcited by 44
- 2024On Statistical Rates and Provably Efficient Criteria of Latent Diffusion Transformers (DiTs)cited by 39
- 2024Uniform Memory Retrieval with Larger Capacity for Modern Hopfield Modelscited by 38
- 2024Outlier-Efficient Hopfield Layers for Large Transformer-Based Modelscited by 38
- 2024Conv-Basis: A New Paradigm for Efficient Attention Inference and Gradient Computation in Transformerscited by 32
- 2024Computational Limits of Low-Rank Adaptation (LoRA) Fine-Tuning for Transformer Modelscited by 31
- 2024The Fine-Grained Complexity of Gradient Computation for Training Large Language Modelscited by 30
- 2024The Computational Limits of State-Space Models and Mamba via the Lens of Circuit Complexitycited by 21
- 2024A Tighter Complexity Analysis of SparseGPTcited by 19
- 2024HSR-Enhanced Sparse Attention Accelerationcited by 19
- 2023Why Softmax Attention Outperforms Linear Attentioncited by 15
- 2024Exploring the Frontiers of Softmax: Provable Optimization, Applications in Diffusion Model, and Beyondcited by 15
18 more
- 2025High-Order Matching for One-Step Shortcut Diffusion Modelscited by 15
- 2023A Unified Scheme of ResNet and Softmaxcited by 12
- 2025Video Latent Flow Matching: Optimal Polynomial Projections for Video Interpolation and Extrapolationcited by 11
- 2023An Automatic Learning Rate Schedule Algorithm for Achieving Faster Convergence and Steeper Descentcited by 9
- 2023Local Convergence of Approximate Newton Method for Two Layer Nonlinear Regressioncited by 9
- 2025Theoretical Guarantees for High Order Trajectory Refinement in Generative Flowscited by 9
- 2024Fast John Ellipsoid Computation with Differential Privacy Optimizationcited by 7
- 2023A Theoretical Insight into Attack and Defense of Gradient Leakage in Transformercited by 6
- 2023One Pass Streaming Algorithm for Super Long Token Attention Approximation in Sublinear Spacecited by 6
- 2024How to Inverting the Leverage Score Distribution?cited by 5
- 2025Scaling Law Phenomena Across Regression Paradigms: Multiple and Kernel Approachescited by 4
- 2025Subquadratic Algorithms and Hardness for Attention with Any Temperaturecited by 4
- 2024Inverting the Leverage Score Gradient: An Efficient Approximate Newton Methodcited by 3
- 2024LevAttention: Time, Space, and Streaming Efficient Algorithm for Heavy Attentionscited by 3
- 2025Time and Memory Trade-off of KV-Cache Compression in Tensor Transformer Decodingcited by 2
- 2025Accept More, Reject Less: Reducing up to 19% Unnecessary Desk-Rejections over 11 Years of ICLR Datacited by 1
- 2026Attention at the Theoretical Minimum: A Mathematics of Arrays Framework for Memory-Optimal Transformer Kernelscited by 1
- 2023Fast Heavy Inner Product Identification Between Weights and Inputs in Neural Network Trainingcited by 0
- 2026Attention at the Theoretical Minimum: A Mathematics of Arrays Framework for Memory-Optimal Transformer Kernels5 Jun 2026
- 2025Accept More, Reject Less: Reducing up to 19% Unnecessary Desk-Rejections over 11 Years of ICLR Data25 Jun 2025
- 2025Subquadratic Algorithms and Hardness for Attention with Any Temperature20 May 2025
- 2025Time and Memory Trade-off of KV-Cache Compression in Tensor Transformer Decoding14 Mar 2025
- 2025Theoretical Guarantees for High Order Trajectory Refinement in Generative Flows12 Mar 2025
- 2025Scaling Law Phenomena Across Regression Paradigms: Multiple and Kernel Approaches3 Mar 2025
- 2025High-Order Matching for One-Step Shortcut Diffusion Models2 Feb 2025
- 2025Video Latent Flow Matching: Optimal Polynomial Projections for Video Interpolation and Extrapolation1 Feb 2025
- 2024The Computational Limits of State-Space Models and Mamba via the Lens of Circuit Complexity9 Dec 2024
- 2024HSR-Enhanced Sparse Attention Acceleration14 Oct 2024
- 2024LevAttention: Time, Space, and Streaming Efficient Algorithm for Heavy Attentions7 Oct 2024
- 2024A Tighter Complexity Analysis of SparseGPT22 Aug 2024
18 more
- 2024Inverting the Leverage Score Gradient: An Efficient Approximate Newton Method21 Aug 2024
- 2024Fast John Ellipsoid Computation with Differential Privacy Optimization12 Aug 2024
- 2024On Statistical Rates and Provably Efficient Criteria of Latent Diffusion Transformers (DiTs)1 Jul 2024
- 2024Computational Limits of Low-Rank Adaptation (LoRA) Fine-Tuning for Transformer Models5 Jun 2024
- 2024Conv-Basis: A New Paradigm for Efficient Attention Inference and Gradient Computation in Transformers8 May 2024
- 2024Exploring the Frontiers of Softmax: Provable Optimization, Applications in Diffusion Model, and Beyond6 May 2024
- 2024How to Inverting the Leverage Score Distribution?21 Apr 2024
- 2024Outlier-Efficient Hopfield Layers for Large Transformer-Based Models4 Apr 2024
- 2024Uniform Memory Retrieval with Larger Capacity for Modern Hopfield Models4 Apr 2024
- 2024The Fine-Grained Complexity of Gradient Computation for Training Large Language Models7 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
- 2023A Theoretical Insight into Attack and Defense of Gradient Leakage in Transformer22 Nov 2023
- 2023Fast Heavy Inner Product Identification Between Weights and Inputs in Neural Network Training19 Nov 2023
- 2023Why Softmax Attention Outperforms Linear Attention18 Oct 2023
- 2023An Automatic Learning Rate Schedule Algorithm for Achieving Faster Convergence and Steeper Descent17 Oct 2023
- 2023How to Capture Higher-order Correlations? Generalizing Matrix Softmax Attention to Kronecker Computation6 Oct 2023
- 2023A Unified Scheme of ResNet and Softmax23 Sep 2023
- 2024On Statistical Rates and Provably Efficient Criteria of Latent Diffusion Transformers (DiTs)cited by 39
- 2024Exploring the Frontiers of Softmax: Provable Optimization, Applications in Diffusion Model, and Beyondcited by 15
- 2025High-Order Matching for One-Step Shortcut Diffusion Modelscited by 15
- 2025Video Latent Flow Matching: Optimal Polynomial Projections for Video Interpolation and Extrapolationcited by 11
- 2025Theoretical Guarantees for High Order Trajectory Refinement in Generative Flowscited by 9
- 2025Theoretical Guarantees for High Order Trajectory Refinement in Generative Flows12 Mar 2025
- 2025High-Order Matching for One-Step Shortcut Diffusion Models2 Feb 2025
- 2025Video Latent Flow Matching: Optimal Polynomial Projections for Video Interpolation and Extrapolation1 Feb 2025
- 2024On Statistical Rates and Provably Efficient Criteria of Latent Diffusion Transformers (DiTs)1 Jul 2024
- 2024Exploring the Frontiers of Softmax: Provable Optimization, Applications in Diffusion Model, and Beyond6 May 2024
- 2023How to Capture Higher-order Correlations? Generalizing Matrix Softmax Attention to Kronecker Computationcited by 44
- 2024Uniform Memory Retrieval with Larger Capacity for Modern Hopfield Modelscited by 38
- 2024Outlier-Efficient Hopfield Layers for Large Transformer-Based Modelscited by 38
- 2024Conv-Basis: A New Paradigm for Efficient Attention Inference and Gradient Computation in Transformerscited by 32
- 2024Computational Limits of Low-Rank Adaptation (LoRA) Fine-Tuning for Transformer Modelscited by 31
- 2024The Fine-Grained Complexity of Gradient Computation for Training Large Language Modelscited by 30
- 2024A Tighter Complexity Analysis of SparseGPTcited by 19
- 2024HSR-Enhanced Sparse Attention Accelerationcited by 19
- 2023Why Softmax Attention Outperforms Linear Attentioncited by 15
- 2023A Unified Scheme of ResNet and Softmaxcited by 12
- 2023An Automatic Learning Rate Schedule Algorithm for Achieving Faster Convergence and Steeper Descentcited by 9
- 2023Local Convergence of Approximate Newton Method for Two Layer Nonlinear Regressioncited by 9
12 most cited of 23 All 23 (JSON)
- 2026Attention at the Theoretical Minimum: A Mathematics of Arrays Framework for Memory-Optimal Transformer Kernels5 Jun 2026
- 2025Accept More, Reject Less: Reducing up to 19% Unnecessary Desk-Rejections over 11 Years of ICLR Data25 Jun 2025
- 2025Subquadratic Algorithms and Hardness for Attention with Any Temperature20 May 2025
- 2025Scaling Law Phenomena Across Regression Paradigms: Multiple and Kernel Approaches3 Mar 2025
- 2024HSR-Enhanced Sparse Attention Acceleration14 Oct 2024
- 2024LevAttention: Time, Space, and Streaming Efficient Algorithm for Heavy Attentions7 Oct 2024
- 2024A Tighter Complexity Analysis of SparseGPT22 Aug 2024
- 2024Inverting the Leverage Score Gradient: An Efficient Approximate Newton Method21 Aug 2024
- 2024Fast John Ellipsoid Computation with Differential Privacy Optimization12 Aug 2024
- 2024Computational Limits of Low-Rank Adaptation (LoRA) Fine-Tuning for Transformer Models5 Jun 2024
- 2024Conv-Basis: A New Paradigm for Efficient Attention Inference and Gradient Computation in Transformers8 May 2024
- 2024How to Inverting the Leverage Score Distribution?21 Apr 2024
12 newest of 23 All 23 (JSON)