DYNAMICQA: Tracing Internal Knowledge Conflicts in Language Models

Sara Marjanovic, Haeun Yu, Pepa Atanasova, Maria Maistro, Christina Lioma, Isabelle Augenstein

Introduction

Large Language Models (LLMs) memorize vast amounts of information during pre-training, forming what is known as parametric knowledge. However, the real world is not static; facts change over time (e.g., "Who is the current CEO?") or are subject to varying viewpoints (e.g., "What is the best diet?"). When using Retrieval-Augmented Generation (RAG) to provide up-to-date context, a context-memory conflict often arises, forcing the model to choose between its internal "gut feeling" and the provided external text.

While previous research focused on the "popularity" of a fact—positing that more frequent exposure during training makes a fact harder to change—this paper investigates dynamicity. The authors argue that if a model has encountered multiple versions of a fact during training (e.g., different political leaders over decades), it develops an internal conflict that increases "stubbornness" against new external context.

The DYNAMICQA Dataset

To study these conflicts, the researchers introduced DYNAMICQA, a dataset comprising 11,378 question-answer pairs. The dataset is categorized into three distinct types:

  1. Static Facts: Unchanging truths (e.g., "In what city was Gösta Eriksson born?").
  2. Temporal Facts: Facts that evolve over time (e.g., "Who is the captain of the national team?"), identified via Wikidata edit history.
  3. Disputable Facts: Facts that vary by viewpoint, sourced by identifying "edit wars" and reversions in Wikipedia history.
Figure 1: Illustration of model behavior and probability distribution shifts for static, temporal, and disputable questions when provided with context.

Methodology and Metrics

The framework measures "persuadability" through several key components:

  • Semantic Entropy (SE): Measures the variance in a model's answers across multiple samples. High entropy indicates internal uncertainty or conflicting representations.
  • Coherent Persuasion (CP) Score: A novel metric that evaluates the shift in the model's entire semantic output probability distribution before and after context is provided, rather than just the first token.
  • Behavioral Classification: Responses are classified as Persuaded (switching from internal knowledge to provided context) or Stubborn (ignoring context in favor of internal knowledge).

Key Insights: Dynamicity and the Effort of Change

The study reveals that dynamicity is a stronger predictor of stubbornness than popularity. The "number of edits" a fact has received correlates more strongly with model resistance than the frequency of the subject in training data.

Furthermore, the authors measured the mathematical "effort" (loss) required to steer a model toward a specific answer. They found that dynamic facts require significantly more steering than static ones, suggesting the model's internal prior for dynamic facts is "wider" and more resilient to change. Interestingly, high internal uncertainty (Semantic Entropy) does not necessarily correlate with higher persuadability; a model can be internally confused yet remain stubborn against external evidence.

Experimental Results

The experimental evaluation across models like Llama-2, Mistral, and Qwen2 demonstrated consistent trends in model behavior.

Figure 4: Statistics on stubbornness and persuasion rates, showing that models are significantly more resistant to updating dynamic (temporal and disputable) facts compared to static ones.

As shown in the results, models were consistently more stubborn with dynamic facts. For Llama-2, the stubbornness rate was 6.16% for static facts but rose to 9.38% for temporal facts. Conversely, persuasion success was highest for static facts (78.44% for Llama-2) and dropped significantly for temporal facts (60.96%). A statistically significant negative correlation (-0.27) was found between the number of real-world edits a fact has and the model's Coherent Persuasion score.

Conclusion and Future Work

The DYNAMICQA benchmark highlights a critical challenge for RAG systems: they struggle most with the very facts that require the most frequent updates. While Llama-2-7B appeared more "persuadable" than its counterparts, it also showed higher internal entropy, suggesting a trade-off between flexibility and stability. Future research should focus on "conflict-aware" retrieval systems capable of detecting when a model's internal memory is likely to resist external updates, particularly for larger-scale models.

Summary updated

BibTeX
@inproceedings{marjanovic2024dynamicqa,
  author = {Sara Marjanovic and Haeun Yu and Pepa Atanasova and Maria Maistro and Christina Lioma and Isabelle Augenstein},
  title = {{DYNAMICQA: Tracing Internal Knowledge Conflicts in Language Models}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2024},
  doi = {10.18653/v1/2024.findings-emnlp.838},
}
Figure