potentialpaper

Understanding the Out-of-Distribution Generalization of Chain-of-Thought Reasoning in LLMs

Nuojing Liang, Xiaotong Yuan, Pan Zhou

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 show CoT handles complex compositional OOD tasks by decomposing OOD error into per-step in-distribution risks, with an estimation term sublinear in reasoning depth; for Next-Token Prediction we derive an explicit error bound.

Abstract. Chain-of-Thought (CoT) reasoning substantially improves Large Language Models (LLMs), yet its out-of-distribution (OOD) generalization mechanism remains theoretically underexplored. We study CoT as compositional OOD generalization: the target task lacks complete reasoning trajectories or direct input-output pairs, while training provides only in-distribution (ID) atomic step data. We show that CoT generalizes by repeatedly applying a shared single-step predictor to compose reusable ID transitions. Theoretically, let TT denote the number of reasoning steps in the target task, nn the number of training samples per sub-task, and kk the number of output tokens per step; then the OOD task risk is controlled by the sum of the ID sub-task risks, scaled by a coefficient of order O(k)\mathcal{O}(k) that is independent of TT, although the summed risk itself may still grow with TT. A Rademacher-complexity analysis further shows that the estimation term is of order O(T/n)\mathcal{O}(\sqrt{T/n}), rather than linear in TT, due to predictor sharing under a uniform capacity control on the shared class. For autoregressive Next-Token Prediction, the final-task risk is bounded by the best-in-class step-level risk scaled by the same coefficient of order O(k)\mathcal{O}(k), plus an estimation term of order O~(kT/n)\widetilde{\mathcal{O}}\big(k\sqrt{T/n}\big). A parity-coupled construction further shows that, for the sub-task empirical risk minimizer, the expected final-task risk is at least the best in-class risk plus Ω(T/n)\Omega(\sqrt{T/n}) when T≤nT\le n. Experiments on Atom-Task and GSM8K support the theory: CoT enables short-to-long and compositional generalization, while explicit state tracking is crucial.

Our code is available at https://github.com/maxliang114514/CoT-OOD.

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:43 UTC.

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

This paper studies OOD generalization in chain-of-thought reasoning by modeling a target computation as the composition of TT atomic transitions governed by a shared predictor. The problem is timely, and the Atom-Task and state-tracking experiments provide useful evidence that preserving an appropriate intermediate state supports compositional and short-to-long generalization.

Main Concerns

The assessment raised three main concerns. First, the theory assumes access to nn examples from every target-step distribution DiD_i. It therefore analyzes unseen composition of covered atomic transitions, but does not directly cover unseen-depth distributions, held-out operations, or shifts between training states and states encountered during deployment. The strongest experimental OOD results consequently extend beyond the original theorem.

Second, Lemma 9 incorrectly applied ϕ\phi-mixing to a loss depending on the complete prefix. Because the prefix contains tokens adjacent to the initial prompt, the required temporal separation does not hold. This invalidated Eq. (18), the claimed universal 1/m1/\sqrt m benefit, and the corresponding kT/mkT/m residual in Theorem 5. The bounded-loss assumption also required an explicit clipped cross-entropy definition.

Third, Theorem 1 is a useful worst-case error-charging argument, but it does not establish rollout stability. Theorem 2 obtains its O(T/n)O(\sqrt{T/n}) estimation rate by pooling nTnT independent atomic examples for a shared hypothesis class, an argument closely related to standard uniform convergence and multi-task learning [3,4]. In contrast, related autoregressive-learning results obtain logarithmic or length-independent overhead under different supervision, loss, and realizability assumptions [1,2]. It was therefore unclear whether polynomial dependence on TT was intrinsic to this learning problem.

What Changed After Rebuttal

  1. Correction of the NTP result. The authors acknowledged the error in Lemma 9 and proposed removing that lemma, the ϕ\phi-mixing assumption, the universal 1/m1/\sqrt m improvement, and the kT/mkT/m residual. They replaced the argument with a direct target-token analysis that treats the nTnT complete sequences as independent units. Although this replaces rather than repairs the submitted Theorem 5 argument, the new proof is a localized application of the paper’s existing multi-distribution theorem and preserves the dominant O~(kT/n)\widetilde O(k\sqrt{T/n}) rate.

  2. Clarification of the loss and propagation claim. The response explicitly defines clipped cross-entropy and reframes Theorem 1 as depth-independent hard-decoding error charging, rather than contraction or rollout stability. This resolves the corresponding correctness and interpretation concerns.

  3. Clarification of OOD scope. The authors now describe the base setting as compositional OOD and introduce a discrepancy term between atomic training and target marginals. This formalizes distribution shift but does not show that the discrepancy is small. The theory therefore does not explain every experimental OOD phenomenon, and the paper should clearly label experiments outside its assumptions.

  4. Clarification of tightness. The new parity-coupled construction lower-bounds the final excess risk of pooled atomic ERM, rather than merely an intermediate surrogate gap. The authors appropriately acknowledge that this is not a minimax lower bound over unrestricted learners. It establishes worst-case tightness for the analyzed ERM procedure, while leaving the necessity of polynomial TT-dependence for the broader learning problem open.

Final Assessment

The rebuttal directly acknowledged the decisive correctness issue and supplied a concrete, verifiable replacement that removes the invalid assumption while preserving the paper’s principal depth–sample rate. The remaining concerns primarily limit the scope, novelty, and interpretation of the contribution rather than invalidating the corrected theoretical result. Together with the informative controlled experiments, I believe the corrected and appropriately scoped contribution clears the bar for acceptance.

I therefore change my recommendation from reject to accept. The camera-ready version should implement the corrected theorem, remove all claims based on the superseded ϕ\phi-mixing analysis, state the block-independence requirement, scope the lower bound specifically to pooled ERM, and revise the abstract, experimental interpretation, and conclusion accordingly.

References

[1] Nirmit Joshi et al. “A Theory of Learning with Autoregressive Chain of Thought.” COLT, 2025.

[2] Steve Hanneke, Idan Mehalel, and Shay Moran. “Sample Complexity of Autoregressive Reasoning: Chain-of-Thought vs. End-to-End.” 2026.

[3] Shai Shalev-Shwartz and Shai Ben-David. Understanding Machine Learning: From Theory to Algorithms. Cambridge University Press, 2014.

[4] Andreas Maurer, Massimiliano Pontil, and Bernardino Romera-Paredes. “The Benefit of Multitask Representation Learning.” JMLR, 2016.

Final justification

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

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

This paper studies OOD generalization in chain-of-thought reasoning by modeling a target computation as the composition of TT atomic transitions governed by a shared predictor. The problem is timely, and the Atom-Task and state-tracking experiments provide useful evidence that preserving an appropriate intermediate state supports compositional and short-to-long generalization.

Main Concerns

The assessment raised three main concerns. First, the theory assumes access to nn examples from every target-step distribution DiD_i. It therefore analyzes unseen composition of covered atomic transitions, but does not directly cover unseen-depth distributions, held-out operations, or shifts between training states and states encountered during deployment. The strongest experimental OOD results consequently extend beyond the original theorem.

Second, Lemma 9 incorrectly applied ϕ\phi-mixing to a loss depending on the complete prefix. Because the prefix contains tokens adjacent to the initial prompt, the required temporal separation does not hold. This invalidated Eq. (18), the claimed universal 1/m1/\sqrt m benefit, and the corresponding kT/mkT/m residual in Theorem 5. The bounded-loss assumption also required an explicit clipped cross-entropy definition.

Third, Theorem 1 is a useful worst-case error-charging argument, but it does not establish rollout stability. Theorem 2 obtains its O(T/n)O(\sqrt{T/n}) estimation rate by pooling nTnT independent atomic examples for a shared hypothesis class, an argument closely related to standard uniform convergence and multi-task learning [3,4]. In contrast, related autoregressive-learning results obtain logarithmic or length-independent overhead under different supervision, loss, and realizability assumptions [1,2]. It was therefore unclear whether polynomial dependence on TT was intrinsic to this learning problem.

