arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2410.12934cs.CL
收藏

通过逐步纠正增强LLMs的数学推理能力

Enhancing Mathematical Reasoning in LLMs by Stepwise Correction

University of Notre Dame(圣母大学)

Zhenyu Wu, Qingkai Zeng, Zhihan Zhang, Zhaoxuan Tan, Chao Shen, Meng Jiang

AI总结:

提出StepCo提示方法,通过迭代验证和修改阶段帮助LLMs识别并纠正推理路径中的错误步骤,显著提高数学推理准确率并大幅降低token消耗。

摘要:

Best-of-N解码方法指导大型语言模型(LLMs)生成多个解决方案,使用评分函数对每个方案进行评分,并选择得分最高的作为数学推理问题的最终答案。然而,这种重复的独立过程通常会导致相同的错误,使得所选的解决方案仍然不正确。我们提出了一种名为Stepwise Correction(StepCo)的新型提示方法,帮助LLMs识别和修改其生成的推理路径中的错误步骤。它迭代使用验证和修改阶段,这些阶段采用过程监督验证器。这种先验证后修改的过程不仅提高了答案的正确性,还通过减少需要生成的路径数量来降低token消耗。使用StepCo,一系列LLMs表现出色。值得注意的是,使用GPT-4o作为后端LLM,StepCo在八个数据集上实现了94.1的平均准确率,显著优于最先进的Best-of-N方法+2.4,同时将token消耗降低了77.8%。

英文摘要:

Best-of-N decoding methods instruct large language models (LLMs) to generate multiple solutions, score each using a scoring function, and select the highest scored as the final answer to mathematical reasoning problems. However, this repeated independent process often leads to the same mistakes, making the selected solution still incorrect. We propose a novel prompting method named Stepwise Correction (StepCo) that helps LLMs identify and revise incorrect steps in their generated reasoning paths. It iterates verification and revision phases that employ a process-supervised verifier. The verify-then-revise process not only improves answer correctness but also reduces token consumption with fewer paths needed to generate. With StepCo, a series of LLMs demonstrate exceptional performance. Notably, using GPT-4o as the backend LLM, StepCo achieves an average accuracy of 94.1 across eight datasets, significantly outperforming the state-of-the-art Best-of-N method by +2.4, while reducing token consumption by 77.8%.

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

↑