Probing Latent Knowledge Conflict for Faithful Retrieval-Augmented Generation

Linfeng Gao, Baolong Bi, Zheng Yuan, Le Wang, Zerui Chen, Zhimin Wei, Shenghua Liu, Qinggang Zhang, Jinsong Su · Submission to ICLR 2026 · Withdrawn

TL;DR

When retrieved documents contradict an LLM's internal pre-trained memory, the model often stubbornly ignores the evidence. By probing the hidden states inside language models, this paper reveals that knowledge conflicts emit clear latent signals at the sentence level in intermediate layers. Leveraging this finding, the authors introduce CLEAR, a framework that localizes conflicting knowledge via lightweight probing and uses conflict-aware fine-tuning to explicitly guide the model's attention toward external evidence.

What Problem Does This Paper Address?

Retrieval-Augmented Generation (RAG) is the go-to solution for reducing hallucinations and injecting up-to-date facts into LLMs. However, RAG systems suffer when facing knowledge conflicts—situations where retrieved context directly contradicts what the model learned during pre-training, or where semantically related but irrelevant noise distracts the generator. In these situations, LLMs display "confirmation bias," prioritizing their internal parametric beliefs over provided documents.

Prior solutions—such as prompt engineering, constrained decoding, and preference optimization (e.g., DPO)—treat the LLM as a black box. As a result, they can be brittle, prompt-sensitive, or reliant on massive curated preference datasets. This paper opens the black box to ask: Where and how does an LLM internally process and reconcile conflicting knowledge?

Methods

To tackle this, the authors propose CLEAR (Conflict-Localized and Enhanced Attention for RAG), which operates across three stages:

  1. Fine-Grained Knowledge Pruning: Instead of processing raw, messy passages, the context is decomposed into atomic, sentence-level fact assertions (subject-predicate-object structure) using an LLM. Irrelevant items are filtered out using embedding cosine similarity (all-MiniLM-L6-v2) against the user query.
  2. Hidden-State Probing for Conflict Detection: The filtered statements are fed through the LLM. An auxiliary Multi-Layer Perceptron (MLP) probe inspects the frozen model’s hidden representations to classify whether each sentence conflicts with internal memory ($y_i \in \{0, 1\}$). Conflicting facts are bracketed with special tokens (<conflict> ... </conflict>).
  3. Conflict-Aware Supervised Fine-Tuning (CA-SFT): The model is fine-tuned using LoRA under a composite loss: $$\mathcal{L}_{\text{Total}} = (1 - \lambda)\mathcal{L}_{\text{LM}} + \lambda\mathcal{L}_{\text{Attn}}$$ The auxiliary attention guidance loss ($\mathcal{L}_{\text{Attn}}$) penalizes tokens that fail to allocate attention weights ($\alpha_{ij}$) to the identified conflict tokens, conditioning the LLM to ground its reasoning on the retrieved facts rather than internal memory.
Retrieved Context ──► Sentence Decomposition & Pruning ──► Hidden-State MLP Probe ──► Attention Regularization (CA-SFT)

Datasets

The authors evaluate CLEAR on three benchmarks covering diverse conflict scenarios:

  • ConFiQA: Real-world RAG benchmark with three subsets: single-hop QA (QA), multi-hop reasoning with one counterfactual (MR), and multi-hop with multiple counterfactuals (MC). Also used to train the CA-SFT stage (13,500 training instances).
  • FaithEval: Evaluates logical reasoning conflicts where inconsistencies arise from conflicting reasoning chains rather than single factual swaps.
  • SQuAD (KRE-curated version): Standard reading comprehension augmented with fact-level counterfactual knowledge conflicts.
  • MQuAKE: A knowledge editing dataset used specifically to train the MLP conflict detection probe on aligned vs. counterfactual statement pairs.