What Changed After Rebuttal

  1. Correction of the NTP result. The authors acknowledged the error in Lemma 9 and proposed removing that lemma, the ϕ\phi-mixing assumption, the universal 1/m1/\sqrt m improvement, and the kT/mkT/m residual. They replaced the argument with a direct target-token analysis that treats the nTnT complete sequences as independent units. Although this replaces rather than repairs the submitted Theorem 5 argument, the new proof is a localized application of the paper’s existing multi-distribution theorem and preserves the dominant O~(kT/n)\widetilde O(k\sqrt{T/n}) rate.

  2. Clarification of the loss and propagation claim. The response explicitly defines clipped cross-entropy and reframes Theorem 1 as depth-independent hard-decoding error charging, rather than contraction or rollout stability. This resolves the corresponding correctness and interpretation concerns.

  3. Clarification of OOD scope. The authors now describe the base setting as compositional OOD and introduce a discrepancy term between atomic training and target marginals. This formalizes distribution shift but does not show that the discrepancy is small. The theory therefore does not explain every experimental OOD phenomenon, and the paper should clearly label experiments outside its assumptions.

  4. Clarification of tightness. The new parity-coupled construction lower-bounds the final excess risk of pooled atomic ERM, rather than merely an intermediate surrogate gap. The authors appropriately acknowledge that this is not a minimax lower bound over unrestricted learners. It establishes worst-case tightness for the analyzed ERM procedure, while leaving the necessity of polynomial TT-dependence for the broader learning problem open.

Final Assessment

The rebuttal directly acknowledged the decisive correctness issue and supplied a concrete, verifiable replacement that removes the invalid assumption while preserving the paper’s principal depth–sample rate. The remaining concerns primarily limit the scope, novelty, and interpretation of the contribution rather than invalidating the corrected theoretical result. Together with the informative controlled experiments, I believe the corrected and appropriately scoped contribution clears the bar for acceptance.

I therefore change my recommendation from reject to accept. The camera-ready version should implement the corrected theorem, remove all claims based on the superseded ϕ\phi-mixing analysis, state the block-independence requirement, scope the lower bound specifically to pooled ERM, and revise the abstract, experimental interpretation, and conclusion accordingly.

References

[1] Nirmit Joshi et al. “A Theory of Learning with Autoregressive Chain of Thought.” COLT, 2025.

[2] Steve Hanneke, Idan Mehalel, and Shay Moran. “Sample Complexity of Autoregressive Reasoning: Chain-of-Thought vs. End-to-End.” 2026.

[3] Shai Shalev-Shwartz and Shai Ben-David. Understanding Machine Learning: From Theory to Algorithms. Cambridge University Press, 2014.

[4] Andreas Maurer, Massimiliano Pontil, and Bernardino Romera-Paredes. “The Benefit of Multitask Representation Learning.” JMLR, 2016.

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

This work addresses the central challenge of understanding the out-of-distribution (OOD) generalization of Chain-of-Thought (CoT) reasoning in Large Language Models. The authors formulate CoT as a compositional OOD generalization problem, where a complex target task is decomposed into in-distribution atomic transitions. Theoretically, the paper proves that the OOD task risk is bounded by the sum of in-distribution subtask risks with a depth-independent error-propagation coefficient. Furthermore, by leveraging the shared-predictor structure of CoT, the authors derive a sublinear Rademacher-complexity generalization bound of O(T/n)\mathcal{O}(\sqrt{T/n}), and specialize this analysis to provide explicit bounds for the autoregressive Next-Token Prediction (NTP) regime. The theoretical findings are empirically validated using a synthetic compositional benchmark (Atom-Task) and a real-world mathematical reasoning dataset (GSM8K), demonstrating that explicit state tracking is crucial for short-to-long and compositional generalization.

Strengths and weaknesses

Strengths:

  1. The sublinear Rademacher-complexity generalization bound represents a strong theoretical advancement. By framing CoT as a shared-predictor process analogous to multi-task learning, the authors successfully tighten the depth dependence, mathematically proving why CoT avoids unbounded statistical error explosions.

  2. The theoretical framework provides a rigorous justification for the empirical success of CoT, formally establishing that the error-propagation coefficient remains independent of the reasoning depth TT. This effectively explains why errors accumulate additively rather than multiplicatively in autoregressive CoT reasoning.

  3. I like the empirical ablation studies, particularly the finding that explicit state tracking is strictly required for short-to-long compositional generalization is valuable for designing better prompt formats and training curricula.

Weaknesses:

  1. The authors should discuss and compare their theoretical contributions with some of the recent works on autoregressive CoT sample complexity and NTP generalization, such as (Reference Paper: A Theory of Learning with Autoregressive Chain of Thought, 2025), (Reference Paper: On the generalization ability of next-token-prediction pretraining, 2025), and (Reference Paper: Compositional Generalization from Learned Skills via CoT Training: A Theoretical and Structural Analysis for Reasoning, 2026).

  2. The sublinear complexity bound relies on treating the combined step-level dataset as having nTnT independent samples. While mathematically valid for disjoint atomic steps, this assumption is somewhat optimistic for continuous reasoning trajectories due to strong inter-step correlation. How will this sequential dependence impact practical validity of the bounds?

  3. In the empirical evaluation, the context length mm in the theoretical bound refers to the training sequence length, but the context length scaling experiment (Figure 3c) evaluates performance by varying the number of in-context examples at inference time. I suggest aligning this experiment by varying the training sequence length to more directly validate the theoretical claims.

  4. The OOD evaluation on GSM8K relies on within-dataset filtering of MetaMathQA. Because this dataset is synthetically augmented and homogeneous, this filtering might not fully capture the complex OOD generalization claimed by the theory. Evaluating on completely unseen datasets (e.g., the MATH benchmark) would make the claims of robust real-world OOD transfer more convincing.

Questions

Please see my comments under weaknesses. In addition, I have the following questions:

  1. In Appendix B.5 (Lines 655–661), the proof attempts to bound the deviation of the expected loss by claiming that the context Ct−1C_{t-1} and target token YtY_t belong to the future σ\sigma-algebra σt∞\sigma_t^\infty. However, Ct−1C_{t-1} is explicitly defined as the prefix sequence up to position t−1t-1 (Line 649), which includes the first token X1X_1. Since X1X_1 is directly adjacent to the initial prompt (associated with σ−∞0\sigma_{-\infty}^0), the temporal gap between the prompt and the sequence (Ct−1,Yt)(C_{t-1}, Y_t) is exactly 1, not tt. Therefore, the total variation distance ∥μt−π∥TV\|\mu_t - \pi\|_{TV} cannot be bounded by φ(t)\varphi(t), as the early tokens in the prefix never mix away from the initial prompt. This invalidates the mixing residual bound derived in Equation 18.

  2. In Section 4.2 (Lines 227–228), the text claims that because sLs_L contains a factor of nTmd\sqrt{nTmd}, the complexity parameter τ1=ln⁡(1+ρLsL)\tau_1 = \ln(1 + \rho_L s_L) scales as O(polylog(nTmd))\mathcal{O}(\text{polylog}(nTmd)). However, in Appendix A.2 (Line 522), nTmd\sqrt{nTmd} is located inside an exponential function: sL=∏l∈[L]Gπ2(Bl2+1)(eClBl2HnTmd+1)s_L = \prod_{l \in [L]} G_\pi^2(B_l^2 + 1)(e^{C_l B_l^2 H \sqrt{nTmd}} + 1). The logarithm of an exponential function grows polynomially, meaning τ1=O(nTmd)\tau_1 = \mathcal{O}(\sqrt{nTmd}), not polylogarithmically. If τ1∝n\tau_1 \propto \sqrt{n}, substituting this into the first term of Theorem 5 (ΘdHτ1Tmn\sqrt{\frac{\Theta d H \tau_1 T}{mn}}) yields a convergence rate of O(n−1/4)\mathcal{O}(n^{-1/4}), which contradicts the claimed O(n−1/2)\mathcal{O}(n^{-1/2}) sample complexity rate in Equation 13.

Limitations

Yes

Formatting concerns

none

2 comments
Authors · RebuttalOpenReview ↗
Rebuttal

Dear Reviewer,

Thank you for the exceptionally careful reading. Your two technical observations are correct: Lemma 9 misuses phi-mixing for a prefix-dependent loss, and the typography of s_L obscures which factor lies in the exponent. The first issue admits a clean local repair; the second is a notation correction. We also look forward to the subsequent discussion which may further help solve the current issues.

1. Direct last-k-token analysis replacing Lemma 9

