Enhancing Uncertainty Modeling with Semantic Graph for Hallucination Detection

Authors

  • Kedi Chen East China Normal University
  • Qin Chen East China Normal University
  • Jie Zhou East China Normal University
  • Xinqi Tao Xiaohongshu Inc.
  • Bowen Ding Xiaohongshu Inc.
  • Jingwen Xie Xiaohongshu Inc.
  • Mingchen Xie Xiaohongshu Inc.
  • Peilong Li Xiaohongshu Inc.
  • Zheng Feng Xiaohongshu Inc.

DOI:

https://doi.org/10.1609/aaai.v39i22.34528

Abstract

Large Language Models (LLMs) are prone to hallucination with non-factual or unfaithful statements, which undermines the applications in real-world scenarios. Recent researches focus on uncertainty-based hallucination detection, which utilizes the output probability of LLMs for uncertainty calculation and does not rely on external knowledge or frequent sampling from LLMs. Whereas, most approaches merely consider the uncertainty of each independent token, while the intricate semantic relations among tokens and sentences are not well studied, which limits the detection of hallucination that spans over multiple tokens and sentences in the passage. In this paper, we propose a method to enhance uncertainty modeling with semantic graph for hallucination detection. Specifically, we first construct a semantic graph that well captures the relations among entity tokens and sentences. Then, we incorporate the relations between two entities for uncertainty propagation to enhance sentence-level hallucination detection. Given that hallucination occurs due to the conflict between sentences, we further present a graph-based uncertainty calibration method that integrates the contradiction probability of the sentence with its neighbors in the semantic graph for uncertainty calculation. Extensive experiments on two datasets show the great advantages of our proposed approach. In particular, we obtain substantial improvements with 19.78% in passage-level hallucination detection.

Downloads

Published

2025-04-11

How to Cite

Chen, K., Chen, Q., Zhou, J., Tao, X., Ding, B., Xie, J., … Feng, Z. (2025). Enhancing Uncertainty Modeling with Semantic Graph for Hallucination Detection. Proceedings of the AAAI Conference on Artificial Intelligence, 39(22), 23586–23594. https://doi.org/10.1609/aaai.v39i22.34528

Issue

Section

AAAI Technical Track on Natural Language Processing I