mlsanityData to 13 Oct 2026

Measuring and Modifying Factual Knowledge in Large Language Models

arXiv 2306.06264 ↗First posted 9 Jun 2023cs.CL cs.LGcited by 16

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

  1. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,304
  2. 2020Language Models are Few-Shot Learnerscited by 32,320
  3. 2023GPT-4 Technical Reportcited by 18,278
  4. 2022Training language models to follow instructions with human feedbackcited by 15,856
  5. 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,549
  6. 2023LLaMA: Open and Efficient Foundation Language Modelscited by 14,072
  7. 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,322
  8. 2022PaLM: Scaling Language Modeling with Pathwayscited by 5,317
  9. 2022Scaling Instruction-Finetuned Language Modelscited by 3,007
  10. 2022Locating and Editing Factual Associations in GPTcited by 2,650
  11. 2022Survey of Hallucination in Natural Language Generationcited by 2,068
  12. 2019Language Models as Knowledge Bases?cited by 1,931
10 more
  1. 2022Language Models (Mostly) Know What They Knowcited by 1,823
  2. 2022Teaching Models to Express Their Uncertainty in Wordscited by 740
  3. 2021Retrieval Augmentation Reduces Hallucination in Conversationcited by 692
  4. 2023Check Your Facts and Try Again: Improving Large Language Models with External Knowledge and Automated Feedbackcited by 353
  5. 2020Probing Pretrained Language Models for Lexical Semanticscited by 156
  6. 2022A Review on Language Models as Knowledge Basescited by 156
  7. 2021Knowledgeable or Educated Guess? Revisiting Language Models as Knowledge Basescited by 107
  8. 2019Assessing The Factual Accuracy of Generated Textcited by 103
  9. 2023Crawling the Internal Knowledge-Base of Language Modelscited by 85
  10. 2022Investigating Selective Prediction Approaches Across Several Tasks in IID, OOD, and Adversarial Settingscited by 66

Built on by

Cited by year (2026 to 13 Oct)

Citing papers per year: 2023: 3; 2024: 7; 2025: 4; 2026: 2.

16 papers.

Sort:

By area: