Resisting Contextual Interference in RAG via Parametric-Knowledge Reinforcement

Chenyu Lin, Yilin Wen, Du Su, Hexiang Tan, Fei Sun, Muhan Chen, Chenfu Bao, Zhonghou Lv

Retrieval-Augmented Generation (RAG) is the industry standard for grounding Large Language Models (LLMs) in factual data. However, RAG has a "stubborn obedience" problem: when a retriever pulls up incorrect, irrelevant, or conflicting information, the model often ignores its own internal knowledge to blindly follow the provided context. This paper introduces Knowledgeable-R1, a reinforcement learning (RL) framework designed to help models decide exactly when to trust the context and when to stick to their internal facts.

TL;DR

Knowledgeable-R1 uses a novel reinforcement learning approach to mitigate "context dominance," where LLMs over-rely on faulty retrieved data. By training on joint sampling paths (with and without context) and using an adaptive advantage transformation, the model learns a robust decision rule for knowledge integration. It outperforms state-of-the-art baselines by over 22% in adversarial scenarios without losing performance on accurate data.

The Problem: Contextual Interference

The core issue in modern RAG systems is contextual interference. Current LLMs are fine-tuned to be highly "faithful" to the provided context. While this reduces hallucinations in standard RAG, it creates a critical vulnerability: if the retrieved document contains a counterfactual (e.g., "The capital of France is Lyon"), the model will often repeat that error even if its internal "parametric knowledge" (PK) knows the truth.

Existing solutions like specialized prompting or complex decoding strategies add computational overhead or require manually annotated data. The authors identify a fundamental "knowledge imbalance"—models lack a stable mechanism to weigh their internal certainty against external evidence.

Methods: The Knowledgeable-R1 Framework

Knowledgeable-R1 Framework

Knowledgeable-R1 builds on the Group Relative Policy Optimization (GRPO) framework but introduces three critical innovations to balance internal and external knowledge:

  1. Joint Sampling Scheme: For every query, the model generates three types of trajectories to explore different answering strategies:
  2. PK (Parametric): Query only, no context. Relies entirely on internal knowledge.
  3. CK (Context-aware): Query + Context, aiming for context-based answers.
  4. RPK (Robust-PK): Query + Context, but the model is evaluated on its ability to maintain the correct internal (PK) answer despite misleading context.
  5. Local and Global Advantages: Instead of just rewarding the overall "best" answer, the model calculates a Local Advantage (how well a response performed relative to others of the same type) and a Global Advantage (a side-by-side comparison of CK and RPK paths). This forces the model to learn the relative merits of following context versus falling back on internal knowledge.
  6. Knowledge Balance Modulation ($\beta$): Standard RL often biases models toward context because context-following paths usually yield higher rewards during training. The authors introduce an asymmetric transformation using an adaptive coefficient $\beta$. This reduces the penalty for "incorrect" PK-based answers when the context is misleading, allowing the model to become more "cautious" as the gap between context-aware and internal performance narrows.

Datasets and Evaluation

To rigorously test this, the authors introduce KnowQA, a comprehensive benchmark evaluating RAG robustness across five scenarios:

  • S1 (Correct): Accurate evidence.
  • S2 (Wrong): Counterfactual/adversarial evidence.
  • S3 (Conflict): Internally inconsistent evidence.
  • S4 (Irrelevant): Completely unrelated context.
  • S5 (Partly Irrelevant): A mix of valid evidence and distractors.

Key Results

Main Results on KnowQA Benchmark
  • Adversarial Dominance: In counterfactual scenarios (S2 - Wrong), Knowledgeable-R1 significantly outperformed GRPO w/ RAG and standard RAG prompting. For instance, on Qwen2.5-7B, it achieved up to a +30.47% improvement over standard RAG prompting in specific adversarial splits.
  • Ignoring the Noise: In Scenario S4 (irrelevant context), where standard RAG often performs worse than no RAG at all by getting distracted, Knowledgeable-R1 achieved top-tier accuracy (e.g., 67.57% on Qwen ExplainPE), effectively learning to ignore the noise.
  • Preserved Accuracy on Good Data: Crucially, the model maintained high performance (around 80%) when the context was actually correct (S1). It doesn't become "stubborn" to the point of ignoring genuinely helpful new information.
  • Generalization: The model showed significant gains on complex multi-hop datasets like MuSiQue and 2WikiMultiHopQA, proving it learned a generalizable rule for knowledge arbitration rather than just memorizing training distributions.

Limitations and Future Work

  • Granularity of Conflict: The paper notes that they haven't fully analyzed how the model reacts to varying "ratios" of conflict (e.g., 1 correct document vs. 4 incorrect ones in a single prompt).
  • Parametric Dependency: The fallback mechanism inherently relies on the model actually possessing the correct parametric knowledge. If the model is "blank" on a topic, it may still be led astray by confident-sounding noise.
  • Scalability: While tested on models up to 8B parameters (Llama 3.1) and 7B (Qwen 2.5), future work is needed to see if these "knowledge arbitration" behaviors scale consistently as models grow significantly larger and their internal knowledge graphs become denser.

Summary updated

BibTeX
@inproceedings{lin2026resisting,
  author = {Chenyu Lin and Yilin Wen and Du Su and Hexiang Tan and Fei Sun and Muhan Chen and Chenfu Bao and Zhonghou Lv},
  title = {{Resisting Contextual Interference in RAG via Parametric-Knowledge Reinforcement}},
  booktitle = {International Conference on Learning Representations},
  year = {2026},
  url = {https://openreview.net/forum?id=6Qc6sO1jh9},
}
Figure