potentialpaper

Outcome-Based RL Provably Leads Transformers to Reason, but Only With the Right Data

Yuval Ran-Milo, Yotam Alexander, Shahar Mendel, Nadav Cohen

NeurIPS 2026

Edit this page

Or clone it with git

Run in a terminal:

Needs Git LFS. To push, use an API key from your profile as the password.

Or let your agent set it up

It checks and sets up everything: signing in, git, the clone, credentials and an SSH key.

TL;DR. We formally characterize when outcome-based RL yields step-by-step reasoning in Transformers by analyzing gradient flow on a synthetic graph-traversal task, revealing dependence on the distributional mass of “simple” examples in the data.

Abstract. 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 linear 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.

Are you an author? Claim this paper to see who's reading it, with views and other statistics, and to write about it here.

Claim this paper
How does this paper connect to your work? Write how you built on it, compared with it or reproduced it, or add a summary, a critique or errata.
Or make it interactive:
Start writing

edit · history

DateVersionSubmitted toPDFEvidence
4 May 2026NeurIPS 2026submittedNeurIPS 2026Accept (poster)reviews ↓[1]PDF[1]
Missing a version?

NeurIPS 2026

Accept (poster) · 3 reviews · OpenReview

Updated 25 Nov 2026, 03:47 UTC.

Program Chairs · DecisionOpenReview ↗
Decision
Accept (poster)
Read decision
Meta-review

This paper analyzes when outcome-based policy gradient learns efficient autoregressive reasoning in a two-chain traversal task. It proves polynomial-time learning with sufficiently simple training examples and exponentially slow learning under hard-only training, with controlled experiments supporting the proposed mechanism. Dya4 emphasizes the paper’s clarity, originality, and technically substantial treatment of CoT expressivity and optimization. MDVW and 7bhf recognize these strengths while noting the stylized setting.

The rebuttal substantially addressed the concerns synthesized in the metareview. The authors clarified that Theorem 2’s equal-mass condition at distances ss and ⌈an⌉\lceil an\rceil restricts its scope to separated easy and hard examples, acknowledged that this is likely a proof artifact, and agreed to state it prominently. Experiments with intermediate difficulties support the broader conjecture, although the theorem itself remains restricted. The authors also adopted the more accurate interpretation that RL amplifies existing competence rather than discovering reasoning from scratch. Finally, new matched experiments addressed MDVW’s alternative explanation based on diversity or curriculum smoothing. MDVW acknowledged that these concrete concerns were addressed; its remaining reservation is extrapolation to modern RLVR.

I recommend acceptance as a poster. The paper provides a clean, original, and nontrivial characterization of outcome-based learning dynamics. I regard the remaining extrapolation concern as a scope limitation typical of a stylized theory result, not as a decisive objection once the claims are appropriately calibrated. The camera-ready should state Theorem 2’s restriction clearly, incorporate the new controls, and consistently use the amplification framing.

Final justification

The final justification has been incorporated into the updated metareview above.

Area Chair ukuN · Meta-reviewOpenReview ↗
Final justification
The final justification has been incorporated into the updated metareview above.
Read meta-review
Meta-review

This paper analyzes when outcome-based policy gradient learns efficient autoregressive reasoning in a two-chain traversal task. It proves polynomial-time learning with sufficiently simple training examples and exponentially slow learning under hard-only training, with controlled experiments supporting the proposed mechanism. Dya4 emphasizes the paper’s clarity, originality, and technically substantial treatment of CoT expressivity and optimization. MDVW and 7bhf recognize these strengths while noting the stylized setting.

The rebuttal substantially addressed the concerns synthesized in the metareview. The authors clarified that Theorem 2’s equal-mass condition at distances ss and ⌈an⌉\lceil an\rceil restricts its scope to separated easy and hard examples, acknowledged that this is likely a proof artifact, and agreed to state it prominently. Experiments with intermediate difficulties support the broader conjecture, although the theorem itself remains restricted. The authors also adopted the more accurate interpretation that RL amplifies existing competence rather than discovering reasoning from scratch. Finally, new matched experiments addressed MDVW’s alternative explanation based on diversity or curriculum smoothing. MDVW acknowledged that these concrete concerns were addressed; its remaining reservation is extrapolation to modern RLVR.

I recommend acceptance as a poster. The paper provides a clean, original, and nontrivial characterization of outcome-based learning dynamics. I regard the remaining extrapolation concern as a scope limitation typical of a stylized theory result, not as a decisive objection once the claims are appropriately calibrated. The camera-ready should state Theorem 2’s restriction clearly, incorporate the new controls, and consistently use the amplification framing.

1 comment
Authors · CommentOpenReview ↗

Thank you for your careful analysis and for recommending acceptance!

Regarding the two issues you raised:

  1. The simplicity-mass condition in Theorem 2. It is likely an artifact of our proof technique. This is currently noted in Footnote 9, and following your feedback, it will be stated in the main text. The condition confines the support of training examples to two bands: sufficiently easy and sufficiently hard. Our Mixed-n experiments include examples of intermediate difficulty and show that learning succeeds (96.2%, 91.6%), thus we expect Theorem 2 to be extendable to any distribution with sufficiently easy examples. We view this an important avenue for future work.

  2. New algorithm versus amplification of existing one. Indeed, Theorem 2 assumes a minimal level of competence at initialization, in the sense that each individual reasoning step has a better-than-chance probability of being productive. This aligns closely with practice, where RL post-training only works when applied to a sufficiently competent pre-trained base [1, 2], and where emergence of reasoning typically amounts to composing simple operations the model can already perform [3, 4, 5]. We will emphasize the point throughout the text. Thank you for raising it!

