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

BoostStep:通过改进的单步推理提升大型语言模型的数学能力

BoostStep: Boosting mathematical capability of Large Language Models via improved single-step reasoning

Shanghai AI Laboratory(上海人工智能实验室);Shanghai Jiao Tong University(上海交通大学);The Chinese University of Hong Kong(香港中文大学)

Beichen Zhang, Yuhong Liu, Xiaoyi Dong, Yuhang Zang, Pan Zhang, Haodong Duan, Yuhang Cao, Dahua Lin, Jiaqi Wang

AI总结:

提出 BoostStep 步骤对齐 ICL 方法,通过匹配参考推理步骤并结合“首次尝试”策略,提升 LLM 数学推理及树搜索决策性能。

摘要:

大型语言模型(LLM)已在通过多步推理解决复杂数学问题方面展现出令人瞩目的能力,并且可以借助精心设计的上下文学习(ICL)示例得到进一步增强。然而,这一潜力通常受到 ICL 中两大挑战的限制:粒度不匹配和无关信息。我们观察到,尽管 LLM 擅长分解数学问题,但它们往往在细粒度步骤中出现推理错误。此外,在问题层面检索到的 ICL 示例可能会遗漏关键步骤,甚至因无关细节误导模型。为解决这一问题,我们提出 BoostStep,这是一种通过步骤对齐 ICL 提升推理准确性的方法;步骤对齐 ICL 是一种新颖机制,会谨慎地将检索到的参考步骤与相应推理步骤对齐。此外,BoostStep 结合了有效的“首次尝试”策略,以提供与当前推理状态高度相关的范例。BoostStep 是一种灵活且强大的方法,可与思维链(CoT)和树搜索算法无缝集成,从而改进候选选择和决策。实验结果表明,BoostStep 在多个数学基准上将 GPT-4o 的 CoT 性能提升 4.6%,显著超过传统少样本学习 1.2% 的提升。而且,它与树搜索结合时可实现额外 7.5% 的增益。令人惊讶的是,它能增强最先进的 LLM,使其使用更简单的示例解决具有挑战性的数学问题。它仅利用来自 MATH 数据集的简单示例,就将 DeepSeek-R1-671B 在 AIME 上的性能提升了 2.2%。

英文摘要:

Large language models (LLMs) have demonstrated impressive ability in solving complex mathematical problems with multi-step reasoning and can be further enhanced with well-designed in-context learning (ICL) examples. However, this potential is often constrained by two major challenges in ICL: granularity mismatch and irrelevant information. We observe that while LLMs excel at decomposing mathematical problems, they often struggle with reasoning errors in fine-grained steps. Moreover, ICL examples retrieved at the question level may omit critical steps or even mislead the model with irrelevant details. To address this issue, we propose BoostStep, a method that enhances reasoning accuracy through step-aligned ICL, a novel mechanism that carefully aligns retrieved reference steps with the corresponding reasoning steps. Additionally, BoostStep incorporates an effective "first-try" strategy to deliver exemplars highly relevant to the current state of reasoning. BoostStep is a flexible and powerful method that integrates seamlessly with chain-of-thought (CoT) and tree search algorithms, refining both candidate selection and decision-making. Empirical results show that BoostStep improves GPT-4o's CoT performance by 4.6% across mathematical benchmarks, significantly surpassing traditional few-shot learning's 1.2%. Moreover, it can achieve an additional 7.5\% gain combined with tree search. Surprisingly, it enhances state-of-the-art LLMs to solve challenging math problems using simpler examples. It improves DeepSeek-R1-671B's performance on AIME by 2.2%, leveraging simple examples only from the MATH dataset.

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

↑