MMD-Flagger: Leveraging Maximum Mean Discrepancy to Detect Hallucinations

Fuente: arXiv
Salvato in:
Dettagli Bibliografici
Autori principali: Mitsuzawa, Kensuke, Garreau, Damien
Natura: Preprint
Pubblicazione: 2025
Soggetti:
Accesso online:
Tags: Aggiungi Tag
Nessun Tag, puoi essere il primo ad aggiungerne!!
_version_ 1866918176773636096
author Mitsuzawa, Kensuke
Garreau, Damien
author_facet Mitsuzawa, Kensuke
Garreau, Damien
contents Large language models (LLMs) have become pervasive in our everyday life. Yet, a fundamental obstacle prevents their use in many critical applications: their propensity to generate fluent, human-quality content that is not grounded in reality. The detection of such hallucinations is thus of the highest importance. In this work, we propose a new method to flag hallucinated content: MMD-Flagger. It relies on Maximum Mean Discrepancy (MMD), a non-parametric distance between distributions. On a high-level perspective, MMD-Flagger tracks the MMD between the output to inspect and counterparts generated with various temperature parameters. We show empirically that inspecting the shape of this trajectory is sufficient to detect most hallucinations. This novel method is benchmarked on machine translation and summarization datasets, on which it exhibits competitive performance relative to natural competitors.
format Preprint
id arxiv_https___arxiv_org_abs_2506_01367
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle MMD-Flagger: Leveraging Maximum Mean Discrepancy to Detect Hallucinations
Mitsuzawa, Kensuke
Garreau, Damien
Computation and Language
Machine Learning
Large language models (LLMs) have become pervasive in our everyday life. Yet, a fundamental obstacle prevents their use in many critical applications: their propensity to generate fluent, human-quality content that is not grounded in reality. The detection of such hallucinations is thus of the highest importance. In this work, we propose a new method to flag hallucinated content: MMD-Flagger. It relies on Maximum Mean Discrepancy (MMD), a non-parametric distance between distributions. On a high-level perspective, MMD-Flagger tracks the MMD between the output to inspect and counterparts generated with various temperature parameters. We show empirically that inspecting the shape of this trajectory is sufficient to detect most hallucinations. This novel method is benchmarked on machine translation and summarization datasets, on which it exhibits competitive performance relative to natural competitors.
title MMD-Flagger: Leveraging Maximum Mean Discrepancy to Detect Hallucinations
topic Computation and Language
Machine Learning
url https://arxiv.org/abs/2506.01367