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

LLM에서 사고의 연쇄(Chain-of-Thought) 추론의 분포 외 일반화 이해

Nuo-Jing Liang, Xiao-Tong Yuan, Pan Zhou · arXiv · 2026년 11월 4일

- **연구 문제** CoT가 학습 중 보지 못한 다단계 과제에서 일반화되는 이유를 이론적으로 설명하는 것이 문제입니다. 이 논문은 목표 과제의 전체 궤적 없이 원자 단계 데이터만 주어질 때 오차가 추론 깊이에 따라 어떻게 커지는지 분석합니다.
- **연구 방법** 공유 단일 단계 예측기를 T번 반복 적용하는 CoT 분해로 목표 위험을 단계별 위험 합으로 상계하고, 결합 샘플 위의 Rademacher 복잡도로 추정 항을 O(√T) 차수로 줄입니다.
- **주요 결과** Atom-Task와 GSM8K 실험에서 CoT 학습은 짧은 사슬이나 계열 내 이동 과제에서 No-CoT보다 높은 정확도를 보였고, Atom-Task의 절제 실험은 상태 추적 제거 시 다단계 정확도가 낮아짐을 보였습니다.

## 목표 과제의 OOD 일반화 문제

이 논문은 CoT가 왜 학습 중 직접 보지 못한 복잡한 추론 과제에서 일반화되는지를 이론적으로 묻습니다. 목표 과제에는 완전한 추론 궤적이나 입력-출력 쌍이 학습에 주어지지 않고, 모델은 분포 내(ID) 원자 단계 데이터 (zi-1, Δzi)만 봅니다. 따라서 목표 과제의 합성 구조는 관측된 원자 전이에 대해 OOD입니다. 저자들은 이 설정을 compositional OOD라고 부르며, 기존 이론 연구들이 표현력이나 두 단계 설정에 머무르고 자기회귀 다음 토큰 예측(NTP) 체제의 명시적 일반화 상계를 충분히 주지 않았다고 짚습니다. 이 논문의 질문은 공유된 단일 단계 예측기를 T번 반복 적용할 때 미관측 다단계 과제의 오차가 추론 깊이 T에 따라 어떻게 커지는지입니다.

## 단계 분해와 반복 CoT 실행

모델은 문맥 길이 m의 자기회귀 예측기 ψ를 사용하며, 각 단계에서 현재 상태 ẑi-1로부터 k개의 출력 토큰을 하드 argmax 디코딩으로 생성합니다. 상태는 슬라이딩 윈도우로 갱신되어 가장 앞의 k개 토큰을 버리고 생성된 k개를 뒤에 붙입니다. 이 반복을 T번 수행하는 복합 예측기 Fψ(z0)=ψ(ψ̄^(T-1)(z0))가 최종 답을 냅니다. 핵심 결과인 Theorem 1은 목표 위험을 ID 단계 위험의 합으로 상계하며, 계수는 Bℓk/log 2로 깊이 T에 독립적입니다. 이 계수는 하드 디코딩 오류가 한 단계에서 가지는 손실 하한 (log 2)/k에서 나옵니다. 증명은 첫 하드 디코딩 오류 이전에는 자유 실행 궤적과 정답 궤적이 정확히 일치한다는 관찰에 기대며, 이 덕분에 Lipschitz나 안정성 가정 없이 오류 사건을 단계별 위험에 귀속할 수 있습니다.

