Measuring and Modifying Factual Knowledge in Large Language Models
Not on the map. Why?
Abstract (arXiv)
Large Language Models (LLMs) store an extensive amount of factual knowledge obtained from vast collections of text. To effectively utilize these models for downstream tasks, it is crucial to have reliable methods for measuring their knowledge. However, existing approaches for knowledge measurement have certain limitations, and despite recent efforts, they fail to provide accurate measurements and the necessary insights for modifying the knowledge within LLMs. In this work, we employ information theory-based measurements to provide a framework estimating the factual knowledge contained within large language models. More specifically, we measure knowledge by analyzing the LLM's prediction probability distribution before and after instilling the target knowledge, employing metrics such as entropy and KL-divergence. Introducing our metrics, we first assess their accuracy in comparison to previous ranking-based methods, surpassing them by over 35% in a synthetic experiment. Then, we explore two prominent methods of knowledge instillation, discovering that LLMs exhibit limitations in capturing new knowledge under specific circumstances for one of these methods. Lastly, we demonstrate the applicability of our methods in extracting unlearned and mislearned facts in LLMs through their application to in-context learning. We make code and data for all methods and experiments in this paper publicly available.
Key facts. Cited by 16 papers in the map (data through 13 Oct 2026). Builds on 22 of its 24 references that are in the map. First posted on arXiv 9 Jun 2023.
Builds on
22 of 24 references.
References · 22
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,304
- 2020Language Models are Few-Shot Learnerscited by 32,320
- 2023GPT-4 Technical Reportcited by 18,278
- 2022Training language models to follow instructions with human feedbackcited by 15,856
- 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,549
- 2023LLaMA: Open and Efficient Foundation Language Modelscited by 14,072
- 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,322
- 2022PaLM: Scaling Language Modeling with Pathwayscited by 5,317
- 2022Scaling Instruction-Finetuned Language Modelscited by 3,007
- 2022Locating and Editing Factual Associations in GPTcited by 2,650
- 2022Survey of Hallucination in Natural Language Generationcited by 2,068
- 2019Language Models as Knowledge Bases?cited by 1,931
10 more
- 2022Language Models (Mostly) Know What They Knowcited by 1,823
- 2022Teaching Models to Express Their Uncertainty in Wordscited by 740
- 2021Retrieval Augmentation Reduces Hallucination in Conversationcited by 692
- 2023Check Your Facts and Try Again: Improving Large Language Models with External Knowledge and Automated Feedbackcited by 353
- 2020Probing Pretrained Language Models for Lexical Semanticscited by 156
- 2022A Review on Language Models as Knowledge Basescited by 156
- 2021Knowledgeable or Educated Guess? Revisiting Language Models as Knowledge Basescited by 107
- 2019Assessing The Factual Accuracy of Generated Textcited by 103
- 2023Crawling the Internal Knowledge-Base of Language Modelscited by 85
- 2022Investigating Selective Prediction Approaches Across Several Tasks in IID, OOD, and Adversarial Settingscited by 66
Built on by
Citing papers per year: 2023: 3; 2024: 7; 2025: 4; 2026: 2.
16 papers.
Sort:
By area:
- 2023A Survey on Evaluation of Large Language Modelscited by 1,236
- 2023Cognitive Mirage: A Review of Hallucinations in Large Language Modelscited by 83
- 2024Distinguishing the Knowable from the Unknowable with Language Modelscited by 46
- 2024Undesirable Memorization in Large Language Models: A Surveycited by 29
- 2025Don't Let It Hallucinate: Premise Verification via Retrieval-Augmented Logical Reasoningcited by 15
- 2024Identifying Query-Relevant Neurons in Large Language Models for Long-Form Textscited by 14
- 2024Lost in the Middle, and In-Between: Enhancing Language Models' Ability to Reason Over Long Contexts in Multi-Hop QAcited by 13
- 2024FG-PRM: Fine-grained Hallucination Detection and Mitigation in Language Model Mathematical Reasoningcited by 12
- 2024ERBench: An Entity-Relationship based Automatically Verifiable Hallucination Benchmark for Large Language Modelscited by 9
- 2025Existing Large Language Model Unlearning Evaluations Are Inconclusivecited by 7
- 2026Operationalising the Superficial Alignment Hypothesis via Task Complexitycited by 4
- 2023Language Models as Knowledge Bases for Visual Word Sense Disambiguationcited by 3
4 more
- 2024Evaluating LLMs for Gender Disparities in Notable Personscited by 3
- 2025MiST: Understanding the Role of Mid-Stage Scientific Training in Developing Chemical Reasoning Modelscited by 3
- 2026Knowledge Boundary Discovery for Large Language Modelscited by 1
- 2025On the Analogy between Human Brain and LLMs: Spotting Key Neurons in Grammar Perceptioncited by 0
- 2026Operationalising the Superficial Alignment Hypothesis via Task Complexity17 Feb 2026
- 2026Knowledge Boundary Discovery for Large Language Models14 Jan 2026
- 2025MiST: Understanding the Role of Mid-Stage Scientific Training in Developing Chemical Reasoning Models24 Dec 2025
- 2025On the Analogy between Human Brain and LLMs: Spotting Key Neurons in Grammar Perception9 Nov 2025
- 2025Existing Large Language Model Unlearning Evaluations Are Inconclusive31 May 2025
- 2025Don't Let It Hallucinate: Premise Verification via Retrieval-Augmented Logical Reasoning8 Apr 2025
- 2024Lost in the Middle, and In-Between: Enhancing Language Models' Ability to Reason Over Long Contexts in Multi-Hop QA13 Dec 2024
- 2024FG-PRM: Fine-grained Hallucination Detection and Mitigation in Language Model Mathematical Reasoning8 Oct 2024
- 2024Undesirable Memorization in Large Language Models: A Survey3 Oct 2024
- 2024Identifying Query-Relevant Neurons in Large Language Models for Long-Form Texts16 Jun 2024
- 2024Evaluating LLMs for Gender Disparities in Notable Persons14 Mar 2024
- 2024ERBench: An Entity-Relationship based Automatically Verifiable Hallucination Benchmark for Large Language Models8 Mar 2024
4 more
- 2024Distinguishing the Knowable from the Unknowable with Language Models5 Feb 2024
- 2023Language Models as Knowledge Bases for Visual Word Sense Disambiguation3 Oct 2023
- 2023Cognitive Mirage: A Review of Hallucinations in Large Language Models13 Sep 2023
- 2023A Survey on Evaluation of Large Language Models6 Jul 2023
- 2025Don't Let It Hallucinate: Premise Verification via Retrieval-Augmented Logical Reasoningcited by 15
- 2024Lost in the Middle, and In-Between: Enhancing Language Models' Ability to Reason Over Long Contexts in Multi-Hop QAcited by 13
- 2024FG-PRM: Fine-grained Hallucination Detection and Mitigation in Language Model Mathematical Reasoningcited by 12
- 2025MiST: Understanding the Role of Mid-Stage Scientific Training in Developing Chemical Reasoning Modelscited by 3
- 2025MiST: Understanding the Role of Mid-Stage Scientific Training in Developing Chemical Reasoning Models24 Dec 2025
- 2025Don't Let It Hallucinate: Premise Verification via Retrieval-Augmented Logical Reasoning8 Apr 2025
- 2024Lost in the Middle, and In-Between: Enhancing Language Models' Ability to Reason Over Long Contexts in Multi-Hop QA13 Dec 2024
- 2024FG-PRM: Fine-grained Hallucination Detection and Mitigation in Language Model Mathematical Reasoning8 Oct 2024
- 2023A Survey on Evaluation of Large Language Modelscited by 1,236
- 2023Cognitive Mirage: A Review of Hallucinations in Large Language Modelscited by 83
- 2024Distinguishing the Knowable from the Unknowable with Language Modelscited by 46
- 2024Undesirable Memorization in Large Language Models: A Surveycited by 29
- 2024Identifying Query-Relevant Neurons in Large Language Models for Long-Form Textscited by 14
- 2024ERBench: An Entity-Relationship based Automatically Verifiable Hallucination Benchmark for Large Language Modelscited by 9
- 2026Operationalising the Superficial Alignment Hypothesis via Task Complexitycited by 4
- 2023Language Models as Knowledge Bases for Visual Word Sense Disambiguationcited by 3
- 2024Evaluating LLMs for Gender Disparities in Notable Personscited by 3
- 2026Knowledge Boundary Discovery for Large Language Modelscited by 1
- 2025On the Analogy between Human Brain and LLMs: Spotting Key Neurons in Grammar Perceptioncited by 0
- 2026Operationalising the Superficial Alignment Hypothesis via Task Complexity17 Feb 2026
- 2026Knowledge Boundary Discovery for Large Language Models14 Jan 2026
- 2025On the Analogy between Human Brain and LLMs: Spotting Key Neurons in Grammar Perception9 Nov 2025
- 2024Undesirable Memorization in Large Language Models: A Survey3 Oct 2024
- 2024Identifying Query-Relevant Neurons in Large Language Models for Long-Form Texts16 Jun 2024
- 2024Evaluating LLMs for Gender Disparities in Notable Persons14 Mar 2024
- 2024ERBench: An Entity-Relationship based Automatically Verifiable Hallucination Benchmark for Large Language Models8 Mar 2024
- 2024Distinguishing the Knowable from the Unknowable with Language Models5 Feb 2024
- 2023Language Models as Knowledge Bases for Visual Word Sense Disambiguation3 Oct 2023
- 2023Cognitive Mirage: A Review of Hallucinations in Large Language Models13 Sep 2023
- 2023A Survey on Evaluation of Large Language Models6 Jul 2023