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

内在推理能力不足:上下文学习以更少过度思考增强推理大语言模型

Innate Reasoning is Not Enough: In-Context Learning Enhances Reasoning Large Language Models with Less Overthinking

AI Safety of Chinese Academy of Sciences, Institute of Computing Technology, CAS(中国科学院人工智能安全研究院,中国科学院计算技术研究所);University of California, Merced(加州大学默塞德分校);Shenzhen International Graduate School, Tsinghua University(清华大学深圳国际研究生院);University of Chinese Academy of Sciences(中国科学院大学)

Yuyao Ge, Shenghua Liu, Yiwei Wang, Lingrui Mei, Lizhe Chen, Baolong Bi, Xueqi Cheng

AI总结:

本研究首次全面分析零样本与少样本CoT提示对推理大语言模型的影响,发现CoT提示能显著提升性能、减少过度反思,并揭示单样本CoT优于少样本CoT,为优化提示策略提供关键见解。

摘要:

大型语言模型(LLMs)的最新进展催生了推理大型语言模型(RLLMs),这些模型通过扩展思考过程并具备反思和自我修正能力,展示了测试时扩展的有效性。RLLMs展现出从训练中获得的固有思维链(CoT)推理能力,这引出一个自然的问题:“对于聊天LLMs而言,一种流行的上下文学习(ICL)方法——CoT提示,是否是增强RLLMs推理能力所必需的呢?”在这项工作中,我们首次全面分析了零样本CoT和少样本CoT对RLLMs在数学推理任务上的影响。我们考察了从1.5B到32B参数规模的模型,发现与担忧相反,CoT提示在大多数场景下显著提升了RLLMs的性能。我们的结果揭示了不同的模式:大容量模型在简单任务上提升甚微,但在复杂问题上收益显著,而较小模型则表现出相反的行为。进一步分析表明,CoT提示能有效控制思考令牌和推理步骤数量的分布,在某些情况下将过度反思减少约90%。此外,注意力对数分析揭示了RLLMs对反思相关词汇的过拟合,而这种过拟合通过外部CoT指导得到缓解。值得注意的是,我们的实验表明,对于RLLMs而言,单样本CoT始终优于少样本CoT方法。我们的发现为通过适当的提示策略优化RLLMs性能提供了重要见解。

英文摘要:

Recent advances in Large Language Models (LLMs) have introduced Reasoning Large Language Models (RLLMs), which employ extended thinking processes with reflection and self-correction capabilities, demonstrating the effectiveness of test-time scaling. RLLMs exhibit innate Chain-of-Thought (CoT) reasoning capability obtained from training, leading to a natural question: "Is CoT prompting, a popular In-Context Learning (ICL) method for chat LLMs, necessary to enhance the reasoning capability of RLLMs?" In this work, we present the first comprehensive analysis of the impacts of Zero-shot CoT and Few-shot CoT on RLLMs across mathematical reasoning tasks. We examine models ranging from 1.5B to 32B parameters, finding that contrary to concerns, CoT prompting significantly enhances RLLMs' performance in most scenarios. Our results reveal distinct patterns: large-capacity models show minimal improvement on simple tasks but substantial gains on complex problems, while smaller models exhibit the opposite behavior. Further analysis demonstrates that CoT prompting effectively controls the distribution of the numbers of thinking tokens and reasoning steps, reducing excessive reflections by approximately 90% in some cases. Moreover, attention logits analysis reveals the RLLMs' overfitting to reflection-related words, which is mitigated by external CoT guidance. Notably, our experiments indicate that for RLLMs, one-shot CoT consistently yields superior performance compared to Few-shot CoT approaches. Our findings provide important insights for optimizing RLLMs' performance through appropriate prompting strategies.

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

↑