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

FIDES: Faithful Inference via Deep Evidence Signals for Retrieval-Memory Conflict in RAG

Zhe Yu, Wenpeng Xing, Tiancheng Zhao, Mohan Li, Changting Lin, Meng HanarXiv 2026

TL;DR

When retrieved documents contradict an LLM's internal knowledge, the model often ignores the context and defaults to its prior memory—a issue known as "stubborn hallucination." FIDES solves this by recognizing that this knowledge conflict is highly concentrated on a small fraction of answer-critical tokens (like facts and numbers) rather than distributed uniformly. By fusing three internal model signals across different computational depths, FIDES dynamically tunes contrastive decoding at the token level, significantly boosting context fidelity without degrading text fluency.

What Problem Does This Paper Address?

Retrieval-Augmented Generation (RAG) is designed to ground LLM outputs in external evidence. However, when retrieved information directly contradicts an LLM's pre-trained parametric memory, the model frequently suffers from stubborn hallucination: it ignores the provided context and falls back on its memorized priors.

To combat this, researchers use contrastive decoding, which amplifies the context-conditioned output distribution against a context-free one. The fatal flaw of existing contrastive methods is their implicit assumption that parametric bias is uniform across an entire generated sequence. They apply a single global contrastive weight, which over-penalizes "safe" tokens (like connectives and determiners), leading to repetitive or incoherent text, while failing to sufficiently correct heavily conflicted tokens (like factual entities or numbers).

This paper introduces the concept of token-level conflict concentration—the idea that retrieval-memory tension is sharply heterogeneous and highly localized. The authors reframe the challenge from how much contrastive pressure to apply to where to apply it.

Methods

The authors propose FIDES (Faithful Inference via Deep Evidence Signals), a training-free decoding strategy that operates entirely at inference time on frozen models.

FIDES runs a dual-path forward pass at each decoding step: a context path (with the retrieved document) and a no-context path. Instead of looking only at surface-level outputs, FIDES probes the model at three complementary computational depths to calculate a token-specific contrastive coefficient ($\alpha_t$):

  1. Opposition (Output Surface): Measures the direct distributional tension (Jensen-Shannon Divergence) between the next-token predictions of the context and no-context paths.
  2. Shift (Hidden Representations): Calculates the $\ell_2$ distance between normalized hidden states across all layers to capture how deeply the context perturbs the model's internal computation.
  3. Noise (Prediction Trajectory): Uses a "Logit-Lens" technique to measure the KL divergence between a midpoint layer and the final layer on the context path. This detects whether late-stage parametric memory injection is destabilizing an initially stable contextualized trajectory.
Figure 1: The FIDES framework. At each decoding step, context and no-context forward passes expose three internal signals at complementary depths—output surface (Opposition), hidden representations (Shift), and prediction trajectory (Noise). The fused FIDES Score gates the token-level contrastive coefficient αt.

These three signals are fused using fixed, globally calibrated weights (0.5 Opposition + 0.3 Shift + 0.2 Noise) derived from a label-free calibration pool. The resulting score dynamically scales the contrastive update at each individual token step.

Datasets

To isolate decoder faithfulness from retrieval quality, the authors utilize counterfactual evaluation. By intentionally swapping out correct entities in the reference text for plausible alternatives, they ensure that any deviation from the text represents a decoder failure rather than a bad retrieval. They evaluate FIDES on:

  • NQ-Swap: Derived from the Entity-Swap benchmark based on Natural Questions, where key numeric entities or proper nouns are replaced.
  • PopQA (CF-RAG) & TriviaQA (CF-RAG): Counterfactual variants where answer-bearing spans are rewritten using GPT-4 and manually verified for fluency and plausibility.
  • Non-Conflict RAG: A control setting using original, unswapped Natural Questions data to ensure the method remains selective when context and memory align.

Key Insights and Ideas

  • Conflict is Localized: FIDES successfully targets high-risk tokens. Factual answer tokens receive a $3.3\times$ higher adaptive contrastive weight than safe function words.
  • Surface Logits Aren't Enough: LLMs can be "confidently wrong." Probing deeper structural layers (Shift and Noise) catches internal prediction instability that surface-level outputs miss.
  • Graceful Degradation under Noise: Because FIDES relies on deep structural contradictions rather than simple surface differences, random irrelevant documents (retrieval noise) generate weak signal intensity. This allows the decoder to dynamically lower the contrastive penalty and safely fall back on its parametric memory when the context is uninformative.

Key Results

The authors evaluated FIDES across 3 benchmarks and 6 backbone models ranging from 7B to 70B parameters (including LLaMA2, LLaMA3, Mistral, and Qwen).

  • Superior Fidelity: FIDES achieved the highest context fidelity across all 18 experimental settings, outperforming Standard RAG by +14 to +28 points and the strongest training-free baseline (AdaCAD) by +3 to +13 points.
  • Unlocking Large Models: On LLaMA3-70B, context fidelity reached 92–94% while token-level F1 scores surged to 62–63%. This proves that token-level selectivity preserves the generation capabilities that coarse, global contrastive rules typically suppress.
  • Minimal Overhead: FIDES adds only an +8% to +11% latency overhead compared to standard contrastive decoding (CAD). The primary computational cost remains the shared dual-path forward pass.
Figure 4: (a) Accuracy under injected retrieval noise on PopQA (LLaMA3-8B). Under 50% noise, FIDES drops only 5.7 points while Standard RAG drops 12.8 and CAD drops 14.1. (b) Signal complementarity ablation on LLaMA3-8B/NQ-Swap (n = 400, CTX-only). Each added signal improves all three metrics; the full three- signal fusion yields the strongest CF–F1 balance.

Limitations and Future Work

  • Shared Structural Cost: Like all dual-path contrastive decoders, FIDES requires two forward passes per decoding step, roughly doubling the compute cost of standard RAG.
  • Inherent Scope Boundary: FIDES is an evidence-following mechanism, not a fact-checker. If the retrieved context contains false or maliciously edited information, FIDES will faithfully generate that incorrect answer.
  • Generalization Constraints: The fusion weights were validated on dense Transformer architectures (7B–70B). Mixture-of-Experts (MoE) and State Space Models (SSMs) remain untested. Additionally, the evaluation was limited to single-document English QA.

Summary updated

BibTeX
@misc{yu2026fides,
  author = {Zhe Yu and Wenpeng Xing and Tiancheng Zhao and Mohan Li and Changting Lin and Meng Han},
  title = {{FIDES: Faithful Inference via Deep Evidence Signals for Retrieval-Memory Conflict in RAG}},
  year = {2026},
  eprint = {2606.05644},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2606.05644},
}
Figure