TL;DR
Large Language Models (LLMs) frequently hallucinate in Retrieval-Augmented Generation (RAG) by relying on pre-trained parametric knowledge instead of retrieved context. SSFO (Self-Supervised Faithfulness Optimization) fixes this without human labels, GPT-4 supervision, or inference-time decoding overhead. By contrasting a model’s generation with context against its generation without context, SSFO leverages a "benign" form of likelihood displacement to systematically shift probability mass toward context-grounded tokens using just a few hundred training pairs.
What Problem Does This Paper Address?
When deployed in RAG systems, LLMs often suffer from faithfulness hallucination: they generate assertions that contradict or go beyond the retrieved reference context because their internal parametric memory overrides the prompt's source text.
Existing solutions generally fall into two suboptimal categories:
- Supervised post-training (SFT / DPO): Requires thousands of carefully engineered or GPT-4-generated examples. This incurs high annotation costs and often causes catastrophic forgetting of general reasoning capabilities.
- Contrastive decoding strategies (e.g., CAD, DECORE): Modify the next-token decoding distribution at inference time by comparing runs with and without context. While training-free, they roughly double compute costs and latency.
SSFO tackles the question: Can we train an LLM to reliably prioritize external context over internal memory using only self-supervision, with negligible training cost and zero inference overhead?
Methods
SSFO formulates faithfulness alignment as a Direct Preference Optimization (DPO) problem generated entirely by the model itself:
[Query x, Context c] ──> Model π_θ ──> Preferred Response y'_c (Context-grounded)
[Query x only] ──> Model π_θ ──> Dispreferred Response y_p (Parametric-only)
- Self-Supervised Pair Generation: For an open-domain query $x$ and context $c$, the model generates a "silver" context-conditioned response $y'_c$ (preferred) and a query-only parametric response $y_p$ (dispreferred).
- Encouraging Likelihood Displacement ($\text{SSFO-}\lambda$): In standard DPO, "likelihood displacement"—where probabilities of both preferred and dispreferred responses decrease—is typically considered a defect. However, the authors prove that in context-grounded QA, this phenomenon is benign: it penalizes internal memorization and transfers probability mass specifically to faithful tokens ($z_c$). They adapt the DPO objective by adding a scaling factor $\lambda > 1$ (e.g., $\lambda \in [1.3, 1.5]$) to the negative log-ratio: $$\mathcal{L}_{\text{SSFO-}\lambda} = -\mathbb{E} \left[ \log \sigma \left( \beta \log \frac{\pi_\theta(y'_c | x, c)}{\pi_{\text{ref}}(y'_c | x, c)} - \lambda \beta \log \frac{\pi_\theta(y_p | x, c)}{\pi_{\text{ref}}(y_p | x, c)} \right) \right]$$ This applies an amplified negative gradient to parametric responses, aggressively driving probability mass toward context tokens.
Datasets
- Self-Supervised Training: 900 query–passage pairs randomly sampled from the MS MARCO corpus (no task-specific human annotations).
- Evaluation Benchmarks:
- Conflict Robustness: MemoTrap (proverbs with counter-habitual target endings) and NQ-Swap (entity-swapped questions where context contradicts world knowledge).
- Response Quality: Short-form QA (NQ-Open, SQuAD v1.1) and long-form QA (ELI5, WikiPassageQA).
- Generalization & Safety: DuReader (Chinese) and XQuAD (Spanish) for cross-lingual transfer; FollowBench for general constraint and instruction-following abilities.
Key Insights and Ideas
- Likelihood Displacement as a Feature, Not a Bug: Prior DPO work treats decreasing chosen likelihoods as an undesirable artifact. Here, because preferred responses $y'_c$ are "silver" outputs (they still contain residual parametric bias), pushing probability away from both responses acts as a high-pass filter that strips out internal priors and retains only context-supported tokens.
- Empirical Validation of the Shift: On MemoTrap, SSFO optimization directly increases the probability of the instructed context token ($z_c$) while lowering the memorized parametric token ($z_p$), demonstrating a strong negative correlation ($r = -0.58$), while irrelevant vocabulary tokens remain untouched.
- Preserving Native Style Eliminates "Alignment Tax": Because both chosen and rejected completions share the model’s natural syntax and length distribution, the policy learns pure faithfulness rather than superficial stylistic artifacts (e.g., GPT-4 citation markers). Consequently, models retain their base instruction-following capabilities on FollowBench, whereas models tuned on heavily curated datasets (like Trust-Align) collapse.
Key Results
Experiments across LLaMA-3-8B, Mistral-7B, and Qwen2.5 (1.5B–72B) show substantial gains:
- State-of-the-Art Faithfulness: On LLaMA-3-8B, $\text{SSFO-}\lambda$ boosts NQ-Swap span exact match (EM) from 73.54% to 82.81% and ELI5 LLM-Faithfulness Score (LFS) from 59.80% to 72.30%. On Mistral-7B, ELI5 LFS jumps from 52.10% to 88.10%.
- Model Scalability: Evaluated on Qwen2.5 from 1.5B to 72B parameters, SSFO provides consistent gains (+13.9% EM on MemoTrap for 1.5B; +5.6% EM on NQ-Swap for 72B).
- Extreme Data Efficiency: Subsampling experiments reveal that training on just 400–500 examples achieves over 85% of the total performance gain.
- Cross-Lingual Generalization: Despite training strictly on English MS MARCO samples, LLaMA-3-8B gained +6.10% EM on Chinese DuReader and +5.52% on Spanish XQuAD.
- Retained General Ability: Base LLaMA-3-8B achieved an instruction-following score (CSL) of 2.54 on FollowBench; SSFO retained 2.50–2.70, while supervised Trust-Align collapsed to 0.12.
Limitations and Future Work
- Authoritative Context Assumption: SSFO trains the model to strictly adhere to the retrieved text. In noisy or adversarial environments containing poisoned or false context, SSFO will faithfully propagate misinformation unless paired with an upstream retrieval verifier.
- Complex RAG Scenarios: The study focused on single-document retrieval. Future research is needed to validate SSFO across extremely long contexts and multi-document synthesis tasks requiring cross-passage reasoning.
Summary updated