Drowzee: Detecting factual conflict hallucination in large language models with metamorphic testingDrowzee: Metamorphic Testing for Fact-Conflicting Hallucination Detection in Large Language Models
The researchers propose Drowzee, a method that enhances metamorphic testing with logic programming to detect factual conflict hallucination (FCH) in large language models, i.e., content the model generates that directly contradicts established facts. The method collects data from sources such as Wikipedia, generates diverse test cases through logical reasoning expansion, evaluates models with structured prompts, and verifies output coherence with a semantics-aware evaluation mechanism. The authors generate cases and detect hallucinations across six large language models and nine domains, obtaining hallucination rates between 24.7% and 59.8%. The observations show that models have clear difficulties with temporal concepts, handling out-of-distribution knowledge, and logical reasoning ability, which the authors take to indicate that logic-based test cases can both trigger and identify hallucinations.