Transformers with CoT Discover Heavy-Ball Acceleration Through Training
On the map: LLM reasoning → Prompting and chain-of-thought reasoning
Abstract (arXiv)
Modern transformers often solve complex tasks by generating and refining intermediate reasoning steps. To develop a theoretical understanding of chain-of-thought (CoT) reasoning, a notable recent study by Huang et al. (2025) viewed transformers as algorithm executors, and showed that when transformers' CoT steps are supervised by a gradient-descent teacher, they can learn to implement gradient descent for in-context weight prediction in linear regression. In this paper, we study the same in-context weight prediction task but ask whether CoT reasoning can go beyond merely imitating the teacher algorithm. We show that, after initial supervision from a gradient-descent teacher, further trajectory-level supervision using the true regression weights leads the model to implement the Heavy-Ball method, thereby achieving acceleration over the original teacher. Notably, this accelerated algorithm emerges without supervision from any Heavy-Ball teacher. Our results provide a concrete theoretical example in which transformer reasoning can discover new algorithms through training, rather than merely imitate the algorithm used for supervision.
Key facts. No citing papers in the map yet (data through 24 Nov 2026). Placed in Prompting and chain-of-thought reasoning, one of 17 directions in LLM reasoning. Builds on 9 of its 51 references that are in the map. Submitted 22 Oct 2026.
Builds on
9 of 51 references.
Closest ancestors · 2
Same direction, newest first
- 2023Analyzing Chain-of-Thought Prompting in Large Language Models via Gradient-based Feature Attributions25 Jul
- 2022Self-Consistency Improves Chain of Thought Reasoning in Language Models21 Mar
Other references · 7
- 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 31,277
- 2021Show Your Work: Scratchpads for Intermediate Computation with Language Modelscited by 934
- 2025Learning Compositional Functions with Transformers from Easy-to-Hard Datacited by 39
- 2025Transformers Simulate MLE for Sequence Generation in Bayesian Networkscited by 9
- 2026Agentic Transformers Provably Learn to Search via Reinforcement Learningcited by 4
- 2026Looped Transformers with Layer Normalization Provably Learn the Power Methodcited by 4
- 2026Transformers Efficiently Perform In-Context Logistic Regression via Normalized Gradient Descentcited by 2
Built on by
Not cited yet.
Similar, not cited
Close in wording, no citation either way
- 2025Transformers Learn to Implement Multi-step Gradient Descent with Chain of Thought
- 2025The Kinetics of Reasoning: How Chain-of-Thought Shapes Learning in Transformers?
- 2026A Tight Hierarchy for Chain of Thought
- 2025Transformers Provably Learn Chain-of-Thought Reasoning with Length Generalization
- 2025Multi-head Transformers Provably Learn Symbolic Multi-step Reasoning via Gradient Descent
- 2026Barriers to Universal Reasoning With Transformers (And How to Overcome Them)
- 2025To CoT or To Loop? A Formal Comparison Between Chain-of-Thought and Looped Transformers
- 2026Invariant Learning Dynamics of Transformers in Inductive Reasoning Tasks