AI
New method uses statistical divergence to spot false claims in AI language models
Researchers propose a temperature-based detection technique that identifies hallucinations without needing ground-truth reference data.
Large language models powering autonomous AI systems frequently generate confident-sounding but factually inaccurate claims—a problem known as hallucination. Because these errors occur at test-time and are hard to catch without ground-truth labels, building reliable autonomous agents remains challenging. A new paper from researchers working on language understanding proposes MMD-Flagger, a detection approach that identifies hallucinations by analyzing how stable an LLM's outputs are when generation temperature varies.
How the method works#
The technique leverages Maximum Mean Discrepancy (MMD), a statistical measure that quantifies differences between distributions. Rather than trying to verify claims against a knowledge base, MMD-Flagger monitors the trajectory of similarity between a model's primary response and a set of stochastic alternative outputs generated at different temperature settings. Hallucinations exhibit characteristic patterns in this trajectory shape, allowing the system to flag unreliable outputs based on their distributional signature alone.
Evaluation and scope#
Researchers tested MMD-Flagger against multi-lingual claim verification benchmarks (MUCH) using contemporary LLMs including the Llama-3 family and Gemma-3 models. The approach operates without access to ground-truth labels at inference time, making it practical for deployment in real-world agent systems where external verification is unavailable.
Why it matters#
As LLMs become embedded deeper into autonomous systems, the ability to self-detect unreliable outputs—without requiring costly fact-checking infrastructure—becomes increasingly important for safety and trustworthiness. This work represents one approach to that challenge, focusing on the inherent statistical properties of hallucinated versus grounded responses.

