DisentQA: Disentangling Parametric and Contextual Knowledge with Counterfactual Question Answering

Ella Neeman, Roee Aharoni, Or Honovich, Leshem Choshen, Idan Szpektor +1 more
11/10/2022
cs.CLcs.AIcs.LG

Official code: ellaneeman/disent_qa (16 stars, Python, Apache-2.0, last commit 2023-03-20).

Abstract

Question answering models commonly have access to two sources of "knowledge" during inference time: (1) parametric knowledge - the factual knowledge encoded in the model weights, and (2) contextual knowledge - external knowledge (e.g., a Wikipedia passage) given to the model to generate a grounded answer. Having these two sources of knowledge entangled together is a core issue for generative QA models as it is unclear whether the answer stems from the given non-parametric knowledge or not.

Show full abstract

This unclarity has implications on issues of trust, interpretability and factuality. In this work, we propose a new paradigm in which QA models are trained to disentangle the two sources of knowledge. Using counterfactual data augmentation, we introduce a model that predicts two answers for a given question: one based on given contextual knowledge and one based on parametric knowledge. Our experiments on the Natural Questions dataset show that this approach improves the performance of QA models by making them more robust to knowledge conflicts between the two knowledge sources, while generating useful disentangled answers.

View on arXivView PDF

Code Implementations(1)

Apache-2.0

This code accompanies the paper DisentQA: Disentangling Parametric and Contextual Knowledge with Counterfactual Question Answering.

162PythonNov 10, 20223 years agoApache-2.0

Similar Papers

Cite this paper

@article{neeman2022disentqa,
  title  = {DisentQA: Disentangling Parametric and Contextual Knowledge with Counterfactual Question Answering},
  author = {Ella Neeman and Roee Aharoni and Or Honovich and Leshem Choshen and Idan Szpektor and Omri Abend},
  year   = {2022},
  eprint = {2211.05655},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2211.05655}
}

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/2211.05655.svg)](https://codeofpaper.com/paper/2211.05655)

Discussion