Because C_{t-1} contains positions 1 through t-1, (C_{t-1}, Y_t) is not separated from the initial context by lag t. We therefore remove Lemma 9 and Eq. (18), rather than adding a prompt-forgetting assumption that is inappropriate for reasoning.

The quantity required by Theorem 1 is already defined in Section 4. For a complete length-m sequence X, let

q_{g,h}(X) = (1/k) * sum_{t=m-k+1}^{m} ell(g(h(T_{t-1})), t_t),

and let Q_k = {q_{g,h} : g in G, h in H}.

The N = nT complete sequences are the independent units; all tokens and prefixes inside a sequence may be arbitrarily dependent. Applying the multi-distribution result directly to Q_k gives, with probability at least 1 - delta,

sum_i R^k_{D_i}(g o h) <= sum_i hat{R}^k_{S_i}(g o h) + 2T * hat{R}_{S_0}(Q_k) + 3B_ell * sqrt(2T log(4/delta)/n). (1)

This bound is valid for any learned g, h and directly controls the target-token empirical risk used by response-masked atomic NTP/SFT. If one states an excess-risk corollary, the ERM is correspondingly defined on this target-token objective.

The Transformer dependence remains explicit. Let Pi_k select the final k decoder rows. Since

||Pi_k A - Pi_k B||_F <= ||A - B||_F,

any Frobenius cover of the full decoder is also a cover of the restricted output class. Composing this restriction with the averaged clipped loss gives

hat{R}{S_0}(Q_k) <~ G_ell * sqrt(Theta * d * H * tau{m,N} / N) + G_ell * sqrt(d * n_v / N), with N = nT, (2)

where

tau_{m,N} = log(1 + rho_L * s_L(m,N)), rho_L = sum_{l=1}^{L} B_l^2,

s_L(m,N) = prod_{l=1}^{L} G_pi^2 * (B_l^2 + 1) * (e^{C_l} * B_l^2 * H * sqrt(N) * m * d + 1). (3)

Combining (1)--(3) with Theorem 1 and M = O(k) yields the explicit dominant rate

O~(k * sqrt(T/n)). (4)

Thus the main depth--sample conclusion is unchanged. What disappears is the unsupported conversion of full-sequence token volume into a universal 1/sqrt(m) gain and the associated O(kT/m) residual. Context length m remains explicit in the decoder-capacity factor tau_{m,N}.

2. Scaling and typography of tau_1

The intended layer factor is

e^{C_l} * B_l^2 * H * sqrt(N) * m * d + 1,

where only C_l is in the exponent. Therefore, for fixed layerwise norm, attention-score, and Lipschitz constants,

tau_{m,N} = log(1 + rho_L * s_L(m,N)) = O(L log(N m d)),

up to architecture-dependent constants. We will add explicit parentheses and use the notation tau_{m,N} throughout. The sample dependence in (2) is consequently N^{-1/2} up to logarithms.

3. What independence is assumed?

Theorem 2 assumes independence across the sampled atomic training examples. It does not assume independence among the T states in one reasoning trajectory, and the revised NTP result does not assume token independence within a sequence. If atomic pairs are extracted from the same trajectories, they must be treated as trajectory-level clusters or analyzed under an additional dependence condition; we will state the sampling protocol explicitly.

4. Context-length experiment

You are right that varying the number of demonstrations changes prompt semantics as well as length. Moreover, after the correction above, the theorem does not predict a universal 1/sqrt(m) statistical improvement. We will therefore stop presenting Figure 3(c) as direct verification of such a law and describe it as an empirical study of context availability.

[ADDITIONAL EXPERIMENT—controlled context] If Figure 3(c) is retained as a scaling test, keep task content and demonstration count fixed and vary only the training-time amount of available task-relevant history or padding/truncation, with the same protocol at test time. Report the resulting performance/capacity trade-off without fitting a universal 1/sqrt(m) law.

5. Prior theory and GSM8K OOD

We will add a dedicated comparison with Joshi et al. [1], Hanneke et al. [2], Li et al. [5], and Yao et al. [7]. The first two analyze final-symbol PAC error under complete trajectory supervision and realizability; our result analyzes probabilistic atomic supervision and gives a matching Theta(sqrt(T/n)) rate for the aggregate surrogate-risk term. Li et al. provide the decoder covering machinery, while our corrected result applies it to the target-token class required by CoT composition. Yao et al. study learned-skill composition under a different structural model.

The current MetaMathQA-to-GSM8K result is a controlled within-family distribution shift rather than source-disjoint transfer. We will label it accordingly, distinguish it from the controlled compositional result on Atom-Task, and add a stricter source-disjoint evaluation.


References

[1] Nirmit Joshi, Gal Vardi, Adam Block, Surbhi Goel, Zhiyuan Li, Theodor Misiakiewicz, and Nathan Srebro. "A Theory of Learning with Autoregressive Chain of Thought." COLT, 2025.

[2] Steve Hanneke, Idan Mehalel, and Shay Moran. "Sample Complexity of Autoregressive Reasoning: Chain-of-Thought vs. End-to-End." arXiv:2604.12013, 2026.

[3] Shai Shalev-Shwartz and Shai Ben-David. Understanding Machine Learning: From Theory to Algorithms. Cambridge University Press, 2014.

[4] Andreas Maurer, Massimiliano Pontil, and Bernardino Romera-Paredes. "The Benefit of Multitask Representation Learning." JMLR, 2016.

[5] Zhihao Li, Xue Jiang, Liyuan Liu, Xuelin Zhang, Hong Chen, and Feng Zheng. "On the Generalization Ability of Next-Token-Prediction Pretraining." ICML, 2025.

[6] Chenxiao Yang, Zhiyuan Li, and David Wipf. "Chain-of-Thought Provably Enables Learning the (Otherwise) Unlearnable." ICLR, 2025.

[7] Xinhao Yao, Ruifeng Ren, Yun Liao, Lizhong Ding, and Yong Liu. "Compositional Generalization from Learned Skills via CoT Training: A Theoretical and Structural Analysis for Reasoning." ICLR, 2026.

[8] Ru Wang et al. "Beyond In-Distribution Success: Scaling Curves of CoT Granularity for Language Model Generalization." 2026.

[9] Yu Wang, Fu-Chieh Chang, and Pei-Yuan Wu. "A Theoretical Framework for OOD Robustness in Transformers Using Gevrey Classes." arXiv:2504.12991, 2025.

Authors · CommentOpenReview ↗

Corrected Rebuttal (Essential Responses) with Fixed Formula Rendering

We sincerely apologize for the rendering issues in our original rebuttal. We provide the corrected version of our rebuttal, where all mathematical expressions now render properly, for accurate cross-reference by reviewers.

1. Direct last-kk-token analysis replacing Lemma 9

Because Ct−1C_{t-1} contains positions 11 through t−1t-1, (Ct−1,Yt)(C_{t-1}, Y_t) is not separated from the initial context by lag tt. We therefore remove Lemma 9 and Eq. (18), rather than adding a prompt-forgetting assumption that is inappropriate for reasoning.

The quantity required by Theorem 1 is already defined in Section 4. For a complete length-mm sequence XX, let

qg,h(X)=(1/k)∑t=m−k+1mℓ(g(h(Tt−1)),tt)q_{g,h}(X) = (1/k) \sum_{t=m-k+1}^{m} \ell(g(h(T_{t-1})), t_t),

and let Qk={qg,h:g∈G,h∈H}Q_k = \{q_{g,h} : g \in G, h \in H\}.

The N=nTN = nT complete sequences are the independent units; all tokens and prefixes inside a sequence may be arbitrarily dependent. Applying the multi-distribution result directly to QkQ_k gives, with probability at least 1−δ1 - \delta,

∑iRDik(g∘h)≤∑iR^Sik(g∘h)+2TR^S0(Qk)+3Bℓ2Tlog⁡(4/δ)/n\sum_i R^k_{D_i}(g \circ h) \le \sum_i \hat{R}^k_{S_i}(g \circ h) + 2T \hat{\mathfrak R}_{S_0}(Q_k) + 3B_\ell \sqrt{2T \log(4/\delta)/n}. (1)

This bound is valid for any learned gg, hh and directly controls the target-token empirical risk used by response-masked atomic NTP/SFT. If one states an excess-risk corollary, the ERM is correspondingly defined on this target-token objective.

The Transformer dependence remains explicit. Let Πk\Pi_k select the final kk decoder rows. Since

