Lune

EMNLP Findings2025

Hallucination Detection in Structured Query Generation via LLM Self-Debating

Miaoran Li, Jiangning Chen, Minghua Xu, Xiaolong Wang

Abstract

Hallucination remains a key challenge in applying large language models (LLMs) to structured query generation, especially for semi-private or domain-specific languages underrepresented in public training data. In this work, we focus on hallucination detection in these low-resource structured language scenarios, using Splunk Search Processing Language (SPL) as a representative case study. We start from analyzing real-world SPL generation to define hallucination in this context and introduce a comprehensive taxonomy. To enhance detection performance, we propose the SELF-DEBATING framework, which prompts an LLM to generate contrastive explanations from opposing perspectives before rendering a final consistency judgment. We also construct a synthetic benchmark, SynSPL, to support systematic evaluation of hallucination detection in SPL generation. Experimental results show that SELF-DEBATING consistently outperforms LLM-asa-Judge baselines with zero-shot and chain-ofthought (CoT) prompts in SPL hallucination detection across different LLMs, yielding 5-10% relative gains in hallucination F1 scores on both real and synthetic datasets, and up to 260% improvement for LLaMA-3.1-8B. Besides hallucination detection on SPL, SELF-DEBATING also achieves excellent performance on the FaithBench benchmark for summarization hallucination, demonstrating the strong generalization ability of SELF-DEBATING, with OpenAI o1-mini achieving state-of-the-art performance. All these results consistently demonstrate the strong robustness and wide generalizability of SELF-DEBATING.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

2 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Multi-LLM Debate: Framework, Principals, and Interventions cites Encouraging Divergent Thinking in Large Language Models through Multi-Agent Debate
  • ChatEval: Towards Better LLM-based Evaluators through Multi-Agent Debate cites Encouraging Divergent Thinking in Large Language Models through Multi-Agent Debate
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers2

  1. StepFly: Agentic Troubleshooting Guide Automation for Incident DiagnosisJiayi Mao, Liqun Li, Yanjie Gao, Zegang Peng et al.FSE 2026 · 1 citation
  2. Logical Consistency as a Bridge: Improving LLM Hallucination Detection via Label Constraint Modeling between Responses and Self-JudgmentsHao Mi, Qiang Sheng, Shaofei Wang, Beizhe Hu et al.ACL 2026

Builds on8

  1. ChatEval: Towards Better LLM-based Evaluators through Multi-Agent DebateChi-Min Chan, Weize Chen, Yusheng Su, Jianxuan Yu et al.ICLR 2024 · 871 citations
  2. Encouraging Divergent Thinking in Large Language Models through Multi-Agent DebateTian Liang, Zhiwei He, Wenxiang Jiao, Xing Wang et al.EMNLP 2024 · 177 citations
  3. Multi-LLM Debate: Framework, Principals, and InterventionsAndrew Estornell, Yang LiuNeurIPS 2024 · 131 citations
  4. LLM Hallucinations in Practical Code Generation: Phenomena, Mechanism, and MitigationZiyao Zhang, Chong Wang, Yanlin Wang, Ensheng Shi et al.ISSTA 2025 · 53 citations
  5. CodeHalu: Investigating Code Hallucinations in LLMs via Execution-based VerificationYuchen Tian, Weixiang Yan, Qian Yang, Xuandong Zhao et al.AAAI 2025 · 41 citations

Related papers

  1. PROBE: PROcess-Based BEnchmark for Hallucination DetectionYu Zhang, Peter Belcak, Shizhe Diao, Yonggan Fu et al.ACL Findings 2026
  2. Beyond Facts: Evaluating Intent Hallucination in Large Language ModelsYijie Hao, Haofei Yu, Jiaxuan YouACL 2025
  3. DelucionQA: Detecting Hallucinations in Domain-specific Question AnsweringMobashir Sadat, Zhengyu Zhou, Lukas Lange, Jun Araki et al.EMNLP Findings 2023 · 27 citations
  4. JointCQ: Improving Factual Hallucination Detection with Joint Claim and Query GenerationFan Xu, Huixuan Zhang, Zhenliang Zhang, Jiahao Wang et al.ACL Findings 2026
  5. Rethinking Evaluation for LLM Hallucination Detection: A Desiderata, A New RAG-based Benchmark, New InsightsWenbo Chen, Veena Padmanabhan, Tootiya Giyahchi, Elaine Wong et al.ACL 2026 · 1 citation
Dusk over the sea between two cliffs drawn in fine vertical lines