arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2502.18273cs.CL
收藏

超越分布内表现:CoT粒度的缩放曲线对语言模型泛化能力的提升

Beyond In-Distribution Success: Scaling Curves of CoT Granularity for Language Model Generalization

Ru Wang, Wei Huang, Selena Song, Haoyu Zhang, Qian Niu, Yusuke Iwasawa, Yutaka Matsuo, Jiaxian Guo

AI总结:

本文通过实验揭示CoT数据粒度与泛化性能的关联,证明CoT在减少样本需求的同时提升模型在分布偏移任务中的泛化能力。

摘要:

在分布偏移下向新复杂任务泛化对部署基于变换器的语言模型(LMs)至关重要。本文研究了链式推理(CoT)作为增强OOD泛化的方法。通过在多个复杂任务上的受控实验,我们揭示了三个关键见解:(1)经过问答训练的模型在分布内准确率接近完美,但其OOD性能在训练数据超过10000k+时急剧下降;(2)CoT数据的粒度与泛化性能强相关,更细粒度的CoT数据导致更好的泛化;(3)CoT表现出显著的样本效率,用更少(甚至80%)的数据即可达到问答性能。理论上,我们证明复杂任务本质上允许Q-A数据中的捷径,这些捷径与真实推理原则不一致,而CoT强制内部化有效的依赖结构,从而实现更好的泛化。此外,我们还表明变换器位置嵌入可以通过强调长CoT序列中的子任务条件重复来增强泛化能力。我们的理论和实证分析提供了有力证据,证明CoT推理作为训练范式,对于在现实世界分布偏移下实现复杂任务的语言模型泛化至关重要。

英文摘要:

Generalization to novel compound tasks under distribution shift is important for deploying transformer-based language models (LMs). This work investigates Chain-of-Thought (CoT) reasoning as a means to enhance OOD generalization. Through controlled experiments across several compound tasks, we reveal three key insights: (1) While QA-trained models achieve near-perfect in-distribution accuracy, their OOD performance degrades catastrophically, even with 10000k+ training examples; (2) the granularity of CoT data strongly correlates with generalization performance; finer-grained CoT data leads to better generalization; (3) CoT exhibits remarkable sample efficiency, matching QA performance with much less (even 80%) data. Theoretically, we demonstrate that compound tasks inherently permit shortcuts in Q-A data that misalign with true reasoning principles, while CoT forces internalization of valid dependency structures, and thus can achieve better generalization. Further, we show that transformer positional embeddings can amplify generalization by emphasizing subtask condition recurrence in long CoT sequences. Our combined theoretical and empirical analysis provides compelling evidence for CoT reasoning as a crucial training paradigm for enabling LM generalization under real-world distributional shifts for compound tasks.

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

↑