Outcome-Based RL Provably Leads Transformers to Reason, but Only With the Right Data
On the map: LLM reasoning → Prompting and chain-of-thought reasoning
Abstract (arXiv)
Transformers trained via Reinforcement Learning (RL) with outcome-based supervision can spontaneously develop the ability to generate intermediate reasoning steps (Chain-of-Thought). Yet the mechanism by which sparse rewards drive policy gradient to discover such systematic reasoning remains poorly understood. We address this by analyzing the policy gradient dynamics of single-layer Transformers on a synthetic graph traversal task that cannot be solved without Chain-of-Thought but admits a simple iterative solution. We prove that despite training solely on final-answer correctness, policy gradient drives the Transformer to converge to a structured, interpretable algorithm that iteratively traverses the graph vertex-by-vertex. We characterize the distributional properties required for this emergence, identifying the critical role of "simple examples": instances requiring fewer reasoning steps. When the training distribution places sufficient mass on these simpler examples, the Transformer learns a generalizable traversal strategy that extrapolates to longer chains; when this mass vanishes, policy gradient learning becomes infeasible. We corroborate our theoretical results through experiments on synthetic data and with real-world language models on mathematical reasoning tasks, validating that our theoretical findings carry over to practical settings.
Key facts. Cited by 6 papers in the map (data through 14 Oct 2026). Placed in Prompting and chain-of-thought reasoning, one of 17 directions in LLM reasoning. Builds on 58 of its 72 references that are in the map. First posted on arXiv 21 Jan 2026.
Builds on
58 of 72 references.
Closest ancestors · 10
Same direction, newest first
- 2025Transformers with RL or SFT Provably Learn Sparse Boolean Functions, But Differently22 Nov
- 2025Transformers Provably Learn Chain-of-Thought Reasoning with Length Generalization10 Nov
- 2025A Theory of Learning with Autoregressive Chain of Thought11 Mar
- 2025Transformers Learn to Implement Multi-step Gradient Descent with Chain of Thought28 Feb
- 2025Finite State Automata Inside Transformers with Chain-of-Thought: A Mechanistic Study on State Tracking27 Feb
- 2024Transformers Provably Solve Parity Efficiently with Chain of Thought11 Oct
- 2024Understanding Transformer Reasoning Capabilities via Graph Algorithms28 May
- 2024Chain of Thought Empowers Transformers to Solve Inherently Serial Problems20 Feb
- 2023The Expressive Power of Transformers with Chain of Thought11 Oct
- 2023Towards Revealing the Mystery behind Chain of Thought: A Theoretical Perspective24 May
Other references · 48
- 2017Attention Is All You Needcited by 60,361
- 2022Training language models to follow instructions with human feedbackcited by 15,971
- 2017Proximal Policy Optimization Algorithmscited by 15,215
- 2024The Llama 3 Herd of Modelscited by 14,715
- 2020A Simple Framework for Contrastive Learning of Visual Representationscited by 12,049
- 2024DeepSeekMath: Pushing the Limits of Mathematical Reasoning in Open Language Modelscited by 9,379
- 2021Evaluating Large Language Models Trained on Codecited by 8,320
- 2025DeepSeek-R1: Incentivizing Reasoning Capability in LLMs via Reinforcement Learningcited by 6,330
- 2024Qwen2.5 Technical Reportcited by 4,942
- 2020Offline Reinforcement Learning: Tutorial, Review, and Perspectives on Open Problemscited by 1,920
- 2020Conservative Q-Learning for Offline Reinforcement Learningcited by 1,809
- 2016Understanding deep learning requires rethinking generalizationcited by 1,674
36 more
- 2022Solving Quantitative Reasoning Problems with Language Modelscited by 1,392
- 2015Prioritized Experience Replaycited by 1,099
- 2022Transformers learn in-context by gradient descentcited by 732
- 2019Deep Double Descent: Where Bigger Models and More Data Hurtcited by 672
- 2019A Theoretical Analysis of Contrastive Unsupervised Representation Learningcited by 530
- 2019Does Learning Require Memorization? A Short Tale about a Long Tailcited by 460
- 2020Curriculum Learning for Reinforcement Learning Domains: A Framework and Surveycited by 373
- 2023Trained Transformers Learn Linear Models In-Contextcited by 337
- 2023Transformers as Statisticians: Provable In-Context Learning with In-Context Algorithm Selectioncited by 298
- 2021Curriculum Learning: A Surveycited by 259
- 2017Automated Curriculum Learning for Neural Networkscited by 257
- 2023Looped Transformers as Programmable Computerscited by 237
- 2022The Parallelism Tradeoff: Limitations of Log-Precision Transformerscited by 193
- 2020Revisiting Fundamentals of Experience Replaycited by 175
- 2024The pitfalls of next-token predictioncited by 160
- 2020Automatic Curriculum Learning For Deep RL: A Short Surveycited by 150
- 2024How Transformers Learn Causal Structure with Gradient Descentcited by 118
- 2025Curriculum Reinforcement Learning from Easy to Hard Tasks Improves LLM Reasoningcited by 92
- 2023Transformers as Decision Makers: Provable In-Context Reinforcement Learning via Supervised Pretrainingcited by 83
- 2024Transformers, parallel computation, and logarithmic depthcited by 79
- 2024StepCoder: Improve Code Generation with Reinforcement Learning from Compiler Feedbackcited by 77
- 2023How Do Transformers Learn In-Context Beyond Simple Functions? A Case Study on Learning with Representationscited by 75
- 2023Generalization on the Unseen, Logic Reasoning and Degree Curriculumcited by 73
- 2025On the Interplay of Pre-Training, Mid-Training, and RL on Reasoning Language Modelscited by 69
- 2025Learning Compositional Functions with Transformers from Easy-to-Hard Datacited by 36
- 2021Continuous vs. Discrete Optimization of Deep Neural Networkscited by 34
- 2024Transformers Can Learn Temporal Difference Methods for In-Context Reinforcement Learningcited by 23
- 2024Bypassing the Exponential Dependency: Looped Transformers Efficiently Learn In-context by Multi-step Gradient Descentcited by 22
- 2024Transformers Use Causal World Models in Maze-Solving Taskscited by 13
- 2025Let Me Think! A Long Chain-of-Thought Can Be Worth Exponentially Many Short Onescited by 13
- 2024Can LLMs perform structured graph reasoning?cited by 9
- 2025Multi-head Transformers Provably Learn Symbolic Multi-step Reasoning via Gradient Descentcited by 7
- 2025Shift is Good: Mismatched Data Mixing Improves Test Performancecited by 5
- 2023What Makes Data Suitable for a Locally Connected Neural Network? A Necessary and Sufficient Condition Based on Quantum Entanglementcited by 4
- 2025Provable Benefit of Curriculum in Transformer Tree-Reasoning Post-Trainingcited by 4
- 2025Facts in Stats: Impacts of Pretraining Diversity on Language Model Generalizationcited by 3
Built on by
Citing papers per year: 2026: 6.
6 papers.
- 2026Attention Sinks Are Provably Necessary in Softmax Transformers: Evidence from Trigger-Conditional Taskscited by 11
- 2026When Errors Can Be Beneficial: A Categorization of Imperfect Rewards for Policy Gradientcited by 1
- 2026Agentic Transformers Provably Learn to Search via Reinforcement Learningcited by 1
- 2026Why Does Agentic Safety Fail to Generalize Across Tasks?cited by 0
- 2026What Pretraining and Midtraining Make Learnable from Rewards?cited by 0
- 2026Verification with Transfer: Exact Information Frontiers and Their Price in Callscited by 0
- 2026Verification with Transfer: Exact Information Frontiers and Their Price in Calls8 Oct 2026
- 2026What Pretraining and Midtraining Make Learnable from Rewards?29 Sep 2026
- 2026Agentic Transformers Provably Learn to Search via Reinforcement Learning29 May 2026
- 2026Why Does Agentic Safety Fail to Generalize Across Tasks?7 May 2026
- 2026When Errors Can Be Beneficial: A Categorization of Imperfect Rewards for Policy Gradient28 Apr 2026
- 2026Attention Sinks Are Provably Necessary in Softmax Transformers: Evidence from Trigger-Conditional Tasks12 Mar 2026
Similar, not cited
Close in wording, no citation either way
- 2025The Kinetics of Reasoning: How Chain-of-Thought Shapes Learning in Transformers?
- 2026Reinforcement Learning for Hierarchical Reasoning Rewards: Minimax-Optimal Rates with Transformers
- 2026Structural Chain-of-Thought: Reasoning with Executable Computational Graphs
- 2025Policy Optimization Prefers The Path of Least Resistance
- 2026SARL: Label-Free Reinforcement Learning by Rewarding Reasoning Topology
- 2025RL Squeezes, SFT Expands: A Comparative Study of Reasoning LLMs
- 2026Probing the Origins of Reasoning Performance: Representational Quality for Mathematical Problem-Solving in RL vs. SFT Fine-Tuned Models
- 2025CTRLS: Chain-of-Thought Reasoning via Latent State-Transition