arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2502.08550cs.CLcs.AI
收藏

无需解释:大语言模型可在上下文中隐式地从错误中学习

No Need for Explanations: LLMs can implicitly learn from mistakes in-context

Imperial College London(伦敦帝国学院);Cohere

Lisa Alazraki, Maximilian Mozes, Jon Ander Campos, Tan Yi-Chern, Marek Rei, Max Bartolo

AI总结:

本文发现大语言模型在数学推理中仅凭错误答案而无需显式纠正解释即可更有效地隐式学习,且该方法优于思维链提示,并分析了其背后的机制。

摘要:

向大语言模型(LLMs)展示错误答案是提升其在推理密集型任务中表现的一种流行策略。人们普遍认为,为了使错误答案发挥作用,必须同时提供全面的解释理由,明确说明错误所在以及如何纠正。然而,在本研究中,我们呈现了一个反直觉的发现:我们观察到,当从上下文中移除这些解释理由、让模型自行推断错误答案存在缺陷的原因时,LLMs在数学推理任务中的表现反而更好。在我们的评估中,该方法也显著优于思维链提示(chain-of-thought prompting)。这些结果在不同规模、不同推理能力的LLMs中保持一致。为了理解为什么LLMs在没有明确纠正性解释理由的情况下能更有效地从错误中学习,我们进行了深入分析,考察了不同提示策略之间上下文长度和答案多样性的变化及其对性能的影响。我们还检验了当提供上下文内解释理由时模型对其过拟合的证据,并研究了LLMs在仅以错误答案作为输入的情况下自主推断高质量纠正性解释理由的程度。我们发现证据表明,虽然错误答案比额外的多样化正确答案更有利于LLM学习,但明确的纠正性解释理由会对模型施加过度约束,从而限制了这些益处。

英文摘要:

Showing incorrect answers to Large Language Models (LLMs) is a popular strategy to improve their performance in reasoning-intensive tasks. It is widely assumed that, in order to be helpful, the incorrect answers must be accompanied by comprehensive rationales, explicitly detailing where the mistakes are and how to correct them. However, in this work we present a counterintuitive finding: we observe that LLMs perform better in math reasoning tasks when these rationales are eliminated from the context and models are left to infer on their own what makes an incorrect answer flawed. This approach also substantially outperforms chain-of-thought prompting in our evaluations. These results are consistent across LLMs of different sizes and varying reasoning abilities. To gain an understanding of why LLMs learn from mistakes more effectively without explicit corrective rationales, we perform a thorough analysis, investigating changes in context length and answer diversity between different prompting strategies, and their effect on performance. We also examine evidence of overfitting to the in-context rationales when these are provided, and study the extent to which LLMs are able to autonomously infer high-quality corrective rationales given only incorrect answers as input. We find evidence that, while incorrect answers are more beneficial for LLM learning than additional diverse correct answers, explicit corrective rationales over-constrain the model, thus limiting those benefits.

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

↑