- Rating
- 4
- Clarity
- 3
- Confidence
- 3
- Originality
- 4
- Quality
- 3
- Significance
- 3
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
Paper formatting concerns
none
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.