potentialpaper

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

Keep the title, authors and abstract in paper.json

potentialpaper · 2026-11-23 20:47 UTC · 9529b673e343 ·

.potentialpaper/metadata.json modified

+++ b/.potentialpaper/metadata.json
@@ -1,23 +1,5 @@
{
- "layout": 5,
- "identifiers": [
- {
- "scheme": "openreview",
- "value": "CwFstPZgCZ"
- }
- ],
- "title": "Understanding the Out-of-Distribution Generalization of Chain-of-Thought Reasoning in LLMs",
- "authors": [
- "Nuojing Liang",
- "Xiaotong Yuan",
- "Pan Zhou"
- ],
- "abstract": "Chain-of-Thought (CoT) reasoning substantially improves Large Language Models (LLMs), yet its\nout-of-distribution (OOD) generalization mechanism remains theoretically underexplored. We study\nCoT as compositional OOD generalization: the target task lacks complete reasoning trajectories or\ndirect input-output pairs, while training provides only in-distribution (ID) atomic step data. We\nshow that CoT generalizes by repeatedly applying a shared single-step predictor to compose reusable\nID transitions. Theoretically, let $T$ denote the number of reasoning steps in the target task, $n$\nthe number of training samples per sub-task, and $k$ the number of output tokens per step; then the\nOOD task risk is controlled by the sum of the ID sub-task risks, scaled by a coefficient of order $\\mathcal{O}(k)$ that is independent of $T$, although the summed risk itself may still grow with $T$. A\nRademacher-complexity analysis further shows that the estimation term is of order $\\mathcal{O}(\\sqrt{T/n})$,\nrather than linear in $T$, due to predictor sharing under a uniform capacity control on the shared\nclass. 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 $\\mathcal{O}(k)$, plus an estimation term of order $\\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 $\\Omega(\\sqrt{T/n})$ when $T\\le n$. Experiments on Atom-Task and GSM8K support the theory: CoT enables\nshort-to-long and compositional generalization, while explicit state tracking is crucial.\n\nOur code is available at https://github.com/maxliang114514/CoT-OOD.",
- "year": 2026,
- "venue": "NeurIPS 2026",
- "source": "openreview",
- "license": {
- "metadata": "CC0-1.0",
- "abstract": "CC0-1.0"
- }
+ "layout": 6,
+ "kind": "paper",
+ "key": "a1906633-8fea-465f-a83a-18aae3167e5e"
}

paper.json added

+++ b/paper.json
@@ -0,0 +1,13 @@
+{
+ "title": "Understanding the Out-of-Distribution Generalization of Chain-of-Thought Reasoning in LLMs",
+ "authors": [
+ "Nuojing Liang",
+ "Xiaotong Yuan",
+ "Pan Zhou"
+ ],
+ "abstract": "Chain-of-Thought (CoT) reasoning substantially improves Large Language Models (LLMs), yet its\nout-of-distribution (OOD) generalization mechanism remains theoretically underexplored. We study\nCoT as compositional OOD generalization: the target task lacks complete reasoning trajectories or\ndirect input-output pairs, while training provides only in-distribution (ID) atomic step data. We\nshow that CoT generalizes by repeatedly applying a shared single-step predictor to compose reusable\nID transitions. Theoretically, let $T$ denote the number of reasoning steps in the target task, $n$\nthe number of training samples per sub-task, and $k$ the number of output tokens per step; then the\nOOD task risk is controlled by the sum of the ID sub-task risks, scaled by a coefficient of order $\\mathcal{O}(k)$ that is independent of $T$, although the summed risk itself may still grow with $T$. A\nRademacher-complexity analysis further shows that the estimation term is of order $\\mathcal{O}(\\sqrt{T/n})$,\nrather than linear in $T$, due to predictor sharing under a uniform capacity control on the shared\nclass. 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 $\\mathcal{O}(k)$, plus an estimation term of order $\\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 $\\Omega(\\sqrt{T/n})$ when $T\\le n$. Experiments on Atom-Task and GSM8K support the theory: CoT enables\nshort-to-long and compositional generalization, while explicit state tracking is crucial.\n\nOur code is available at https://github.com/maxliang114514/CoT-OOD.",
+ "license": {
+ "metadata": "CC0-1.0",
+ "abstract": "CC0-1.0"
+ }
+}