Entity-Based Knowledge Conflicts in Question Answering

Shayne Longpre, Kartik Perisetla, Anthony Chen, Nikhil Ramesh, Chris DuBois +1 more
9/10/2021
cs.CLcs.LG

Official code: apple-aiml-research/ml-knowledge-conflicts (77 stars, Python, last commit 2026-09-11).

Abstract

Knowledge-dependent tasks typically use two sources of knowledge: parametric, learned at training time, and contextual, given as a passage at inference time. To understand how models use these sources together, we formalize the problem of knowledge conflicts, where the contextual information contradicts the learned information.

Show full abstract

Analyzing the behaviour of popular models, we measure their over-reliance on memorized information (the cause of hallucinations), and uncover important factors that exacerbate this behaviour. Lastly, we propose a simple method to mitigate over-reliance on parametric knowledge, which minimizes hallucination, and improves out-of-distribution generalization by 4%-7%. Our findings demonstrate the importance for practitioners to evaluate model tendency to hallucinate rather than read, and show that our mitigation strategy encourages generalization to evolving information (i.e., time-dependent queries). To encourage these practices, we have released our framework for generating knowledge conflicts.

View on arXivView PDF

Code Implementations(1)

Entity-Based Knowledge Conflicts in Question Answering. Code repo for EMNLP2021 paper: https://aclanthology.org/2021.emnlp-main.565/

7716Python, ShellSep 13, 20212 months agoNOASSERTION

Similar Papers

Cite this paper

@article{longpre2021entitybased,
  title  = {Entity-Based Knowledge Conflicts in Question Answering},
  author = {Shayne Longpre and Kartik Perisetla and Anthony Chen and Nikhil Ramesh and Chris DuBois and Sameer Singh},
  year   = {2021},
  eprint = {2109.05052},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2109.05052}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2109.05052.svg)](https://codeofpaper.com/paper/2109.05052)

Discussion