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

迈向可靠的LLM潜在知识估计:基于零提示多示例的事实知识提取

Towards Reliable Latent Knowledge Estimation in LLMs: Zero-Prompt Many-Shot Based Factual Knowledge Extraction

MPI-SWS(马克斯·普朗克软件系统研究所);Boston University(波士顿大学)

Qinyuan Wu, Mohammad Aflah Khan, Soumi Das, Vedant Nanda, Bishwamittra Ghosh, Camila Kolling, Till Speicher, Laurent Bindschaedler, Krishna P. Gummadi, Evimaria Terzi

AI总结:

本文提出零提示潜在知识估计器(ZP-LKE),利用上下文学习消除提示工程,可靠估计LLM事实知识,并在多种开源模型上大规模评估,揭示模型间知识差异。

摘要:

本文聚焦于可靠估计大型语言模型(LLM)内部嵌入的事实知识这一挑战性任务。为避免先前方法在可靠性方面的担忧,我们提出在探测LLM事实知识时消除提示工程。我们的方法称为零提示潜在知识估计器(ZP-LKE),利用LLM的上下文学习能力来传达事实知识问题以及预期的答案格式。我们的知识估计器在概念上更简单(即不依赖LLM的元语言判断),且更易于应用(即不针对特定LLM),并证明它能揭示LLM中嵌入的更多潜在知识。我们还研究了不同设计选择如何影响ZP-LKE的性能。使用所提出的估计器,我们对多种开源LLM(如OPT、Pythia、Llama(2)、Mistral、Gemma等)在来自Wikidata知识库的大量关系和事实上的事实知识进行了大规模评估。我们观察到不同模型家族和不同规模模型之间的事实知识存在差异,某些关系被一致地更好地知晓,但模型在具体知晓的事实上有所不同,并且基础模型与其微调对应模型在知识上也存在差异。代码可在:https://github.com/QinyuanWu0710/ZeroPrompt_LKE 获取。

英文摘要:

In this paper, we focus on the challenging task of reliably estimating factual knowledge that is embedded inside large language models (LLMs). To avoid reliability concerns with prior approaches, we propose to eliminate prompt engineering when probing LLMs for factual knowledge. Our approach, called Zero-Prompt Latent Knowledge Estimator (ZP-LKE), leverages the in-context learning ability of LLMs to communicate both the factual knowledge question as well as the expected answer format. Our knowledge estimator is both conceptually simpler (i.e., doesn't depend on meta-linguistic judgments of LLMs) and easier to apply (i.e., is not LLM-specific), and we demonstrate that it can surface more of the latent knowledge embedded in LLMs. We also investigate how different design choices affect the performance of ZP-LKE. Using the proposed estimator, we perform a large-scale evaluation of the factual knowledge of a variety of open-source LLMs, like OPT, Pythia, Llama(2), Mistral, Gemma, etc. over a large set of relations and facts from the Wikidata knowledge base. We observe differences in the factual knowledge between different model families and models of different sizes, that some relations are consistently better known than others but that models differ in the precise facts they know, and differences in the knowledge of base models and their finetuned counterparts. Code available at: https://github.com/QinyuanWu0710/ZeroPrompt_LKE

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

↑