DYNAMICQA: Tracing Internal Knowledge Conflicts in Language Models

Sara Vera Marjanović, Haeun Yu, Pepa Atanasova, Maria Maistro, Christina Lioma, Isabelle Augenstein · DOI

TL;DR

This paper introduces DYNAMICQA, a new dataset and methodology to study how internal knowledge conflicts within Language Models (LMs) affect their ability to incorporate external context. They find that LMs struggle more to update their knowledge for dynamic facts (temporal or disputable) compared to static facts, suggesting retrieval-augmented generation might falter on frequently changing information.

What Problem Does This Paper Address?

Large Language Models (LMs) store vast amounts of world knowledge in their parameters, a form of "parametric knowledge." However, this internal knowledge isn't always accurate or consistent; it can be outdated, contain misinformation, or even hold conflicting information due to different viewpoints or temporal changes. These internal inconsistencies, termed "intra-memory conflicts," can make LMs hesitant to accept new, externally provided information (contextual knowledge), even when that context is correct. This is particularly problematic for tasks requiring up-to-date or nuanced understanding. The paper aims to quantify and understand how these intra-memory conflicts, specifically those arising from dynamic facts (facts that change over time or depending on perspective), impact an LM's ability to integrate external context, a process crucial for techniques like Retrieval-Augmented Generation (RAG).

Methods

The authors introduce two key methodological contributions:

  • DYNAMICQA Dataset: A novel dataset comprising 11,378 question-answer pairs featuring facts with varying degrees of dynamicity. This dataset includes:
  • Temporal Facts: Facts that change over time (e.g., capital cities).
  • Disputable Facts: Facts that depend on viewpoint (e.g., controversial topics).
  • Static Facts: Facts with a single, unchanging truth value. The dataset uses real-world data from Wikidata and Wikipedia, with proxy scores for temporality (number of edits) and disputability (number of reversions).

  • Coherent Persuasion Score (CP Score): A novel metric to measure how effectively external context can shift an LM's output distribution. Unlike previous methods focusing on single tokens, the CP score uses multiple generated samples, semantic grouping, and compares the output distributions of context-less and context-provided inputs to provide a more robust measure of persuasion. They also utilize Semantic Entropy (SE) as an estimator of intra-memory conflict, reflecting the semantic diversity of an LM's output for a given input.

Datasets

  • DYNAMICQA: A newly introduced dataset for evaluating intra-memory and context-memory conflicts. It contains 11,378 question-answer pairs with temporal, disputable, and static facts, paired with realistic contexts.
  • PopularQA: Used as a source for sampling question-answer pairs for the DYNAMICQA dataset.
  • Wikidata and Wikipedia: Utilized for sourcing facts, edit histories (for temporality), and edit logs (for disputability).

Key Insights and Ideas

  • Dynamic Facts are "Stubborn": LMs exhibit a greater degree of intra-memory conflict with dynamic facts (temporal and disputable) compared to static facts. This makes them more resistant to updating their knowledge with new context.
  • Contextual Updates are Harder for Dynamic Information: Despite dynamic facts being more common and frequently adapted in the real world, retrieval-augmented generation struggles more to update LMs on these facts.
  • Semantic Entropy Isn't a Perfect Predictor of Persuasion: While Semantic Entropy can indicate internal conflict, it doesn't reliably predict whether an LM will be persuaded by external context. Other factors, like temporality, play a more significant role.
  • Temporality is Key: The number of edits to a fact (a proxy for its temporality) shows the strongest inverse correlation with persuasion, meaning older, more stable facts are more easily updated.
  • Surprising Resilience of Static Facts: Counter-intuitively, static facts, which are less prone to change, are the most easily updated with context.

Key Results

  • Accuracy: Llama-2 generally achieved the highest accuracy across all fact types, especially when provided with context.
  • Persuasion: Llama-2 also demonstrated the greatest persuasion (both in terms of the CP score and the percentage of persuaded instances), indicating it's more receptive to context.
  • Stubborn Instances: Temporal and disputable facts resulted in a higher proportion of "stubborn" instances (where the LM ignores context) compared to static facts.
  • Loss: Dynamic facts (temporal and disputable) showed higher losses when forcing the LM to output the correct answer without context, indicating more effort is needed to steer the model's parameters.
  • Correlation: Temporality (number of edits) had the strongest negative correlation with persuasion (r ≈ -0.27), suggesting more dynamic facts are less persuadable. Subject popularity had a weaker correlation (r ≈ -0.10). Semantic entropy showed a weak and inconsistent correlation with persuasion.

Limitations and Future Work

  • Model Size: The study was limited to 7B parameter models due to computational constraints. The authors hypothesize that larger models might exhibit less pronounced effects.
  • Dataset Imbalance: The dataset has an imbalanced distribution of partitions, particularly for disputable questions, due to the difficulty in identification.
  • Uncertainty Measures: Only one measure of uncertainty (Semantic Entropy) was used.
  • Future Work: The authors suggest exploring other uncertainty measures and investigating the impact of model size and architecture. They also highlight the need for new methods to update LM knowledge, especially for dynamic facts, beyond simple retrieval augmentation.

Summary updated

BibTeX
@inproceedings{marjanovic2024dynamicqa,
  author = {Sara Vera Marjanović 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