Entity-Based Knowledge Conflicts in Question Answering

Shayne Longpre, Kartik Perisetla, Anthony Chen, Nikhil Ramesh, Chris DuBois, Sameer Singh

Introduction

Modern Question Answering (QA) systems typically follow a "retrieve-and-read" architecture. While effective, this approach creates a fundamental tension between a model's parametric knowledge (information learned during pre-training) and its contextual knowledge (information provided in a specific document at inference time). When these sources contradict—a phenomenon known as a knowledge conflict—models often exhibit "stubbornness," prioritizing their internal memory over the provided text. This leads to hallucinations, particularly when dealing with evolving facts or domain-specific data.

Methodology: The Substitution Framework

To systematically analyze these conflicts, researchers developed an automated framework that modifies existing QA datasets. By using Named Entity Recognition (NER) and entity linking via Wikidata, they swap correct answers in a context with alternatives, creating synthetic knowledge conflicts without manual labeling.

The four substitution strategies: Alias, Corpus, Type Swap, and Popularity.

The framework employs four primary strategies:

  • Alias Substitution (AS): Uses synonyms (e.g., "Simon Peter" for "Saint Peter") to test stability.
  • Corpus Substitution (CS): Replaces an answer with a random entity of the same type from the dataset.
  • Type Swap Substitution (TSS): Replaces an answer with a nonsensical type (e.g., a date instead of a person) to test robustness.
  • Popularity Substitution (PS): Swaps entities based on Wikipedia page views to measure the impact of entity fame on model stubbornness.

The primary metric for evaluation is the Memorization Ratio ($M_R$), which calculates how often a model predicts its original memorized answer instead of the substituted answer provided in the context.

Key Insights: Model Size and Bias

A critical finding of the study is the relationship between model scale and reliance on parametric memory. As models increase in size, they become significantly more "stubborn."

Memorization Ratio increases as a function of model size across different evaluation sets.

Additional insights include:

  • Popularity Bias: Models are more likely to ignore context when the memorized entity is highly popular (e.g., a famous world leader).
  • Entity Types: Models show higher stubbornness regarding numeric entities (dates, numbers) compared to strings (names, locations).
  • Retrieval Influence: Training with poor-quality retrievers encourages models to distrust context and rely solely on internal memory.

Mitigation and Results

The researchers proposed a data augmentation strategy to combat this bias. By fine-tuning models on a mixture of original data and conflicting substituted examples, they forced the models to prioritize contextual evidence.

This approach yielded significant improvements:

  1. Hallucination Reduction: The Memorization Ratio ($M_R$) dropped to near-zero levels, indicating the models learned to trust the provided text.
  2. Improved Generalization: Performance on Out-of-Distribution (OOD) data increased by 4% to 7% in F1 score. By learning to "read" rather than "memorize," the models became more robust to unseen or updated information.

Conclusion

Knowledge conflicts represent a significant hurdle for reliable QA systems. While larger models possess more internal knowledge, they are also more prone to ignoring external evidence. By systematically generating conflicts and using them for training, we can develop models that are more faithful to their context, reducing hallucinations and improving performance on dynamic real-world data.

Summary updated

BibTeX
@inproceedings{longpre2021entity,
  author = {Shayne Longpre and Kartik Perisetla and Anthony Chen and Nikhil Ramesh and Chris DuBois and Sameer Singh},
  title = {{Entity-Based Knowledge Conflicts in Question Answering}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2021},
  doi = {10.18653/v1/2021.emnlp-main.565},
}
Figure