NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Why Language Models Prioritize Memory Over Prompt Context

44 concepts36 papers2 proposals

When we deploy Large Language Models (LLMs) for tasks like Retrieval-Augmented Generation (RAG) or abstractive summarization, we expect them to act as objective information processors. We provide a specific context—a news article, a medical record, or a retrieved document—and expect the model to reason strictly within those boundaries.

However, an LLM is not a blank slate. It arrives with billions of parameters shaped by pre-training on massive web corpora. This creates a fundamental tug-of-war during token generation: the model must balance its internal prior knowledge (parametric memory) against the external context provided in the prompt (non-parametric evidence). When these two forces conflict, the model's internal priors frequently override the explicit evidence right in front of it, leading to a phenomenon known as internal knowledge bias.

The Tug-of-War Between Memory and Context

To understand why this happens, consider how an LLM generates text. At each step, the model computes a probability distribution over the vocabulary. This distribution is influenced by two primary forces: the attention mechanism tracking the tokens in the prompt, and the static factual associations baked into the model's weights during training.

As explored by Jousselme et al. in Uncertain about ChatGPT: enabling the uncertainty evaluation of large language models, when a prompt contains explicit data that contradicts a strong internal association, the model often defaults to its pre-trained distributions. The parametric "gravity" of its training data overpowers the contextual signals, causing the model to confidently output factually incorrect or outdated information that aligns with its memory rather than the user's prompt.

The Familiarity Paradox

Intuitively, one might assume that an LLM would perform best on topics it has encountered frequently during training. Yet, recent research reveals a counterintuitive phenomenon known as the familiarity paradox.

In Evaluating the Factuality of Zero-shot Summarizers Across Varied Domains, the authors discovered that LLMs actually produce more factual hallucinations when summarizing widely known news topics than when summarizing highly specialized, unfamiliar domains. When a model has been over-exposed to a subject during pre-training, its internal probability distributions for those concepts are incredibly steep. The model "knows" the topic so well that it struggles to stick to the text provided. Instead of summarizing the specific document, it injects extrinsic information from its memory.

This interference shows up clearly across different modalities and tasks:

  • Literature and History: Zhang et al. found in Cross-lingual Cross-temporal Summarization: Dataset, Models, Evaluation that when models summarize famous historical or literary works, they frequently hallucinate details from the widely known public plot rather than accurately reflecting the specific text version they were given.
  • Persona Grounding: When designing virtual characters, developers often try to inject custom, user-defined histories. However, Landwehr et al. demonstrated in Memories for Virtual AI Characters that if a character is based on a well-known public figure, the model's pre-existing weights routinely override the provided external memories, leading to factual inconsistencies.

How Internal Priors Distort Reasoning

This bias does more than just corrupt factual recall; it actively sabotages logical reasoning. When models encounter data that deviates from their expectations, they often smooth over the anomalies by substituting reality with their priors.

For instance, consider entity-level substitutions during abstractive summarization. As noted by Zhang et al. in Improving the Faithfulness of Abstractive Summarization via Entity Coverage Control, models trained on massive corpora frequently swap out rare or minor entities present in a source document with more famous, high-frequency entities from their pre-training data.

This distortion becomes even more pronounced in structured reasoning tasks:

  • Chart Interpretation: When interpreting visual charts, models frequently fail to read the actual data points presented. Instead, as shown by Hong et al. in Do LLMs Have Visualization Literacy?, they rely on internal textual training data to "guess" what the chart should say based on historical trends, ignoring the visual evidence when it contradicts their priors.
  • Counterfactual Reasoning: The benchmark dataset CofCA exposes this flaw by forcing models to complete multi-hop reasoning tasks using fictional or altered facts. When the reasoning path requires a departure from real-world knowledge, models repeatedly fail because they cannot resist reverting to the true facts stored in their weights. Even advanced prompting techniques fail to break this habit; Wu et al. observe in DeCoT: Debiasing Chain-of-Thought for Knowledge-Intensive Tasks in Large Language Models via Causal Intervention that internal pre-trained knowledge regularly overrides the explicit logical constraints introduced in a prompt.

Rebalancing the Scale

To prevent internal memory from hijacking the context, researchers are designing inference-time interventions that dynamically tip the scales back toward the prompt.

One promising direction involves monitoring and manipulating the model's internal attention signals during generation. In Dynamic Attention-Guided Context Decoding for Mitigating Context Faithfulness Hallucinations in Large Language Models, Huangyw et al. introduced a decoding strategy (DAGCD) that tracks token uncertainty. When the model is about to generate a token driven purely by its internal prior, the system dynamically amplifies the attention weights pointing back to the retrieved context.

By forcing the model to mathematically prioritize context-grounded tokens over high-probability parametric defaults, these techniques help ensure that LLMs act as faithful readers rather than overconfident reciters of their own training data.

Key Foundational Work

Uncertain about ChatGPT: enabling the uncertainty evaluation of large language models (2023) — contributed 3 concept elements to this direction.
Memories for Virtual AI Characters (2023) — contributed 3 concept elements to this direction.
Automatic Hallucination Assessment for Aligned Large Language Models via Transferable Adversarial Attacks (2023) — contributed 2 concept elements to this direction.
History & citationVersion 1 · 2026-10-04

Current · Permanent link

View frozen version 1

Cite this direction

Latest version (a living page):

@misc{lacuna_internal_knowledge_bias_25fc764c,
  title = {internal knowledge bias},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/internal-knowledge-bias/rdr_25fc764c25a34657ba6f18daf83d0c94},
  note = {Latest version of a living research direction; cite a version for a fixed text. Accessed 2026-11-28},
}

This exact version (version 1, frozen text):

@misc{lacuna_internal_knowledge_bias_25fc764c_v1,
  title = {internal knowledge bias},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/internal-knowledge-bias/rdr_25fc764c25a34657ba6f18daf83d0c94/v/1},
  note = {Version 1, frozen 2026-10-04. Accessed 2026-11-28},
}
About

These directions overlap with this one through shared papers.

See something wrong? Report a mistake