DyKnow: Dynamically Verifying Time-Sensitive Factual Knowledge in LLMs

Seyed Mahed Mousavi, Simone Alghisi, Giuseppe RiccardiEMNLP 2024

Introduction

Large Language Models (LLMs) are fundamentally "frozen in time," constrained by the static nature of their training data. While the real world evolves—presidents are elected, athletes change teams, and corporate leadership shifts—an LLM's internal knowledge base remains fixed to its last training snapshot. This temporal lag leads to the propagation of outdated or "stale" information, a phenomenon that traditional static benchmarks fail to capture effectively due to data contamination and rapid obsolescence.

This paper introduces DyKnow, a framework designed to address the challenge of dynamic verification. By leveraging Wikidata as a live ground truth, DyKnow evaluates how well LLMs maintain awareness of the current state of the world and explores the efficacy of various "knowledge editing" techniques to patch outdated facts.

The DyKnow Framework

The DyKnow framework provides a systematic, cost-effective approach to benchmarking LLMs against the constantly updated knowledge graph of Wikidata.

The DyKnow framework dynamically verifies LLM responses against Wikidata's historical records.

The verification process follows three primary steps:

  1. Dynamic Fact Retrieval: For a specific subject (e.g., "Cristiano Ronaldo"), DyKnow queries Wikidata for the current attribute (current club) and all historical attributes with their associated validity intervals.
  2. Response Classification: Model outputs are categorized into three buckets: Correct (matches the most recent Wikidata entry), Outdated (matches a historical entry), or Irrelevant (hallucinations or missing data).
  3. Consistency Measurement: To mitigate sensitivity to prompt phrasing, the framework uses GPT-4 to generate multiple variations of each query, measuring "Prompt Agreement"—the frequency with which a model provides consistent answers across different phrasings.

Experimental Setup and Datasets

The researchers curated a benchmark of 130 time-sensitive facts across three high-visibility domains:

  • Countries (47): Focusing on heads of state and government (Presidents, Prime Ministers).
  • Athletes (28): Tracking current teams for elite soccer, basketball, and F1 competitors.
  • Organizations (23): Identifying CEOs and Chairpersons of major global corporations and NGOs.

These subjects were selected because they are frequently represented in training corpora, ensuring that errors reflect temporal staleness rather than a lack of initial exposure.

Key Insights: "Carbon Dating" and Consistency

One of the most compelling applications of DyKnow is the ability to "carbon date" LLMs. By analyzing the validity intervals of the outdated facts a model provides, researchers can approximate its training cutoff. For instance, DyKnow confirmed that ChatGPT’s internal knowledge largely terminates around September 2021.

The study also revealed a significant "consistency gap." Instruction-tuned models (e.g., Llama-3-Instruct, GPT-4) exhibit much higher Prompt Agreement than their raw pre-trained counterparts, which often fluctuate wildly based on minor phrasing changes. Furthermore, "staleness" is a universal issue; even GPT-4, the top performer, provided non-current information for 20% of queries (13% outdated, 7% irrelevant).

Results and Knowledge Editing

Performance varied significantly across the 24 models tested. GPT-4 led the evaluation with 80% accuracy, while older models like GPT-2 struggled at 26%. Notably, newer open-source models like Llama-3 (8B-Instruct) reached 76% accuracy, demonstrating that modern open-source architectures can rival older proprietary systems.

The study also evaluated four editing methods: ROME, MEMIT, SERAC, and IKE. In-Context Editing (IKE) emerged as the most reliable, often exceeding 90% success. Conversely, parameter-modifying methods like ROME showed poor scalability, with model performance often degrading as more facts were "patched."

Limitations and Future Directions

While DyKnow provides a robust foundation for dynamic evaluation, the authors note several limitations. The current benchmark is limited to 130 facts; expanding this to broader domains like scientific discoveries is a necessary next step. Additionally, the study does not fully account for the "ripple effect"—the potential for a single fact update to inadvertently corrupt related knowledge. Future work will focus on automating these benchmarks to create "live" evaluation systems that continuously monitor and update LLM knowledge.

Summary updated

BibTeX
@inproceedings{mousavi2024dyknow,
  author = {Seyed Mahed Mousavi and Simone Alghisi and Giuseppe Riccardi},
  title = {{DyKnow: Dynamically Verifying Time-Sensitive Factual Knowledge in LLMs}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2024},
  doi = {10.18653/v1/2024.findings-emnlp.471},
}
Figure