HalluSAE: Detecting Hallucinations in Large Language Models via Sparse Auto-Encoders

arXiv cs.CL / 4/21/2026

📰 NewsIdeas & Deep AnalysisModels & Research

Key Points

  • The paper introduces HalluSAE, a hallucination-detection framework for large language models that treats hallucinations as a critical “phase transition” in latent dynamics rather than a static error signal.
  • HalluSAE models token generation as a trajectory through a potential-energy landscape, enabling it to localize high-risk transition zones and focus on high-energy sparse features linked to factual mistakes.
  • The method is implemented in three stages: locating potential-energy “phase zones” using sparse autoencoders and a geometric metric, attributing hallucination-related sparse features with contrastive logit attribution, and performing causal detection via probing with linear probes on disentangled features.
  • Experiments on Gemma-2-9B reportedly achieve state-of-the-art performance for hallucination detection, suggesting the approach improves both detection accuracy and interpretability of factual errors.

Abstract

Large Language Models (LLMs) are powerful and widely adopted, but their practical impact is limited by the well-known hallucination phenomenon. While recent hallucination detection methods have made notable progress, we find most of them overlook the dynamic nature and underlying mechanisms of it. To address this gap, we propose HalluSAE, a phase transition-inspired framework that models hallucination as a critical shift in the model's latent dynamics. By modeling the generation process as a trajectory through a potential energy landscape, HalluSAE identifies critical transition zones and attributes factual errors to specific high-energy sparse features. Our approach consists of three stages: (1) Potential Energy Empowered Phase Zone Localization via sparse autoencoders and a geometric potential energy metric; (2) Hallucination-related Sparse Feature Attribution using contrastive logit attribution; and (3) Probing-based Causal Hallucination Detection through linear probes on disentangled features. Extensive experiments on Gemma-2-9B demonstrate that HalluSAE achieves state-of-the-art hallucination detection performance.