mlsanityData to 7 Oct 2026

Can Looped Transformers Learn to Implement Multi-step Gradient Descent for In-context Learning?

arXiv 2410.08292 ↗First posted 10 Oct 2024cs.LG cs.AI stat.MLcited by 60

Not on the map. Why?

Cited by 21 in LLM reasoning, but placed by its own abstract, which didn’t fit.

Abstract (arXiv)

The remarkable capability of Transformers to do reasoning and few-shot learning, without any fine-tuning, is widely conjectured to stem from their ability to implicitly simulate a multi-step algorithms -- such as gradient descent -- with their weights in a single forward pass. Recently, there has been progress in understanding this complex phenomenon from an expressivity point of view, by demonstrating that Transformers can express such multi-step algorithms. However, our knowledge about the more fundamental aspect of its learnability, beyond single layer models, is very limited. In particular, can training Transformers enable convergence to algorithmic solutions? In this work we resolve this for in-context linear regression with linear looped Transformers -- a multi-layer model with weight sharing that is conjectured to have an inductive bias to learn fix-point iterative algorithms. More specifically, for this setting we show that the global minimizer of the population training loss implements multi-step preconditioned gradient descent, with a preconditioner that adapts to the data distribution. Furthermore, we show a fast convergence for gradient flow on the regression loss, despite the non-convexity of the landscape, by proving a novel gradient dominance condition. To our knowledge, this is the first theoretical analysis for multi-layer Transformer in this setting. We further validate our theoretical findings through synthetic experiments.

Key facts. Cited by 60 papers in the map (data through 7 Oct 2026). Builds on 26 of its 30 references that are in the map. First posted on arXiv 10 Oct 2024.

Builds on

26 of 30 references.

References · 26

  1. 2017Attention Is All You Needcited by 59,932
  2. 2020Language Models are Few-Shot Learnerscited by 32,199
  3. 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,302
  4. 2022Scaling Instruction-Finetuned Language Modelscited by 2,997
  5. 2022Solving Quantitative Reasoning Problems with Language Modelscited by 1,359
  6. 2021An Explanation of In-context Learning as Implicit Bayesian Inferencecited by 915
  7. 2022Transformers learn in-context by gradient descentcited by 714
  8. 2022What Can Transformers Learn In-Context? A Case Study of Simple Function Classescited by 700
  9. 2022What learning algorithm is in-context learning? Investigations with linear modelscited by 671
  10. 2021Linear Transformers Are Secretly Fast Weight Programmerscited by 471
  11. 2018Learning and Generalization in Overparameterized Neural Networks, Going Beyond Two Layerscited by 340
  12. 2023Trained Transformers Learn Linear Models In-Contextcited by 331
14 more
  1. 2023Transformers as Statisticians: Provable In-Context Learning with In-Context Algorithm Selectioncited by 291
  2. 2023Transformers learn to implement preconditioned gradient descent for in-context learningcited by 274
  3. 2023Looped Transformers as Programmable Computerscited by 224
  4. 2022Language models show human-like content effects on reasoning taskscited by 171
  5. 2023Looped Transformers are Better at Learning Learning Algorithmscited by 135
  6. 2019On the Turing Completeness of Modern Neural Network Architecturescited by 129
  7. 2021Statistically Meaningful Approximation: a Case Study on Approximating Turing Machines with Transformerscited by 101
  8. 2023Tracr: Compiled Transformers as a Laboratory for Interpretabilitycited by 99
  9. 2023Linear attention is (maybe) all you need (to understand transformer optimization)cited by 97
  10. 2023Uncovering mesa-optimization algorithms in Transformerscited by 94
  11. 2017Residual Connections Encourage Iterative Inferencecited by 74
  12. 2023Transformers Learn to Achieve Second-Order Convergence Rates for In-Context Linear Regressioncited by 47
  13. 2023Trainable Transformer in Transformercited by 17
  14. 2022From Gradient Flow on Population Loss to Learning with Stochastic Gradient Descentcited by 5

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2024: 9; 2025: 25; 2026: 26.

60 papers.

Sort:

