Detecting Hallucinations in Retrieval-Augmented Generation via Semantic-level Internal Reasoning Graph
Jianpeng Hu, Yanzeng Li, Jialun Zhong, Wenfa Qi, Lei Zou
TL;DR
Faithfulness hallucinations in retrieval-augmented generation remain a challenge despite factual grounding. The paper introduces SIRG, a semantic-level internal reasoning graph built by extending token-level Layer-wise Relevance Propagation to semantic fragments of context and response, and trains a lightweight AlignScore RoBERTa-based discriminator to detect hallucinations at the fragment level. It constructs a semantic attribution matrix $W$ using Top-k or Adaptive edge selection and uses a threshold $\\alpha$ to determine overall hallucination, achieving state-of-the-art performance on RAGTruth and Dolly-15k while using a lightweight classifier. This approach improves interpretability by tying decisions to internal reasoning fragments and reduces computational costs compared to multi-round LLM-based verifications, with potential for adaptable security-sensitive deployments. $
Abstract
The Retrieval-augmented generation (RAG) system based on Large language model (LLM) has made significant progress. It can effectively reduce factuality hallucinations, but faithfulness hallucinations still exist. Previous methods for detecting faithfulness hallucinations either neglect to capture the models' internal reasoning processes or handle those features coarsely, making it difficult for discriminators to learn. This paper proposes a semantic-level internal reasoning graph-based method for detecting faithfulness hallucination. Specifically, we first extend the layer-wise relevance propagation algorithm from the token level to the semantic level, constructing an internal reasoning graph based on attribution vectors. This provides a more faithful semantic-level representation of dependency. Furthermore, we design a general framework based on a small pre-trained language model to utilize the dependencies in LLM's reasoning for training and hallucination detection, which can dynamically adjust the pass rate of correct samples through a threshold. Experimental results demonstrate that our method achieves better overall performance compared to state-of-the-art baselines on RAGTruth and Dolly-15k.
