mlsanityData to 7 Oct 2026

Conv-Basis: A New Paradigm for Efficient Attention Inference and Gradient Computation in Transformers

arXiv 2405.05219 ↗First posted 8 May 2024cs.LG cs.AIcited by 32

Not on the map. Why?

Abstract (arXiv)

The self-attention mechanism is the key to the success of transformers in recent Large Language Models (LLMs). However, the quadratic computational cost O(n2) in the input sequence length n is a notorious obstacle for further improvement and scalability in longer contexts. In this work, we leverage the convolution-like structure of attention matrices to develop an efficient approximation method for attention computation using convolution matrices. We propose a mathsfconv basis system, analogous to the rank basis, and show that any lower triangular matrix can always be decomposed as a sum of structured convolution matrices in this basis. We then design a fast algorithm to approximate the attention matrix via a sum of such k convolution matrices. This allows us to compute the attention it inference via Fast Fourier Transforms (FFT) in O(knd log n) time, where d is the hidden dimension, and thus achieve almost linear time n1+o(1) in the practical scenario where kd = no(1). Furthermore, the attention it training forward and it backward gradient can be computed in n1+o(1) as well. We provide theoretical guarantees on the run time and approximation error and conduct preliminary experiments to evaluate its effectiveness. We hope our new paradigm for accelerating attention computation in transformer models can help their application to longer contexts.

Key facts. Cited by 32 papers in the map (data through 7 Oct 2026). Builds on 55 of its 120 references that are in the map. First posted on arXiv 8 May 2024.

Builds on

55 of 120 references.

References · 55

  1. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
  2. 2023GPT-4 Technical Reportcited by 18,132
  3. 2023LLaMA: Open and Efficient Foundation Language Modelscited by 13,958
  4. 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 12,865
  5. 2018GLUE: A Multi-Task Benchmark and Analysis Platform for Natural Language Understandingcited by 4,854
  6. 2023Mamba: Linear-Time Sequence Modeling with Selective State Spacescited by 4,616
  7. 2022OPT: Open Pre-trained Transformer Language Modelscited by 3,464
  8. 2020Longformer: The Long-Document Transformercited by 3,362
  9. 2021Efficiently Modeling Long Sequences with Structured State Spacescited by 2,424
  10. 2020Rethinking Attention with Performerscited by 1,584
  11. 2019Generating Long Sequences with Sparse Transformerscited by 1,523
  12. 2020Linformer: Self-Attention with Linear Complexitycited by 1,462
38 more
  1. 2018An Empirical Evaluation of Generic Convolutional and Recurrent Networks for Sequence Modelingcited by 1,447
  2. 2022In-context Learning and Induction Headscited by 930
  3. 2024Gemma: Open Models Based on Gemini Research and Technologycited by 889
  4. 2023Gemini: A Family of Highly Capable Multimodal Modelscited by 810
  5. 2023Retentive Network: A Successor to Transformer for Large Language Modelscited by 594
  6. 2023Trained Transformers Learn Linear Models In-Contextcited by 331
  7. 2024LongRoPE: Extending LLM Context Window Beyond 2 Million Tokenscited by 302
  8. 2023LongLoRA: Efficient Fine-tuning of Long-Context Large Language Modelscited by 243
  9. 2019Transformer Dissection: A Unified Understanding of Transformer's Attention via the Lens of Kernelcited by 211
  10. 2024Monitoring AI-Modified Content at Scale: A Case Study on the Impact of ChatGPT on AI Conference Peer Reviewscited by 160
  11. 2024LLM Maybe LongLM: Self-Extend LLM Context Window Without Tuningcited by 133
  12. 2024How Transformers Learn Causal Structure with Gradient Descentcited by 114
  13. 2013Fast Training of Convolutional Networks through FFTscited by 89
  14. 2024Training-Free Long-Context Scaling of Large Language Modelscited by 61
  15. 2023A Short Survey of Viewing Large Language Models in Legal Aspectcited by 51
  16. 2023Attention Scheme Inspired Softmax Regressioncited by 49
  17. 2024Megalodon: Efficient LLM Pretraining and Inference with Unlimited Context Lengthcited by 46
  18. 2023Solving Regularized Exp, Cosh and Sinh Regression Problemscited by 44
  19. 2023Toeplitz Neural Network for Sequence Modelingcited by 43
  20. 2023The Closeness of In-Context Learning and Weight Shifting for Softmax Regressioncited by 41
  21. 2023Randomized and Deterministic Attention Sparsification Algorithms for Over-parameterized Feature Dimensioncited by 37
  22. 2023An Iterative Algorithm for Rescaled Hyperbolic Functions Regressioncited by 35
  23. 2023PolySketchFormer: Fast Transformers via Sketching Polynomial Kernelscited by 33
  24. 2023In-Context Learning for Attention Scheme: from Single Softmax Regression to Multiple Softmax Regression via a Tensor Trickcited by 32
  25. 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
  26. 2024The Fine-Grained Complexity of Gradient Computation for Training Large Language Modelscited by 30
  27. 2023A Mathematical Abstraction for Balancing the Trade-off Between Creativity and Reality in Large Language Modelscited by 29
  28. 2023Differentially Private Attention Computationcited by 25
  29. 2023GradientCoin: A Peer-to-Peer Decentralized Large Language Modelscited by 23
  30. 2024Fourier Circuits in Neural Networks and Transformers: A Case Study of Modular Arithmetic with Multiple Inputscited by 22
  31. 2023Solving Attention Kernel Regression Problem via Pre-conditionercited by 20
  32. 2023Beyond Classical Attention: Quantum Attention for Scalable Computationcited by 18
  33. 2023Zero-th Order Algorithm for Softmax Attention Optimizationcited by 16
  34. 2023Uncovering hidden geometry in Transformers via disentangling position and contextcited by 15
  35. 2023Why Softmax Attention Outperforms Linear Attentioncited by 15
  36. 2023A Unified Scheme of ResNet and Softmaxcited by 12
  37. 2023Unmasking Transformers: A Theoretical Approach to Data Recovery via Attention Weightscited by 11
  38. 2023Local Convergence of Approximate Newton Method for Two Layer Nonlinear Regressioncited by 9

