arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2503.17439cs.LGcs.AI
收藏

LEMMA:在LLMs中从错误中学习以促进数学进步

LEMMA: Learning from Errors for MatheMatical Advancement in LLMs

Tsinghua University(清华大学);Shanghai AI Laboratory(上海人工智能实验室);Renmin University of China(中国人民大学);University of Science and Technology of China(中国科学技术大学);Shanghai Jiao Tong University(上海交通大学)

Zhuoshi Pan, Yu Li, Honglin Lin, Qizhi Pei, Zinan Tang, Wei Wu, Chenlin Ming, H. Vicky Zhao, Conghui He, Lijun Wu

AI总结:

提出LEMMA框架,通过构建包含错误步骤与反思连接的数据集微调LLMs,使其在数学推理中无需外部模型即可自主纠错,性能显著提升。

摘要:

大型语言模型(LLMs)在解决数学问题方面展现出了卓越的推理能力。然而,现有的方法主要集中于提高正确训练数据的质量,例如从先进模型中蒸馏高质量的正确解决方案,忽略了错误数据中蕴含的价值,这可能会阻碍模型的反思能力。尽管一些研究尝试利用错误数据,但它们通常涉及复杂的机制,例如使用蒙特卡洛树搜索(MCTS)来探索错误节点。在这项工作中,我们提出通过从错误中学习以促进数学进步(LEMMA)来增强LLMs的推理能力。LEMMA构建的数据由包含错误步骤的错误解决方案和通往正确解决方案的反思连接组成,用于微调。具体而言,我们系统地分析了模型生成的错误类型,并引入了一种基于错误类型的错误增强方法来收集多样且具有代表性的错误。正确的解决方案要么来自修复错误,要么来自重新开始生成。通过模型感知的平滑反思连接,将错误的解决方案转换为正确的解决方案。通过在构建的数据集上进行微调,模型能够在生成过程中自主地自我纠正错误,而无需依赖外部批评模型。实验结果表明,LEMMA相比其他强大的基线方法取得了显著的性能提升。

英文摘要:

Large language models (LLMs) have demonstrated remarkable reasoning capability in solving mathematical problems. However, existing approaches primarily focus on improving the quality of correct training data, e.g., distilling high-quality correct solutions from advanced models, neglecting the value contained in error data, potentially hindering the model's reflective ability. Though some studies attempt to leverage error data, they often involve complex mechanisms, such as Monte Carlo Tree Search (MCTS) to explore error nodes. In this work, we propose to enhance LLMs' reasoning ability by Learning from Errors for Mathematical Advancement (LEMMA). LEMMA constructs data consisting of an incorrect solution with an erroneous step and a reflection connection to a correct solution for fine-tuning. Specifically, we systematically analyze the model-generated error types and introduce an error-type grounded mistake augmentation method to collect diverse and representative errors. Correct solutions are either from fixing the errors or generating a fresh start. Through a model-aware smooth reflection connection, the erroneous solution is transferred to the correct one. By fine-tuning on the constructed dataset, the model is able to self-correct errors autonomously within the generation process without relying on external critique models. Experimental results demonstrate that LEMMA achieves significant performance improvements over other strong baselines.

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

↑