Abstract
Detecting hallucinations in Large Language Models (LLMs) is a critical challenge for their deployment in high-stakes fields. Traditional training methods often rely on low-quality negative examples, which fail to prepare models for sophisticated, fluent "lies." This paper introduces HaluCheck, a framework that utilizes high-quality synthetic hallucinations and a Curriculum Direct Preference Optimization (DPO) strategy. By progressively introducing more difficult hallucinations scored by an external fact-checker, HaluCheck enables small models (e.g., 3B parameters) to outperform much larger models like Llama-3.1 8B and rival GPT-4o in hallucination detection tasks.
Introduction
Large Language Models (LLMs) are notorious for "hallucinating"—generating text that sounds confident and fluent but is factually incorrect. Detecting these hallucinations is a massive hurdle for deploying LLMs in high-stakes fields like medicine or law. The current bottleneck in training hallucination detectors is the quality of training data. Most existing methods use "failed" model generations as negative examples, which are often obviously wrong or nonsensical. In the real world, the most dangerous hallucinations are sophisticated lies: statements that are contextually plausible and grammatically perfect but factually untethered.
Methodology: Curriculum DPO on Synthetic Negatives
The authors introduce a training pipeline called Curriculum DPO on Synthetic Negatives, designed to teach models to distinguish between subtle, high-quality falsehoods and grounded truths.
High-Quality Synthetic Negatives
Instead of using random failures, the authors use carefully curated, fluent hallucinations as the "rejected" samples in a Direct Preference Optimization (DPO) framework. This ensures the model learns to identify deceptive content rather than just poor grammar or formatting.
Difficulty Scoring
To implement a curriculum, the framework uses an external fact-checker, MiniCheck, to assign a "grounded factuality score" ($p_l \in [0, 1]$) to each hallucination. This score represents how well the hallucinated answer is supported by the provided context.
Curriculum Learning
Rather than showing the model all examples at once, they implement a curriculum. The model first learns to identify "easy" hallucinations (those with very low grounding scores) and progressively moves toward "hard" hallucinations (those that look very similar to the truth). This approach stabilizes training and helps the model develop more robust decision boundaries.
The researchers fine-tuned Llama-3.2 (1B and 3B versions) using this approach, creating the HaluCheck family of specialized detector models.
Experimental Results
The models were evaluated using a mix of general and domain-specific datasets, including MedHallu (medical) and HaluEval (general).
Performance Gains
HaluCheck 3B achieved a 24% relative gain across core metrics (accuracy, precision, recall, F1) compared to the baseline Llama-3.2 3B. It significantly outperformed larger foundational models, achieving an average F1 of 75.6% compared to Llama-3.1 8B (57.1%) and Qwen-2.5 14B (72.0%).
GPT-4o Rivalry and Robustness
On the MedHallu benchmark, HaluCheck 3B achieved an F1 score of 0.759, surpassing GPT-4o (0.737). Furthermore, in zero-shot tests on unseen datasets like CovidQA, HaluCheck 3B improved accuracy by 6.4% over its backbone model and outperformed GPT-3.5-Turbo, demonstrating strong generalization capabilities.
Key Insights
- "Teaching with Lies" works: Training on high-quality, deceptive negatives is significantly more effective than training on low-quality, obvious errors.
- The Curriculum is Crucial: Simply dumping hard examples into DPO can lead to unstable training. Starting with obvious lies and gradually introducing "sophisticated" ones is essential for success.
- Transferability: The detection skills learned on one set of hallucinations transfer well to other domains, suggesting the model learns the nature of hallucination rather than just memorizing facts.
Limitations and Future Work
The curriculum's success relies heavily on the accuracy of the initial scoring model (MiniCheck). If the scorer has biases, those might propagate to HaluCheck. Additionally, the model currently treats hallucination detection as a binary classification and does not yet identify specific spans of incorrect text. Future work will explore extending this approach to dialogue generation, summarization, and multi-lingual settings.
Summary updated