![Figure 1: CoT as compositional OOD generalization. Left: without CoT, the model must learn a direct mapping from input z0 to final answer ∆zT , whose target d…](https://refivu.com/papers/f8d23f12-d410-453f-876f-81958a16062a/figures/figure-a403ec07b92ba274f0125a3f01a111c6.png?thumb=512)

**Figure 1** : CoT as compositional OOD generalization. Left: without CoT, the model must learn a direct mapping from input z0 to final answer ∆zT , whose target distribution may be unavailable during training. With CoT, the same predictor is repeatedly applied to in-distribution step distributions, mapping each state zi−1 to update ∆zi . Right: a two-hop translation example solves an unseen English-to-German query by composing learned English-to-French and French-to-German steps.

[원문](https://arxiv.org/abs/2611.06438v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Nuo-Jing Liang, Xiao-Tong Yuan, Pan Zhou · Understanding the Out-of-Distribution Generalization of Chain-of-Thought Reasoning in LLMs · 원문 그림 인용 · 원본 PDF 2쪽에서 그림 영역을 추출했습니다.

## Rademacher 복잡도로 추정 항 줄이기

단계별 위험을 독립적으로 분석하면 T개의 분포에 대한 추정 오차가 T에 선형으로 커집니다. 이 논문은 같은 예측기 ψ가 모든 단계의 샘플을 처리한다는 점을 이용해, 결합된 샘플 S0=∪Si 위에서 Rademacher 복잡도를 계산합니다. 이때 편차 항과 복잡도 항이 모두 O(T)에서 O(√T)로 개선된다고 보고합니다. Theorem 2는 이 편차를 2T·R̂S0(F)와 3Bℓ√(2T log(4/δ)/n)의 합으로 상계합니다. Corollary 3은 이 편차를 Theorem 1에 대입해 목표 위험이 단계별 위험 합과 √(T/n) 차수의 추정 항으로 상계된다고 정리합니다. 다만 이 √T 차수는 고정 예측기가 아니라 하위 과제 ERM 결과에서 나온 추정 항으로 읽어야 하며, 저자들은 이 차수가 Appendix의 구성으로 하한을 가짐을 보입니다.

## 자기회귀 NTP 설정의 특수화

Section 4는 일반 분석을 실제 LLM의 다음 토큰 예측 설정으로 옮깁니다. 목표 토큰 위험 RkDi는 정답 접두사를 주는 teacher forcing 아래에서 마지막 k개 목표 토큰에 대해 정의되며, 최종 자유 실행 위험과는 Lemma 10으로 연결됩니다. 이 설정의 Theorem 5와 Corollary 6은 목표 토큰 위험의 편차 상계와 ERM 비교를 제공하고, 복잡도 항은 레이어별 행렬 덮개 논증으로 계산됩니다. 최종 결과는 Bℓk/log 2 계수 아래에서 atomic excess를 Õ(k√(T/n))로 정리합니다. 여기서 복잡도 상계는 Assumption 2의 노름과 정규화 상수 아래에서 얻어진 것이며, 모든 디코더 구성에 대한 일반 보장은 아닙니다.

## Atom-Task 구성적 일반화 실험

실험은 여섯 기호 위에서 Reverse, Substitute, Duplicate, Deduplicate, Rotate의 다섯 연산을 순차 적용하는 Atom-Task에서 수행됩니다. 모델은 Qwen3-4B이며 3, 5, 7, 9단계 테스트 세트에서 정확도를 봅니다. 학습 데이터는 단일 단계, 3단계, 3+5 혼합, 1·3·5 혼합 및 연산 제외 데이터로 구성됩니다. 표 1에서 CoT 설정의 3+5 혼합 학습 모델은 3단계에서 100.00, 9단계에서 90.40을 기록했고, No-CoT 설정의 동일 혼합 데이터 모델은 3단계에서 51.00, 9단계에서 5.73이었습니다. 이 결과는 CoT가 짧은 사슬 학습에서 긴 미관측 조합으로 일반화하는 데 기여했음을 보여 주지만, 다른 모델이나 자연어 과제로의 일반 결론은 아닙니다.

![Table 1: Accuracy (%) by training data and test steps. All entries are means over 3 seeds (42, 2026, 12345); standard deviations are shown as subscripts](https://refivu.com/papers/f8d23f12-d410-453f-876f-81958a16062a/figures/figure-ff9d25a55ad26aac189af534d53dcc50.png?thumb=512)

**Table 1** : Accuracy (%) by training data and test steps. All entries are means over 3 seeds (42, 2026, 12345); standard deviations are shown as subscripts.

[원문](https://arxiv.org/abs/2611.06438v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Nuo-Jing Liang, Xiao-Tong Yuan, Pan Zhou · Understanding the Out-of-Distribution Generalization of Chain-of-Thought Reasoning in LLMs · 원문 그림 인용 · 원본 PDF 8쪽에서 그림 영역을 추출했습니다.

## 상태 추적 절제와 연산 제외

Table 2는 다단계 샘플에서 특정 연산을 제외해도 CoT 설정의 9단계 정확도가 66.73에서 87.13 사이로 유지된다고 보고합니다. 같은 표의 No-CoT 설정은 모든 제외 연산에서 전반적으로 낮습니다. Figure 2와 Table 3은 중간 출력에서 남은 작업과 입력 문맥을 제거한 형식을 비교합니다. 이 절제에서 Avg.(Abl.)의 7단계 평균은 67.56이고 원래 설정의 Avg.(Orig.)는 85.37로 보고됩니다. 따라서 명시적 상태 추적이 이 설정에서 다단계 분해에 중요하다는 결과가 나옵니다. 이 결과는 상태 정보의 유지가 유익하다는 증거이며, 모든 구성요소가 항상 필요하다는 일반 인과 증명은 아닙니다.

![Table 2: Atom-Task: Accuracy (%) when an operation is excluded from multi-step samples. Entries are means over 3 seeds (42, 2026, 12345); standard deviations a…](https://refivu.com/papers/f8d23f12-d410-453f-876f-81958a16062a/figures/figure-0f346de1913654c28e1fae75dc855a98.png?thumb=512)

**Table 2** : Atom-Task: Accuracy (%) when an operation is excluded from multi-step samples. Entries are means over 3 seeds (42, 2026, 12345); standard deviations are shown as subscripts. Rev: Reverse, Dedup: Deduplicate, Sub: Substitute, Dup: Duplicate, Rot: Rotate.

[원문](https://arxiv.org/abs/2611.06438v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Nuo-Jing Liang, Xiao-Tong Yuan, Pan Zhou · Understanding the Out-of-Distribution Generalization of Chain-of-Thought Reasoning in LLMs · 원문 그림 인용 · 원본 PDF 9쪽에서 그림 영역을 추출했습니다.

![Figure 2: Comparison of complete vs. incomplete CoT state recordings](https://refivu.com/papers/f8d23f12-d410-453f-876f-81958a16062a/figures/figure-757770446f5edb3798fcd8ffb994a6dc.png?thumb=512)

**Figure 2** : Comparison of complete vs. incomplete CoT state recordings.

[원문](https://arxiv.org/abs/2611.06438v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Nuo-Jing Liang, Xiao-Tong Yuan, Pan Zhou · Understanding the Out-of-Distribution Generalization of Chain-of-Thought Reasoning in LLMs · 원문 그림 인용 · 원본 PDF 9쪽에서 그림 영역을 추출했습니다.

## GSM8K 실제 수학 추론 평가

GSM8K 실험은 Llama2-7B와 Qwen2.5-3B를 MetaMathQA 30,000개 샘플로 LoRA 미세조정한 뒤 GSM8K 테스트 세트에서 정확도를 측정합니다. 표 9에서 Qwen2.5-3B의 CoT 학습은 79.23 ±0.25, No-CoT 학습은 19.41 ±1.17로 보고되며, 미학습 기준선은 64.44입니다. Llama2-7B는 CoT 39.14 ±0.99, No-CoT 8.16 ±2.50입니다. 분포 이동 실험은 주제, 복잡도, 답의 규모 기준으로 샘플을 걸러낸 학습 집합에서 수행되며, 결과는 큰 붕괴 없이 유지됩니다. 이 결과는 MetaMathQA에서 GSM8K로의 통제된 계열 내 이동에 대한 것이며, 소스와 분리된 전이 일반화와 같지 않습니다.

![Table 9: GSM8K baseline and comparative re- sults. Each entry is a mean over 3 seeds (42, 2026, 12345)](https://refivu.com/papers/f8d23f12-d410-453f-876f-81958a16062a/figures/figure-e169175ac8e679a2dd9d98c905958332.png?thumb=512)

**Table 9** : GSM8K baseline and comparative re- sults. Each entry is a mean over 3 seeds (42, 2026, 12345).

[원문](https://arxiv.org/abs/2611.06438v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Nuo-Jing Liang, Xiao-Tong Yuan, Pan Zhou · Understanding the Out-of-Distribution Generalization of Chain-of-Thought Reasoning in LLMs · 원문 그림 인용 · 원본 PDF 29쪽에서 그림 영역을 추출했습니다.

![Table 10: GSM8K accuracy under distribution shifts. Each entry is a mean over 3 seeds (42, 2026, 12345)](https://refivu.com/papers/f8d23f12-d410-453f-876f-81958a16062a/figures/figure-d899f4beaa26a6a7824f7b72381eff1c.png?thumb=512)

**Table 10** : GSM8K accuracy under distribution shifts. Each entry is a mean over 3 seeds (42, 2026, 12345).

[원문](https://arxiv.org/abs/2611.06438v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Nuo-Jing Liang, Xiao-Tong Yuan, Pan Zhou · Understanding the Out-of-Distribution Generalization of Chain-of-Thought Reasoning in LLMs · 원문 그림 인용 · 원본 PDF 29쪽에서 그림 영역을 추출했습니다.

## 적용 범위와 한계

이론은 명시적 CoT가 지도 NTP 방식으로 학습되는 경우를 다룹니다. 중간 상태와 단계별 전이가 관측 가능한 설정입니다. 저자들은 강화 미세조정이나 테스트 시점 탐색처럼 궤적이 선택·보상되는 적응형 패러다임은 제외되며, 이를 확장하는 것은 향후 과제라고 밝힙니다. 또한 Theorem 1의 추가 계수와 Corollary의 추정 항은 각각 가정된 손실 한계, Lipschitz 조건, 용량 정규화 아래에서 얻어졌습니다. 실험은 주로 하나의 기호 벤치마크와 GSM8K에 한정되므로 이 결과를 모든 추론 과제의 일반 성질로 확대할 수 없습니다.

## 논문 정보

- **저자**: Nuo-Jing Liang, Xiao-Tong Yuan, Pan Zhou
- **학회·저널**: arXiv · 프리프린트
- **최초 공개일**: 2026년 11월 4일
- **등록일**: 2026년 11월 6일
- **수정일**: 2026년 11월 4일
- **버전**: v1
- **arXiv**: 2611.06438
- **분류**: cs.LG · stat.ML
- **원문 이용 조건**: [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/)
- **제공 범위**: 논문 정보, 해설, 허용된 원문 그림

[논문 원문 ↗](https://arxiv.org/abs/2611.06438v1) · [원문 PDF ↗](https://arxiv.org/pdf/2611.06438v1)

AI 해설은 논문 원문과 별개의 설명이며 오류가 있을 수 있습니다. 원문과 그림은 각 출처의 이용 조건과 따로 표시된 권리를 따릅니다.

## 초록

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 $T$ denote the number of reasoning steps in the target task, $n$ the number of training samples per sub-task, and $k$ 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 $\\mathcal{O}(k)$ that is independent of $T$, although the summed risk itself may still grow with $T$. A Rademacher-complexity analysis further shows that the estimation term is of order $\\mathcal{O}(\\sqrt{T/n})$, rather than linear in $T$, 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 $\\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 $Ω(\\sqrt{T/n})$ when $T\\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.

## 원문 인용

Nuo-Jing Liang, Xiao-Tong Yuan, Pan Zhou (2026). Understanding the Out-of-Distribution Generalization of Chain-of-Thought Reasoning in LLMs. arXiv:2611.06438v1. https://arxiv.org/abs/2611.06438v1

**BibTeX**

```
@misc{liang2026understanding,
  title = {{Understanding the Out-of-Distribution Generalization of Chain-of-Thought Reasoning in LLMs}},
  author = {Nuo-Jing Liang and Xiao-Tong Yuan and Pan Zhou},
  year = {2026},
  eprint = {2611.06438},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.06438v1}
}
```

## 이 논문의 용어

- [accuracy](https://refivu.com/terms/1995c0cd6282-accuracy)
- [GSM8K](https://refivu.com/terms/e48f0e01064d-gsm8k)
- [teacher forcing](https://refivu.com/terms/5af8c5103329-teacher-forcing)
- [Rademacher complexity](https://refivu.com/terms/f0eba546910c-rademacher-complexity)

## 다른 논문 해설

- [Neural-Symbolic Computing: An Effective Methodology for Principled Integration of Machine Learning and Reasoning](https://refivu.com/papers/587df0e3-05ee-43a3-99c8-d8f40d9fdee1-neural-symbolic-computing-an-effective-methodology-for.md)
- [MammoExpert: Benchmarking Chain-of-Thought Reasoning in Mammography Diagnosis](https://refivu.com/papers/5d18b914-72fe-49e1-8f82-4bcd414741e4-mammoexpert-benchmarking-chain-of-thought-reasoning-in.md)
- [Monitor Jailbreaking: Evading Chain-of-Thought Monitoring Without Encoded Reasoning](https://refivu.com/papers/536c0063-f701-46f5-a9cc-3e19ce4cf3f8-monitor-jailbreaking-evading-chain-of-thought-monitoring.md)
- [A Chain-of-Thought Is as Strong as Its Weakest Link: A Benchmark for Verifiers of Reasoning Chains](https://refivu.com/papers/ea859f96-c494-47db-8972-d4ac3ab00e2f-a-chain-of-thought-is-as-strong-as.md)
- [Look Light, Think Heavy: What Multimodal Chain-of-Thought Reasoning Can and Cannot Do](https://refivu.com/papers/2dc3d790-6ec4-4a0e-a2a8-506e71af773a-look-light-think-heavy-what-multimodal-chain-of.md)
- [Unveiling Confirmation Bias in Chain-of-Thought Reasoning](https://refivu.com/papers/6ae25ef8-ebff-4064-8e91-12ba19b88aa9-unveiling-confirmation-bias-in-chain-of-thought-reasoning.md)
- [Consistent Submodular Maximization with Full Foresight](https://refivu.com/papers/581075e3-e4d0-4abc-a9f5-d93e53320471-consistent-submodular-maximization-with-full-foresight.md)
- [Hybrid LLM-Deterministic Pipelines for Enterprise-Scale Code Migration at Bloomberg](https://refivu.com/papers/f466e761-b70f-4c9b-b1d0-510cf418ddc8-hybrid-llm-deterministic-pipelines-for-enterprise-scale-code.md)
- [Off-Policy Deep Reinforcement Learning without Exploration](https://refivu.com/papers/997f4405-73fe-49b5-a89f-243df2c90604-off-policy-deep-reinforcement-learning-without-exploration.md)
- [Large Scale GAN Training for High Fidelity Natural Image Synthesis](https://refivu.com/papers/93f6ad29-8cca-4630-9a3b-d12f9ad91854-large-scale-gan-training-for-high-fidelity-natural.md)
- [Decoupled Weight Decay Regularization](https://refivu.com/papers/19eca1c5-1291-475b-a58c-daedbe769654-decoupled-weight-decay-regularization.md)
- [Deep Reinforcement Learning in a Handful of Trials using Probabilistic Dynamics Models](https://refivu.com/papers/7e2537c1-771a-440a-8d0f-51287b1afd57-deep-reinforcement-learning-in-a-handful-of-trials.md)

---

AI 해설에는 오류가 있을 수 있습니다. [Refivu](https://refivu.com/papers/f8d23f12-d410-453f-876f-81958a16062a-understanding-the-out-of-distribution-generalization-of)
