MedHallu: A Comprehensive Benchmark for Detecting Medical Hallucinations in Large Language Models
Shrey Pandit, Jiawei Xu, Junyuan Hong, Zhangyang Wang, Tianlong Chen, Kaidi Xu, Ying Ding
TL;DR
MedHallu introduces the first medical-hallucination benchmark designed to detect factually incorrect outputs in medical QA. It builds a 10,000-sample dataset from PubMedQA with a controlled hallucination-generation pipeline, multi-model discriminative filtering, and bidirectional-entailment-based analysis, further augmented by a not-sure abstention option and domain knowledge integration. Key findings show that hallucinations closer to ground truth are harder to detect, domain knowledge broadly improves detection, and general LLMs can outperform medical-fine-tuned models in many settings. The benchmark provides a scalable, domain-specific resource to evaluate LLM safety in high-stakes medical contexts and informs strategies for safer deployment and future research.
Abstract
Advancements in Large Language Models (LLMs) and their increasing use in medical question-answering necessitate rigorous evaluation of their reliability. A critical challenge lies in hallucination, where models generate plausible yet factually incorrect outputs. In the medical domain, this poses serious risks to patient safety and clinical decision-making. To address this, we introduce MedHallu, the first benchmark specifically designed for medical hallucination detection. MedHallu comprises 10,000 high-quality question-answer pairs derived from PubMedQA, with hallucinated answers systematically generated through a controlled pipeline. Our experiments show that state-of-the-art LLMs, including GPT-4o, Llama-3.1, and the medically fine-tuned UltraMedical, struggle with this binary hallucination detection task, with the best model achieving an F1 score as low as 0.625 for detecting "hard" category hallucinations. Using bidirectional entailment clustering, we show that harder-to-detect hallucinations are semantically closer to ground truth. Through experiments, we also show incorporating domain-specific knowledge and introducing a "not sure" category as one of the answer categories improves the precision and F1 scores by up to 38% relative to baselines.
