mlsanityData to 7 Oct 2026

Compositional Generalization from Learned Skills via CoT Training: A Theoretical and Structural Analysis for Reasoning

arXiv 2502.04667 ↗First posted 7 Feb 2025cs.LG cs.AI cs.CLcited by 10

On the map: LLM reasoning → Prompting and chain-of-thought reasoning

Abstract (arXiv)

Chain-of-Thought (CoT) training has markedly advanced the reasoning capabilities of large language models (LLMs), yet the mechanisms by which CoT training enhances generalization remain inadequately understood. In this work, we demonstrate that compositional generalization is fundamental: models systematically combine simpler learned skills during CoT training to address novel and more complex problems. Through a theoretical and structural analysis, we formalize this process: 1) Theoretically, the information-theoretic generalization bounds through distributional divergence can be decomposed into in-distribution (ID) and out-of-distribution (OOD) components. Specifically, the non-CoT models fail on OOD tasks due to unseen compositional patterns, whereas CoT-trained models achieve strong generalization by composing previously learned skills. In addition, controlled experiments and real-world validation confirm that CoT training accelerates convergence and enhances generalization from ID to both ID and OOD scenarios while maintaining robust performance even with tolerable noise. 2) Structurally, CoT training internalizes reasoning into a two-stage compositional circuit, where the number of stages corresponds to the explicit reasoning steps during training. Notably, CoT-trained models resolve intermediate results at shallower layers compared to non-CoT counterparts, freeing up deeper layers to specialize in subsequent reasoning steps. A key insight is that CoT training teaches models how to think-by fostering compositional reasoning-rather than merely what to think, through the provision of correct answers alone. This paper offers valuable insights for designing CoT strategies to enhance LLMs' reasoning robustness.

Key facts. Cited by 10 papers in the map (data through 7 Oct 2026). Placed in Prompting and chain-of-thought reasoning, one of 17 directions in LLM reasoning. Builds on 90 of its 139 references that are in the map. First posted on arXiv 7 Feb 2025.

Builds on

90 of 139 references.

Closest ancestors · 19

Same direction, newest first

  1. 2025Enhancing Generalization in Chain of Thought Reasoning for Smaller Models16 Jan
  2. 2024Training Large Language Models to Reason in a Continuous Latent Space9 Dec
  3. 2024Transformers Provably Solve Parity Efficiently with Chain of Thought11 Oct
  4. 2024From Sparse Dependence to Sparse Attention: Unveiling How Chain-of-Thought Enhances Transformer Sample Efficiency7 Oct
  5. 2024Training Nonlinear Transformers for Chain-of-Thought Inference: A Theoretical Generalization Analysis3 Oct
  6. 2024Unveiling the Statistical Foundations of Chain-of-Thought Prompting Methods25 Aug
  7. 2024Deciphering the Factors Influencing the Efficacy of Chain-of-Thought: Probability, Memorization, and Noisy Reasoning1 Jul
  8. 2024Iteration Head: A Mechanistic Study of Chain-of-Thought4 Jun
  9. 2024From Explicit CoT to Implicit CoT: Learning to Internalize CoT Step by Step23 May
  10. 2024Chain of Thought Empowers Transformers to Solve Inherently Serial Problems20 Feb
  11. 2023Implicit Chain of Thought Reasoning via Knowledge Distillation2 Nov
  12. 2023Towards Revealing the Mystery behind Chain of Thought: A Theoretical Perspective24 May
7 more
  1. 2023The CoT Collection: Improving Zero-shot and Few-shot Learning of Language Models via Chain-of-Thought Fine-Tuning23 May
  2. 2023Why think step by step? Reasoning emerges from the locality of experience7 Apr
  3. 2022Large Language Models Are Reasoning Teachers20 Dec
  4. 2022Text and Patterns: For Effective Chain of Thought, It Takes Two to Tango16 Sep
  5. 2022Least-to-Most Prompting Enables Complex Reasoning in Large Language Models21 May
  6. 2022Iteratively Prompt Pre-trained Language Models for Chain of Thought16 Mar
  7. 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Models28 Jan

Other references · 71

  1. 2017Attention Is All You Needcited by 59,932
  2. 2019PyTorch: An Imperative Style, High-Performance Deep Learning Librarycited by 20,160
  3. 2023LLaMA: Open and Efficient Foundation Language Modelscited by 13,958
  4. 2021Training Verifiers to Solve Math Word Problemscited by 9,743
  5. 2024DeepSeekMath: Pushing the Limits of Mathematical Reasoning in Open Language Modelscited by 8,851
  6. 2020Scaling Laws for Neural Language Modelscited by 6,411
  7. 2023Let's Verify Step by Stepcited by 3,598
  8. 2023Tree of Thoughts: Deliberate Problem Solving with Large Language Modelscited by 3,155
  9. 2022Locating and Editing Factual Associations in GPTcited by 2,609
  10. 2022Interpretability in the Wild: a Circuit for Indirect Object Identification in GPT-2 smallcited by 1,130
  11. 2022Measuring and Narrowing the Compositionality Gap in Language Modelscited by 1,054
  12. 2022STaR: Bootstrapping Reasoning With Reasoningcited by 895
