The Fine-Grained Complexity of Gradient Computation for Training Large Language Models
Not on the map. Why?
Abstract (arXiv)
Large language models (LLMs) have made fundamental contributions over the last a few years. To train an LLM, one needs to alternatingly run `forward' computations and `backward' computations. The forward computation can be viewed as attention function evaluation, and the backward computation can be viewed as a gradient computation. In previous work by [Alman and Song, NeurIPS 2023], it was proved that the forward step can be performed in almost-linear time in certain parameter regimes, but that there is no truly sub-quadratic time algorithm in the remaining parameter regimes unless the popular hypothesis SETH is false. In this work, we show nearly identical results for the harder-seeming problem of computing the gradient of loss function of one layer attention network, and thus for the entire process of LLM training. This completely characterizes the fine-grained complexity of every step of LLM training.
Key facts. Cited by 30 papers in the map (data through 7 Oct 2026). Builds on 58 of its 99 references that are in the map. First posted on arXiv 7 Feb 2024.
Builds on
58 of 99 references.
References · 58
- 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
- 2021LoRA: Low-Rank Adaptation of Large Language Modelscited by 14,084
- 2023LLaMA: Open and Efficient Foundation Language Modelscited by 13,958
- 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,266
- 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 12,865
- 2022PaLM: Scaling Language Modeling with Pathwayscited by 5,304
- 2021Prefix-Tuning: Optimizing Continuous Prompts for Generationcited by 3,878
- 2022OPT: Open Pre-trained Transformer Language Modelscited by 3,464
- 2019XLNet: Generalized Autoregressive Pretraining for Language Understandingcited by 2,801
- 2022Emergent Abilities of Large Language Modelscited by 2,483
38 more
- 2020Transformers are RNNs: Fast Autoregressive Transformers with Linear Attentioncited by 1,979
- 2022LaMDA: Language Models for Dialog Applicationscited by 1,218
- 2023SparseGPT: Massive Language Models Can Be Accurately Pruned in One-Shotcited by 1,090
- 2023A Simple and Effective Pruning Approach for Large Language Modelscited by 776
- 2023Fine-Tuning Language Models with Just Forward Passescited by 337
- 2019Q8BERT: Quantized 8Bit BERTcited by 296
- 2023DNABERT-2: Efficient Foundation Model and Benchmark For Multi-Species Genomecited by 139
- 2022On The Computational Complexity of Self-Attentioncited by 137
- 2024The Hedgehog & the Porcupine: Expressive Linear Attentions with Softmax Mimicrycited by 119
- 2023Fast Attention Requires Bounded Entriescited by 102
- 2023The Expressive Power of Low-Rank Adaptationcited by 100
- 2023HyperAttention: Long-context Attention in Near-Linear Timecited by 85
- 2021Training Multi-Layer Over-Parametrized Neural Network in Subquadratic Timecited by 62
- 2020Training (Overparametrized) Neural Networks in Near-Linear Timecited by 58
- 2023KDEformer: Accelerating Transformers via Kernel Density Estimationcited by 58
- 2017Relative Error Tensor Low Rank Approximationcited by 45
- 2023How to Capture Higher-order Correlations? Generalizing Matrix Softmax Attention to Kronecker Computationcited by 44
- 2023On Sparse Modern Hopfield Modelcited by 41
- 2023Algorithm and Hardness for Dynamic Attention Maintenance in Large Language Modelscited by 37
- 2023Randomized and Deterministic Attention Sparsification Algorithms for Over-parameterized Feature Dimensioncited by 37
- 2023STanHop: Sparse Tandem Hopfield Model for Memory-Enhanced Time Series Predictioncited by 35
- 2021Fast Sketching of Polynomial Kernels of Polynomial Degreecited by 33
- 2021Does Preprocessing Help Training Over-parameterized Neural Networks?cited by 32
- 2023In-Context Learning for Attention Scheme: from Single Softmax Regression to Multiple Softmax Regression via a Tensor Trickcited 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
- 2017Sketching for Kronecker Product Regression and P-splinescited by 29
- 2019Optimal Sketching for Kronecker Product Regression and Low Rank Approximationcited by 29
- 2022Bypass Exponential Time Preprocessing: Fast Neural Network Training via Weight-Data Correlation Preprocessingcited by 29
- 2020Kernel Density Estimation through Density Constrained Near Neighbor Searchcited by 26
- 2023Differentially Private Attention Computationcited by 25
- 2023GradientCoin: A Peer-to-Peer Decentralized Large Language Modelscited by 23
- 2023Dolfin: Diffusion Layout Transformers without Autoencodercited by 23
- 2020Algorithms and Hardness for Linear Algebra on Geometric Graphscited by 22
- 2022Training Overparametrized Neural Networks in Sublinear Timecited by 22
- 2022A Sublinear Adversarial Training Algorithmcited by 22
- 2023Solving Attention Kernel Regression Problem via Pre-conditionercited by 20
- 2018Hardness of Approximate Nearest Neighbor Searchcited by 19
- 2022Optimal-Degree Polynomial Approximations for Exponentials and Gaussian Kernel Density Estimationcited by 19
50 most cited of 58 All 58 (JSON)
Built on by
Citing papers per year: 2024: 16; 2025: 12; 2026: 2.
30 papers.
Sort:
By area:
- 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
- 2024Training Tensor Attention Efficiently: From Cubic to Almost Linear Timecited by 29
- 2024Multi-Layer Transformers Gradient Can be Approximated in Almost Linear Timecited by 22
- 2024HSR-Enhanced Sparse Attention Accelerationcited by 19
- 2025T2VWorldBench: A Benchmark for Evaluating World Knowledge in Text-to-Video Generationcited by 18
- 2025Your Vision-Language Model Can't Even Count to 20: Exposing the Failures of VLMs in Compositional Countingcited by 17
- 2024Exploring the Frontiers of Softmax: Provable Optimization, Applications in Diffusion Model, and Beyondcited by 15
- 2024Provable Differentially Private Computation of the Cross-Attention Mechanismcited by 14
18 more
- 2025Quantum Adaptive Self-Attention for Quantum Transformer Modelscited by 14
- 2024RoPE Attention Can Be Trained in Almost Linear Timecited by 13
- 2025Video Latent Flow Matching: Optimal Polynomial Projections for Video Interpolation and Extrapolationcited by 11
- 2025FZOO: Fast Zeroth-Order Optimizer for Fine-Tuning Large Language Models towards Adam-Scale Speedcited by 11
- 2024Towards Infinite-Long Prefix in Transformercited by 10
- 2025On Computational Limits of FlowAR Models: Expressivity and Efficiencycited by 10
- 2024Modern Hopfield Networks Require Chain-of-Thought to Solve mathsfNC1-Hard Problemscited by 9
- 2025Towards High-Order Mean Flow Generative Models: Feasibility, Expressivity, and Provably Efficient Criteriacited by 5
- 2024Advancing the Understanding of Fixed Point Iterations in Deep Neural Networks: A Detailed Analytical Studycited by 4
- 2025Too Easily Fooled? Prompt Injection Breaks LLMs on Frustratingly Simple Multiple-Choice Questionscited by 4
- 2024Unlocking the Theory Behind Scaling 1-Bit Neural Networkscited by 3
- 2025Time and Memory Trade-off of KV-Cache Compression in Tensor Transformer Decodingcited by 2
- 2025Towards Sampling Data Structures for Tensor Products in Turnstile Streamscited by 1
- 2025Unifying Learning Dynamics and Generalization in Transformers Scaling Lawcited by 1
- 2024kNN Attention Demystified: A Theoretical Exploration for Scalable Transformerscited by 0
- 2025Fundamental Limits of Crystalline Equivariant Graph Neural Networks: A Circuit Complexity Perspectivecited by 0
- 2026Tracking High-order Evolutions via Cascading Low-rank Fittingcited by 0
- 2026Beyond Sparse Weights: When Is Attention Compressible?cited by 0
- 2026Beyond Sparse Weights: When Is Attention Compressible?21 Aug 2026
- 2026Tracking High-order Evolutions via Cascading Low-rank Fitting13 Apr 2026
- 2025Unifying Learning Dynamics and Generalization in Transformers Scaling Law26 Dec 2025
- 2025Fundamental Limits of Crystalline Equivariant Graph Neural Networks: A Circuit Complexity Perspective7 Oct 2025
- 2025Your Vision-Language Model Can't Even Count to 20: Exposing the Failures of VLMs in Compositional Counting6 Oct 2025
- 2025Towards Sampling Data Structures for Tensor Products in Turnstile Streams4 Oct 2025
- 2025Too Easily Fooled? Prompt Injection Breaks LLMs on Frustratingly Simple Multiple-Choice Questions16 Aug 2025
- 2025Towards High-Order Mean Flow Generative Models: Feasibility, Expressivity, and Provably Efficient Criteria9 Aug 2025
- 2025T2VWorldBench: A Benchmark for Evaluating World Knowledge in Text-to-Video Generation24 Jul 2025
- 2025FZOO: Fast Zeroth-Order Optimizer for Fine-Tuning Large Language Models towards Adam-Scale Speed10 Jun 2025
- 2025Quantum Adaptive Self-Attention for Quantum Transformer Models5 Apr 2025
- 2025Time and Memory Trade-off of KV-Cache Compression in Tensor Transformer Decoding14 Mar 2025
18 more
- 2025On Computational Limits of FlowAR Models: Expressivity and Efficiency23 Feb 2025
- 2025Video Latent Flow Matching: Optimal Polynomial Projections for Video Interpolation and Extrapolation1 Feb 2025
- 2024RoPE Attention Can Be Trained in Almost Linear Time23 Dec 2024
- 2024Modern Hopfield Networks Require Chain-of-Thought to Solve mathsfNC1-Hard Problems7 Dec 2024
- 2024kNN Attention Demystified: A Theoretical Exploration for Scalable Transformers6 Nov 2024
- 2024Unlocking the Theory Behind Scaling 1-Bit Neural Networks3 Nov 2024
- 2024Advancing the Understanding of Fixed Point Iterations in Deep Neural Networks: A Detailed Analytical Study15 Oct 2024
- 2024HSR-Enhanced Sparse Attention Acceleration14 Oct 2024
- 2024Multi-Layer Transformers Gradient Can be Approximated in Almost Linear Time23 Aug 2024
- 2024Provable Differentially Private Computation of the Cross-Attention Mechanism20 Jul 2024
- 2024On Statistical Rates and Provably Efficient Criteria of Latent Diffusion Transformers (DiTs)1 Jul 2024
- 2024Towards Infinite-Long Prefix in Transformer20 Jun 2024
- 2024Computational Limits of Low-Rank Adaptation (LoRA) Fine-Tuning for Transformer Models5 Jun 2024
- 2024Training Tensor Attention Efficiently: From Cubic to Almost Linear Time26 May 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
- 2024Outlier-Efficient Hopfield Layers for Large Transformer-Based Models4 Apr 2024
- 2024Uniform Memory Retrieval with Larger Capacity for Modern Hopfield Models4 Apr 2024
- 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
- 2024Provable Differentially Private Computation of the Cross-Attention Mechanismcited by 14
- 2025Video Latent Flow Matching: Optimal Polynomial Projections for Video Interpolation and Extrapolationcited by 11
- 2025Towards High-Order Mean Flow Generative Models: Feasibility, Expressivity, and Provably Efficient Criteriacited by 5
- 2026Tracking High-order Evolutions via Cascading Low-rank Fittingcited by 0
- 2026Tracking High-order Evolutions via Cascading Low-rank Fitting13 Apr 2026
- 2025Towards High-Order Mean Flow Generative Models: Feasibility, Expressivity, and Provably Efficient Criteria9 Aug 2025
- 2025Video Latent Flow Matching: Optimal Polynomial Projections for Video Interpolation and Extrapolation1 Feb 2025
- 2024Provable Differentially Private Computation of the Cross-Attention Mechanism20 Jul 2024
- 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
- 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
- 2024Training Tensor Attention Efficiently: From Cubic to Almost Linear Timecited by 29
- 2024Multi-Layer Transformers Gradient Can be Approximated in Almost Linear Timecited by 22
- 2024HSR-Enhanced Sparse Attention Accelerationcited by 19
- 2025T2VWorldBench: A Benchmark for Evaluating World Knowledge in Text-to-Video Generationcited by 18
- 2025Quantum Adaptive Self-Attention for Quantum Transformer Modelscited by 14
- 2024RoPE Attention Can Be Trained in Almost Linear Timecited by 13
- 2025FZOO: Fast Zeroth-Order Optimizer for Fine-Tuning Large Language Models towards Adam-Scale Speedcited by 11
- 2024Towards Infinite-Long Prefix in Transformercited by 10
12 most cited of 20 All 20 (JSON)
- 2025Unifying Learning Dynamics and Generalization in Transformers Scaling Law26 Dec 2025
- 2025Fundamental Limits of Crystalline Equivariant Graph Neural Networks: A Circuit Complexity Perspective7 Oct 2025
- 2025Towards Sampling Data Structures for Tensor Products in Turnstile Streams4 Oct 2025
- 2025T2VWorldBench: A Benchmark for Evaluating World Knowledge in Text-to-Video Generation24 Jul 2025
- 2025FZOO: Fast Zeroth-Order Optimizer for Fine-Tuning Large Language Models towards Adam-Scale Speed10 Jun 2025
- 2025Quantum Adaptive Self-Attention for Quantum Transformer Models5 Apr 2025
- 2025On Computational Limits of FlowAR Models: Expressivity and Efficiency23 Feb 2025
- 2024RoPE Attention Can Be Trained in Almost Linear Time23 Dec 2024
- 2024Modern Hopfield Networks Require Chain-of-Thought to Solve mathsfNC1-Hard Problems7 Dec 2024
- 2024kNN Attention Demystified: A Theoretical Exploration for Scalable Transformers6 Nov 2024
- 2024Unlocking the Theory Behind Scaling 1-Bit Neural Networks3 Nov 2024
- 2024Advancing the Understanding of Fixed Point Iterations in Deep Neural Networks: A Detailed Analytical Study15 Oct 2024
12 newest of 20 All 20 (JSON)