References

[1] DeepSeek-AI. DeepSeek-R1: Incentivizing reasoning capability in LLMs via reinforcement learning, 2025. arXiv:2501.12948.

[2] L. Ouyang et al. Training language models to follow instructions with human feedback, 2022. arXiv:2203.02155.

[3] L. Yuan et al. From f(x)f(x) and g(x)g(x) to f(g(x))f(g(x)): LLMs learn new skills in RL by composing old ones, 2025. arXiv:2509.25123.

[4] S. Cheng et al. From atomic to composite: Reinforcement learning enables generalization in complementary reasoning, 2025. arXiv:2512.01970.

[5] C. Zhang, G. Neubig, X. Yue. On the interplay of pre-training, mid-training, and RL on reasoning language models, 2025. arXiv:2512.07783

Reviewer 7bhfOpenReview ↗
Rating
4/6
Confidence
5/5
Quality
3/4
Clarity
4/4
Significance
2/4
Originality
2/4
Contribution type
theory
Ethical concerns
NO or VERY MINOR ethics concerns only
Read review
Summary

This work addresses the central challenge of understanding how outcome-based RL can induce Chain-of-Thought (CoT) reasoning. The paper studies a synthetic graph traversal task in which a graph consists of two disjoint chains. The model receives the graph and a starting vertex, and must predict the terminal vertex of the chain containing the starting vertex. Training uses only a binary outcome reward indicating whether the final answer is correct.

Main findings:

  • Theorem 1 shows that the task cannot be solved by a fixed-depth Transformer without multi-step autoregressive reasoning.
  • Theorem 2 shows that when the training distribution contains a sufficient mass of "simple examples" (instances whose solution requires only a small number of reasoning steps), policy gradient learns an efficient chain-traversal strategy that generalizes to harder instances.
  • Theorem 3 shows that when such simple examples are absent, learning becomes intractable.
  • The paper further presents experiments on arithmetic reasoning tasks that qualitatively support the theoretical findings.
Strengths and weaknesses

Pros

  • Studies an important and timely question regarding the emergence of reasoning under outcome-based RL.
  • Contains technically sophisticated theoretical analysis.
  • Identifies a clear distributional condition ("simple examples") under which learning succeeds.
  • The synthetic task is clean and well matched to the theoretical analysis.

Cons

  • The high-level conclusions are not particularly surprising. The main message-that exposure to easier examples facilitates learning and generalization-is broadly consistent with existing intuitions from curriculum learning and recent work on RL-based reasoning.
  • The theoretical results rely on a highly stylized setting, including single-layer linear Transformers, gradient-flow dynamics, fixed value matrices, symmetric initialization, and additional assumptions on pretraining. It is unclear to what extent the conclusions transfer to modern RL-trained LLMs.
  • The claims of the paper are stronger than what is directly established by the theory. The analysis demonstrates efficient chain traversal in a specific synthetic setting, but the connection to reasoning in realistic language models remains indirect.
  • The empirical validation is relatively limited and mainly provides qualitative support for the theoretical predictions.
  • The necessity of simple examples may be tied to the specific structure of the analyzed task and training distribution.
Questions

none

Limitations

Limitations are in the appendix. I didn't read it.

Formatting concerns

none

2 comments
Authors · RebuttalOpenReview ↗
Rebuttal

Thank you for your thoughtful review. We are grateful for your recognition that our paper studies an important and timely question about the emergence of reasoning under outcome-based RL, that our theoretical analysis is technically sophisticated, that it identifies a clear distributional condition under which learning succeeds, and that the synthetic task is clean and well matched to our theoretical analysis. We respond to your concerns below. If you find our responses satisfactory, we would greatly appreciate it if you would consider raising your score.

The high-level conclusions are not particularly surprising. The main message --- that exposure to easier examples facilitates learning and generalization --- is broadly consistent with existing intuitions from curriculum learning... and ... RL-based reasoning.

While we agree that the high-level conclusions from our work are broadly consistent with existing intuitions from curriculum learning and RL-based reasoning, there are important subtleties that make our conclusions less obvious. Namely, we consider the regime where the training distribution is fixed (i.e., there is no curriculum), and argue that in some cases, it is beneficial to deliberately introduce a distribution shift by placing mass on simple examples, even if those are completely absent from the test distribution. Prior work has identified settings where introducing a distribution shift in training benefits learning [1,2], but to our knowledge, our paper is the first to establish said phenomenon for Transformers trained via outcome-based RL.

The theoretical results rely on a highly stylized setting, including single-layer linear Transformers, gradient-flow dynamics, fixed value matrices, symmetric initialization, and additional assumptions on pretraining. It is unclear to what extent the conclusions transfer to modern RL-trained LLMs.

