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

从有害到有助:将推理上下文示例转化为推理语言模型的资产

From Harm to Help: Turning Reasoning In-Context Demos into Assets for Reasoning LMs

National University of Singapore(新加坡国立大学);MiroMind AI;University of Sydney(悉尼大学)

Haonan Wang, Weida Liang, Zihang Fu, Nie Zheng, Yifan Zhang, Yao Tong, Tongyao Zhu, Hao Jiang, Chuang Li, Jiaying Wu, Kenji Kawaguchi

AI总结:

针对少样本 CoT 反而削弱推理 LLM 的问题,本文提出 I2S/I2S+ 测试时方法,将示范提炼为可复用洞见并生成目标推理链,在多类模型与基准上稳定提升性能。

摘要:

近期的推理大语言模型(RLM),尤其是那些采用基于验证器的强化学习训练的模型,在少样本思维链(CoT)条件下的表现往往不如直接作答。我们利用来自 DeepSeek-R1 的高质量推理轨迹作为示范,重新审视这一悖论,并发现增加更多示例会持续降低准确率,即使示范是最优的也不例外。详细分析揭示了这种性能下降背后的两种机制:(i)语义误导,即高文本相似度导致模型将目标问题视为与示例相同,并逐字复制中间步骤;(ii)策略迁移失败,即模型难以提取有用的推理策略并将其应用于目标问题。在此指导下,我们提出 Insight-to-Solve(I2S),这是一种顺序式测试时过程,可将示范转化为显式、可复用的洞见,并推导出针对目标问题的推理轨迹;可选地,推理还可进行自我精炼以提升连贯性和正确性(I2S+)。在多样化基准上的大量实验表明,I2S 和 I2S+ 在开源和闭源模型中均持续优于直接作答和测试时扩展基线。即使对于 GPT 模型,我们的方法也有帮助:在 AIME'25 上,GPT-4.1 提升了 14.0%,o1-mini 在 AIME 上提升 2.7%、在 GPQA 上提升 1.7%,表明上下文示范可通过“洞见—精炼—求解”框架得到有效利用。

英文摘要:

Recent reasoning LLMs (RLMs), especially those trained with verifier-based reinforcement learning, often perform worse with few-shot CoT than with direct answering. We revisit this paradox using high-quality reasoning traces from DeepSeek-R1 as demonstrations and find that adding more exemplars consistently degrades accuracy, even when demonstrations are optimal. A detailed analysis reveals two mechanisms behind this decline: (i) semantic misguidance, where high textual similarity leads the model to treat the target as the same as the exemplar and to copy intermediate steps verbatim; and (ii) strategy transfer failure, where the model struggles to extract useful reasoning strategies and apply them to target questions. Guided by these, we introduce Insight-to-Solve (I2S), a sequential test-time procedure that turns demonstrations into explicit, reusable insights and derives a target-specific reasoning trace; optionally, the reasoning is self-refined for coherence and correctness (I2S+). Extensive experiments on diverse benchmarks show that I2S and I2S+ consistently outperform both direct answering and test-time scaling baselines across open- and closed-source models. Even for GPT models, our method helps: on AIME'25, GPT-4.1 rises by +14.0%, and o1-mini improves by +2.7% on AIME and +1.7% on GPQA, indicating that in-context demonstrations can be harnessed effectively via insight-refine-solve framework.

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

↑