By area:

  1. 2025Scaling up Test-Time Compute with Latent Reasoning: A Recurrent Depth Approachcited by 372
  2. 2025Reasoning with Latent Thoughts: On the Power of Looped Transformerscited by 223
  3. 2025Scaling Latent Reasoning via Looped Language Modelscited by 145
  4. 2025Mixture-of-Recursions: Learning Dynamic Recursive Depths for Adaptive Token-Level Computationcited by 120
  5. 2024Relaxed Recursive Transformers: Effective Parameter Sharing with Layer-wise LoRAcited by 72
  6. 2025A Survey on Latent Reasoningcited by 71
  7. 2026LoopFormer: Elastic-Depth Looped Transformers for Latent Reasoning via Shortcut Modulationcited by 48
  8. 2025Teaching Pretrained Language Models to Think Deeper with Retrofitted Recurrencecited by 41
  9. 2025Harnessing the Reasoning Economy: A Survey of Efficient Reasoning for Large Language Modelscited by 35
  10. 2024Pretrained transformer efficiently learns low-dimensional target functions in-contextcited by 29
  11. 2025Encode, Think, Decode: Scaling test-time reasoning with recursive latent thoughtscited by 23
  12. 2024Bypassing the Exponential Dependency: Looped Transformers Efficiently Learn In-context by Multi-step Gradient Descentcited by 21
38 more
  1. 2025Implicit Language Models are RNNs: Balancing Parallelization and Expressivitycited by 21
  2. 2024Looped ReLU MLPs May Be All You Need as Practical Programmable Computerscited by 19
  3. 2025Enhancing Auto-regressive Chain-of-Thought through Loop-Aligned Reasoningcited by 19
  4. 2026Training-Free Looped Transformerscited by 12
  5. 2024On the Role of Depth and Looping for In-Context Learning with Task Diversitycited by 11
  6. 2025Gating is Weighting: Understanding Gated Linear Attention through In-context Learningcited by 11
  7. 2026ELT: Elastic Looped Transformers for Visual Generationcited by 11
  8. 2026Residual Context Diffusion Language Modelscited by 9
  9. 2025Efficient Parallel Samplers for Recurrent-Depth Models and Their Connection to Diffusion Language Modelscited by 7
  10. 2026On the Residual Scaling of Looped Transformers: Stability and Transferabilitycited by 7
  11. 2024Context-Scaling versus Task-Scaling in In-Context Learningcited by 6
  12. 2026Prioritize the Process, Not Just the Outcome: Rewarding Latent Thought Trajectories Improves Reasoning in Looped Language Modelscited by 6
  13. 2025Out-of-Distribution Generalization of In-Context Learning: A Low-Dimensional Subspace Perspectivecited by 5
  14. 2026LT2: Linear-Time Looped Transformerscited by 5
  15. 2026When Does Recurrence Become an Algorithm? Convergence Selection in Weight-Tied Looped Transformerscited by 5
  16. 2024Advancing the Understanding of Fixed Point Iterations in Deep Neural Networks: A Detailed Analytical Studycited by 4
  17. 2025Understanding the Role of Training Data in Test-Time Scalingcited by 4
  18. 2026Looping Back to Move Forward: Recursive Transformers for Efficient and Flexible Large Multimodal Modelscited by 4
  19. 2026DeepLoop: Depth Scaling for Looped Transformerscited by 4
  20. 2026Loop the Loopies!cited by 4
  21. 2025Neural Algorithmic Reasoning for Hypergraphs with Looped Transformerscited by 3
  22. 2025Test time training enhances in-context learning of nonlinear functionscited by 3
  23. 2025Rectifying LLM Thought from Lens of Optimizationcited by 3
  24. 2026Rethinking Zero-Shot Time Series Classification: From Task-specific Classifiers to In-Context Inferencecited by 3
  25. 2026Latent Thoughts Tuning: Bridging Context and Reasoning with Fused Information in Latent Tokenscited by 3
  26. 2026Continuous Latent Contexts Enable Efficient Online Learning in Transformerscited by 3
  27. 2024Learning in the Recurrent State: Gradient Descent with Linear Recurrent Networkscited by 2
  28. 2025StagFormer: Time Staggering Transformer Decoding for RunningLayers In Parallelcited by 2
  29. 2025Adversarially Pretrained Transformers May Be Universally Robust In-Context Learnerscited by 2
  30. 2025Deciphering Trajectory-Aided LLM Reasoning: An Optimization Perspectivecited by 2
  31. 2025Towards Provable Emergence of In-Context Reinforcement Learningcited by 2
  32. 2024Provable optimal transport with transformers: The essence of depth and prompt engineeringcited by 1
  33. 2025VersatileFFN: Achieving Parameter Efficiency in LLMs via Adaptive Wide-and-Deep Reusecited by 1
  34. 2026Learned Relay Representations for Forward-Thinking Discrete Diffusion Modelscited by 1
  35. 2025In-Context Learning with Hypothesis-Class Guidancecited by 0
  36. 2025COGITAO: A Visual Reasoning Framework To Study Compositionality & Generalizationcited by 0
  37. 2025Optimality and NP-Hardness of Transformers in Learning Markovian Dynamical Functionscited by 0
  38. 2026Reasoning While Recommending: Entropy-Guided Latent Reasoning in Generative Re-ranking Modelscited by 0

50 most cited of 60 All 60 (JSON)