We accept that our theoretically analyzed setting is simplified, and do not claim it models modern RL-trained LLMs. Nonetheless, we believe the setting meets the bar implied by the NeurIPS Theory Reviewing Guidelines. Indeed, the guidelines ask that appropriateness of assumptions be weighed against the "standard norms of the existing literature" and the "novelty of the result." Regarding the standard norms of existing literature, theoretical analyses of Transformer training dynamics are routinely carried out with assumptions similar to ours, e.g., with single-layer attention [3,4,5,6], with a fixed or one-hot value matrix [5,6,7,8], with only the attention parameters trained [5,6,7], and with gradient flow over population loss [9,10]. Regarding the novelty of our result, to our knowledge, it is the first of its kind, namely, the first data-dependent convergence result for outcome-based RL under policy gradient.

An additional argument in favor of our theoretically analyzed setting is that the conclusions it yields are empirically shown to carry over to more general settings. Indeed, our experiments demonstrate that most of the assumptions are not essential: efficient chain traversal continues to emerge when attention and value matrices are trained jointly by sample-based policy gradient (REINFORCE) from a small Gaussian initialization, while dropping output masking, symmetric initialization, the fixed value matrix and exact gradient flow.

The claims of the paper are stronger than what is directly established by the theory.

We believe our approach of pairing theory in a simplified setting with broader experiments, and stating takeaways more expansively than the theory formally establishes, is common in the theory of Transformers [3,4,11,12]. However, following your feedback, we will further emphasize the limitations of our theory and experiments in the Abstract and Introduction.

The empirical validation is relatively limited and mainly provides qualitative support for the theoretical predictions.

...

The necessity of simple examples may be tied to the specific structure of the analyzed task and training distribution.

Our experiments are conducted in controlled settings where there exists a well defined notion of complexity which isolates the phenomena under study. The literature includes several demonstrations of related phenomena in large-scale settings that are not controlled. Indeed, [13, 14] demonstrate that supervision confined to easy problems recovers much of the benefit of supervision on hard problems. Moreover, [15, 16] show that under outcome-based RL, training that includes simple instances transfers to substantially harder ones, while training on hard instances only is unstable. We view controlled experiments in large-scale, real-world settings as a promising topic for future work.

References

[1] González and Abu-Mostafa. "Mismatched Training and Test Distributions Can Outperform Matched Ones"

[2] Medvedev et al. "Shift is Good: Mismatched Data Mixing Improves Test Performance"

[3] Zhang et al. "Trained Transformers Learn Linear Models In-Context"

[4] Mahankali et al. "One Step of Gradient Descent is Provably the Optimal In-Context Learner with One Layer of Linear Self-Attention"

[5] Tarzanagh et al. "Max-Margin Token Selection in Attention Mechanism"

[6] Tarzanagh et al. "Transformers as Support Vector Machines"

[7] Nichani et al. "How Transformers Learn Causal Structure with Gradient Descent"

[8] Huang et al. "In-Context Convergence of Transformers"

[9] Mei et al. "A Mean Field View of the Landscape of Two-Layer Neural Networks"

[10] Wojtowytsch. "On the Convergence of Gradient Descent Training for Two-layer ReLU-networks in the Mean Field Regime"

[11] Ahn et al. "Transformers Learn to Implement Preconditioned Gradient Descent for In-Context Learning"

[12] Edelman et al. "The Evolution of Statistical Induction Heads: In-Context Learning Markov Chains"

[13] Z. Sun, L. Yu, Y. Shen, W. Liu, Y. Yang, S. Welleck, C. Gan. Easy-to-hard generalization: Scalable alignment beyond human supervision. NeurIPS, 2024. arXiv:2403.09472.

[14] P. Hase, M. Bansal, P. Clark, S. Wiegreffe. The unreasonable effectiveness of easy training data for hard tasks. ACL, 2024. arXiv:2401.06751.

[15] S. Motwani, R. Ivanova, T. Cai, P. Torr, R. Islam, S. Shah, C. Schroeder de Witt, J. London. h1: Bootstrapping LLMs to reason over longer horizons via reinforcement learning, 2025. arXiv:2510.07312.

[16] S. Kim, J. Cho, B. Kwak, T. Kwon, L. Wang, N. Yang, X. Zhang, F. Wei, J. Yeo. On training large language models for long-horizon tasks: An empirical study of horizon length, 2026. arXiv:2605.02572.

Authors · CommentOpenReview ↗

Dear Reviewer,

As the discussion period nears its end, we wanted to thank you again for your time and engagement. Should any questions remain, we would be happy to clarify them. If you feel the concerns you raised have been adequately adressed, we would appreciate consideration of a revised score.

Best regards,

The authors

Reviewer MDVWOpenReview ↗
Rating
3/6
Confidence
4/5
Quality
2/4
Clarity
3/4
Significance
2/4
Originality
2/4
Contribution type
theory
Ethical concerns
NO or VERY MINOR ethics concerns only
Read review
Summary

This paper studies when outcome-based RL can induce step-by-step reasoning in Transformers. Using a synthetic chain-identification task, the authors show that policy gradient can learn an efficient forward traversal algorithm from final-answer rewards, but only when the training distribution contains enough simple examples. Without such examples, learning remains close to initialization for exponential time. The paper supports this mechanism with controlled synthetic and LLM experiments showing that mixed easy-to-hard RL data outperforms hard-only training.

Strengths and weaknesses

