MedHal: a Synthetic Dataset for Medical Hallucination Detection
Organizations: LAMA-WeST Lab, Polytechnique Montréal, Mila – Quebec AI Institute · Medical Physics Unit – RI-MUHC, McGill University · Department of Medicine, Division of Experimental Medicine, McGill University
Abstract
Hallucination, the generation of non factual content by AI systems, poses serious risks in medical contexts, where errors can directly affect patient outcomes. We present MedHal, a large-scale dataset specifically designed to assess capabilities and train models on the task of hallucination detection in medical texts. Current hallucination detection methods face significant limitations when applied to specialized domains like medicine, where they can have disastrous consequences. MedHal addresses this issue by incorporating diverse medical text sources and tasks covering both intrinsic and extrinsic hallucinations, and by providing a substantial volume of data samples suitable for training medical hallucination detection models. We demonstrate MedHal's utility by training and evaluating a baseline medical hallucination detection model, showing improvements over general-purpose hallucination detection approaches. This resource enables more efficient evaluation and training of medical text generation systems while reducing reliance on costly expert review, potentially accelerating the development of medical AI research.
Figures & tables
| Task | Sample | Generated Statement |
|---|---|---|
| Information Extraction | A 10-year-old girl first noted a swollen left knee and underwent repeated … age: 10 years old | The patient is 10 years old. |
| Summarization | the large genotyping studies in the last decade have revolutionize genetic studies. our current ability to … genetic admixture is a common caveat for … | genetic admixture is a common caveat for… |
| NLI | Labs were notable for Cr 1.7 (baseline 0.5 per old records) and lactate 2.4. Patient has normal Cr | Patient has normal Cr |
| QA | Which of the following medications is most commonly used as treatment for type 2 diabetes? Metformin | Metformin is most commonly used as treatment for type 2 diabetes. |
| Dataset | Task | S | Content Type | Source | # Samples | # Gen |
| MedMCQA | QA | ✗ | Medical Content | ( Pal et al., 2022 ) | 183,000 | 278,021 |
| MedNLI | NLI | ✗ | Clinical Notes | ( Romanov and Shivade, 2018 ) | 11,232 | 7,488 |
| ACM | IE | ✓ | Clinical Notes | ( Bonnet and Boulenger, 2024 ) | 22,000 | 327,568 |
| MedQA | QA | ✗ | Medical Content | ( Jin et al., 2021 ) | 12,723 | 18,680 |
| SumPubMed | Sum | ✗ | Clinical Trials | ( Gupta et al., 2021 ) | 33,772 | 195,339 |
| Task | A1 | A2 | Avg |
|---|---|---|---|
| Common Knowledge | 78.0 | 90.0 | 84.0 |
| Information Extraction | 86.0 | 98.0 | 92.0 |
| NLI | 81.0 | 97.0 | 89.0 |
| Summarization | 100.0 | 100.0 | 100.0 |
| Overall | 86.3 | 96.3 | 91.3 |
| Type | Model | Hallucination Detection | Explanation | ||||
| H-F1 | NH-F1 | Mac-F1 | F1 | ECS | N | ||
| General | Qwen3-8B | 0.75 | 0.76 | 0.76 | 0.85 | 16,013 | |
| MedHal -Qwen3-8B | 0.89 | 0.88 | 0.89 | (+0.13) | 0.94 | 20,719 | |
| Llama-3-8B | 0.66 | 0.74 | 0.70 | 0.83 | 18,724 | ||
| MedHal -Llama-3-8B | 0.90 | 0.90 | 0.90 | (+0.20) | 0.94 | 21,055 | |
| LLaMA3-70B | 0.86 | 0.88 | 0.87 | 0.83 | 18,046 | ||
| Type | Model | ACI-NH | Medec-UW | Hall-Gen-DI |
|---|---|---|---|---|
| General LLM | Llama3-8B | 0.54 0.07 | 0.91 0.03 | 0.50 0.05 |
| MedHal -Llama3-8B | 0.52 0.07 | 0.98 0.01 | 0.63 0.06 | |
| Llama3-70B | 0.63 0.07 | 0.98 0.01 | 0.51 0.05 | |
| Qwen3-8B | 0.62 0.07 | 0.95 0.02 | 0.65 0.06 | |
| MedHal -Qwen3-8B | 0.63 0.07 | 0.98 0.01 | 0.63 0.06 | |
| GPT-OSS-20B | 0.46 0.08 | 0.64 0.05 | 0.55 0.06 |
Appendix figures & tables12 assets
Supplementary material from the paper’s appendix.
Appendix
| Keywords |
|---|
| question |
| answer |
| statement |
| however |
| above |
| shown |
| Sample Type | Question | Answer | Generated Statement |
|---|---|---|---|
| Factual | Which of the following medications is most commonly used as first-line treatment for newly diagnosed type 2 diabetes mellitus in patients without contraindications? | Metformin | Metformin is most commonly used as first-line treatment for newly diagnosed type 2 diabetes mellitus in patients without contraindications. |
| Non-Factual | Insulin | Insulin is most commonly used as first-line treatment for newly diagnosed type 2 diabetes mellitus in patients without contraindications. |
| Sample Type | Source Document | Extraction | Statement | Explanation |
|---|---|---|---|---|
| Factual | A 10-year-old girl first noted a swollen left knee and underwent repeated arthrocentesis… | age: 10 years old | The patient is 10 years old | - |
| Non-Factual | A 10-year-old girl first noted a swollen left knee and underwent repeated arthrocentesis… | age: 16 years old | The patient is 16 years old | The patient is 10 years old |
| Sample Type | Source Document | Summary | Statement | Explanation |
|---|---|---|---|---|
| Factual | a central feature in the maturation of hearing is a transition in the electrical signature of cochlear hair cells from spontaneous calcium… | cochlear hair cells are high-frequency sensory receptors… | cochlear hair cells are high-frequency sensory receptors… | - |
| Non-Factual | cochlear hair cells are low-frequency sensory receptors… | According to the source document, cochlear hair cells are high-frequency sensory receptors… |
| Dataset | Input | Output / task | Non-factuality / hallucination | Unified transformation | Final samples |
| ACI-NH | Clinician–patient transcript and LLM-generated summary statements | Factuality classification of each summary statement | Summary information that is not present in, or is misinterpreted from, the source transcript. Hallucination , Inference , and Misunderstanding are mapped to non-factual; No Factual Error is factual. | context : transcript; statement : each summary statement; label : YES for No Factual Error , NO otherwise; explanation : annotator notes when available. | 170 (88 YES, 82 NO) |
| Medec-UW | Clinical note text | Error flag prediction, error sentence extraction, and correction generation | An inaccurate medical statement introduced into the note, e.g., an error in diagnosis, management, treatment, pharmacotherapy, or causal organism; in the Medec-UW subset, injected errors are designed to contradict at least two other parts of the note. | In our unified transformation, we remove one target sentence from the note; context : remaining note text; statement : removed sentence; we use the annotated error sentence when available, otherwise a randomly selected sentence; label : YES for Error Flag =0, NO for Error Flag =1; explanation : corrected sentence when available, otherwise “The statement is factual.” | 328 (164 YES, 164 NO) |
| Hall-Gen DI | Original abstract and LLM-generated summary | Binary factual consistency classification | Summary content not contained in, or not logically derivable from, the abstract; a summary is consistent only if all its information is supported by the source. | context : original abstract; statement : generated summary; label : YES for score 3, NO otherwise; explanation : expert inconsistency rationale when available, otherwise “The statement is factual.” | 248 (132 YES, 116 NO) |
| Statement |
|---|
| Serine, not threonine, is typically involved in the synthesis of ceramide; however, according to the given answer: Threonine is involved in the synthesis of ceramide. |
| Vitamin K should be administered to reverse the effects of the heparin, however protamine is typically used to reverse heparin, but since the answer is Vitamin K, the statement will be: Vitamin K should be administered to reverse the effects of the heparin. |
| The normal value of ankle brachial index is 0.8 or greater, however since 0.8 is given as the answer, the statement would be: The normal value of ankle brachial index is 0.8, but to be more precise: The normal value of ankle brachial index is at least 0.8, but since the exact wording of the answer is 0.8, the statement is: The normal value of ankle brachial index is 0.8. |
| Checkpoint | Link |
|---|---|
| Qwen3-8B ( Yang et al., 2025 ) | https://huggingface.co/Qwen/Qwen3-8B |
| Llama-3-8B ( Grattafiori et al., 2024 ) | https://huggingface.co/meta-llama/Meta-Llama-3-8B-Instruct |
| LLaMA3-70B ( Grattafiori et al., 2024 ) | https://huggingface.co/meta-llama/Llama-3.3-70B-Instruct |
| GPT-OSS-20B ( Agarwal et al., 2025 ) | https://huggingface.co/openai/gpt-oss-20b |
| OpenBioLLM-8B ( Ankit Pal, 2024 ) | https://huggingface.co/aaditya/Llama3-OpenBioLLM-8B |
| OpenBioLLM-70B ( Ankit Pal, 2024 ) | https://huggingface.co/aaditya/Llama3-OpenBioLLM-70B |
| Model | Parameters |
|---|---|
| Llama-3-8B | Temperature = 0.6, Top P = 0.9 |
| Llama-3-70B | Temperature = 0.6, Top P = 0.9 |
| Qwen3-8B | Temperature = 0.7, Top P = 0.8, Top K = 20, Min P = 0 |
| GPT-OSS-20B | Temperature = 1.0, Top P = 1.0 |
| OpenBioLLM-8B | Temperature = 0.0, Top P = 0.9 |
| OpenBioLLM-70B | Temperature = 0.0, Top P = 0.9 |
| Source | Type | HallOumi | OpenBioLLM | Llama-3-8B | Qwen3-8B | Llama-3.3-70B |
|---|---|---|---|---|---|---|
| QA | MedHal | 8.42 | 8.90 | 7.11 | 8.53 | 7.80 |
| Summarization | MedHal | 7.78 | 8.64 | 7.09 | 7.85 | 7.62 |
| Information Extraction | MedHal | 6.98 | 7.76 | 6.01 | 7.28 | 6.45 |
| NLI | MedHal | 6.23 | 7.06 | 5.42 | 6.26 | 5.85 |
| MEDEC-UW | Control | 8.74 | 9.74 | 8.16 | 9.56 | 8.40 |
| ACI-NH | Control | 7.80 | 8.66 | 6.72 | 8.23 | 6.99 |
| Source | Type | HallOumi | OpenBioLLM | Llama-3-8B | Qwen3-8B | Llama-3.3-70B |
|---|---|---|---|---|---|---|
| QA | MedHal | 6.8 | 8.7 | 6.2 | 6.8 | 5.9 |
| Summarization | MedHal | 14.5 | 18.6 | 12.0 | 13.8 | 12.0 |
| Information Extraction | MedHal | 10.1 | 12.5 | 8.1 | 10.5 | 8.2 |
| NLI | MedHal | 19.8 | 18.7 | 12.9 | 16.8 | 15.5 |
| MEDEC-UW | Control | 26.2 | 39.9 | 21.2 | 32.2 | 20.6 |
| ACI-NH | Control | 13.4 | 17.4 | 10.7 | 13.9 | 10.3 |
| Source | Type | HallOumi | OpenBioLLM | Llama-3-8B | Qwen3-8B | Llama-3.3-70B |
|---|---|---|---|---|---|---|
| QA | MedHal | |||||
| Summarization | MedHal | |||||
| Information Extraction | MedHal | |||||
| NLI | MedHal | |||||
| MEDEC-UW | Control | |||||
| ACI-NH | Control |
| Task | Hallucination Detection | Explanation | ||||
| H-F1 | NH-F1 | Mac-F1 | F1 | ECS | N | |
| Summarization | 0.757 | 0.829 | 0.794 | +0.09 | 0.72 | 20,142 |
| Question Answering | 0.759 | 0.754 | 0.756 | +0.06 | 0.71 | 19,974 |
| Information Extraction | 0.758 | 0.732 | 0.745 | +0.05 | 0.68 | 18,013 |