∥ΠkA−ΠkB∥F≤∥A−B∥F\|\Pi_k A - \Pi_k B\|_F \le \|A - B\|_F,

any Frobenius cover of the full decoder is also a cover of the restricted output class. Composing this restriction with the averaged clipped loss gives

R^S0(Qk)≤GℓΘdHτm,N/N+Gℓdnv/N\hat{\mathfrak R}_{S_0}(Q_k) \le G_\ell \sqrt{\Theta d H \tau_{m,N} / N} + G_\ell \sqrt{d n_v / N}, with N=nTN = nT, (2)

where

τm,N=log⁡(1+ρLsL(m,N))\tau_{m,N} = \log(1 + \rho_L s_L(m,N)), ρL=∑l=1LBl2\rho_L = \sum_{l=1}^{L} B_l^2,

sL(m,N)=∏l=1LGπ2(Bl2+1)(eClBl2HNmd+1)s_L(m,N) = \prod_{l=1}^{L} G_\pi^2 (B_l^2 + 1) (e^{C_l} B_l^2 H \sqrt{N} m d + 1). (3)

Combining (1)--(3) with Theorem 1 and M=O(k)M = O(k) yields the explicit dominant rate

O~(kT/n)\tilde{O}(k \sqrt{T/n}). (4)

Thus the main depth--sample conclusion is unchanged. What disappears is the unsupported conversion of full-sequence token volume into a universal 1/m1/\sqrt{m} gain and the associated O(kT/m)O(kT/m) residual. Context length mm remains explicit in the decoder-capacity factor τm,N\tau_{m,N}.

2. Scaling and typography of τ1\tau_1

The intended layer factor is

eClBl2HNmd+1e^{C_l} B_l^2 H \sqrt{N} m d + 1,

where only ClC_l is in the exponent. Therefore, for fixed layerwise norm, attention-score, and Lipschitz constants,

τm,N=log⁡(1+ρLsL(m,N))=O(Llog⁡(Nmd))\tau_{m,N} = \log(1 + \rho_L s_L(m,N)) = O(L \log(N m d)),

up to architecture-dependent constants. We will add explicit parentheses and use the notation τm,N\tau_{m,N} throughout. The sample dependence in (2) is consequently N−1/2N^{-1/2} up to logarithms.

3. What independence is assumed?

Theorem 2 assumes independence across the sampled atomic training examples. It does not assume independence among the TT states in one reasoning trajectory, and the revised NTP result does not assume token independence within a sequence. If atomic pairs are extracted from the same trajectories, they must be treated as trajectory-level clusters or analyzed under an additional dependence condition; we will state the sampling protocol explicitly.

4. Context-length experiment

You are right that varying the number of demonstrations changes prompt semantics as well as length. Moreover, after the correction above, the theorem does not predict a universal 1/m1/\sqrt{m} statistical improvement. We will therefore stop presenting Figure 3(c) as direct verification of such a law and describe it as an empirical study of context availability.

[ADDITIONAL EXPERIMENT—controlled context] If Figure 3(c) is retained as a scaling test, keep task content and demonstration count fixed and vary only the training-time amount of available task-relevant history or padding/truncation, with the same protocol at test time. Report the resulting performance/capacity trade-off without fitting a universal 1/m1/\sqrt{m} law.

5. Prior theory and GSM8K OOD

We add dedicated comparison with Joshi et al. [1], Hanneke et al. [2], Li et al. [5], and Yao et al. [7]. The first two analyze final-symbol PAC error under full trajectory supervision + realizability; we analyze probabilistic atomic supervision with a matching Θ(T/n)\Theta(\sqrt{T/n}) surrogate-risk rate. Li et al. give decoder covering; our corrected result applies it to the target-token class for CoT composition. Yao et al. study skill composition under a different structural model.

The MetaMathQA-to-GSM8K result is a controlled within-family shift, not source-disjoint transfer. We will label it accordingly, distinguish it from the Atom-Task compositional result, and add a stricter source-disjoint evaluation.

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

The authors study the out-of-distribution generalization of Chain-of-Thought reasoning by framing CoT as compositional generalization over reusable atomic transitions. In their setting, training data only consists of 'in-distribution' single-step reasoning transitions, while test tasks require composing these transitions into longer, unseen reasoning chains. They show theoretically that the risk of the target OOD task can be bounded by the sum of step-level risks (risk decomposition), scaled by a coefficient independent of reasoning depth. They further derive Rademacher-complexity and next-token-prediction bounds that scale sublinearly with the number of reasoning steps. Empirically, they introduce Atom-Task, a symbolic compositional benchmark, and show that CoT-trained models generalize better than non-CoT baselines to longer chains and unseen operation combinations. Additional ablations suggest that explicit state tracking in intermediate reasoning steps is important, and experiments on GSM8K provide further support for the proposed view of CoT as composing in-distribution reasoning operations.

Strengths and weaknesses

Strengths

  • The authors tackle a tImely problem - CoT is essential for LLM reasoning, but there is still limited theory explaining when and why stepwise reasoning improves OOD generalization. The framing of CoT as compositional OOD generalization is intuitive and potentially useful.

  • The abstraction is clean and captures several key aspects of CoT problem solving. In particular, modeling reasoning as a sequence of state updates, where the model repeatedly applies the same predictor to an evolving context is close to how CoT works in practice. It also allows intermediate steps to preserve the relevant state for the next step, rather than just provide additional text.

  • The experiment closely match the assumptions of the theory - atomic operations, compositional chains, short-to-long generalization, unseen operation combinations, and explicit state tracking

Weaknesses

  • The error propagation result may not capture compounding errors properly. Lemma 6 captures incorrect hard predictions by bounding the output difference with a worst-case constant B2B_2, then uses the minimum cross entropy loss to obtain a depth-independent MM. This doesn't really show errors are stable under repeated composition, but that once any argmax error occurs, one can pay a worst-case constant.

  • For practical relevance the atom-task benchmark is highly synthetic, with deterministic, cleanly compositional operations. This isn't is a good verification of how well the theory transfers to natural language reasoning. The paper could benefit from something that exemplifies this beyond showing that CoT improves performance vs No-CoT (and there is a strange result in table 9 (see Qs for more) that seems to cast doubt on the significance of the other results).

  • The data generation could be made clearer, I was a bit confused as to how the individual steps and overall trajectory were generated. What was the predictor? Is it stochastic?

Questions

Most of the questions are already addressed in the weaknesses. Additionally,

  • I am confused about the subtask sample datasets SiS_i. How is information of the step ii used to create the distribution Di\mathcal{D}_i?

  • Is the NTP bound tight enough to be practically relevant?

  • In Table 9, why does the accuracy of the No-CoT training drop to 20.62 compared to the Untrained at 64.44?

Limitations

Yes

Final justification

I found the additional comments do not directly resolve the raised issues, but rather dilute the initial point of the discussion, thus I keep my initial score - I do not increase my score nor do I add more support toward the acceptance.

Formatting concerns

No

8 comments
Authors · RebuttalOpenReview ↗
Rebuttal

Dear Reviewer,

Thank you for the constructive comments. We clarify the exact content of the error-charging result, give a matching lower bound for the NTP estimation term, and specify how the subtask distributions are generated. We also look forward to the subsequent discussion which may further help solve the current issues.

1. What Lemma 6 establishes

You are correct that Lemma 6 is not a contraction statement. Its useful guarantee is a depth-independent hard-decoding charge. If the predicted hard token is correct, the predicted and oracle next states coincide exactly. If it is incorrect, then the correct-token probability is at most 1/2, so the averaged k-token clipped cross-entropy is at least b = (log 2)/k; meanwhile, the downstream difference between two probability outputs is at most the simplex diameter B_2 = sqrt(2). Hence

M = B_2 / b = (sqrt(2) / log 2) * k

pays for the downstream disagreement with no factor depending on the remaining horizon. This is precisely what the telescoping proof of Theorem 1 needs. We will rename the result depth-independent hard-decoding error charging, correct the typo 1/(b B_2) to B_2/b, and avoid interpreting it as metric rollout stability.

2. Tightness of the sqrt(T/n) estimation term

The corrected NTP theorem has dominant estimation rate O~(k sqrt(T/n)). The sqrt(T/n) dependence is worst-case tight for the aggregate statistical term controlled by Theorem 2, even when every hard transition is correct.