Strengths

  1. The paper studies an important and timely question: why outcome-based RL can sometimes induce reasoning behavior despite providing reward only on the final answer.
  2. The theoretical narrative is clean. The paper first argues that the task requires multi-step reasoning, then shows that autoregressive generation can solve it, and finally studies which solution policy gradient selects.
  3. The positive and negative theoretical results give a clear message: simple examples can make learning feasible, while hard-only distributions can make the reward signal too sparse for efficient learning.
  4. The experiments are directionally consistent with the theory. Mixed distributions containing simpler examples substantially outperform hard-only training in the controlled mathematical reasoning setting.

Weakness

  1. The main concern is that the paper’s theory is based on a highly stylized toy setting, while the motivation and framing are about modern LLM RLVR. The theoretical analysis relies on a synthetic chain-identification task, single-layer linear Transformers, output masking, symmetric initialization, fixed sparse value matrices, exact continuous-time gradient flow, and training only the attention matrix. These assumptions are very far from practical PPO/GRPO-style post-training of modern LLMs.
  2. The paper does not study the key modules that determine modern RLVR behavior. Practical RLVR pipelines involve advantage estimation, group sampling, rollout temperature, clipping, KL regularization, length normalization, reward normalization, filtering of all-correct/all-wrong groups, and finite-sample exploration noise. These design choices strongly affect whether sparse outcome rewards provide useful gradients. The current analysis abstracts these issues into idealized expected policy-gradient dynamics, so it does not really explain the optimization behavior of modern RLVR systems.
  3. The role of the pretrained checkpoint is under-emphasized. The theory explicitly assumes a weak initial preference for following the chain direction, and the experiments use either Qwen2.5-3B-Instruct or a task-specific synthetically pretrained model. This suggests that the result is better interpreted as RL amplifying an existing weak reasoning bias within the model’s edge of competence, rather than outcome-based RL discovering reasoning from a weak or poorly pretrained model.
  4. The empirical validation is too limited to support the broader claims. The main LLM experiments are still controlled arithmetic-equation reasoning tasks with artificial Hard-n and Mixed-n distributions, rather than standard large-scale math, code, or open-ended reasoning RLVR benchmarks. The authors acknowledge that these experiments should be viewed as evidence for the proposed mechanism rather than a comprehensive characterization of outcome-based RL in LLMs.
  5. The title and high-level framing overstate what is shown. The claims of the paper are reasonable if interpreted narrowly as a stylized theory of policy gradient on a synthetic chain task. However, the broader implication that outcome-based RL “leads Transformers to reason” is not established, and it sounds to neglect that the pretrained models are capable of reasoning before RLVR. The paper shows that under strong architectural, initialization, and data-distribution assumptions, policy gradient can learn a particular traversal algorithm. This is a useful toy mechanism, but not yet a convincing explanation of reasoning emergence in modern LLM post-training.
Questions
  1. Could the authors clarify how essential the technical assumptions in Section 5.2 are? In particular, which parts of the proof rely critically on the fixed value matrix, output masking, symmetric initialization, and weak forward preference? A short discussion distinguishing “proof artifacts” from “essential conditions” would be helpful.
  2. Can the simplicity-mass condition in Theorem 2 be weakened? The current statement appears to require a specific structure of easy and hard examples, and the footnote suggests that one condition may be removable. It would be useful to clarify whether the result should hold whenever there is at least some constant mass on simple examples.
  3. In the experiments, could the authors better isolate the effect of simple examples from other effects such as increased data diversity or curriculum smoothing? For example, comparing Mixed-n against distributions with the same number of distinct complexity levels but different simple-example mass would strengthen the empirical claim.
  4. Could the authors report more details on failure modes when training only on hard examples? For instance, do the models fail because they do not learn any stepwise algorithm, because policy-gradient signal is too weak, or because they learn inefficient trajectories?
  5. The real-world pretraining experiment uses a general Qwen2.5-3B-Instruct model, but the task itself is still a controlled mathematical reasoning task. Could the authors comment on whether the same simple-example effect appears on more standard math benchmarks or open-ended reasoning tasks?
Limitations

yes

Final justification

The paper gives the first data-dependent convergence result for outcome-based RL under policy gradient, identifying simplicity mass in the post-training distribution as what determines whether stepwise reasoning emerges. The result is novel and the theory–experiment pairing is clean.

The rebuttal resolved my main confound: with complexity levels, hardest-level mass, and budget all matched, {5,10,15} reaches 93.2% on Hard-15 vs. 54.4% for {13,14,15} (hard-only baseline: 52.9%), replicated under synthetic pretraining. Diversity and curriculum smoothing are therefore not the explanation. The authors also separated proof artifacts from the essential assumption and agreed to reframe the claims as amplifying existing competence.

My remaining reservation is extrapolation: the mechanism is shown only in controlled synthetic settings, so I read it as a well-supported hypothesis rather than an established property of modern RLVR systems. This is why I maintain rather than raise my score. I maintain my score and would not oppose acceptance, conditional on the camera-ready including the promised reframing and the new experiments.

Formatting concerns

no concerns

3 comments
Authors · RebuttalOpenReview ↗
Rebuttal

Thank you for your thorough review, and for the recognition that our paper studies an important and timely question, that our theoretical narrative is clean, and that our experiments are directionally consistent with our theory. We respond below. If you find our responses satisfactory, we would greatly appreciate it if you would consider raising your score.

... theory is based on a highly stylized toy setting ... output masking, symmetric initialization, fixed sparse value matrices, exact continuous-time gradient flow, and training only the attention matrix...

...does not study the key modules that determine modern RLVR behavior ... advantage estimation, group sampling, rollout temperature, clipping, KL regularization...

