arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2406.12673cs.CL
收藏

无需生成单个Token即可评估大语言模型中的知识

Estimating Knowledge in Large Language Models Without Generating a Single Token

Blavatnik School of Computer Science, Tel Aviv University(特拉维夫大学布拉瓦尼克计算机科学学院)

Daniela Gottesman, Mor Geva

AI总结:

本研究提出基于大语言模型内部主体表示的简单探针KEEN,无需生成文本即可评估模型对实体的知识掌握程度,在两项任务中表现优异,可解释性变体可定位知识缺口,能指导训练与检索增强决策。

摘要:

当前评估大语言模型(LLM)知识的方法是向模型提问后评估其生成的回复。本研究探讨能否在模型生成任何文本之前完成评估,具体而言,仅通过模型的内部计算,能否估计其对某个实体的知识掌握程度?我们通过两项任务研究该问题:给定一个主体实体,目标是预测(a)模型回答关于该实体的常见问题的能力,以及(b)模型生成的关于该实体的开放式回复的事实准确性。针对多种LLM的实验表明,KEEN(一种基于内部主体表示训练的简单探针)在两项任务中均表现出色——它与模型按主体划分的QA准确率,以及开放式生成领域最新的事实性指标FActScore均具有相关性。此外,KEEN与模型的模糊表述行为自然契合,且能忠实反映微调后模型知识的变化。最后,我们展示了KEEN的一个更具可解释性但性能相当的变体,它能突出显示一小部分Token,这些Token可指示模型知识中的聚类和缺口。KEEN简单轻量,可用于指导决策,例如何时适合进行进一步训练或通过检索增强查询。

英文摘要:

To evaluate knowledge in large language models (LLMs), current methods query the model and then evaluate its generated responses. In this work, we ask whether evaluation can be done before the model has generated any text. Concretely, is it possible to estimate how knowledgeable a model is about a certain entity, only from its internal computation? We study this question with two tasks: given a subject entity, the goal is to predict (a) the ability of the model to answer common questions about the entity, and (b) the factuality of open-ended responses generated by the model about the entity. Experiments with a variety of LLMs show that KEEN, a simple probe trained over internal subject representations, succeeds at both tasks - correlating with both the QA accuracy of the model per-subject and FActScore, a recent factuality metric in open-ended generation. Moreover, KEEN naturally aligns with the model's hedging behavior and faithfully reflects changes in the model's knowledge after fine-tuning. Lastly, we show a more interpretable yet equally performant variant of KEEN, which highlights a small set of tokens indicative of clusters and gaps in the model's knowledge. Being simple and lightweight, KEEN can be leveraged to guide decisions such as when it is appropriate to apply further training or augment queries with retrieval.

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

↑