38 more
  1. 2023Math-Shepherd: Verify and Reinforce LLMs Step-by-step without Human Annotationscited by 895
  2. 2023Reasoning with Language Model is Planning with World Modelcited by 846
  3. 2023Progress measures for grokking via mechanistic interpretabilitycited by 822
  4. 2023MetaMath: Bootstrap Your Own Mathematical Questions for Large Language Modelscited by 724
  5. 2023Distilling Step-by-Step! Outperforming Larger Language Models with Less Training Data and Smaller Model Sizescited by 710
  6. 2023Towards Automated Circuit Discovery for Mechanistic Interpretabilitycited by 700
  7. 2022Grokking: Generalization Beyond Overfitting on Small Algorithmic Datasetscited by 599
  8. 2022Decomposed Prompting: A Modular Approach for Solving Complex Taskscited by 554
  9. 2023Dissecting Recall of Factual Associations in Auto-Regressive Language Modelscited by 512
  10. 2023MAmmoTH: Building Math Generalist Models through Hybrid Instruction Tuningcited by 483
  11. 2024Generative Verifiers: Reward Modeling as Next-Token Predictioncited by 465
  12. 2023Towards Best Practices of Activation Patching in Language Models: Metrics and Methodscited by 328
  13. 2025Demystifying Long Chain-of-Thought Reasoning in LLMscited by 323
  14. 2017Information-theoretic analysis of generalization capability of learning algorithmscited by 299
  15. 2023MQuAKE: Assessing Knowledge Editing in Language Models via Multi-Hop Questionscited by 292
  16. 2024PiSSA: Principal Singular Values and Singular Vectors Adaptation of Large Language Modelscited by 261
  17. 2023Evaluating the Ripple Effects of Knowledge Editing in Language Modelscited by 238
  18. 2024ReFT: Reasoning with Reinforced Fine-Tuningcited by 236
  19. 2024Patchscopes: A Unifying Framework for Inspecting Hidden Representations of Language Modelscited by 225
  20. 2023Looped Transformers as Programmable Computerscited by 224
  21. 2023How does GPT-2 compute greater-than?: Interpreting mathematical abilities in a pre-trained language modelcited by 199
  22. 2023Self-Evaluation Guided Beam Search for Reasoningcited by 195
  23. 2024Do Large Language Models Latently Perform Multi-Hop Reasoning?cited by 165
  24. 2024Teaching Large Language Models to Reason with Reinforcement Learningcited by 158
  25. 2024The pitfalls of next-token predictioncited by 156
  26. 2020Reasoning About Generalization via Conditional Mutual Informationcited by 145
  27. 2024Stream of Search (SoS): Learning to Search in Languagecited by 141
  28. 2022Analyzing Transformers in Embedding Spacecited by 131
  29. 2023Non-Parametric Outlier Synthesiscited by 129
  30. 2022Is Out-of-Distribution Detection Learnable?cited by 109
  31. 2023How do Language Models Bind Entities in Context?cited by 102
  32. 2015How much does your data exploration overfit? Controlling bias via information usagecited by 95
  33. 2024Looped Transformers for Length Generalizationcited by 91
  34. 2023A Mechanistic Interpretation of Arithmetic Reasoning in Language Models using Causal Mediation Analysiscited by 88
  35. 2023Testing the General Deductive Reasoning Capacity of Large Language Models Using OOD Examplescited by 84
  36. 2024Hopping Too Late: Exploring the Limitations of Large Language Models on Multi-Hop Queriescited by 78
  37. 2024LLM Reasoners: New Evaluation, Library, and Analysis of Step-by-Step Reasoning with Large Language Modelscited by 70
  38. 2023Can LMs Learn New Entities from Descriptions? Challenges in Propagating Injected Knowledgecited by 66

50 most cited of 71 All 71 (JSON)

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2025: 5; 2026: 5.

10 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2025Beyond In-Distribution Success: Scaling Curves of CoT Granularity for Language Model Generalization
  2. 2025Learning Composable Chains-of-Thought
  3. 2023Skills-in-Context Prompting: Unlocking Compositionality in Large Language Models
  4. 2023Dissecting Chain-of-Thought: Compositionality through In-Context Filtering and Learning
  5. 2026Learning to Reason with Curriculum II: Compositional Generalization
  6. 2025Unveiling the Key Factors for Distilling Chain-of-Thought Reasoning
  7. 2025The Kinetics of Reasoning: How Chain-of-Thought Shapes Learning in Transformers?
  8. 2026Compositional Reasoning in Language Models under Reinforcement Learning Post-Training