We accept that our theoretically analyzed setting is simplified, and do not claim it models production-grade RLVR pipelines. Nonetheless, we believe the setting meets the bar implied by the NeurIPS Theory Reviewing Guidelines. Indeed, the guidelines ask that appropriateness of assumptions be weighed against the "standard norms of the existing literature" and the "novelty of the result." Regarding the standard norms of existing literature, theoretical analyses of Transformer training dynamics are routinely carried out with assumptions similar to ours, e.g., with single-layer attention [17,19,21,22], with a fixed or one-hot value matrix [1,21,22], with only the attention parameters trained [1,21,22], and with gradient flow over population loss [9,23]. Regarding the novelty of our result, to our knowledge, it is the first of its kind, namely, the first data-dependent convergence result for outcome-based RL under policy gradient.

An additional argument in favor of our theoretically analyzed setting is that the conclusions it yields are empirically shown to carry over to more general settings. Indeed, our experiments demonstrate that most of the assumptions are not essential: efficient chain traversal continues to emerge when attention and value matrices are trained jointly by REINFORCE from a small Gaussian initialization, while dropping output masking, symmetric initialization, the fixed value matrix and exact gradient flow. With regards to simplifications of the RL training scheme, namely, lack of advantage estimation, group sampling, clipping and reward normalization: all of these shape the estimate of a gradient, whereas the obstruction we identify is in the expected gradient itself. Studying the expected gradient is a standard simplification used in RL theory [4–5], and outside RL it is analogous to studying optimization of the population loss, which many seminal works do [8, 9].

...pretrained checkpoint is under-emphasized ... better interpreted as RL amplifying an existing weak reasoning bias ... rather than outcome-based RL discovering reasoning...

Indeed, Theorem 2 assumes a minimal level of competence at initialization, in the sense that each individual reasoning step has a better-than-chance probability of being productive. This aligns closely with practice, where RL post-training only works when applied to a sufficiently competent pre-trained base [6, 10], and where emergence of reasoning typically amounts to composing simple operations the model can already perform [7, 11, 12]. We will emphasize the point throughout the text. Thank you for raising it!

The empirical validation is too limited ... rather than standard large-scale math, code, or open-ended reasoning RLVR benchmarks.

... whether the same simple-example effect appears on more standard math benchmarks or open-ended reasoning tasks?

Our experiments are conducted in controlled settings where there exists a well defined notion of complexity which isolates the phenomena under study. The literature includes several demonstrations of related phenomena in large-scale settings that are not controlled. Indeed, [13, 14] demonstrate that supervision confined to easy problems recovers much of the benefit of supervision on hard problems. Moreover, [15, 16] show that training which includes simple instances transfers to substantially harder ones, while training on hard instances only is unstable. We view controlled experiments in large-scale, real-world settings as a promising topic for future work.

The title and high-level framing overstate what is shown ... it sounds to neglect that the pretrained models are capable of reasoning before RLVR.

See the paragraph above regarding competence at initialization. More broadly, we believe our approach of pairing theory in a simplified setting with broader experiments, and stating takeaways more expansively than the theory formally establishes, is common in the theory of Transformers [17-20]. However, following your feedback, we will further emphasize the limitations of our theory and experiments in the Abstract and Introduction.

... how essential the technical assumptions in Section 5.2 are? ... distinguishing "proof artifacts" from "essential conditions"...

Output masking, the fixed value matrix (Assumption 5), gradient flow (Assumption 3), and symmetric initialization (Assumption 4), are all empirically shown to be inessential (see Appendix J.1). The switch probability bound (Assumption 2) is necessary: without it, the initialization already sits at a solution, and the question of which algorithm policy gradient selects is vacuous. We will include the above clarifications in the camera-ready version. Thank you for raising this point!

Can the simplicity-mass condition in Theorem 2 be weakened?

This condition is likely an artifact of our proof technique. This is currently noted in Footnote 9, and following your feedback, it will be stated in the main text. The condition confines the support of training examples to two bands: sufficiently easy and sufficiently hard. Our Mixed-n experiments include examples of intermediate difficulty and show that learning succeeds (96.2%, 91.6%), thus we expect Theorem 2 to be extendable to any distribution with sufficiently easy examples. We view this an important avenue for future work.

... isolate the effect of simple examples from other effects such as increased data diversity or curriculum smoothing?

Following your suggestion, we ran experiments that differentiate between these explanations. These experiments, which are described below and will be presented in depth in the camera-ready version, confirm that it is the presence (or lack thereof) of simplicity in the training data which determines performance, not its level of diversity.

The experiments cover both settings currently evaluated: RL starting from Qwen2.5-3B-Instruct (real-world pre-training), and RL starting from a model trained on examples from our synthetic dataset (synthetic pre-training). In each setting we compare post-training on two distributions with the same number of distinct complexity levels, the same mass on the hardest level, and the same training budget. In the setting of real-world pre-training, post-training on complexities drawn uniformly from {5,10,15} reaches 93.2% accuracy on the Hard-15 test distribution, whereas complexities drawn uniformly from {13,14,15} yield 54.4%, barely above the 52.9% obtained by post-training only on the Hard-15 distribution. In the setting of synthetic pre-training (n=20), the same comparison of complexity levels {10,15,20} against {18,19,20}, evaluated on the Hard-20 test distribution, gives 80.1% vs. 45.2% — the latter again barely above the 45.6% obtained by post-training only on the Hard-20 distribution. This suggests that a simplicity mass in the post-training distribution is both necessary and sufficient for high accuracy on difficult instances.