Let the vocabulary be {0,1}, k = 1, and m = T+1. Draw x_1 through x_T i.i.d. from Bernoulli(1/2) and initialize

z_0 = (x_1, ..., x_T, b_0), b_0 = 0.

At step i, the oracle emits

b_i = b_{i-1} xor x_i, z_i = z_{i-1}[2:m] xor b_i.

Thus z_{i-1} = (x_i, ..., x_T, b_0, ..., b_{i-1}), the correct next token is y(z) = z_1 xor z_m, and the final answer is the serial XOR composition b_T = x_1 xor ... xor x_T.

Define the shared class Psi = {psi_{+1}, psi_{-1}}. With xi(z) = (-1)^{z_1}, let

psi_s(z){y(z)} = 3/4 + (s/8) * xi(z), psi_s(z){1-y(z)} = 1/4 - (s/8) * xi(z), for s in {-1, +1}.

The correct-token probability is always 5/8 or 7/8, so both predictors hard-predict every atomic transition and the entire parity computation correctly. For any clipping threshold eps < 5/8, clipping is inactive. Let

a = log(8/7), b = log(8/5), mu = (a+b)/2, lambda = (b-a)/2 = (1/2) * log(7/5).

The per-step loss is exactly

ell_s(xi) = mu - lambda * s * xi,

and both hypotheses have population risk mu on every subtask. For n independent samples per step, write xi_{ij} = (-1)^{x_i^{(j)}} and

A = sum_{i=1}^{T} sum_{j=1}^{n} xi_{ij}.

The pooled empirical objective is

sum_i hat{R}_{S_i}(psi_s) = T*mu - (lambda * s / n) * A,

so the shared ERM chooses s_hat = sign(A). Its aggregate generalization gap is therefore exactly

Gamma_T(S) := sum_i ( R_{D_i}(psi_{s_hat}) - hat{R}{S_i}(psi{s_hat}) ) = (lambda / n) * |A|. (1)

Since A is a sum of N = nT independent Rademacher variables, Khintchine's inequality gives

(lambda / sqrt(2)) * sqrt(T/n) <= E[Gamma_T(S)] <= lambda * sqrt(T/n), (2)

and Paley--Zygmund gives the same order with constant probability. For any fixed pooled sample,

hat{R}{S_0}(ell o Psi) = (lambda / nT) * E_sigma |sum_i sum_j sigma{ij} xi_{ij}| = Theta(1/sqrt(nT)),

hence

T * hat{R}_{S_0}(ell o Psi) = Theta(sqrt(T/n)). (3)

Equations (1)--(3) match Theorem 2 up to constants. Because both hypotheses generate the correct hard trajectory, the lower bound isolates the statistical cost of estimating one shared probabilistic predictor from atomic supervision; it is not produced by state instability or compounding hard errors. We will add this result as a proposition in the main text and place the full proof in the appendix.

3. How D_i and S_i are generated

Formally, draw Z_0 from the initial distribution D and roll out the oracle transition psi*, not the learned model. This induces

D_i = Law(Z_{i-1}^, Delta Z_i^), S_i ~ D_i^n.

The index i identifies position in the oracle composition; it need not be an explicit input token unless encoded in the state. In Atom-Task, labels are deterministic conditional on the current symbolic state and operation, while randomness comes from the initial sequence and operation chain. The theorem assumes these atomic examples are independently sampled; complete short training trajectories used in some experiments are a stronger but correlated protocol, which we will distinguish from the exact theoretical sampling model.

4. Practical relevance, natural-language evidence, and Table 9

Like most norm-based neural-network generalization bounds, our result is designed to characterize scaling rather than serve as a plug-in numerical certificate for a 4B-parameter model. Its practical implication is concrete: predictor sharing changes the aggregate statistical dependence from the stepwise T/sqrt(n) rate to the worst-case-optimal sqrt(T/n) rate, while the decoder architecture enters explicitly through the capacity term.

Atom-Task intentionally isolates the compositional mechanism. We will complement it with the source-disjoint natural-language evaluation described in our response to Reviewer UXD8, thereby separating controlled theory validation from broader transfer.

The Qwen3-4B No-CoT drop from 64.44 to 20.62 requires diagnostics before assigning a mechanism. The principal CoT-vs.-No-CoT conclusions do not rely on this single value, and we will resolve the anomaly with the checks below.

References

[1] Nirmit Joshi, Gal Vardi, Adam Block, Surbhi Goel, Zhiyuan Li, Theodor Misiakiewicz, and Nathan Srebro. "A Theory of Learning with Autoregressive Chain of Thought." COLT, 2025.

[2] Steve Hanneke, Idan Mehalel, and Shay Moran. "Sample Complexity of Autoregressive Reasoning: Chain-of-Thought vs. End-to-End." arXiv:2604.12013, 2026.

[3] Shai Shalev-Shwartz and Shai Ben-David. Understanding Machine Learning: From Theory to Algorithms. Cambridge University Press, 2014.

[4] Andreas Maurer, Massimiliano Pontil, and Bernardino Romera-Paredes. "The Benefit of Multitask Representation Learning." JMLR, 2016.

[5] Zhihao Li, Xue Jiang, Liyuan Liu, Xuelin Zhang, Hong Chen, and Feng Zheng. "On the Generalization Ability of Next-Token-Prediction Pretraining." ICML, 2025.

[6] Chenxiao Yang, Zhiyuan Li, and David Wipf. "Chain-of-Thought Provably Enables Learning the (Otherwise) Unlearnable." ICLR, 2025.

[7] Xinhao Yao, Ruifeng Ren, Yun Liao, Lizhong Ding, and Yong Liu. "Compositional Generalization from Learned Skills via CoT Training: A Theoretical and Structural Analysis for Reasoning." ICLR, 2026.

[8] Ru Wang et al. "Beyond In-Distribution Success: Scaling Curves of CoT Granularity for Language Model Generalization." 2026.

[9] Yu Wang, Fu-Chieh Chang, and Pei-Yuan Wu. "A Theoretical Framework for OOD Robustness in Transformers Using Gevrey Classes." arXiv:2504.12991, 2025.

Authors · CommentOpenReview ↗

Corrected Rebuttal (Essential Responses) with Fixed Formula Rendering

We sincerely apologize for the rendering issues in our original rebuttal. We provide the corrected version of our rebuttal, where all mathematical expressions now render properly, for accurate cross-reference by reviewers.

1. What Lemma 6 establishes

You are correct that Lemma 6 is not a contraction statement. Its useful guarantee is a depth-independent hard-decoding charge. If the predicted hard token is correct, the predicted and oracle next states coincide exactly. If it is incorrect, then the correct-token probability is at most 1/21/2, so the averaged kk-token clipped cross-entropy is at least b=log⁡2/kb=\log2/k; meanwhile, the downstream difference between two probability outputs is at most the simplex diameter B2=2B_2=\sqrt2. Hence

$ M=\frac{B_2}{b}=\frac{\sqrt2}{\log2}k $

pays for the downstream disagreement with no factor depending on the remaining horizon. This is precisely what the telescoping proof of Theorem 1 needs. We will rename the result depth-independent hard-decoding error charging, and avoid interpreting it as metric rollout stability.

2. Tightness of the T/n\sqrt{T/n} estimation term

The corrected NTP theorem has dominant estimation rate O~(kT/n)\widetilde O(k\sqrt{T/n}). The T/n\sqrt{T/n} dependence is worst-case tight for the aggregate statistical term controlled by Theorem 2, even when every hard transition is correct.

Let V={0,1}\mathcal V=\{0,1\}, k=1k=1, and m=T+1m=T+1. Draw x1,…,xT∼i.i.d.Bernoulli(1/2)x_1,\ldots,x_T\stackrel{\mathrm{i.i.d.}}{\sim}\mathrm{Bernoulli}(1/2) and initialize

$ z_0=(x_1,\ldots,x_T,b_0),\qquad b_0=0. $

At step ii, the oracle emits

$ b_i=b_{i-1}\oplus x_i, \qquad z_i=z_{i-1}[2:m]\oplus b_i. $

Thus zi−1=(xi,…,xT,b0,…,bi−1)z_{i-1}=(x_i,\ldots,x_T,b_0,\ldots,b_{i-1}), the correct next token is y(z)=z1⊕zmy(z)=z_1\oplus z_m, and the final answer is the serial composition bT=x1⊕⋯⊕xTb_T=x_1\oplus\cdots\oplus x_T.

