arXiv:2503.15299cs.CL2025-03中稿 · COLM

发现大模型内部藏有大量未表达的事实知识,生成能力远未发挥潜力。

Inside-Out: Hidden Factual Knowledge in LLMs

  • 通过内外部知识对比,量化模型隐藏的知识量。
  • 内部知识比外部表达高40%,部分答案根本无法被采样生成。
  • 揭示了重复采样无法提升性能的根本瓶颈,适合研究模型生成机制者阅读。

本文提出一种评估大语言模型(LLMs)参数中是否蕴含比输出更多事实知识的框架。我们定义知识为正确答案在回答对中排名更高的比例,区分外部知识(基于输出概率)和内部知识(基于中间计算)。当内部知识超过外部知识时即为隐藏知识。在闭卷问答设定下,对三个主流开源模型进行案例研究发现:(1)模型内部编码的知识平均比外部表达高出40%;(2)某些知识深度隐藏,即使大规模重复采样1,000次,模型仍无法生成正确答案;(3)这表明通过增加测试时计算量来提升性能存在实际限制——有些答案几乎永不被采样,但若出现,必能排名第一。

原文摘要 · Abstract (English)

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.

大模型知识隐藏生成能力

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。