StructHallu-Drift: Benchmarking Structured Hallucinations Under Schema Evolution in LLMs
Summary
StructHallu-Drift is a new benchmark and evaluation framework designed to study structured hallucinations in Large Language Models (LLMs) when generating outputs like JSON or SQL under schema evolution. Introduced by Mujtaba Hasan, this framework addresses the gap in semantic reliability characterization despite advances in syntactic compliance. It includes a six-category hallucination taxonomy, a controlled evaluation suite with three schema mutation severity levels, and a systematic evaluation of four LLMs ranging from 7B to 70B parameters across three structured output tasks. Experiments on 1,200 instances revealed that 39–54% of structured outputs contain semantic hallucinations. Surprisingly, schema drift severity had minimal impact on hallucination rates (~44%), while output format was a dominant factor, with SQL achieving ~85% semantic validity compared to 7–24% for schema-grounded record generation. The study also found that each model exhibits a unique hallucination fingerprint.
Key takeaway
For Machine Learning Engineers developing LLM applications that generate structured data, you must prioritize semantic reliability over mere syntactic compliance. Your current prompting setups may not adequately condition LLMs against schema drift, as hallucination rates remain high (~44%) regardless of severity. Focus on output format, as SQL generation offers ~85% semantic validity, significantly outperforming record generation (7–24%). Implement model-specific mitigation strategies, as each LLM exhibits a distinct hallucination fingerprint.
Key insights
LLMs frequently produce semantic hallucinations in structured outputs, especially with schema evolution, requiring model-specific mitigation.
Principles
- Semantic reliability is distinct from syntactic compliance.
- Schema drift severity minimally impacts hallucination rates.
- Output format significantly affects generation reliability.
Method
StructHallu-Drift evaluates LLMs by applying three severity levels of schema mutations to NL-to-structure datasets, using a six-category hallucination taxonomy to assess semantic fidelity.
In practice
- Prioritize SQL for higher semantic validity in structured generation.
- Develop model-specific hallucination mitigation strategies.
- Use the StructHallu-Drift benchmark for evaluation.
Topics
- Large Language Models
- Structured Output Generation
- Semantic Hallucinations
- Schema Drift
- SQL Generation
- Benchmarking
Best for: Research Scientist, AI Architect, AI Engineer, AI Scientist, Machine Learning Engineer, NLP Engineer
Related on AIssential
Editorial summary, takeaway, and curation by AIssential. Original article published by Paper Index on ACL Anthology.