... do the models fail because they do not learn any stepwise algorithm, because policy-gradient signal is too weak, or because they learn inefficient trajectories?

The second of the three, and this is what Theorem 3 establishes: with no simple examples, the derivatives of the expected reward are exponentially small in the chain length, so the model stays where it started for exponentially long.

References

[1] "How Transformers Learn Causal Structure with Gradient Descent"

[2] "Learning Compositional Functions with Transformers from Easy-to-Hard Data"

[3] "Transformers Provably Learn Chain-of-Thought Reasoning with Length Generalization"

[4] "Transformers with RL or SFT Provably Learn Sparse Boolean Functions"

[5] "Provable Benefit of Curriculum in Transformer Tree-Reasoning Post-Training"

[6] "DeepSeek-R1"

[7] "On the Interplay of Pre-Training, Mid-Training, and RL on Reasoning Language Models"

[8] "On the Global Convergence of Gradient Descent for Over-parameterized Models"

[9] "A Mean Field View of the Landscape of Two-Layer Neural Networks"

[10] "Training Language Models to Follow Instructions with Human Feedback"

[11] "From f(x)f(x) and g(x)g(x) to f(g(x))f(g(x)): LLMs Learn New Skills in RL by Composing Old Ones"

[12] "From Atomic to Composite: RL Enables Generalization in Complementary Reasoning"

[13] "Easy-to-Hard Generalization: Scalable Alignment Beyond Human Supervision"

[14] "The Unreasonable Effectiveness of Easy Training Data for Hard Tasks"

[15] "h1: Bootstrapping LLMs to Reason over Longer Horizons via Reinforcement Learning"

[16] "On Training Large Language Models for Long-Horizon Tasks: An Empirical Study of Horizon Length"

[17] "Trained Transformers Learn Linear Models In-Context"

[18] "Transformers Learn to Implement Preconditioned Gradient Descent for In-Context Learning"

[19] "One Step of Gradient Descent is Provably the Optimal In-Context Learner with One Layer of Linear Self-Attention"

[20] "The Evolution of Statistical Induction Heads: In-Context Learning Markov Chains"

[21] "Max-Margin Token Selection in Attention Mechanism"

[22] "Transformers as Support Vector Machines"

[23] "On the Convergence of Gradient Descent Training for Two-layer ReLU-networks in the Mean Field Regime"

Reviewer MDVW · CommentOpenReview ↗

Thank you for the detailed rebuttal and for the additional experiments clarifying the role of simplicity versus diversity, as well as the discussion distinguishing essential assumptions from proof artifacts. I also appreciate the clarification that the paper is intended to explain how RL amplifies existing reasoning competence rather than discovering reasoning from scratch. While these responses address several of my concerns and improve the presentation, I still have reservations about how far the theoretical setting can be extrapolated to modern RLVR systems and large-scale reasoning benchmarks. Nevertheless, I appreciate the thoughtful and constructive rebuttal.

Authors · CommentOpenReview ↗

Thank you for confirming that our rebuttal and additional experiments addressed several of your concerns and improved the presentation.

We will update the text to explicitly acknowledge your remaining reservations about how far the theoretical setting can be extrapolated to modern RLVR systems and large-scale reasoning benchmarks. Our contribution is a mechanistic account of the role of simplicity mass, which our controlled experiments isolate by design. Large-scale empirical results in the literature are directionally consistent with this mechanism.

We are grateful for the constructive exchange.

Reviewer Dya4OpenReview ↗
Rating
5/6
Confidence
3/5
Quality
4/4
Clarity
4/4
Significance
3/4
Originality
3/4
Contribution type
theory
Ethical concerns
NO or VERY MINOR ethics concerns only
Read review
Summary

This paper proves that a transformer solving an “end of one of two chains of vertices” text (a) must provably use chain of thought (generating intermediate tokens before outputting the final answer), otherwise it is captured by a simple circuit class that under complexity assumptions cannot compute the problem, (b) chain of thought is sufficient and can be hard-coded pretty simply in a single-layer transformer, and most non-trivially (c) that under various assumptions, including some on the structure of the transformer (certain relatively reasonable initial conditions on weight matrices, it being a “linear” transformer ie no non-linearity, and on entires of the Value matrix) as well as on the input distribution (namely, that there are many input examples in training where the starting node is less than a constant number of steps away from the end of its chain), that a smooth/continuous version of gradient descent, after poly time, results in a setting of parameters such that the model is likely to take forward steps at each step of CoT reasoning. Experimental results confirm the most interesting prediction of the theory which is that simple examples are needed during post-training in order to obtain generalization.

Strengths and weaknesses

Strengths:

  • Overall, this paper is a very interesting and noteworthy contribution in the study of CoT / why it emerges just from reinforcement learning, in the constrained but useful/tractable sandbox of a “end of line” graph traversal problem where intuitively (and provably) CoT is necessary and emerges from gradient-based training dynamics.
  • Covers both necessity of CoT, representational capacity of transformers for CoT, non-necessity of an efficient solution, and conditions under which RL / gradient-based learning results in CoT-like “next step taking”, nice!
  • Overall very well written, clear, and simple to follow. The proof sketches in particular are great, for the most part they communicate the entire proof (except for Theorems 2 / 3 where this is a lot harder)

