Fine-tune LLMs to ignore misleading retrieved documents and cut RAG hallucinations by ~21%

May 16, 20256 min

Overview

Decision SnapshotNeeds Validation

Paper shows clear gains on a focused testbed and provides data and checkpoints, but results rely on synthetic fictitious content and an automated judge, so validate with human evaluation before production.

Citations0

Evidence Strength0.70

Confidence0.78

Risk Signals10

Trust Signals

Findings with numeric evidence: 3/3

Findings with evidence refs: 3/3

Results with explicit delta: 5/5

Reproducibility

Status: Code + data available

Open source: Yes

At A Glance

Cost impact: 50%

Production readiness: 60%

Novelty: 60%

Authors

Zhan Peng Lee, Andre Lin, Calvin Tan

Links

Abstract / PDF / Code / Data

Why It Matters For Business

Training the generator to ignore bad retrieved documents reduces factual errors in RAG systems, lowering risk in applications like legal, medical, and finance without reworking retrieval stacks.

Who Should Care

Summary TLDR

Finetune-RAG is a supervised fine-tuning method that trains instruction-tuned LLMs to ignore misleading retrieved documents. The authors build a 1,653-example dataset pairing one factual and one fictitious document per query, fine-tune Llama 3.1-8B-Instruct, and evaluate with Bench-RAG (GPT-4o as judge). On the paper's testbed, accuracy rose from 76.97% to 98.18% (Baseline format). The method is open-sourced with checkpoints and dataset.

Problem Statement

Retrieval in RAG is imperfect and can feed incorrect documents to the generator. Models often blend that noise into fluent but false answers. The paper asks: can we train the generator itself to ignore misleading retrieved content instead of only improving retrievers?

Main Contribution

A simple fine-tuning method (Finetune-RAG) that trains models on examples containing both factual and fictitious retrieved chunks so the model learns to ignore the fiction.

A curated multi-domain dataset (1,653 examples) pairing one factual and one fictitious chunk per question, released publicly.

Key Findings

Finetune-RAG substantially increases factual accuracy on the paper's RAG test set.

NumbersAccuracy 76.97%98.18% (Baseline, step 020)

Practical UseFine-tuning with paired factual/fictitious context can cut hallucinations on similar RAG testbeds; try small supervised datasets to reduce errors.

Evidence RefSection 6.3, Table and Figure 1

Unstructured (Baseline) prompts outperformed structured XML prompts on this task.

NumbersStep 20 accuracy: Baseline 98.18% vs XML 96.97%

Practical UseDon't assume added input markup always helps; test plain-text and structured formats for your model and data.

Evidence RefSection 6.4, Figures 1–2 and text

Results

MetricValueBaselineDeltaSplit / DatasetEvidenceEvidence Ref
Accuracy98.18% (Baseline, step 20)76.97% (Baseline, step 0)+21.21 percentage pointstest setSection 6.3 table; Figure 1Section 6.3
Helpfulness9.77 (Baseline, step 20)8.81 (Baseline, step 0)+0.96test set (scale 110)Section 6.3 table; Figure 1Section 6.3

What To Try In 7 Days

Run Bench-RAG on your RAG pipeline using a small held-out set to measure baseline hallucination rate.

Create a few hundred dual-context examples (one factual, one misleading) in your domain and fine-tune a small instruct model.

Compare plain-text vs structured input formats; prefer the one that yields higher accuracy on your tests.

Reproducibility

Risks & Boundaries

Limitations

Fictitious content was generated by GPT-4o and may not match real retrieval errors.

Training uses exactly one factual and one fictitious chunk per example; real systems return many mixed-quality docs.

When Not To Use

When retrieval quality is already near-perfect and generator errors are rare.

When you cannot afford extra fine-tuning compute or checkpoints.

Failure Modes

May overfit to synthetic artifact patterns introduced by GPT-4o generation.

May still fail on nuanced partial-truth hallucinations not covered by binary labels.

Core Entities

Models

Llama 3.1-8B-Instruct

Metrics

AccuracyHelpfulnessRelevanceDepth

Datasets

Finetune-RAG (1,653 examples)

Benchmarks

Bench-RAG