HalluDetect: Detecting, Mitigating, and Benchmarking Hallucinations in Conversational Systems in the Legal Domain
Spandan Anaokar, Shrey Ganatra, Harshvivek Kashid, Swapnil Bhattacharyya, Shruti Nair, Reshma Sekhar, Siddharth Manohar, Rahul Hemrajani, Pushpak Bhattacharyya
TL;DR
This study addresses hallucinations in legal-domain conversational AI by introducing HalluDetect, a multi-turn, LLM-driven detection framework tailored for RAG-based chats. It benchmarks five mitigation architectures (Vanilla, Prompt-engineered, EditorBot, FactChecker, AgentBot) and demonstrates that AgentBot achieves the lowest hallucination rate with the highest token accuracy, while HalluDetect attains a high F1 score and outperforms baselines in precision. The DetectorEval dataset provides a targeted benchmark for factual grounding in consumer-law dialogues, and extensive experiments—including human evaluation and statistical significance testing—validate HalluDetect’s effectiveness and robustness across architectures. The work offers a scalable framework for detecting, mitigating, and benchmarking hallucinations in sensitive domains, with practical implications for reliability and regulatory compliance.
Abstract
Large Language Models (LLMs) are widely used in industry but remain prone to hallucinations, limiting their reliability in critical applications. This work addresses hallucination reduction in consumer grievance chatbots built using LLaMA 3.1 8B Instruct, a compact model frequently used in industry. We develop HalluDetect, an LLM-based hallucination detection system that achieves an F1 score of 68.92% outperforming baseline detectors by 22.47%. Benchmarking five hallucination mitigation architectures, we find that out of them, AgentBot minimizes hallucinations to 0.4159 per turn while maintaining the highest token accuracy (96.13%), making it the most effective mitigation strategy. Our findings provide a scalable framework for hallucination mitigation, demonstrating that optimized inference strategies can significantly improve factual accuracy.
