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

根据语言模型参数化知识构建上下文示例

Crafting In-context Examples according to LMs' Parametric Knowledge

The University of Texas at Austin(德克萨斯大学奥斯汀分校);Seoul National University(首尔国立大学);UC Berkeley(加州大学伯克利分校)

Yoonsang Lee, Pranav Atreya, Xi Ye, Eunsol Choi

AI总结:

本文研究如何根据语言模型对示例的参数化知识掌握程度来构建上下文示例集,发现混合已知与未知示例效果最佳,并在多答案问答数据集上验证了答案排序策略。

摘要:

上下文学习可以提升知识密集型任务(如问答)的表现。在这类场景中,上下文示例会促使语言模型(LM)提取其参数化知识中存储的信息。我们研究如何基于模型是否了解上下文示例来更好地构建上下文示例集。我们识别出“已知”示例(模型能够依据其参数化知识正确回答)和“未知”示例。实验表明,使用“未知”示例进行提示会降低性能,可能是因为这会鼓励模型产生幻觉,而不是检索其参数化知识。构建一个同时包含已知和未知信息的上下文示例集,在多种设置下表现最佳。我们在三个多答案问答数据集上进行了分析,这使我们能够进一步研究基于语言模型对每个答案的知识程度的答案集排序策略。总之,我们的研究揭示了如何为知识密集型任务最佳地构建上下文示例集。

英文摘要:

In-context learning can improve the performances of knowledge-rich tasks such as question answering. In such scenarios, in-context examples trigger a language model (LM) to surface information stored in its parametric knowledge. We study how to better construct in-context example sets, based on whether the model is aware of the in-context examples. We identify 'known' examples, where models can correctly answer from their parametric knowledge, and 'unknown' ones. Our experiments show that prompting with 'unknown' examples decreases the performance, potentially as it encourages hallucination rather than searching for its parametric knowledge. Constructing an in-context example set that presents both known and unknown information performs the best across diverse settings. We perform analysis on three multi-answer question answering datasets, which allows us to further study answer set ordering strategies based on the LM's knowledge of each answer. Together, our study sheds light on how to best construct in-context example sets for knowledge-rich tasks.

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

↑