TL;DR
EvidenceRL is a reinforcement learning framework that trains Large Language Models (LLMs) to strictly adhere to provided evidence, mitigating the common issue of hallucinations. By optimizing models on-policy using Group Relative Policy Optimization (GRPO) and a novel "Focus-Then-Verify" sentence-level grounding reward, EvidenceRL drastically reduces hallucinations in high-stakes domains like medicine and law without sacrificing task accuracy.
What Problem Does This Paper Address?
While Retrieval-Augmented Generation (RAG) is widely used to reduce LLM hallucinations by providing external documents, it doesn't guarantee the model will actually use that information. LLMs frequently suffer from context-memory conflict, where they ignore the retrieved evidence and default to pre-trained parametric knowledge, generating plausible-sounding but completely unsupported answers.
Existing solutions typically rely on post-hoc, inference-time filtering or generic alignment techniques (like standard RLHF) that lack fine-grained rewards for evidence consistency. This paper addresses the lack of a direct, training-time mechanism to enforce that an LLM's reasoning remains strictly grounded in the provided evidence—a critical requirement for high-stakes fields like healthcare and law.
Methods
The authors introduce EvidenceRL, which frames evidence adherence as a differentiable training objective using Group Relative Policy Optimization (GRPO). The framework optimizes a combined reward function consisting of three components:
- Format Reward ($r_f$): A binary signal ensuring the output is valid, parseable JSON.
- Correctness Reward ($r_c$): To keep online training efficient, instead of using a heavy LLM-as-a-judge, the authors use a lightweight proxy. For open-ended tasks, outputs are embedded using a domain-specific encoder and compared against reference answers via cosine similarity. For discrete tasks, it defaults to exact matching.
- Grounding Reward ($r_g$): This uses a novel Focus-Then-Verify architecture to combat "signal dilution" (which happens when evaluating a long document all at once). It breaks down multi-source evidence into focused
(premise, hypothesis)pairs and uses a frozen Natural Language Inference (NLI) cross-encoder to score sentence-level entailment versus contradiction.
Datasets
The framework was evaluated across two distinct high-stakes domains:
- MIMIC-IV-Ext (Medical/Cardiac Diagnosis): A dataset of de-identified ICU clinical notes. Given a patient's context, the model must predict five ranked cardiac diagnoses alongside supporting clinical reasoning. (3,700 training cases, 1,000 held-out test cases).
- BarExam MBE (Legal Reasoning): Derived from the Multistate Bar Examination. Each instance contains a legal fact pattern, a question stem, four multiple-choice options, and a gold legal passage acting as evidence. (954 training cases, 173 test cases).
Key Insights and Ideas
- The Faithfulness Gap: High task accuracy does not imply reliable evidence usage. Baseline models often achieve high scores purely through parametric recall while generating ungrounded or contradictory reasoning.
- Supervised Fine-Tuning (SFT) Collapses Grounding: A striking finding was that standard SFT actually worsens grounding performance. SFT teaches models to superficially copy citation formats and styles without learning the underlying semantic relationship between the evidence and the conclusion.
- Narrowing the Scale Gap: By directly rewarding evidence consistency, smaller models trained with EvidenceRL can outperform much larger vanilla models. For instance, an EvidenceRL-trained 3B model achieved better accuracy and grounding than a 70B model running zero-shot inference.
- On-Policy vs. Off-Policy Alignment: Unlike offline preference optimization methods (like DPO), EvidenceRL evaluates grounding on the model's own dynamic rollouts. This expands the model's capacity to generate correct and grounded answers simultaneously, rather than simply shrinking its output space.
Key Results
EvidenceRL demonstrated substantial improvements across multiple model families (Llama, Gemma) and scales:
- Medical Domain (Llama-3.2-3B): Diagnostic accuracy ($F1@3$) jumped from 37.0 to 54.5, while max grounding ($G_{max}@3$) rose from 47.6 to 78.2. Crucially, hallucinations dropped by nearly 5×, and evidence-supported diagnoses doubled from 31.8% to 61.6%.
- Legal Domain (Llama-3.1-8B): Shifted the model toward evidence-based reasoning, increasing the overall Faithfulness score from 32.8% to 67.6%.
Limitations and Future Work
- Proxy Dependency: EvidenceRL relies heavily on automated proxies (like the frozen NLI cross-encoder) to scale training. While the authors verified that the model doesn't "hack" this proxy, it remains an approximation of human reasoning.
- Computational Overhead: Training with GRPO requires sampling and scoring multiple candidate completions per prompt on-policy, making the training phase significantly more expensive than standard SFT (though inference costs remain identical).
- Upstream Sensitivity: The framework assumes that the retrieved evidence is inherently reliable. If the retrieval pipeline fetches outdated or erroneous documents, those errors will propagate directly into the model's grounded outputs.
Summary updated