Inside-Out: Hidden Factual Knowledge in LLMs. Gekhman, Z., David, E. B., Orgad, H., Ofek, E., Belinkov, Y., Szpector, I., Herzig, J., & Reichart, R. March, 2025. arXiv:2503.15299 [cs]
Paper doi abstract bibtex 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 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) puts 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.
@misc{gekhman_inside-out_2025,
title = {Inside-{Out}: {Hidden} {Factual} {Knowledge} in {LLMs}},
shorttitle = {Inside-{Out}},
url = {http://arxiv.org/abs/2503.15299},
doi = {10.48550/arXiv.2503.15299},
abstract = {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 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) puts 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.},
urldate = {2025-03-20},
publisher = {arXiv},
author = {Gekhman, Zorik and David, Eyal Ben and Orgad, Hadas and Ofek, Eran and Belinkov, Yonatan and Szpector, Idan and Herzig, Jonathan and Reichart, Roi},
month = mar,
year = {2025},
note = {arXiv:2503.15299 [cs]},
keywords = {Computer Science - Computation and Language},
}
Downloads: 0
{"_id":"dNfMakJ5kkJQMfyzT","bibbaseid":"gekhman-david-orgad-ofek-belinkov-szpector-herzig-reichart-insideouthiddenfactualknowledgeinllms-2025","author_short":["Gekhman, Z.","David, E. B.","Orgad, H.","Ofek, E.","Belinkov, Y.","Szpector, I.","Herzig, J.","Reichart, R."],"bibdata":{"bibtype":"misc","type":"misc","title":"Inside-Out: Hidden Factual Knowledge in LLMs","shorttitle":"Inside-Out","url":"http://arxiv.org/abs/2503.15299","doi":"10.48550/arXiv.2503.15299","abstract":"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 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) puts 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.","urldate":"2025-03-20","publisher":"arXiv","author":[{"propositions":[],"lastnames":["Gekhman"],"firstnames":["Zorik"],"suffixes":[]},{"propositions":[],"lastnames":["David"],"firstnames":["Eyal","Ben"],"suffixes":[]},{"propositions":[],"lastnames":["Orgad"],"firstnames":["Hadas"],"suffixes":[]},{"propositions":[],"lastnames":["Ofek"],"firstnames":["Eran"],"suffixes":[]},{"propositions":[],"lastnames":["Belinkov"],"firstnames":["Yonatan"],"suffixes":[]},{"propositions":[],"lastnames":["Szpector"],"firstnames":["Idan"],"suffixes":[]},{"propositions":[],"lastnames":["Herzig"],"firstnames":["Jonathan"],"suffixes":[]},{"propositions":[],"lastnames":["Reichart"],"firstnames":["Roi"],"suffixes":[]}],"month":"March","year":"2025","note":"arXiv:2503.15299 [cs]","keywords":"Computer Science - Computation and Language","bibtex":"@misc{gekhman_inside-out_2025,\n\ttitle = {Inside-{Out}: {Hidden} {Factual} {Knowledge} in {LLMs}},\n\tshorttitle = {Inside-{Out}},\n\turl = {http://arxiv.org/abs/2503.15299},\n\tdoi = {10.48550/arXiv.2503.15299},\n\tabstract = {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 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) puts 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.},\n\turldate = {2025-03-20},\n\tpublisher = {arXiv},\n\tauthor = {Gekhman, Zorik and David, Eyal Ben and Orgad, Hadas and Ofek, Eran and Belinkov, Yonatan and Szpector, Idan and Herzig, Jonathan and Reichart, Roi},\n\tmonth = mar,\n\tyear = {2025},\n\tnote = {arXiv:2503.15299 [cs]},\n\tkeywords = {Computer Science - Computation and Language},\n}\n\n\n\n\n\n\n\n\n\n\n\n","author_short":["Gekhman, Z.","David, E. B.","Orgad, H.","Ofek, E.","Belinkov, Y.","Szpector, I.","Herzig, J.","Reichart, R."],"key":"gekhman_inside-out_2025","id":"gekhman_inside-out_2025","bibbaseid":"gekhman-david-orgad-ofek-belinkov-szpector-herzig-reichart-insideouthiddenfactualknowledgeinllms-2025","role":"author","urls":{"Paper":"http://arxiv.org/abs/2503.15299"},"keyword":["Computer Science - Computation and Language"],"metadata":{"authorlinks":{}},"html":""},"bibtype":"misc","biburl":"https://bibbase.org/zotero/SimonOst","dataSources":["tFvQtGDPkqnJa6Fbq"],"keywords":["computer science - computation and language"],"search_terms":["inside","out","hidden","factual","knowledge","llms","gekhman","david","orgad","ofek","belinkov","szpector","herzig","reichart"],"title":"Inside-Out: Hidden Factual Knowledge in LLMs","year":2025}