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

由内而外:大型语言模型中隐藏的事实知识

Inside-Out: Hidden Factual Knowledge in LLMs

Technion - Israel Institute of Technology(以色列理工学院);Google Research(谷歌研究院)

Zorik Gekhman, Eyal Ben David, Hadas Orgad, Eran Ofek, Yonatan Belinkov, Idan Szpektor, Jonathan Herzig, Roi Reichart

AI总结:

本文提出框架量化LLMs的内部与外部事实知识,发现内部知识平均多40%,且存在深度隐藏知识导致生成失败,限制测试时计算扩展。

摘要:

这项工作提出了一个评估框架,用于判断大型语言模型(LLMs)在其参数中编码的事实知识是否多于其在输出中表达的知识。虽然一些研究暗示了这种可能性,但尚未有研究明确定义或证明这一现象。我们首先提出了知识的正式定义,对于给定问题,将其量化为正确-错误答案对中正确答案排名更高的比例。根据用于对单个答案候选进行评分的信息来源,这产生了外部知识和内部知识:外部知识基于模型可观测的词元级概率,而内部知识基于模型的中间计算。当内部知识超过外部知识时,就产生了隐藏知识。随后,我们进行了一项案例研究,将该框架应用于三种流行的开放权重LLMs,采用闭卷问答设置。我们的结果表明:(1)LLMs在内部编码的事实知识始终多于其外部表达的知识,平均相对差距为40%。(2)令人惊讶的是,有些知识隐藏得如此之深,以至于模型在内部可以完美地知道一个答案,却即使在1,000次答案的大规模重复采样下也一次都无法生成该答案。这揭示了LLMs生成能力的根本局限性,这(3)对通过重复答案采样在闭卷问答中扩展测试时计算施加了实际约束:显著的性能提升仍然无法实现,因为某些答案实际上从未被采样到,但如果它们被采样到,我们保证会将它们排在首位。

英文摘要:

This work presents a framework for assessing whether large language models (LLMs) encode more factual knowledge in their parameters than what they express in their outputs. While a few studies hint at this possibility, none has clearly defined or demonstrated this phenomenon. We first propose a formal definition of knowledge, quantifying it for a given question as the fraction of correct-incorrect answer pairs where the correct one is ranked higher. This gives rise to external and internal knowledge, depending on the information used to score individual answer candidates: either the model's observable token-level probabilities or its intermediate computations. Hidden knowledge arises when internal knowledge exceeds external knowledge. We then present a case study, applying this framework to three popular open-weights LLMs in a closed-book QA setup. Our results indicate that: (1) LLMs consistently encode more factual knowledge internally than what they express externally, with an average relative gap of 40%. (2) Surprisingly, some knowledge is so deeply hidden that a model can internally know an answer perfectly, yet fail to generate it even once, despite large-scale repeated sampling of 1,000 answers. This reveals fundamental limitations in the generation capabilities of LLMs, which (3) put a practical constraint on scaling test-time compute via repeated answer sampling in closed-book QA: significant performance improvements remain inaccessible because some answers are practically never sampled, yet if they were, we would be guaranteed to rank them first.

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

↑