Define the shared class Ψ={ψ+1,ψ−1}\Psi=\{\psi_{+1},\psi_{-1}\}. With ξ(z)=(−1)z1\xi(z)=(-1)^{z_1}, let

$ \psi_s(z)_{y(z)}=\frac{3}{4}+\frac{s}{8}\xi(z), \qquad \psi_s(z)_{1-y(z)}=\frac14-\frac{s}{8}\xi(z), \qquad s\in{-1,+1}. $

The correct-token probability is always 5/85/8 or 7/87/8, so both predictors hard-predict every atomic transition and the entire parity computation correctly. For any clipping threshold ε<5/8\varepsilon<5/8, clipping is inactive. Let

$ a=\log\frac87,\quad b=\log\frac85,\quad \mu=\frac{a+b}{2},\quad \lambda=\frac{b-a}{2}=\frac12\log\frac75. $

The per-step loss is exactly

$ \ell_s(\xi)=\mu-\lambda s\xi, $

and both hypotheses have population risk μ\mu on every subtask. For nn independent samples per step, write ξij=(−1)xi(j)\xi_{ij}=(-1)^{x_i^{(j)}} and

$ A=\sum_{i=1}^{T}\sum_{j=1}^{n}\xi_{ij}. $

The pooled empirical objective is

$ \sum_{i=1}^{T}\widehat R_{S_i}(\psi_s)=T\mu-\frac{\lambda s}{n}A, $

so the shared ERM chooses s^=sign⁡(A)\widehat s=\operatorname{sign}(A). Its aggregate generalization gap is therefore exactly

$ \Gamma_T(S):=\sum_{i=1}^{T}(R_{D_i}(\psi_{\widehat s})-\widehat R_{S_i}(\psi_{\widehat s}))=\frac{\lambda}{n}|A|. $

Since AA is a sum of N=nTN=nT independent Rademacher variables, Khintchine's inequality gives

$ \frac{\lambda}{\sqrt2}\sqrt{\frac{T}{n}} \le \mathbb E\Gamma_T(S) \le \lambda\sqrt{\frac{T}{n}}, $

and Paley--Zygmund gives the same order with constant probability. For any fixed pooled sample,

$ \widehat{\mathfrak R}_{S_0}(\ell\circ\Psi)=\frac{\lambda}{nT}\mathbb E_\sigma |\sum_{i=1}^{T}\sum_{j=1}^{n}\sigma_{ij}\xi_{ij}|=\Theta(\frac1{\sqrt{nT}}), $

hence

$ T\widehat{\mathfrak R}_{S_0}(\ell\circ\Psi)=\Theta(\sqrt{\frac{T}{n}}). $

Equations (1)--(3) match Theorem 2 up to constants. Because both hypotheses generate the correct hard trajectory, the lower bound isolates the statistical cost of estimating one shared probabilistic predictor from atomic supervision; it is not produced by state instability or compounding hard errors. We will add this result as a proposition in the main text and place the full proof in the appendix.

3. How DiD_i and SiS_i are generated

Formally, draw Z0∼DZ_0\sim D and roll out the oracle transition ψ∗\psi^*, not the learned model. This induces

$ D_i=\operatorname{Law}(Z_{i-1}^*,\Delta Z_i^*), \qquad S_i\sim D_i^n. $

The index ii identifies position in the oracle composition; it need not be an explicit input token unless encoded in the state. In Atom-Task, labels are deterministic conditional on the current symbolic state and operation, while randomness comes from the initial sequence and operation chain. The theorem assumes these atomic examples are independently sampled; complete short training trajectories used in some experiments are a stronger but correlated protocol, which we will distinguish from the exact theoretical sampling model.

For Section 4 (Practical relevance, natural-language evidence, and Table 9), the formulas were unaffected. Please refer to the original rebuttal; this portion remains unchanged.

Area Chair cnyK · CommentOpenReview ↗

Thank you for providing the serial-XOR construction. The construction shows a Θ(T/n)\Theta(\sqrt{T/n}) aggregate per-step surrogate generalization gap for the pooled ERM. However, the paper’s main target is the final risk RDR_D.

Could the authors please state the final excess risk of the pooled ERM on this construction, namely RD(Fψs^)−inf⁡ψ∈ΨRD(Fψ)R_D(F_{\psi_{\widehat s}})-\inf_{\psi\in\Psi}R_D(F_\psi), and explain how it depends on TT and nn?

If this final excess risk does not exhibit T/n\sqrt{T/n} dependence, please clarify how the construction supports tightness or necessity of the claimed TT-dependence for the final OOD risk, rather than only tightness of the intermediate uniform-convergence term in Theorem 2. In particular, please clarify whether any tightness claim is being made for the Theorem 1 reduction from aggregate per-step risks to RDR_D.

I would also welcome the other reviewers’ assessment of this distinction after the authors respond.

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

Summary

The paper models CoT as compositional OOD generalization: training provides only in-distribution atomic-step pairs (zi−1,Δzi)(z_{i-1},\Delta z_i), never full chains or direct (z0,ΔzT)(z_0,\Delta z_T) pairs. Treating CoT as repeated application of one shared step predictor, it proves (i) the OOD risk is bounded by the sum of per-step ID risks times a depth-independent coefficient M=O(k)M=O(k); (ii) predictor sharing yields a gap of O(T/n)O(\sqrt{T/n}) rather than O(T)O(T); (iii) an explicit decoder-only NTP bound O(kT/mn+kT/n+kT/m)O(k\sqrt{T/mn}+k\sqrt{T/n}+kT/m). Atom-Task and GSM8K experiments support short-to-long generalization and the necessity of explicit state tracking.

Suggestion

The experiments are well-designed for isolation, and some of the most interesting results—generalizing to an operation never seen mid-chain, and to chain lengths beyond training—actually go a step beyond what the theory assumes (identical per-step Di\mathcal D_i Di​ train/test). This is an opportunity rather than a flaw. The paper would be substantially more complete if it either (a) extended the bound to allow a controlled gap between the training atomic distribution and the test-time per-step marginal, so the theory covers the settings the experiments already probe, or (b) added a clearly-labeled within-assumption experiment (every atomic step seen, only the composition novel) as a clean check, separating "theory validation" from "exploration beyond the theory." Tighter alignment would make the theory and experiments reinforce each other much more directly.

Strengths and weaknesses

Strengths

  • Proofs are correct and clearly presented; the multi-distribution symmetrization (Lemma 7) is a clean extension giving the O(T)→O(T)O(T)\to O(\sqrt T) improvement.
  • The NTP instantiation yields a concrete, architecture-dependent bound, more explicit than most qualitative CoT theory.
  • The state-tracking ablation (Table 3: 7-step ~85%→56%) directly validates the theory's requirement that zi−1z_{i-1} be a sufficient statistic—a thoughtful theory–experiment link.

Weaknesses

  • Conclusion largely anticipated. That CoT aids OOD/compositional generalization is well established (e.g., [16] already reduces task complexity to the hardest single step); the applied literature is under-cited like https://arxiv.org/abs/2502.18273, https://arxiv.org/abs/2504.12991, .
  • Ingredients inherited. The T\sqrt T benefit is standard multi-task representation learning (Maurer et al. 2016, cited [24]); the NTP bound is applied essentially wholesale from [23] (App. A.2, N→nTN\to nT). The contribution is the assembly, which is incremental.
  • Assumptions absorb the hard part. Decomposability (a single ψ∗\psi^* solving every step) is assumed; the per-step training distribution is set equal to the marginal Di\mathcal D_i the composite needs (proof of Thm 1; Assumption 2)—precisely the alignment that is mysterious in real CoT; and MM's TT-independence follows from the hard-argmax sliding window (Lemma 6 Case 2 bounds downstream divergence by the trivial 2\sqrt2), so it may be a discretization artifact rather than a CoT property.
  • "OOD" is mild. Only the joint composition is unseen; each atomic step distribution Di\mathcal D_i is, by construction, identical between train and test. The shift is therefore combinatorial and in length, not distributional—the OOD framing somewhat oversells the result.
Questions

