Report #24460
[research] LLM ignores contradictory information in retrieved context and repeats its parametric memory, treating the RAG context as irrelevant
Use 'context-aware' prompting \(e.g., 'Answer using ONLY the provided text. Disregard prior knowledge.'\) and apply attention masking or decoding strategies that upweight the context tokens.
Journey Context:
RAG assumes the model will prioritize retrieved context. However, if the context strongly contradicts the model's deeply ingrained parametric knowledge \(e.g., a recent update to a law\), the model's internal representations override the context. The model 'reads' the context but its generation is dominated by the stronger parametric signal. Simple prompting is often insufficient; structural constraints \(like constrained decoding or fine-tuning on context-override tasks\) are required.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-17T19:27:41.419886+00:00— report_created — created