When Context Leads but Parametric Memory Follows in Large Language Models

Yufei Tao, Adam Hiatt, Erik Haake, Antonie J. Jetter, Ameeta Agrawal
9/13/2024
18 citations
cs.CLcs.AI

Official code: PortNLP/WikiAtomic (1 star, MIT, last commit 2024-10-16).

Abstract

Large language models (LLMs) have demonstrated remarkable progress in leveraging diverse knowledge sources. This study investigates how nine widely used LLMs allocate knowledge between local context and global parameters when answering open-ended questions in knowledge-consistent scenarios.

Show full abstract

We introduce a novel dataset, WikiAtomic, and systematically vary context sizes to analyze how LLMs prioritize and utilize the provided information and their parametric knowledge in knowledge-consistent scenarios. Additionally, we also study their tendency to hallucinate under varying context sizes. Our findings reveal consistent patterns across models, including a consistent reliance on both contextual (around 70%) and parametric (around 30%) knowledge, and a decrease in hallucinations with increasing context. These insights highlight the importance of more effective context organization and developing models that use input more deterministically for robust performance.

View on arXivView PDF

Code Implementations(1)

PortNLP/WikiAtomicOfficial100%
MIT
11Sep 10, 20242 years agoMIT

Similar Papers

Cite this paper

@article{tao2024when,
  title  = {When Context Leads but Parametric Memory Follows in Large Language Models},
  author = {Yufei Tao and Adam Hiatt and Erik Haake and Antonie J. Jetter and Ameeta Agrawal},
  year   = {2024},
  eprint = {2409.08435},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2409.08435v4}
}

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

Discussion