Questions

  1. How essential is the assumption that the training per-step distribution equals the test-time marginal Di\mathcal D_i? Does the bound survive when the model's own rollouts drift off the training step-distribution?
  2. Is the TT-independence of M=O(k)M=O(k) specific to hard decoding? Under soft/continuous propagation or sampling, does it persist?
  3. What is the precise delta over [16] (per-step decomposition), [24] (multi-task T\sqrt T), and [23] (NTP bound)?
  4. Which experimental results fall within the theory's assumptions, and which (held-out operation, length extrapolation) probe behavior beyond them—and what, if anything, do the current bounds predict for the latter?
Limitations

Yes

Final justification

Resolved during rebuttal.

  • Scope of the theory. The authors clarified that decomposability and the sufficient-state condition are structural preconditions under which reusable composition is definable, and adopted compositional OOD for the base theorem. This addresses my concern that the OOD framing overreached.
  • Depth-independence of MM. Renamed to depth-independent hard-decoding error charging, with explicit acknowledgment that it is specific to the deterministic argmax transition and that soft or sampled transitions would require additional assumptions. This is the correct statement of the result.
  • Verifiability. Theorem 5 was fully restated, the lower bound precisely scoped, and a computable discrepancy proxy provided. My earlier reason for holding the score — that the decisive new results could not be assessed — no longer applies.
  • A pre-existing tension removed. Dropping Assumption 2 in favour of independence across the nTnT sequence blocks eliminates the awkwardness of assuming the initial context is forgotten while the CoT mechanism requires zi−1z_{i-1} to be retained. The T/n\sqrt{T/n} law survives the correction.

Unresolved.

  • Contribution remains primarily assembly. Once scoped, the serial-XOR construction establishes tightness of Theorem 2's pooled surrogate-estimation term, not a minimax lower bound on the target risk. It shows the analysis of that step is not lossy; it does not show T/n\sqrt{T/n} is intrinsic to the problem. The T\sqrt T gain is still inherited from multi-task representation learning and the NTP machinery from prior work.
  • The distribution-alignment question is formalized, not answered. Eq. (1)'s discrepancy term renames the puzzle rather than explaining it; Eq. (7) is near-vacuous where it matters, Eq. (8) is stated over a finite checkpoint set rather than the class supremum used in Eq. (1), and no values of Δ^i\widehat\Delta_i have been reported.
  • The correction has not been propagated. The abstract, the third contribution, the conclusion, §4.3, Remarks 4–5, and Appendix A.3 all rest on the superseded Theorem 5. Context length now enters only through a polylog factor that increases in mm, so it can no longer be listed among the dependencies the bound characterizes, and Figure 3(c)'s interpretation no longer holds.

Weighting. I gave most weight to the fact that the correction tightens rather than weakens the analysis — an assumption was removed, no rate degraded, and the central result survived — and to the quality of the authors' engagement, which was direct and self-critical across both rounds, including on points that worked against their own case. Against that, I gave real but lesser weight to the incrementality concern, which I consider a limit on the paper's significance rather than on its correctness, and to the alignment question, which I now regard as a scope limitation the authors have stated honestly rather than a flaw.

What kept me from moving further is that the version I am recommending is not the version that was submitted. I weighted this as a condition on acceptance rather than a reason against it, because the required changes are ones of statement and interpretation, not of substance.

For the authors.

  1. Restate the abstract, contributions, and conclusion to match the corrected rate; remove context length from the list of characterized dependencies.
  2. Rewrite §4.3 and remove the material tied to Assumption 2.
  3. Relabel Figure 3(c) as a beyond-theory observation — its xx-axis is shots, not the sliding-window mm of §4.1.
  4. Reconcile the range mismatch between Eq. (1) and Eq. (8), and report actual Δ^i\widehat\Delta_i values on Atom-Task.
  5. Note that Atom-Task step samples are drawn from multi-step chains and so are not independent within a chain, now that block independence is the sole statistical requirement.

These are conditions for the paper to state what it actually proves. With them, I think it clears the bar; without them, my score should be read accordingly.

Formatting concerns

No such concerns

6 comments
Authors · RebuttalOpenReview ↗
Rebuttal

Dear Reviewer,

Thank you for the constructive review. Your questions identify the key distinctions that we will make explicit in the revision: atomic-distribution coverage versus shift, hard-decoding charging versus rollout contraction, and exact theorem validation versus stronger empirical stress tests. We also look forward to the subsequent discussion which may further help solve the current issues.

1. Training marginals, target marginals, and rollout drift

Exact equality is needed only for the zero-shift form of the theorem; the framework extends immediately when the training atomic distribution differs from the target oracle marginal. Let Q_i denote the distribution from which S_i ~ Q_i^n is sampled, let D_i* denote the oracle step marginal induced by the target composition, and define

disc_F(D_i*, Q_i) := sup_{psi in Psi} |R_{D_i*}(psi) - R_{Q_i}(psi)|, where F = L o Psi.

Since R_{D_i*}(psi) <= R_{Q_i}(psi) + disc_F(D_i*, Q_i), Theorems 1--2 give

R_D(F_psi) <= G_ell * M * [ sum_i hat{R}{S_i}(psi) + 2T * hat{R}{S_0}(F) + 3B_ell * sqrt(2T log(4/delta)/n) + sum_i disc_F(D_i*, Q_i) ]. (1)

The original theorem is the zero-discrepancy case. Equation (1) separates the O(sqrt(T/n)) compositional estimation cost from unseen-depth, new-prefix, or other state-conditioned atomic shifts.

Model-induced rollout drift is different from D_i* != Q_i. Theorem 1 compares the learned hard rollout with the oracle trajectory and does not assume that learned states remain distributed as D_i*. If a hard prediction is correct, the next states coincide; if it is wrong, the downstream disagreement is charged to that step's local loss with M = O(k), independently of the remaining horizon.

2. Why M is independent of T

Yes, this property is specific to the deterministic hard/argmax transition analyzed in the paper. The proof establishes an error-charging dichotomy, not contraction: a correct hard token creates no state discrepancy, while an incorrect token incurs at least (log 2)/k loss and can therefore pay for the bounded worst-case downstream output difference. We will replace "rollout stability" by depth-independent hard-decoding error charging and state explicitly that soft or sampled transitions require additional coupling, margin, or transition-regularity assumptions.

3. Precise contribution beyond [4], [5], and [6]

We agree that pooled symmetrization alone is standard. The technical contribution is the CoT-specific chain connecting local probabilistic learning to final compositional risk:

  1. Autoregressive risk reduction. Theorem 1 reduces final T-step sequence loss to oracle-state atomic losses for one shared sliding-window predictor, with a hard-decoding coefficient independent of the remaining horizon.
  2. Multi-distribution estimation and shift. Theorem 2 pools atomic samples across heterogeneous step marginals, and Eq. (1) extends the result to nonzero train--target atomic discrepancy.
  3. Direct target-token NTP specialization. After correcting Lemma 9, we analyze the actual k generated tokens directly, retain explicit decoder capacity, and require neither prompt forgetting nor a full-sequence-to-tail conversion.
  4. Tightness. A serial-XOR construction gives a matching Omega(sqrt(T/n)) lower bound for the aggregate estimation term, even when every hard transition is correct.

Relative to Yang et al. [6], we provide an explicit T-step risk and estimation bound rather than a learnability separation. Relative to Maurer et al. [4], shared-representation pooling is the tool, while our contribution is identifying the CoT state-transition loss to which it applies and connecting it to final OOD composition. Relative to Li et al. [5], we retain only the decoder covering machinery; the corrected theorem uses a different, task-relevant target-token class and does not use their full-sequence mixing argument.

The shared oracle transition and sufficient state are the defining structural conditions for reusable composition, analogous to specifying a hypothesis class in learning theory. Our contribution is to characterize the resulting final-task risk and the depth--data trade-off once this compositional structure is available; Table 3 directly tests the sufficient-state condition. We will state this scope precisely, use compositional OOD for the base theorem, and expand the discussion of the applied works you suggested [8,9].

4. Which experiments are covered?

The current experiments test several progressively stronger regimes:

  • State tracking: directly tests the sufficient-state condition required by Theorem 1.
  • Held-out operation in multi-step chains: the operation remains abundant in single-step training, so the primitive is known; inserting it after unseen prefixes is compositional OOD with possible nonzero discrepancy in Eq. (1).
  • Short-to-long evaluation: tests unseen-depth composition and deeper state marginals, again covered by Eq. (1) when the discrepancy is controlled.
  • GSM8K shifts: broader semantic stress tests, not exact instances of the zero-shift theorem.

