CausalGaze: Unveiling Hallucinations via Counterfactual Graph Intervention in Large Language Models
For LLM deployment in high-stakes domains, this provides a causally grounded detection method that outperforms existing approaches.
CausalGaze introduces a hallucination detection framework using structural causal models and counterfactual interventions on LLMs' internal states, achieving over 5.2% AUROC improvement on TruthfulQA.
Despite the groundbreaking advancements made by large language models (LLMs), hallucination remains a critical bottleneck for their deployment in high-stakes domains. Existing classification-based methods mainly rely on static and passive signals from internal states, which often captures the noise and spurious correlations, while overlooking the underlying causal mechanisms. To address this limitation, we shift the paradigm from passive observation to active intervention by introducing CausalGaze, a novel hallucination detection framework based on structural causal models (SCMs). CausalGaze models LLMs' internal states as dynamic causal graphs and employs counterfactual interventions to disentangle causal reasoning paths from incidental noise, thereby enhancing model interpretability. Extensive experiments across four datasets and three widely used LLMs demonstrate the effectiveness of CausalGaze, especially achieving over 5.2\% improvement in AUROC on the TruthfulQA dataset compared to state-of-the-art baselines.