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

语言模型中的上下文与先验知识

Context versus Prior Knowledge in Language Models

ETH Zürich(苏黎世联邦理工学院);University of Copenhagen(哥本哈根大学);University of Cambridge(剑桥大学);The University of Chicago(芝加哥大学)

Kevin Du, Vésteinn Snæbjarnarson, Niklas Stoehr, Jennifer C. White, Aaron Schein, Ryan Cotterell

AI总结:

该研究提出基于互信息的说服分数和易受影响分数,量化语言模型对上下文与实体先验知识的依赖,并验证其有效性及与实体熟悉度的关系。

摘要:

为了回答问题,语言模型通常需要整合预训练期间学到的先验知识与上下文中呈现的新信息。我们假设,模型在不同问题和上下文之间以一种可预测的方式执行这种整合:对于因在训练语料库中曝光度较高而更熟悉的实体(例如人物、地点等)相关问题,模型会更依赖先验知识,并且相比其他上下文,模型更容易被某些上下文说服。为形式化这一问题,我们提出两个基于互信息的指标,用于衡量模型对上下文的依赖以及对实体先验的依赖:首先,给定上下文的 persuasion score(说服分数)表示模型在决策中对上下文的依赖程度;其次,给定实体的 susceptibility score(易受影响分数)表示模型在多大程度上能够被影响,从而偏离其关于该实体的原始答案分布。我们通过实验检验这些指标的有效性和可靠性。最后,我们探索并发现这些分数与模型对实体的预期熟悉度之间存在关系,并提供两个用例来说明其益处。

英文摘要:

To answer a question, language models often need to integrate prior knowledge learned during pretraining and new information presented in context. We hypothesize that models perform this integration in a predictable way across different questions and contexts: models will rely more on prior knowledge for questions about entities (e.g., persons, places, etc.) that they are more familiar with due to higher exposure in the training corpus, and be more easily persuaded by some contexts than others. To formalize this problem, we propose two mutual information-based metrics to measure a model's dependency on a context and on its prior about an entity: first, the persuasion score of a given context represents how much a model depends on the context in its decision, and second, the susceptibility score of a given entity represents how much the model can be swayed away from its original answer distribution about an entity. We empirically test our metrics for their validity and reliability. Finally, we explore and find a relationship between the scores and the model's expected familiarity with an entity, and provide two use cases to illustrate their benefits.

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

↑