WikiContradict: A Benchmark for Evaluating LLMs on Real-World Knowledge Conflicts from Wikipedia

Yufang Hou, Alessandra Pascale, Javier Carnerero-Cano, Tigran T. Tchrakian, Radu Marinescu, Elizabeth Daly, Inkit Padhi, Prasanna Sattigeri

Large Language Models (LLMs) are increasingly utilized in Retrieval-Augmented Generation (RAG) systems to provide factual answers grounded in external context. However, a significant challenge arises when retrieved sources contain conflicting information. While synthetic datasets have been used to study this, they often lack the nuance of real-world inconsistencies. This paper introduces WikiContradict, a benchmark derived from actual contradictions flagged by Wikipedia editors, to evaluate how LLMs navigate inter-context knowledge conflicts.

The Challenge of Inter-Context Conflicts

Retrieval-Augmented Generation (RAG) is the current industry standard for grounding LLMs in external knowledge and reducing hallucinations. Despite its success, RAG systems face a major "blind spot": inter-context conflicts. These occur when multiple trustworthy sources—or even different sections of the same authoritative source like Wikipedia—provide contradictory facts.

Existing research often relies on synthetic datasets where contradictions are artificially injected (e.g., changing a city name). Such datasets fail to capture the complexity of real-world inconsistencies. WikiContradict addresses this gap by utilizing "maintenance tags" (e.g., inconsistent, self-contradictory) applied by Wikipedia editors to identify genuine, high-quality knowledge conflicts.

Methodology and Dataset Construction

The authors developed a rigorous pipeline to transform Wikipedia's maintenance tags into a structured QA benchmark:

  1. Data Collection: Approximately 1,200 articles with conflict tags were identified.
  2. Human Annotation: Experts verified the validity of these tags and extracted specific contradictory passages. These passages were "decontextualized" to ensure they could stand alone (e.g., resolving anaphoric references like "it" or "she").
  3. Question Crafting: Annotators formulated questions that would elicit different responses depending on which of the two conflicting passages was used.
  4. Taxonomy: Conflicts were categorized by type (e.g., Date, Number) and reasoning level: Explicit (directly stated) vs. Implicit (requiring calculation or inference).
Examples of implicit and explicit knowledge conflicts in WikiContradict.

The resulting WikiContradict dataset consists of 253 high-quality, human-annotated instances. The dataset is balanced between question types (53% Yes/No, 47% Wh-questions) and covers both explicit (64%) and implicit (36%) contradictions.

Experimental Results and Insights

The researchers evaluated several state-of-the-art models, including GPT-4, Llama-3-70b-instruct, and Mistral-7b-inst, using five different prompt templates. These templates ranged from simple context-based QA to "contradiction-aware" prompts that explicitly instructed the model to identify and report inconsistencies.

Several key findings emerged from the benchmarking process:

  • Prompting is Crucial: Models generally failed to report conflicts when given standard RAG prompts (Prompt 4). However, using a "contradiction-aware" prompt (Prompt 5), which asks the model to "carefully investigate the context for contradictions," led to significant performance gains. For instance, Llama-3-70b-instruct's accuracy rose from ~10% to ~44%.
  • Implicit Reasoning Difficulty: Models struggled significantly more with implicit contradictions. When a conflict required a calculation (e.g., deriving a survivor count from total passengers and casualties), performance dropped compared to surface-level explicit conflicts.
  • Parametric Memory Bias: GPT-4 occasionally exhibited "stubbornness," favoring its internal training data even when the provided context explicitly contradicted it.
  • The Reconciliation Trap: Instead of reporting a conflict, models often attempted to "reconcile" the information by picking one side or inventing a narrative to make both facts appear true.
Performance of various LLMs across different prompt templates and contradiction types.

Conclusion

Llama-3-70b-instruct emerged as the top performer, particularly when paired with contradiction-aware prompting. To facilitate future research, the authors also introduced WikiContradictEval, an automated judge based on Llama-3 that shows high agreement (0.8 F-score) with human evaluators. While WikiContradict provides a valuable real-world benchmark, future work could expand to include multi-modal conflicts and deeper reasoning requirements.

Summary updated

BibTeX
@inproceedings{hou2024wikicontradict,
  author = {Yufang Hou and Alessandra Pascale and Javier Carnerero-Cano and Tigran T. Tchrakian and Radu Marinescu and Elizabeth Daly and Inkit Padhi and Prasanna Sattigeri},
  title = {{WikiContradict: A Benchmark for Evaluating LLMs on Real-World Knowledge Conflicts from Wikipedia}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2024},
}
Figure