Transformers with CoT Discover Heavy-Ball Acceleration Through Training
Yuxuan Cai, Yuan Cao
Key points
From the paper's conclusion- 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.
Abstract
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.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- How Does Chain-of-Thought Supervision Teach Models to Reason? A Theoretical AnalysisarXiv · 2026
- Lightweight Reasoning Transfer via Chain-of-Thought Vector ProjectionarXiv · 2026
- CoT-Proxy: Cross-Format Transfer for Distilling Long-Horizon PoliciesarXiv · 2026
- CoTranslator: Reverse to Forward Chain-of-Thought Translator for Reasoning DistillationarXiv · 2026
- Learning Teacher Output Preferences from Final Responses for Reasoning DistillationarXiv · 2026
- A Tight Hierarchy for Chain of ThoughtarXiv · 2026