50 most cited of 55 All 55 (JSON)

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2024: 15; 2025: 16; 2026: 1.

32 papers.

Sort:

By area:

  1. 2024Why Larger Language Models Do In-context Learning Differently?cited by 44
  2. 2024On Statistical Rates and Provably Efficient Criteria of Latent Diffusion Transformers (DiTs)cited by 39
  3. 2024Do Large Language Models Have Compositional Ability? An Investigation into Limitations and Scalabilitycited by 39
  4. 2024Computational Limits of Low-Rank Adaptation (LoRA) Fine-Tuning for Transformer Modelscited by 31
  5. 2024Out-of-distribution generalization via composition: a lens through induction heads in Transformerscited by 28
  6. 2025Tensor Product Attention Is All You Needcited by 27
  7. 2024Circuit Complexity Bounds for RoPE-based Transformer Architecturecited by 26
  8. 2024Multi-Layer Transformers Gradient Can be Approximated in Almost Linear Timecited by 22
  9. 2024Bypassing the Exponential Dependency: Looped Transformers Efficiently Learn In-context by Multi-step Gradient Descentcited by 21
  10. 2024The Computational Limits of State-Space Models and Mamba via the Lens of Circuit Complexitycited by 21
  11. 2024A Tighter Complexity Analysis of SparseGPTcited by 19
  12. 2024HSR-Enhanced Sparse Attention Accelerationcited by 19
20 more
  1. 2024RoPE Attention Can Be Trained in Almost Linear Timecited by 13
  2. 2024Theoretical Constraints on the Expressive Power of mathsfRoPE-based Tensor Attention Transformerscited by 12
  3. 2025Learning to Inference Adaptively for Multimodal Large Language Modelscited by 12
  4. 2025Video Latent Flow Matching: Optimal Polynomial Projections for Video Interpolation and Extrapolationcited by 11
  5. 2024Towards Infinite-Long Prefix in Transformercited by 10
  6. 2025On Computational Limits of FlowAR Models: Expressivity and Efficiencycited by 10
  7. 2025Theoretical Guarantees for High Order Trajectory Refinement in Generative Flowscited by 9
  8. 2025Fast RoPE Attention: Combining the Polynomial Method and Fast Fourier Transformcited by 9
  9. 2025Attention Mechanisms Perspective: Exploring LLM Processing of Graph-Structured Datacited by 7
  10. 2025Only Large Weights (And Not Skip Connections) Can Prevent the Perils of Rank Collapsecited by 7
  11. 2025Breaking the Frozen Subspace: Importance Sampling for Low-Rank Optimization in LLM Pretrainingcited by 6
  12. 2025Scaling Law Phenomena Across Regression Paradigms: Multiple and Kernel Approachescited by 4
  13. 2025Neural Algorithmic Reasoning for Hypergraphs with Looped Transformerscited by 3
  14. 2025When Can We Solve the Weighted Low Rank Approximation Problem in Truly Subquadratic Time?cited by 3
  15. 2025CoVE: Compressed Vocabulary Expansion Makes Better LLM-based Recommender Systemscited by 3
  16. 2024Differentially Private Kernel Density Estimationcited by 2
  17. 2025Time and Memory Trade-off of KV-Cache Compression in Tensor Transformer Decodingcited by 2
  18. 2025Theoretical Foundation of Flow-Based Time Series Generation: Provable Approximation, Generalization, and Efficiencycited by 2
  19. 2025Can Language Models Compose Skills In-Context?cited by 0
  20. 2026Flow Perturbation++: Multi-Step Unbiased Jacobian Estimation for High-Dimensional Boltzmann Samplingcited by 0