TL;DR
Retrieval-Augmented Generation (RAG) systems often fail when retrieved context contradicts a model's internal knowledge. This paper demonstrates that fixed rules for resolving these conflicts are mathematically suboptimal; instead, it proposes a Bayesian framework that uses a user-defined prior on context reliability and calibrated "knowledge notes" to consistently outperform existing methods across diverse scenarios.
What Problem Does This Paper Address?
In RAG, a language model (LM) draws from two sources: its internal parameters and the retrieved context. Disagreements are common—retrieved data can be satirical, outdated, or flat-out wrong (like the infamous Google AI search result advising users to put glue on pizza).
Current research typically handles these "knowledge conflicts" using fixed rules: "always follow the context," "trust the model's memory," or "amplify the context if it deviates significantly from the model's prior." The authors argue that these rules are "confidently wrong" depending on the deployment. A rule that works when context is 90% reliable will fail miserably when it is only 10% reliable.
Methods
The authors introduce a system designed to stay on the "optimal envelope" of performance by treating the conflict as a Bayesian decision problem. Their approach involves four key stages:
- Elicit Knowledge Notes: Before seeing the context, the model is prompted to generate short factual notes about the question. These notes are assigned a "stance" (confirm, contradict, add, or bridge) relative to the context.
- Calibrated Note Policy: A small, two-layer transformer evaluates these notes. It assigns a probability $p_j$ that the note is true and useful. This is converted into a "spoken confidence" (e.g., "I am confident" or "I believe") using a learned log-odds shift.
- Two-Voiced Reader: The model generates a final answer that explicitly acknowledges both sources. For example: "According to the provided information, X. As far as I know, this is incorrect; Y is the case."
- Selector with Prior $\pi$: A gradient-boosting classifier scores candidate answers. Crucially, it applies a user-defined prior $\pi$ (the expected reliability of the context) as an exact prior shift. It then applies Chow’s reject rule: the system only commits to an answer if its probability of being correct exceeds 0.5; otherwise, it abstains.
Datasets
- GRACE (New): A benchmark that intervenes on knowledge-graph contexts. By fixing the question and varying the context (clean, broken, wrong, or competing), it isolates whether a model is relying on its own knowledge or the provided text.
- ClashEval: A preregistered external test set containing over 10,000 records with perturbed documents.
- Housing Statute QA: A dataset of legal questions where the model’s internal knowledge is frequently incorrect, testing the system's ability to handle "harmful" internal knowledge.
Key Insights and Ideas
- Fixed Rules are Lines; the Optimum is Convex: Mathematically, the score of any fixed rule is a linear function of the share of reliable contexts ($f$). However, the best attainable score is a convex curve that sits above all these lines. This means every fixed rule is beaten somewhere.
- Divergence is Not Direction: Methods like AdaCAD use the divergence between the model's prior and the context to weight their answers. The authors prove that while symmetric divergence (like JSD) can detect a conflict, it carries zero information about which source is actually correct.
- The "George Washington" Check: The authors verified their results weren't due to benchmark cues (like the distractor entity "George Washington" used in GRACE). They found that the system's gains were tied to the model actually knowing the facts, not just spotting patterns in the distractors.
Key Results
The proposed method consistently outperformed thirteen baseline methods across two different model backbones (Qwen3.5-35B and Llama-3.1-8B).
- Superiority on GRACE: The system stayed above the best baseline at every mixture of context reliability, gaining up to 26 points in Correct-minus-Wrong (C-W) score.
- External Validation: On the ClashEval benchmark, it beat same-backbone methods like CK-PLUG and TCR by 12 and 26 points, respectively.
- Robustness: In scenarios where the model lacks knowledge (like Housing Statute QA), the system correctly reverts to following the context or abstaining, avoiding the "confidently wrong" trap of other methods.
Limitations and Future Work
- Selector Calibration: The selector is a learned component. While it generalizes well, its calibration is most accurate on the types of questions and contexts it was trained on. A new domain might require retraining the small selector module.
- Prior Estimation: Currently, the prior $\pi$ is set by the user. The authors suggest that future work could involve automatically estimating $\pi$ from unlabeled traffic.
- Latency: The system requires multiple model calls (elicitation, verification, reading), which increases latency compared to a single-call RAG system, though it remains within the range of other high-performance multi-call baselines.
Summary updated