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

大语言模型能否从过往错误中学习?探究大语言模型的错误以提升推理能力

Can LLMs Learn from Previous Mistakes? Investigating LLMs' Errors to Boost for Reasoning

University of California, San Diego(加利福尼亚大学圣迭戈分校);University of Southern California(南加利福尼亚大学)

Yongqi Tong, Dawei Li, Sizhe Wang, Yujia Wang, Fei Teng, Jingbo Shang

AI总结:

本文通过构建含正确与错误参考的CoTErrorSet基准,提出自我反思提示和错误微调两种方法,证明大语言模型能从错误中学习并提升推理能力,且成本更低。

摘要:

近期研究显示,对黄金标准思维链(Chain-of-Thought, CoT)推理依据进行微调,或在少样本提示中将其作为正确示例,均能给大语言模型(LLMs)带来益处。虽然人类确实能够模仿正确示例,但从错误中学习同样是人类认知的重要方面。因此,一个自然的问题随之产生:大语言模型能否从自身错误中学习并获益,尤其是在推理方面?本研究从提示和模型微调两个视角探讨了该问题。我们首先引入了 CoTErrorSet,这是一个包含609,432道题目的新基准,每道题都设计了正确参考和错误参考,并展示了犯下此类错误的类型和原因。为探究这些错误的有效性,我们设计了两种方法:(1)自我反思(Self-rethinking)提示引导大语言模型重新思考它们是否曾犯过类似的错误;(2)错误微调(Mistake tuning)涉及在正确和错误推理领域同时微调模型,而非像传统方法那样仅微调模型学习真实答案。我们开展了一系列实验,证明大语言模型能够从两个方向的错误中获得收益。我们的两种方法通过利用错误来增强推理能力,提供了潜在的成本效益策略,其成本远低于精心人工制作黄金参考。最后,我们对大语言模型错误背后的原因进行了深入分析,为未来研究需要克服的问题提供了方向。CoTErrorSet 将很快发布在 https://github.com/YookiTong/Learn-from-Mistakes-CotErrorSet。

英文摘要:

Recent works have shown the benefits to LLMs from fine-tuning golden-standard Chain-of-Thought (CoT) rationales or using them as correct examples in few-shot prompting. While humans can indeed imitate correct examples, learning from our mistakes is another vital aspect of human cognition. Hence, a question naturally arises: \textit{can LLMs learn and benefit from their mistakes, especially for their reasoning? } This study investigates this problem from both the prompting and model-tuning perspectives. We begin by introducing \textsc{CoTErrorSet}, a new benchmark with 609,432 questions, each designed with both correct and error references, and demonstrating the types and reasons for making such mistakes. To explore the effectiveness of those mistakes, we design two methods: (1) \textbf{Self-rethinking} prompting guides LLMs to rethink whether they have made similar previous mistakes; and (2) \textbf{Mistake tuning} involves finetuning models in both correct and incorrect reasoning domains, rather than only tuning models to learn ground truth in traditional methodology. We conduct a series of experiments to prove LLMs can obtain benefits from mistakes in both directions. Our two methods offer potentially cost-effective strategies by leveraging errors to enhance reasoning capabilities, which costs significantly less than creating meticulously hand-crafted golden references. We ultimately make a thorough analysis of the reasons behind LLMs' errors, which provides directions that future research needs to overcome. \textsc{CoTErrorSet} will be published soon on \texttt{\url{https://github.com/YookiTong/Learn-from-Mistakes-CotErrorSet}}.

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

↑