mlsanityData to 7 Oct 2026

In-Context Learning for Attention Scheme: from Single Softmax Regression to Multiple Softmax Regression via a Tensor Trick

arXiv 2307.02419 ↗First posted 5 Jul 2023cs.LGcited by 32

Not on the map. Why?

Abstract (arXiv)

Large language models (LLMs) have brought significant and transformative changes in human society. These models have demonstrated remarkable capabilities in natural language understanding and generation, leading to various advancements and impacts across several domains. We consider the in-context learning under two formulation for attention related regression in this work. Given matrices A1 ∈ ℝn × d, and A2 ∈ ℝn × d and B ∈ ℝn × n, the purpose is to solve some certain optimization problems: Normalized version minX | D(X)-1 exp(A1 X A2^top) - B |F2 and Rescaled version | exp(A1 X A2^top) - D(X) · B |F2. Here D(X) := diag( exp(A1 X A2^top) bf 1n ). Our regression problem shares similarities with previous studies on softmax-related regression. Prior research has extensively investigated regression techniques related to softmax regression: Normalized version | langle exp(Ax) , bf 1n rangle-1 exp(Ax) - b |22 and Resscaled version | exp(Ax) - langle exp(Ax), bf 1n rangle b |22 In contrast to previous approaches, we adopt a vectorization technique to address the regression problem in matrix formulation. This approach expands the dimension from d to d2, resembling the formulation of the regression problem mentioned earlier. Upon completing the lipschitz analysis of our regression function, we have derived our main result concerning in-context learning.

Key facts. Cited by 32 papers in the map (data through 7 Oct 2026). Builds on 40 of its 49 references that are in the map. First posted on arXiv 5 Jul 2023.

Builds on

40 of 49 references.

References · 40

  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. 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,491
  6. 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,266
  7. 2021Finetuned Language Models Are Zero-Shot Learnerscited by 3,747
  8. 2019XLNet: Generalized Autoregressive Pretraining for Language Understandingcited by 2,801
  9. 2023H2O: Heavy-Hitter Oracle for Efficient Generative Inference of Large Language Modelscited by 805
  10. 2022Transformers learn in-context by gradient descentcited by 714
  11. 2022What Can Transformers Learn In-Context? A Case Study of Simple Function Classescited by 700
  12. 2022What learning algorithm is in-context learning? Investigations with linear modelscited by 671
28 more
  1. 2013Generating Sequences With Recurrent Neural Networkscited by 549
  2. 2021MetaICL: Learning to Learn In Contextcited by 450
  3. 2023Trained Transformers Learn Linear Models In-Contextcited by 331
  4. 2023Large Language Models Are Latent Variable Models: Explaining and Finding Good Demonstrations for In-Context Learningcited by 149
  5. 2022General-Purpose In-Context Learning by Meta-Learning Transformerscited by 102
  6. 2023Fast Attention Requires Bounded Entriescited by 102
  7. 2019Language Modeling with Deep Transformerscited by 96
  8. 2023How Do Transformers Learn Topic Structure: Towards a Mechanistic Understandingcited by 85
  9. 2022Structured Prompting: Scaling In-Context Learning to 1,000 Examplescited by 81
  10. 2021Training Multi-Layer Over-Parametrized Neural Network in Subquadratic Timecited by 62
  11. 2023KDEformer: Accelerating Transformers via Kernel Density Estimationcited by 58
  12. 2020Meta Learning Backpropagation And Improving Itcited by 49
  13. 2023Attention Scheme Inspired Softmax Regressioncited by 49
  14. 2017Relative Error Tensor Low Rank Approximationcited by 45
  15. 2023An Over-parameterized Exponential Regressioncited by 45
  16. 2023Solving Regularized Exp, Cosh and Sinh Regression Problemscited by 44
  17. 2023The Closeness of In-Context Learning and Weight Shifting for Softmax Regressioncited by 41
  18. 2021Approximating How Single Head Attention Learnscited by 38
  19. 2023Algorithm and Hardness for Dynamic Attention Maintenance in Large Language Modelscited by 37
  20. 2019Why are Adaptive Methods Good for Attention Models?cited by 35
  21. 2023An Iterative Algorithm for Rescaled Hyperbolic Functions Regressioncited by 35
  22. 2021Fast Sketching of Polynomial Kernels of Polynomial Degreecited by 33
  23. 2017Sketching for Kronecker Product Regression and P-splinescited by 29
  24. 2019Optimal Sketching for Kronecker Product Regression and Low Rank Approximationcited by 29
  25. 2023A Mathematical Abstraction for Balancing the Trade-off Between Creativity and Reality in Large Language Modelscited by 29
  26. 2023InfoPrompt: Information-Theoretic Soft Prompt Tuning for Natural Language Understandingcited by 29
  27. 2020Space-Efficient Interior Point Method, with applications to Linear Programming and Maximum Weight Bipartite Matchingcited by 14
  28. 2023Convex Minimization with Integer Minima in widetilde O(n4) Timecited by 12

