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

推理步扩展揭示弱点:解密和改进大语言模型中的推理泛化

Scaling Reasoning Hop Exposes Weaknesses: Demystifying and Improving Hop Generalization in Large Language Models

University of Science and Technology of China(中国科学技术大学);City University of Hong Kong(香港城市大学);Zhejiang University(浙江大学);City University of Hong Kong, Shenzhen Research Institute(香港城市大学深圳研究院)

Zhaoyi Li, Jiatong Li, Gangwei Jiang, Linqi Song, Defu Lian, Ying Wei

AI总结:

本文通过多领域任务研究发现,推理错误集中在少数关键错误类型的位置,而非均匀分布。提出在推理过程中动态识别并禁用错误处理头,从而提升推理步泛化能力。

摘要:

链式推理(CoT)推理已成为使大语言模型(LLMs)解决复杂问题的标准范式。然而,最近的研究揭示了在推理步泛化场景中性能显著下降的问题,即所需推理步骤数超过训练分布时,底层算法未变。驱动这一失败的内部机制尚不明确。在本文中,我们对多个领域的任务进行了系统研究,发现错误集中在少数关键错误类型的token位置,而非均匀分布。更深入的检查发现,这些token层面的错误预测源于内部竞争机制:某些称为错误处理头(ep heads)的注意力头通过放大错误推理轨迹而抑制正确轨迹。值得注意的是,在推理过程中移除单个ep heads通常可以恢复正确预测。受这些见解启发,我们提出了推理过程中的测试时间修正,一种轻量级干预方法,可动态识别并禁用推理过程中的ep heads。在不同任务和LLM上的广泛实验表明,它一致地提高了推理步泛化能力,突显了其有效性和潜力。

英文摘要:

Chain-of-thought (CoT) reasoning has become the standard paradigm for enabling Large Language Models (LLMs) to solve complex problems. However, recent studies reveal a sharp performance drop in reasoning hop generalization scenarios, where the required number of reasoning steps exceeds training distributions while the underlying algorithm remains unchanged. The internal mechanisms driving this failure remain poorly understood. In this work, we conduct a systematic study on tasks from multiple domains, and find that errors concentrate at token positions of a few critical error types, rather than being uniformly distributed. Closer inspection reveals that these token-level erroneous predictions stem from internal competition mechanisms: certain attention heads, termed erroneous processing heads (ep heads), tip the balance by amplifying incorrect reasoning trajectories while suppressing correct ones. Notably, removing individual ep heads during inference can often restore the correct predictions. Motivated by these insights, we propose test-time correction of reasoning, a lightweight intervention method that dynamically identifies and deactivates ep heads in the reasoning process. Extensive experiments across different tasks and LLMs show that it consistently improves reasoning hop generalization, highlighting both its effectiveness and potential.

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

↑