Weaknesses:

  • Some of the assumptions in the RL/gradient convergence portion may seem a bit heavy-handed; e.g. that it must be a linear transformer (restricting the non-linearity also makes the model overall much less expressive in other domains, assumptions on V etc., these make the results a bit harder to bridge with “practice”, but to my personal taste/intuition they are still very interesting and relevant
  • The experimental section is a bit rushed at the end / particularly the discussion of results
Questions

Questions:

  1. I wonder what could be said, without too much extra work / thinking, but just from reading the paper carefully, about the multi-layer setting. I don’t think extending the same results to multilayer is particularly interesting (e.g. one could trivially set parameters in a way as to copy the first layer) but rather, with multiple layers it feels like it might be possible to combine key/value scores across longer distances to take “longer hops” entirely within the model internally. Perhaps one could show that one can get a speed up of at most a 1/L factor where L is the number of layers, since L layers can help you jump L steps at at time, but also no more…
  2. The related work has been moved to the appendix due to space, which I am personally OK with … however what I’d like there is more of a direct comparison to other works in terms of technique. The techniques for showing impossibility by reduction to circuit classes - what other works in transformer-expressivity use this technique / is this paper building from? And for theorems 2 / 3 using Markov chain convergence reasoning, what are the most similar / predecessor works using similar techniques for analyzing CoT-learnability, if any?
  3. The paper read so smoothly overall, the ONLY thing that tripped me up for a while was the \ciel a*n \rciel portion of theorem 2 vs theorem 3. It’s confusing in two ways — just in understanding theorem 2 alone, and when trying to compare/understand 2 and 3 together.

To solve the latter, understanding 2 and 3 together, one thing you could have emphasized to make things clearer / save the reader time would be: first, in the paragraph before theorem 2 (lines 255-257) to say instead of “when the training data distribution has a simplicity mass greater than zero” instead “has a simplicity mass greater than zero for some \emph{constant} distance”, and then before theorem 3, emphasize “if there exists a linear factor of the input length such that the simplicity mass of that factor stays 0 (in particular, no constant distance with non-zero mass is possible, then…”, or something like this. This is a very key difference to understand for the reader.

Now in just Theorem 2 itself, the role / purpose of \lciel an \rciel is super mysterious and yields a strange condition, because for big enough n it is greater than s. I understand it’s an artifact of the proof and can maybe be removed — but it’s confusing enough that that footnote should be a sentence in the preceding paragraph, eg after saying “when the training distribution … has a simplicity mass greater than zero for some \emph{constant} distance”, as I suggest, to also add something like “Curiously, the proof also requires that there be the same, non-zero mass on a linear factor of the input length, which eventually exceeds s, requiring a fixed mass on a linear “band” of lengths for larger n; however, we believe this condition can be removed…” These comments / clarifications / more upfront presentation of the an trickery will just make the results and proofs much easier to understand.

Finally, some funky latex at 1071 in proofs

Limitations

Yes

Final justification

I am happy to maintain my score of accept, even after reading the other reviewers' concerns and rebuttals. It seems like the main concern is somewhat limited setting / applicability, but indeed this is a theory paper, and the result is original, non-trivial, and interesting enough that I thought it was a noteworthy paper. In particular it appears the majority of concerns of MDVW were addressed as they say and they would not oppose acceptance. I am happy to maintain my very positive score.

Formatting concerns

None

2 comments
Authors · RebuttalOpenReview ↗
Rebuttal

Thank you for your positive and interesting review. We are especially grateful for your assessment that our work is a noteworthy contribution to understanding why chain of thought emerges from reinforcement learning alone, and that our proof sketches communicate the arguments well. We address your suggestions below.

Some of the assumptions in the RL/gradient convergence portion may seem a bit heavy-handed; e.g. that it must be a linear transformer ... assumptions on V etc., these make the results a bit harder to bridge with “practice”, but to my personal taste/intuition they are still very interesting and relevant

Thanks for noting that the results are interesting and relevant. We would like to note that our assumptions are standard in the theory literature: theoretical analyses of Transformer training dynamics are routinely carried out with single-layer linear attention [7–9], with a fixed or one-hot value matrix [6, 10, 11], and with only the attention parameters trained [10, 11]. Ahn et al. [12] further argue that linear attention is a faithful proxy for Transformer optimization more broadly.

The experimental section is a bit rushed at the end / particularly the discussion of results.

Thank you for this comment. We will use the additional camera-ready page to expand the experimental discussion, by expanding on the significance of the metrics shown in Table 1, and how they align with our theoretical results.

The paper read so smoothly overall, the ONLY thing that tripped me up for a while was the ⌈an⌉\lceil an \rceil portion of Theorem 2 vs Theorem 3. ... the role / purpose of ⌈an⌉\lceil an \rceil is super mysterious and yields a strange condition, because for big enough nn it is greater than ss.

...

To solve the latter, understanding 2 and 3 together, one thing you could have emphasized to make things clearer / save the reader time would be: first, in the paragraph before theorem 2 (lines 255-257) to say instead of "when the training data distribution has a simplicity mass greater than zero" instead "has a simplicity mass greater than zero for some \emph{constant} distance", and then before theorem 3, emphasize "if there exists a linear factor of the input length such that the simplicity mass of that factor stays 0 (in particular, no constant distance with non-zero mass is possible, then...", or something like this. This is a very key difference to understand for the reader.

We agree that the ⌈an⌉ condition would benefit from further explanation, and will add text as you suggest. Regarding the presentation of the simplicity mass condition, we will likewise change the phrasing to improve clarity. Thank you for these helpful suggestions!

... the related work has been moved to the appendix ... what I'd like there is more of a direct comparison to other works in terms of technique... what other works in transformer-expressivity use this technique ... what are the most similar / predecessor works using similar techniques for analyzing CoT-learnability, if any?

Our result showing the necessity of CoT (Theorem 1) belongs to the line of work characterizing Transformer expressivity through circuit classes, and relates most closely to Merrill and Sabharwal [1, 2] and Feng et al. [3], who use circuit-class characterizations to separate Transformers with and without CoT. We add to this a novel analysis of the complexity of the two-chain problem, showing that solving it without CoT would contradict standard assumptions in circuit complexity.

Regarding Markov chain arguments, the closest related use of Markov structure we are aware of is Abbe et al. [4], who propose constructing CoT so that the rollout is inductive, i.e., each state is a function of the query and the preceding state alone, hence Markovian. They show this enables extrapolation to more reasoning steps than seen in training. There, the Markov property is imposed architecturally and serves expressivity and generalization, without addressing training dynamics. To the best of our knowledge, we are the first to rigorously analyze the behavior of policy gradient through this route.

On CoT-learnability more broadly, the closest predecessors are Joshi et al. [5], who characterize the sample and computational complexity of learning under CoT trajectory supervision, and Huang et al. [6], who analyze the gradient-descent dynamics by which a Transformer comes to implement a multi-step CoT algorithm with length generalization. Both study CoT-supervised training, in which every intermediate step carries signal; our techniques instead target the policy gradient dynamics induced by a reward on the final answer alone, which is what makes the Markov-chain absorption analysis necessary.

I wonder what could be said ... about the multi-layer setting. ... Perhaps one could show that one can get a speed up of at most a 1/L1/L factor where LL is the number of layers...

Thank you for raising this. We share the intuition that a depth LL model could benefit over a single layer one by at most a factor of LL. Our expressivity result (Theorem 1) already applies to Transformers of any fixed depth, and we expect our negative dynamical result (Theorem 3) to extend similarly, since the obstruction stems from the vanishing reward signal rather than from single-layer structure. Extension of our positive dynamical result (Theorem 2) is more delicate, since the gradient dynamics of a deep model are considerably harder to control, but our experiments indicate the same qualitative behavior persists with depth.

Finally, some funky latex at 1071 in proofs.

Thanks for catching this! We will fix it in the camera-ready version.

References

[1] W. Merrill, A. Sabharwal. The parallelism tradeoff: Limitations of log-precision transformers, 2023. arXiv:2207.00729.

[2] W. Merrill, A. Sabharwal. The expressive power of transformers with chain of thought, 2024. arXiv:2310.07923.

[3] G. Feng, B. Zhang, Y. Gu, H. Ye, D. He, L. Wang. Towards revealing the mystery behind chain of thought: A theoretical perspective, 2023. arXiv:2305.15408.

[4] E. Abbe, S. Bengio, A. Lotfi, C. Sandon, O. Saremi. How far can transformers reason? The globality barrier and inductive scratchpad. NeurIPS, 2024. arXiv:2406.06467.

[5] N. Joshi, G. Vardi, A. Block, S. Goel, Z. Li, T. Misiakiewicz, N. Srebro. A theory of learning with autoregressive chain of thought, 2025. arXiv:2503.07932.

[6] Y. Huang, Z. Wen, A. Singh, Y. Chi, Y. Chen. Transformers provably learn chain-of-thought reasoning with length generalization, 2025. arXiv:2511.07378.

[7] R. Zhang, S. Frei, P. L. Bartlett. Trained transformers learn linear models in-context. JMLR, 2024. arXiv:2306.09927.

[8] A. V. Mahankali, T. Hashimoto, T. Ma. One step of gradient descent is provably the optimal in-context learner with one layer of linear self-attention, 2023. arXiv:2307.03576.

[9] K. Ahn, X. Cheng, H. Daneshmand, S. Sra. Transformers learn to implement preconditioned gradient descent for in-context learning. NeurIPS, 2023. arXiv:2306.00297.

[10] E. Nichani, A. Damian, J. D. Lee. How transformers learn causal structure with gradient descent, 2024. arXiv:2402.14735.

[11] Z. Wang, E. Nichani, A. Bietti, A. Damian, D. Hsu, J. D. Lee, D. Wu. Learning compositional functions with transformers from easy-to-hard data, 2025. arXiv:2505.23683.

[12] K. Ahn, X. Cheng, M. Song, C. Yun, A. Jadbabaie, S. Sra. Linear attention is (maybe) all you need (to understand transformer optimization). ICLR, 2024. arXiv:2310.01082.

Authors · CommentOpenReview ↗

Dear Reviewer,

As the discussion period nears its end, we wanted to thank you again for your time and engagement. We hope our response has addressed your concerns. Should any questions remain, we would be happy to clarify them.

Best regards,

The authors

From OpenReview, CC BY 4.0. Authors as signed there; shown unedited.

Missing a submission?

Loading the discussion…