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

纠正性上下文学习:评估大语言模型的自我纠错能力

Corrective In-Context Learning: Evaluating Self-Correction in Large Language Models

Johannes Gutenberg University Mainz(美因茨约翰内斯古腾堡大学);University of Colorado Boulder(科罗拉多大学博尔德分校)

Mario Sanz-Guerrero, Katharina von der Wense

AI总结:

该研究提出将模型错误预测与真值修正加入提示的纠正性上下文学习(CICL)以提升ICL性能,却经文本分类实验发现CICL效果不如标准ICL,还揭示了示例难度并非有效示例选择的可靠标准,为大模型自我纠错机制的局限性提供了重要参考。

摘要:

上下文学习(ICL)变革了大语言模型(LLMs)在自然语言处理任务中的应用方式,无需微调即可通过标注示例作为条件实现少样本学习。尽管ICL效果显著,但它仍容易出错,尤其是在处理难度较高的示例时。为提升ICL的性能,我们提出纠正性上下文学习(CICL),该方法将模型的错误预测与真值修正一同加入提示中,旨在通过自我纠错提高分类准确率。然而与我们的假设相反,在文本分类任务上开展的大量实验表明,CICL的表现始终不及标准ICL,且性能会随着提示中修正内容占比的增加而下降。我们的研究结果显示,CICL非但没有优化模型的预测结果,反而会干扰模型对任务的理解,引发混淆。此外我们还发现,在标准ICL中加入难度更高的示例并不能提升性能,这说明仅靠示例难度可能并非有效示例选择的可靠标准。通过呈现这些负面结果,我们为理解LLMs中自我纠错机制的局限性提供了重要见解,并为未来研究指明了方向。

英文摘要:

In-context learning (ICL) has transformed the use of large language models (LLMs) for NLP tasks, enabling few-shot learning by conditioning on labeled examples without finetuning. Despite its effectiveness, ICL is prone to errors, especially for challenging examples. With the goal of improving the performance of ICL, we propose corrective in-context learning (CICL), an approach that incorporates a model's incorrect predictions alongside ground truth corrections into the prompt, aiming to enhance classification accuracy through self-correction. However, contrary to our hypothesis, extensive experiments on text classification tasks demonstrate that CICL consistently underperforms standard ICL, with performance degrading as the proportion of corrections in the prompt increases. Our findings indicate that CICL introduces confusion by disrupting the model's task understanding, rather than refining its predictions. Additionally, we observe that presenting harder examples in standard ICL does not improve performance, suggesting that example difficulty alone may not be a reliable criterion for effective selection. By presenting these negative results, we provide important insights into the limitations of self-corrective mechanisms in LLMs and offer directions for future research.

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

↑