Understanding the Interplay between Parametric and Contextual Knowledge for Large Language Models

Sitao Cheng, Liangming Pan, Xunjian Yin, Xinyi Wang, William Yang Wang

TL;DR

When external context is provided to large language models (LLMs), they exhibit a form of "catastrophic test-time forgetting"—suppressing their internal parametric knowledge (PK) even when that context is complementary or completely irrelevant. Introducing ECHOQA, this paper systematically evaluates how models balance internal memory and external context, revealing that models struggle to fuse both sources effectively and often surrender their own correct knowledge to misleading or distracting contexts.

What Problem Does This Paper Address?

Modern LLM pipelines frequently rely on Retrieval-Augmented Generation (RAG) to supplement the model’s internal pre-trained memory (parametric knowledge, or PK) with retrieved reference documents (contextual knowledge, or CK). However, little is known about how dynamically and reliably LLMs integrate internal PK with external CK.

Do LLMs leverage both sources when multi-hop reasoning requires it? Do they blindly trust external context when it conflicts with what they know? The authors identify a counter-intuitive vulnerability: providing task-relevant context can actually degrade performance because LLMs over-rely on the prompt text and suppress internal knowledge they demonstrably possess.

Methods

The authors structure their investigation around four interaction types between external CK and internal PK:

  1. Supportive ($\text{CK} \odot \text{PK}$): Both express the same fact.
  2. Complementary ($\text{CK} \wedge \text{PK}$): The query requires a multi-hop connection using both internal PK and external CK.
  3. Conflicting ($\text{CK} \oplus \text{PK}$): External context contradicts internal PK (e.g., via entity property variation or modification).
  4. Irrelevant ($\text{CK} \vee \text{PK}$): Context contains topically related but unhelpful distractor facts; the query relies solely on PK.

To evaluate LLMs fairly, the benchmark first queries models in isolation to elicit and verify that the target fact is genuinely part of their PK (100% initial accuracy on verified facts). Only then is CK introduced.

The authors also test whether prompt engineering can recover suppressed knowledge using Progressively-Enforced Instructions:

  • Neutral Instruction: Asks the model to combine given text and internal knowledge.
  • Trust Yourself Instruction: Warns the model that context may be insufficient or conflicted.
  • Speak Out Loud Instruction: Requires the model to first explicitly state its internal PK before answering (akin to Chain-of-Thought).

Tested models include OpenAI o1-preview, GPT-4o, GPT-4o-mini, Llama 3.1 (70B, 8B), and Qwen 2-7B.

Datasets

The authors curate ECHOQA, spanning scientific, factual, and commonsense tasks across:

  • ALCUNA (Scientific / Biological): Explores synthetic and real biological entities and their properties.
  • ConflictQA / PopQA (Factual): Entity-centric factual knowledge with known entity popularity metrics.
  • MuSiQue (Factual / Multi-hop): Complex multi-step reasoning over longer documents.
  • OpenBookQA (Commonsense): Science and commonsense multiple-choice questions requiring common-world intuition.

Key Insights and Ideas

  • Universal Suppression of PK: Across all model sizes and architectures, injecting external context suppresses the recall of internal knowledge. For scientific knowledge under complementary reasoning, adding context actually made performance worse than giving no context at all.
  • The Root in Post-Training: Standard instruction-tuning typically formats data as either context-only reading comprehension or closed-book knowledge recall (Instruction; Context (Optional); Question -> Answer). Consequently, LLMs learn to treat context and memory as mutually exclusive rather than complementary.
  • Commonsense vs. Factual Memory: Models resist context distraction and conflicts far better on commonsense facts than on scientific or niche factual knowledge, likely reflecting higher frequency in pre-training corpora.
  • Popularity Bias: Memorization ratio closely tracks entity popularity: popular Wikipedia entities had nearly double the recall rate under conflicting context compared to obscure entities.

Key Results

  • Complementary Reasoning: In ALCUNA (scientific), adding complementary CK caused models to default to "Unknown" options; unknown rates doubled for Llama and Qwen models (e.g., Qwen 2-7B jumped from 40.3% to 81.3% unknown).
  • Conflicting Context: Under neutral instructions, LLMs rarely trusted their own memory—fewer than 10% of cases adhered to PK across most datasets. While prompting ("Speak Out Loud") improved parametric adherence, memorization ratios still rarely exceeded 60% on factual and scientific benchmarks. OpenAI o1-preview demonstrated the highest resilience, yet still showed vulnerabilities.
  • Irrelevant Context: When given completely irrelevant documents, models still hunted for answers inside the noise, yielding unknown/error rates above 50% for several models under standard prompts.

Limitations and Future Work

  • Benchmark Scope: The study primarily focuses on contemporary models with strong instruction-following capabilities on multi-choice QA; evaluation over free-form generation and more granular conflict granularities (sentence vs. document level) remains open.
  • Prompting is a Band-Aid: While explicit instructions help mitigate the suppression, prompting alone does not close the gap to golden-knowledge baselines.
  • Future Directions: The authors suggest developing two-step agent frameworks (first retrieve/recall internal facts explicitly before seeing external text) and redesigning post-training objectives to natively incentivize the fusion of PK and CK.

Summary updated

BibTeX
@inproceedings{cheng2025understanding,
  author = {Sitao Cheng and Liangming Pan and Xunjian Yin and Xinyi Wang and William Yang Wang},
  title = {{Understanding the Interplay between Parametric and Contextual Knowledge for Large Language Models}},
  booktitle = {KnowFM @ ACL},
  year = {2025},
  url = {https://openreview.net/forum?id=4uisAcagzw},
}
Figure