Built on by

Cited by year

Citing papers per year: 2023: 15; 2024: 9; 2025: 8.

32 papers.

Sort:

By area:

  1. 2024A Theoretical Understanding of Self-Correction through In-context Alignmentcited by 43
  2. 2024On Statistical Rates and Provably Efficient Criteria of Latent Diffusion Transformers (DiTs)cited by 39
  3. 2024Conv-Basis: A New Paradigm for Efficient Attention Inference and Gradient Computation in Transformerscited by 32
  4. 2024Computational Limits of Low-Rank Adaptation (LoRA) Fine-Tuning for Transformer Modelscited by 31
  5. 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
  6. 2024The Fine-Grained Complexity of Gradient Computation for Training Large Language Modelscited by 30
  7. 2023GradientCoin: A Peer-to-Peer Decentralized Large Language Modelscited by 23
  8. 2024The Computational Limits of State-Space Models and Mamba via the Lens of Circuit Complexitycited by 21
  9. 2024Looped ReLU MLPs May Be All You Need as Practical Programmable Computerscited by 19
  10. 2023Beyond Classical Attention: Quantum Attention for Scalable Computationcited by 18
  11. 2023Zero-th Order Algorithm for Softmax Attention Optimizationcited by 16
  12. 2023Why Softmax Attention Outperforms Linear Attentioncited by 15
20 more
  1. 2024Exploring the Frontiers of Softmax: Provable Optimization, Applications in Diffusion Model, and Beyondcited by 15
  2. 2023A Unified Scheme of ResNet and Softmaxcited by 12
  3. 2023Fine-tune Language Models to Approximate Unbiased In-context Learningcited by 12
  4. 2023Efficient SGD Neural Network Training via Sublinear Activated Neuron Identificationcited by 11
  5. 2023Unmasking Transformers: A Theoretical Approach to Data Recovery via Attention Weightscited by 11
  6. 2023An Automatic Learning Rate Schedule Algorithm for Achieving Faster Convergence and Steeper Descentcited by 9
  7. 2023Local Convergence of Approximate Newton Method for Two Layer Nonlinear Regressioncited by 9
  8. 2025Theoretical Guarantees for High Order Trajectory Refinement in Generative Flowscited by 9
  9. 2023The Expressibility of Polynomial based Attention Schemecited by 7
  10. 2023Convergence of Two-Layer Regression with Nonlinear Unitscited by 6
  11. 2023A Theoretical Insight into Attack and Defense of Gradient Leakage in Transformercited by 6
  12. 2023One Pass Streaming Algorithm for Super Long Token Attention Approximation in Sublinear Spacecited by 6
  13. 2025Breaking the Frozen Subspace: Importance Sampling for Low-Rank Optimization in LLM Pretrainingcited by 6
  14. 2024Advancing the Understanding of Fixed Point Iterations in Deep Neural Networks: A Detailed Analytical Studycited by 4
  15. 2025Scaling Law Phenomena Across Regression Paradigms: Multiple and Kernel Approachescited by 4
  16. 2025Neural Algorithmic Reasoning for Hypergraphs with Looped Transformerscited by 3
  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. 2025How Private is Your Attention? Bridging Privacy with In-Context Learningcited by 0
  20. 2025Fundamental Limits of Crystalline Equivariant Graph Neural Networks: A Circuit Complexity Perspectivecited by 0