Key Insights and Ideas

  • Knowledge integration is hierarchical: LLMs compose information bottom-up (tokens $\to$ sentences $\to$ passages). The breakdown in faithfulness does not happen at the final output layer—it occurs at intermediate layers during sentence-level semantic abstraction.
  • Conflicts leave latent fingerprints: When visualizing hidden-state activations via t-SNE, context that contradicts parametric memory forms distinct clusters separate from aligned context across various architectures (LLaMA, Qwen, Mistral). A simple 3-layer MLP can identify these internal conflicts in a single forward pass.
  • Irrelevant context is amplified if it agrees with internal bias: LLMs disproportionately attend to query-irrelevant sentences if those sentences match their parametric knowledge.
  • More attention isn't always better: Forcing attention onto conflicting facts boosts performance up to a sweet spot ($\alpha \in [0.1, 0.3]$). Forcing excessive attention ($\alpha > 0.5$) harms generation accuracy because the model neglects the question and supporting context.

Key Results

CLEAR was evaluated against prompt-based (Opin(Instr), KRE), decoding-based (CAD, COIECD), and preference-tuning baselines (Context-DPO, CANOE) across multiple model families (LLaMA-3.1-8B-Instruct, Qwen3-8B, Mistral-7B-v0.3, and others in the appendix):

  • Consistent SOTA Performance: On LLaMA-3.1-8B-Instruct, CLEAR achieved 74.4% F1 / 64.4% EM on FaithEval (outperforming the strongest baseline, CANOE, by +2.8% F1 and +8.1% EM) and reached 93.1% F1 / 91.7% EM on ConFiQA (QA).
  • Strong Multi-Conflict Handling: On Qwen3-8B, CLEAR reached 90.7% F1 / 89.7% EM on ConFiQA (MC), setting a new benchmark on complex, multi-counterfactual reasoning.
  • Ablation Findings: Removing conflict detection caused the steepest performance decline (~10% across F1 and EM), proving that explicitly identifying internal conflict representations is essential for effective attention guidance.

Limitations and Future Work

  • Text-Only Modality: The framework relies on sentence decomposition and language hidden states. It does not directly translate to multimodal RAG (involving images, audio, or structured tables).
  • Pipeline Overhead: Breaking context into fine-grained atomic facts introduces extra computational latency during pre-processing, typically requiring an external decomposition model.

Summary updated

Abstract

Retrieval-Augmented Generation (RAG) has emerged as a powerful paradigm to enhance the factuality of Large Language Models (LLMs). However, existing RAG systems often suffer from an unfaithfulness issue, where the model's response contradicts evidence from the retrieved context. Existing approaches to improving contextual faithfulness largely rely on external interventions, such as prompt engineering, decoding constraints, or reward-based fine-tuning. These works treat the LLM as a black box and overlook a crucial question: how does the LLM internally integrate retrieved evidence with its parametric memory, particularly under knowledge conflicts? To address this gap, we conduct a probing-based analysis of hidden-state representations in LLMs and observe three findings: knowledge integration occurs hierarchically, conflicts manifest as latent signals at the sentence level, and irrelevant context is often amplified when aligned with parametric knowledge. Building on these findings, we propose **CLEAR** (**C**onflict-**L**ocalized and **E**nhanced **A**ttention for **R**AG), a framework that (i) decomposes context into fine-grained sentence-level knowledge, (ii) employs hidden-state probing to localize conflicting knowledge, and (iii) introduces conflict-aware fine-tuning to guide the model to accurately integrate retrieved evidence. Extensive experiments across three benchmarks demonstrate that CLEAR substantially improves both accuracy and contextual faithfulness, consistently outperforming strong baselines under diverse conflict conditions. The related resources are available at https://anonymous.4open.science/r/CLEAR-CF6B.
BibTeX
@misc{gao2025probing,
  author = {Linfeng Gao and Baolong Bi and Zheng Yuan and Le Wang and Zerui Chen and Zhimin Wei and Shenghua Liu and Qinggang Zhang and Jinsong Su},
  title = {{Probing Latent Knowledge Conflict for Faithful Retrieval-Augmented Generation}},
  year = {2025},
  eprint = {2510.12460},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2510.12460},
}
Figure