让大模型先思考再输出,提升复杂推理能力
Thinking Before You Speak: A Proactive Test-time Scaling Approach
- 在推理步骤间主动插入洞察性文本,引导下一步思考
- 在MATH、GSM8K等数据集上准确率提升5.2%~8.7%
- 无需人工标注或微调,自动构建高质量推理示例
大语言模型在数学等复杂推理任务中表现不佳,源于人类实际思考模式与训练数据中呈现的模式存在差异。人类解决复杂问题时会先深入思考,但通常不会表达其内在意图和方法选择。因此,训练数据中缺少连接推理步骤的关键洞察。为此,我们提出在连续推理步骤间插入主动生成的‘洞察’,用于评估当前进展并启动下一步推理。与以往依赖静态提示或固定流程不同,这些‘洞察’是动态且前瞻性的。我们构建了名为「思考先于表达」(TBYS)的推理框架,并设计自动化管道,用于收集和筛选上下文示例以生成‘洞察’,显著降低人工标注与微调成本。在MATH、GSM8K等挑战性数学数据集上的实验验证了其有效性。
原文摘要 · Abstract (English)
Large Language Models (LLMs) often exhibit deficiencies with complex reasoning tasks, such as maths, which we attribute to the discrepancy between human reasoning patterns and those presented in the LLMs' training data. When dealing with complex problems, humans tend to think carefully before expressing solutions. However, they often do not articulate their inner thoughts, including their intentions and chosen methodologies. Consequently, critical insights essential for bridging reasoning steps may be absent in training data collected from human sources. To bridge this gap, we proposes inserting \emph{insight}s between consecutive reasoning steps, which review the status and initiate the next reasoning steps. Unlike prior prompting strategies that rely on a single or a workflow of static prompts to facilitate reasoning, \emph{insight}s are \emph{proactively} generated to guide reasoning processes. We implement our idea as a reasoning framework, named \emph{Thinking Before You Speak} (TBYS), and design a pipeline for automatically collecting and filtering in-context examples for the generation of \emph{insight}s, which alleviates human labeling efforts and fine-tuning overheads. Experiments on challenging mathematical datasets verify the effectiveness of TBYS. Project website: https://gitee.com/jswrt/TBYS
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。