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

NanoKnow: 如何了解你的语言模型知道什么

NanoKnow: How to Know What Your Language Model Knows

University of Waterloo(滑铁卢大学)

Lingwei Gu, Nour Jedidi, Jimmy Lin

AI总结:

通过NanoKnow基准数据集分析语言模型知识来源,发现预训练数据频率影响准确性,外部证据可缓解频率依赖,参数与外部知识互补,无关信息损害表现。

摘要:

大型语言模型(LLMs)如何知道它们知道什么?回答这个问题具有挑战性,因为预训练数据通常是“黑箱”- 未知或不可访问。最近发布的nanochat-一个具有完全开放预训练数据的小型LLM家族- 解决了这个问题,因为它提供了模型参数知识来源的透明视图。为了理解LLMs如何编码知识,我们发布了NanoKnow基准数据集,将自然问题和SQuAD的问题划分为基于其答案是否出现在nanochat预训练语料中的分割。使用这些分割,我们现在可以正确区分LLMs在生成输出时依赖的知识来源。为了展示NanoKnow的实用性,我们使用八个nanochat检查点进行了实验。我们的发现表明:(1) 闭书准确率强烈受到预训练数据中答案频率的影响,(2) 提供外部证据可以缓解这种频率依赖,(3) 即使有外部证据,模型在预训练期间见过答案时也更准确,证明了参数和外部知识是互补的,(4) 无关信息是有害的,准确性会根据无关上下文的位置和数量而下降。我们所有NanoKnow制品都在https://github.com/castorini/NanoKnow上发布。

英文摘要:

How do large language models (LLMs) know what they know? Answering this question has been difficult because pre-training data is often a "black box" - unknown or inaccessible. The recent release of nanochat - a family of small LLMs with fully open pre-training data - addresses this as it provides a transparent view into where a model's parametric knowledge comes from. Towards the goal of understanding how knowledge is encoded by LLMs, we release NanoKnow, a benchmark dataset that partitions questions from Natural Questions and SQuAD into splits based on whether their answers are present in nanochat's pre-training corpus. Using these splits, we can now properly disentangle the sources of knowledge that LLMs rely on when producing an output. To demonstrate NanoKnow's utility, we conduct experiments using eight nanochat checkpoints. Our findings show: (1) closed-book accuracy is strongly influenced by answer frequency in the pre-training data, (2) providing external evidence can mitigate this frequency dependence, (3) even with external evidence, models are more accurate when answers were seen during pre-training, demonstrating that parametric and external knowledge are complementary, and (4) non-relevant information is harmful, with accuracy decreasing based on both the position and the number of non-relevant contexts. We release all NanoKnow artifacts at https://github.com/castorini/NanoKnow.

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

↑