We will separate these categories explicitly instead of presenting them as one uniform notion of OOD.

References

[1] Nirmit Joshi, Gal Vardi, Adam Block, Surbhi Goel, Zhiyuan Li, Theodor Misiakiewicz, and Nathan Srebro. “A Theory of Learning with Autoregressive Chain of Thought.” COLT, 2025.

[2] Steve Hanneke, Idan Mehalel, and Shay Moran. “Sample Complexity of Autoregressive Reasoning: Chain-of-Thought vs. End-to-End.” arXiv:2604.12013, 2026.

[3] Shai Shalev-Shwartz and Shai Ben-David. Understanding Machine Learning: From Theory to Algorithms. Cambridge University Press, 2014.

[4] Andreas Maurer, Massimiliano Pontil, and Bernardino Romera-Paredes. “The Benefit of Multitask Representation Learning.” JMLR, 2016.

[5] Zhihao Li, Xue Jiang, Liyuan Liu, Xuelin Zhang, Hong Chen, and Feng Zheng. “On the Generalization Ability of Next-Token-Prediction Pretraining.” ICML, 2025.

[6] Chenxiao Yang, Zhiyuan Li, and David Wipf. “Chain-of-Thought Provably Enables Learning the (Otherwise) Unlearnable.” ICLR, 2025.

[7] Xinhao Yao, Ruifeng Ren, Yun Liao, Lizhong Ding, and Yong Liu. “Compositional Generalization from Learned Skills via CoT Training: A Theoretical and Structural Analysis for Reasoning.” ICLR, 2026.

[8] Ru Wang et al. “Beyond In-Distribution Success: Scaling Curves of CoT Granularity for Language Model Generalization.” 2026.

[9] Yu Wang, Fu-Chieh Chang, and Pei-Yuan Wu. “A Theoretical Framework for OOD Robustness in Transformers Using Gevrey Classes.” arXiv:2504.12991, 2025.

Authors · CommentOpenReview ↗

Corrected Rebuttal (Essential Responses) with Fixed Formula Rendering

Dear Reviewer,

We sincerely apologize for the rendering issues in our original rebuttal. We provide the corrected version of our rebuttal, where all mathematical expressions now render properly, for accurate cross-reference by reviewers.

Regarding the technical corrections:

1. Training marginals, target marginals, and rollout drift

Exact equality is needed only for the zero-shift form of the theorem; the framework extends immediately. Let QiQ_i denote the distribution from which Si∼QinS_i\sim Q_i^n is sampled, let Di⋆D_i^\star denote the oracle step marginal, and define

disc⁡F(Di⋆,Qi):=sup⁡ψ∈Ψ∣RDi⋆(ψ)−RQi(ψ)∣,F=L∘Ψ.\operatorname{disc}_{\mathcal F}(D_i^\star,Q_i) :=\sup_{\psi\in\Psi}|R_{D_i^\star}(\psi)-R_{Q_i}(\psi)|, \qquad \mathcal F=L\circ\Psi.

Since RDi⋆(ψ)≤RQi(ψ)+disc⁡F(Di⋆,Qi)R_{D_i^\star}(\psi)\le R_{Q_i}(\psi)+\operatorname{disc}_{\mathcal F}(D_i^\star,Q_i), Theorems 1--2 give

RD(Fψ)≤GℓM[∑iR^Si(ψ)+2TR^S0(F)+3Bℓ2Tlog⁡(4/δ)n+∑idisc⁡F(Di⋆,Qi)].(1)R_D(F_\psi)\le G_\ell M\left[ \sum_i\widehat R_{S_i}(\psi) +2T\widehat{\mathfrak R}_{S_0}(\mathcal F) +3B_\ell \sqrt{\frac{2T\log(4/\delta)}{n}} +\sum_i\operatorname{disc}_{\mathcal F}(D_i^\star,Q_i) \right]. \tag{1}

The original theorem is the zero-discrepancy case. Model-induced rollout drift is different from Di⋆≠QiD_i^\star\neq Q_i; if a hard prediction is correct, states coincide; if wrong, the disagreement is charged locally with M=O(k)M=O(k).

2. Why MM is independent of TT

This is specific to the deterministic hard/argmax transition analyzed. The proof establishes an error-charging dichotomy, not contraction: a correct token creates no state discrepancy, while an incorrect token incurs at least log⁡2/k\log2/k loss, paying for the bounded downstream difference. We will replace "rollout stability" by depth-independent hard-decoding error charging.

3. Precise contribution

We agree pooled symmetrization alone is standard. The technical contribution is the CoT-specific chain:

  1. Autoregressive risk reduction. Theorem 1 reduces TT-step sequence loss to oracle-state atomic losses with a depth-independent hard-decoding coefficient.
  2. Multi-distribution estimation. Theorem 2 pools atomic samples across heterogeneous marginals, and Eq. (1) extends to nonzero train--target atomic discrepancy.
  3. Direct target-token specialization. After correcting Lemma 9, we analyze the actual kk generated tokens directly, require neither prompt forgetting nor full-sequence conversion.
  4. Tightness. A serial-XOR construction gives a matching Ω(T/n)\Omega(\sqrt{T/n}) lower bound, even when every hard transition is correct.

Relative to Yang et al. [6], we provide an explicit TT-step risk bound. Relative to Maurer et al. [4], shared-representation pooling is the tool, while our contribution connects it to CoT state-transition loss and final OOD composition. Relative to Li et al. [5], the corrected theorem uses a different task-relevant target-token class.

4. Experiments

  • State tracking: directly tests the sufficient-state condition.
  • Held-out operation in multi-step chains: compositional OOD with possible nonzero discrepancy in Eq. (1).
  • Short-to-long evaluation: tests unseen-depth composition, covered by Eq. (1).
  • GSM8K shifts: broader stress tests, not exact zero-shift instances.

We will separate these categories explicitly in the revision.

We confirm that Lemma 9 has been corrected and the typography of sLs_L clarified. Thank you for the exceptionally careful reading. We look forward to the subsequent discussion.

Reviewer 8xp4 · CommentOpenReview ↗

Response to Authors' Rebuttal

Thank you so much for the industrious rebuttal — several concerns are now genuinely clearer.

  1. Resolved for me. The scope framing of decomposability and the shared oracle transition as structural preconditions is reasonable, and stating it explicitly will help. Replacing "rollout stability" with depth-independent hard-decoding error charging, and acknowledging that this is specific to the deterministic argmax transition, is the right correction. Adopting compositional OOD and separating the four experimental regimes addresses my framing concern directly.

  2. On the lower bound. This is the most valuable item here. My reservation was that the O(T)→O(T)O(T)\to O(\sqrt T) gain is inherited from multi-task representation learning. A lower bound cannot be inherited that way — pooled symmetrization yields only upper bounds — so a matching Ω(T/n)\Omega(\sqrt{T/n}) would show T/n\sqrt{T/n} is the intrinsic difficulty of this setting rather than an artifact of the proof. That would be an original contribution, and I'd encourage giving it prominence.

  3. Why I'm holding my score. The lower bound, corrected Lemma 9, and revised target-token analysis are not in the submitted paper, and I can't assess them. From a one-sentence description I can't tell whether the lower bound is minimax over learners or tightness of this analysis, against which class and loss, or whether both bounds are normalized the same way. And the Lemma 9 correction appears to change Theorem 5 itself — affecting the kT/mkT/m term and possibly Assumption 2 — while the abstract and Section 4.3 rest on the earlier version. This isn't a doubt about good faith; unreviewed results simply can't carry weight.

  4. Most useful in discussion:

  • The serial-XOR construction and proof — class, loss, minimax or not, which term under which normalization.
  • The full restatement of Theorem 5 post-correction: does the abstract's rate still hold, is Assumption 2 still needed?
  • Any non-trivial bound or proxy for ∑idiscF(Di⋆,Qi)\sum_i \mathrm{disc}_{\mathcal F}(D_i^\star,Q_i) on Atom-Task.

I'm positive about the direction and happy to revisit my score if the lower bound and revised Theorem 5 can be shared during the discussion period.

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

Missing a submission?

Loading the discussion…