Understanding the Out-of-Distribution Generalization of Chain-of-Thought Reasoning in LLMs
Nuojing Liang, Xiaotong Yuan, Pan Zhou
NeurIPS 2026
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 denote the number of reasoning steps in the target task, the number of training samples per sub-task, and 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 that is independent of , although the summed risk itself may still grow with . A Rademacher-complexity analysis further shows that the estimation term is of order , rather than linear in , 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 , plus an estimation term of order . 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 when . 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 paperedit · history
NeurIPS 2026
Accept (poster) · 3 reviews · OpenReview
Updated 25 Nov 2026, 03:43 UTC.
- 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 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 examples from every target-step distribution . 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 -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 benefit, and the corresponding 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 estimation rate by pooling 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 was intrinsic to this learning problem.
What Changed After Rebuttal
-
Correction of the NTP result. The authors acknowledged the error in Lemma 9 and proposed removing that lemma, the -mixing assumption, the universal improvement, and the residual. They replaced the argument with a direct target-token analysis that treats the 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 rate.
-
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.
-
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.
-
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 -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 -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.
- 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 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 examples from every target-step distribution . 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 -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 benefit, and the corresponding 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 estimation rate by pooling 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 was intrinsic to this learning problem.
What Changed After Rebuttal
-
Correction of the NTP result. The authors acknowledged the error in Lemma 9 and proposed removing that lemma, the -mixing assumption, the universal improvement, and the residual. They replaced the argument with a direct target-token analysis that treats the 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 rate.
-
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.
-
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.
-
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 -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 -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.
- 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 , 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:
-
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.
-
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 . This effectively explains why errors accumulate additively rather than multiplicatively in autoregressive CoT reasoning.
-
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:
-
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).
-
The sublinear complexity bound relies on treating the combined step-level dataset as having 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?
-
In the empirical evaluation, the context length 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.
-
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:
-
In Appendix B.5 (Lines 655–661), the proof attempts to bound the deviation of the expected loss by claiming that the context and target token belong to the future -algebra . However, is explicitly defined as the prefix sequence up to position (Line 649), which includes the first token . Since is directly adjacent to the initial prompt (associated with ), the temporal gap between the prompt and the sequence is exactly 1, not . Therefore, the total variation distance cannot be bounded by , as the early tokens in the prefix never mix away from the initial prompt. This invalidates the mixing residual bound derived in Equation 18.
-
In Section 4.2 (Lines 227–228), the text claims that because contains a factor of , the complexity parameter scales as . However, in Appendix A.2 (Line 522), is located inside an exponential function: . The logarithm of an exponential function grows polynomially, meaning , not polylogarithmically. If , substituting this into the first term of Theorem 5 () yields a convergence rate of , which contradicts the claimed sample complexity rate in Equation 13.
Limitations
Yes
Formatting concerns
none
2 comments
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--token analysis replacing Lemma 9
Because contains positions through , is not separated from the initial context by lag . 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- sequence , let
,
and let .
The complete sequences are the independent units; all tokens and prefixes inside a sequence may be arbitrarily dependent. Applying the multi-distribution result directly to gives, with probability at least ,
. (1)
This bound is valid for any learned , 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 select the final decoder rows. Since
,
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
, with , (2)
where
, ,
. (3)
Combining (1)--(3) with Theorem 1 and yields the explicit dominant rate
. (4)
Thus the main depth--sample conclusion is unchanged. What disappears is the unsupported conversion of full-sequence token volume into a universal gain and the associated residual. Context length remains explicit in the decoder-capacity factor .
2. Scaling and typography of
The intended layer factor is
,
where only is in the exponent. Therefore, for fixed layerwise norm, attention-score, and Lipschitz constants,
,
up to architecture-dependent constants. We will add explicit parentheses and use the notation throughout. The sample dependence in (2) is consequently 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 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 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 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 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.
- 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 , then uses the minimum cross entropy loss to obtain a depth-independent . 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 . How is information of the step used to create the distribution ?
-
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
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.
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 , so the averaged -token clipped cross-entropy is at least ; meanwhile, the downstream difference between two probability outputs is at most the simplex diameter . 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 estimation term
The corrected NTP theorem has dominant estimation rate . The dependence is worst-case tight for the aggregate statistical term controlled by Theorem 2, even when every hard transition is correct.
Let , , and . Draw and initialize
$ z_0=(x_1,\ldots,x_T,b_0),\qquad b_0=0. $
At step , the oracle emits
$ b_i=b_{i-1}\oplus x_i, \qquad z_i=z_{i-1}[2:m]\oplus b_i. $
Thus , the correct next token is , and the final answer is the serial composition .
Define the shared class . With , 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 or , so both predictors hard-predict every atomic transition and the entire parity computation correctly. For any clipping threshold , 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 on every subtask. For independent samples per step, write 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 . 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 is a sum of 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 and are generated
Formally, draw and roll out the oracle transition , 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 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.
Thank you for providing the serial-XOR construction. The construction shows a aggregate per-step surrogate generalization gap for the pooled ERM. However, the paper’s main target is the final risk .
Could the authors please state the final excess risk of the pooled ERM on this construction, namely , and explain how it depends on and ?
If this final excess risk does not exhibit dependence, please clarify how the construction supports tightness or necessity of the claimed -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 .
I would also welcome the other reviewers’ assessment of this distinction after the authors respond.
- 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 , never full chains or direct 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 ; (ii) predictor sharing yields a gap of rather than ; (iii) an explicit decoder-only NTP bound . 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 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 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 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, ). The contribution is the assembly, which is incremental.
- Assumptions absorb the hard part. Decomposability (a single solving every step) is assumed; the per-step training distribution is set equal to the marginal the composite needs (proof of Thm 1; Assumption 2)—precisely the alignment that is mysterious in real CoT; and 's -independence follows from the hard-argmax sliding window (Lemma 6 Case 2 bounds downstream divergence by the trivial ), 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 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
- How essential is the assumption that the training per-step distribution equals the test-time marginal ? Does the bound survive when the model's own rollouts drift off the training step-distribution?
- Is the -independence of specific to hard decoding? Under soft/continuous propagation or sampling, does it persist?
- What is the precise delta over [16] (per-step decomposition), [24] (multi-task ), and [23] (NTP bound)?
- 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 . 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 sequence blocks eliminates the awkwardness of assuming the initial context is forgotten while the CoT mechanism requires to be retained. The 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 is intrinsic to the problem. The 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 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 , 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.
- Restate the abstract, contributions, and conclusion to match the corrected rate; remove context length from the list of characterized dependencies.
- Rewrite §4.3 and remove the material tied to Assumption 2.
- Relabel Figure 3(c) as a beyond-theory observation — its -axis is shots, not the sliding-window of §4.1.
- Reconcile the range mismatch between Eq. (1) and Eq. (8), and report actual values on Atom-Task.
- 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
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:
- 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.
- 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.
- 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.
- 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.
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 denote the distribution from which is sampled, let denote the oracle step marginal, and define
Since , Theorems 1--2 give
The original theorem is the zero-discrepancy case. Model-induced rollout drift is different from ; if a hard prediction is correct, states coincide; if wrong, the disagreement is charged locally with .
2. Why is independent of
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 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:
- Autoregressive risk reduction. Theorem 1 reduces -step sequence loss to oracle-state atomic losses with a depth-independent hard-decoding coefficient.
- Multi-distribution estimation. Theorem 2 pools atomic samples across heterogeneous marginals, and Eq. (1) extends to nonzero train--target atomic discrepancy.
- Direct target-token specialization. After correcting Lemma 9, we analyze the actual generated tokens directly, require neither prompt forgetting nor full-sequence conversion.
- Tightness. A serial-XOR construction gives a matching lower bound, even when every hard transition is correct.
Relative to Yang et al. [6], we provide an explicit -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 clarified. Thank you for the exceptionally careful reading. We look forward to the subsequent discussion.
Response to Authors' Rebuttal
Thank you so much for the industrious rebuttal — several concerns are now genuinely clearer.
-
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.
-
On the lower bound. This is the most valuable item here. My reservation was that the 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 would show 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.
-
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 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.
-
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 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.
Loading the discussion…
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.