arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2505.21097cs.CLcs.AIcs.LG
收藏

Thinker:学习快速与慢速思考

Thinker: Learning to Think Fast and Slow

University of Cambridge(剑桥大学);The University of Hong Kong(香港大学);Shanghai AI Lab(上海人工智能实验室)

Stephen Chung, Wenyu Du, Jie Fu

AI总结:

受双重过程理论启发,提出四阶段问答任务(快速思考、验证、慢速思考、总结),通过强化学习提升LLM推理能力,显著提高准确率并增强推理效率。

摘要:

近期研究表明,通过在数学和编程等领域对问答(QA)任务应用强化学习(RL),可以提升大型语言模型(LLMs)的推理能力。在长上下文长度下,LLMs可能学会执行搜索,这体现在DeepSeek R1中观察到的自我纠正行为。然而,这种搜索行为往往不精确且缺乏置信度,导致响应冗长且重复,凸显了直觉和验证方面的不足。受心理学中双重过程理论的启发,我们对问答任务引入了一项简单修改,包含四个阶段:快速思考(Fast Thinking),即LLM必须在严格的令牌预算内作答;验证(Verification),即模型评估其初始响应;慢速思考(Slow Thinking),即模型通过更多深思熟虑来改进初始响应;以及总结(Summarization),即将前一阶段的改进提炼为精确步骤。我们提出的任务将Qwen2.5-1.5B的平均准确率从25.6%提升至27.3%,并将DeepSeek-R1-Qwen-1.5B的平均准确率从45.9%提升至51.0%。值得注意的是,对于Qwen2.5-1.5B,仅快速思考模式在少于1000个令牌的情况下即可达到25.2%的准确率,展示了显著的推理效率提升。这些发现表明,直觉和深思熟虑的推理是截然不同且互补的系统,能够从有针对性的训练中受益。此外,我们已开源了训练后的模型和源代码。

英文摘要:

Recent studies show that the reasoning capabilities of Large Language Models (LLMs) can be improved by applying Reinforcement Learning (RL) to question-answering (QA) tasks in areas such as math and coding. With a long context length, LLMs may learn to perform search, as indicated by the self-correction behavior observed in DeepSeek R1. However, this search behavior is often imprecise and lacks confidence, resulting in long, redundant responses and highlighting deficiencies in intuition and verification. Inspired by the Dual Process Theory in psychology, we introduce a simple modification to the QA task that includes four stages: Fast Thinking, where the LLM must answer within a strict token budget; Verification, where the model evaluates its initial response; Slow Thinking, where it refines the initial response with more deliberation; and Summarization, where it distills the refinement from the previous stage into precise steps. Our proposed task improves average accuracy from 25.6% to 27.3% for Qwen2.5-1.5B, and from 45.9% to 51.0% for DeepSeek-R1-Qwen-1.5B. Notably, for Qwen2.5-1.5B, the Fast Thinking mode alone achieves 25.2% accuracy using fewer than 1000 tokens, demonstrating substantial inference efficiency gains. These findings suggest that intuition and deliberative reasoning are distinct, complementary systems benefiting from targeted training. Additionally, we have open-sourced both the trained models and the source code.

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

↑