Studying Large Language Model Behaviors Under Context-Memory Conflicts With Real Documents

Evgenii Kortukov, Alexander Rubinstein, Elisa Nguyen, Seong Joon Oh
4/24/2024
cs.LG

Official code: kortukov/realistic_knowledge_conflicts (14 stars, last commit 2024-10-08).

Abstract

Retrieval-augmented generation (RAG) mitigates many problems of fully parametric language models, such as temporal degradation, hallucinations, and lack of grounding. In RAG, the model's knowledge can be updated from documents provided in context. This leads to cases of conflict between the model's parametric knowledge and the contextual information, where the model may not always update its knowledge. Previous work studied context-memory knowledge conflicts by creating synthetic documents that contradict the model's correct parametric answers. We present a framework for studying such knowledge conflicts in a realistic setup. We update incorrect parametric knowledge using real conflicting documents. This reflects how knowledge conflicts arise in practice. In this realistic scenario, we find that knowledge updates fail less often than previously reported. In cases where the models still fail to update their answers, we find a parametric bias: the incorrect parametric answer appearing in context makes the knowledge update likelier to fail. These results suggest that the factual parametric knowledge of LLMs can negatively influence their reading abilities and behaviors. Our code is available at https://github.com/kortukov/realistic_knowledge_conflicts/ .

View on arXivView PDF

Code Implementations(1)

Code for the paper "Studying Large Language Model Behaviors Under Context-Memory Conflicts With Real Documentss"

142PythonMar 28, 20242 years ago

Similar Papers

Cite this paper

@article{kortukov2024studying,
  title  = {Studying Large Language Model Behaviors Under Context-Memory Conflicts With Real Documents},
  author = {Evgenii Kortukov and Alexander Rubinstein and Elisa Nguyen and Seong Joon Oh},
  year   = {2024},
  eprint = {2404.16032},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2404.16032v2}
}

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

Discussion