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

面向大语言模型的歧义感知上下文学习

Ambiguity-Aware In-Context Learning with Large Language Models

Toyota Technological Institute at Chicago(芝加哥丰田技术学院);Google Research(谷歌研究院)

Lingyu Gao, Aditi Chaudhary, Krishna Srinivasan, Kazuma Hashimoto, Karthik Raman, Michael Bendersky

AI总结:

针对大语言模型上下文学习的演示选择问题,提出结合语义相似度与标签歧义消解的选例策略,经实验验证纳入决策边界上的误分类演示可带来最大性能增益。

摘要:

上下文学习(In-context learning, ICL)即仅向大语言模型(LLM)展示少量任务特定演示,无需任务特定微调即可在下游任务中取得性能提升。但LLM对提示词的选择十分敏感,因此一个关键研究问题是如何为ICL挑选优质演示。一种有效策略是利用文本检索器,基于ICL演示与测试输入的语义相似度来选例,但该方法未考虑LLM已有的任务相关知识,因此并非最优。从已有研究(Lyu等人,2023)中我们已知,与演示配对的标签会使模型预测产生偏差。这引出了我们的假设:考虑LLM已有的任务相关知识,尤其是关于输出标签空间的知识,是否有助于提出更优的演示选择策略。通过在三个文本分类任务上开展的大量实验,我们发现不仅要选择语义相似的ICL演示,还要选择有助于解决测试样本固有标签歧义的演示,这样做是有益的。有趣的是,我们发现纳入LLM此前分类错误、且落在测试样本决策边界上的演示,能带来最大的性能提升。

英文摘要:

In-context learning (ICL) i.e. showing LLMs only a few task-specific demonstrations has led to downstream gains with no task-specific fine-tuning required. However, LLMs are sensitive to the choice of prompts, and therefore a crucial research question is how to select good demonstrations for ICL. One effective strategy is leveraging semantic similarity between the ICL demonstrations and test inputs by using a text retriever, which however is sub-optimal as that does not consider the LLM's existing knowledge about that task. From prior work (Lyu et al., 2023), we already know that labels paired with the demonstrations bias the model predictions. This leads us to our hypothesis whether considering LLM's existing knowledge about the task, especially with respect to the output label space can help in a better demonstration selection strategy. Through extensive experimentation on three text classification tasks, we find that it is beneficial to not only choose semantically similar ICL demonstrations but also to choose those demonstrations that help resolve the inherent label ambiguity surrounding the test example. Interestingly, we find that including demonstrations that the LLM previously mis-classified and also fall on the test example's decision boundary, brings the most performance gain.

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

↑