arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2502.04667cs.LGcs.AIcs.CL
收藏

通过Co-T训练从已学技能中实现组合泛化:一种理论和结构分析用于推理

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

Gaoling School of Artificial Intelligence, Renmin University of China(中国人民大学人工智能学院);Beijing Key Laboratory of Research on Large Models and Intelligent Governance(北京大型模型与智能治理研究重点实验室);Engineering Research Center of Next-Generation Intelligent Search and Recommendation, MOE(下一代智能搜索与推荐工程研究中心,教育部);Tianjin University of Science and Technology(天津科技大学);Beijing Institute of Technology(北京理工大学)

Xinhao Yao, Ruifeng Ren, Yun Liao, Lizhong Ding, Yong Liu

AI总结:

本文通过理论和结构分析揭示CoT训练通过组合学习技能提升模型推理泛化能力的核心机制。

摘要:

链式思维(CoT)训练显著提升了大型语言模型(LLMs)的推理能力,但CoT训练如何增强泛化能力的机制仍不充分。在本工作中,我们证明了组合泛化是根本性的:模型在CoT训练中系统地结合更简单的学习技能来解决新且更复杂的问题。通过理论和结构分析,我们正式化了这一过程:1)理论上,通过分布分歧的信息理论泛化界限可以分解为分布内(ID)和分布外(OOD)组成部分。具体来说,非CoT模型在OOD任务上失败是由于未见过的组合模式,而CoT训练的模型通过组合之前学习的技能实现强大的泛化。此外,受控实验和现实验证确认CoT训练加速了收敛并增强了从ID到ID和OOD场景的泛化能力,同时在可容忍的噪声下保持稳健性能。2)结构上,CoT训练将推理内部化为一个两阶段组合电路,其中阶段数对应于训练期间的显式推理步骤。值得注意的是,CoT训练的模型在更浅的层解决中间结果,比非CoT模型更少,从而让更深层的层专注于后续的推理步骤。一个关键见解是CoT训练教会模型如何思考——通过促进组合推理——而不是仅仅告诉模型应该思考什么,仅通过提供正确答案。本文为设计CoT策略以增强LLMs推理鲁棒性提供了有价值的见解。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