Lune

ICLR2024Top-tier venue

INSIDE: LLMs' Internal States Retain the Power of Hallucination Detection

Chao Chen, Kai Liu, Ze Chen, Yi Gu, Yue Wu, Mingyuan Tao, Zhihang Fu, Jieping Ye

Abstract

Knowledge hallucination have raised widespread concerns for the security and reliability of deployed LLMs. Previous efforts in detecting hallucinations have been employed at logit-level uncertainty estimation or language-level self-consistency evaluation, where the semantic information is inevitably lost during the token-decoding procedure. Thus, we propose to explore the dense semantic information retained within LLMs' INternal States for hallucInation DEtection (INSIDE). In particular, a simple yet effective EigenScore metric is proposed to better evaluate responses' self-consistency, which exploits the eigenvalues of responses' covariance matrix to measure the semantic consistency/diversity in the dense embedding space. Furthermore, from the perspective of self-consistent hallucination detection, a test time feature clipping approach is explored to truncate extreme activations in the internal states, which reduces overconfident generations and potentially benefits the detection of overconfident hallucinations. Extensive experiments and ablation studies are performed on several popular LLMs and question-answering (QA) benchmarks, showing the effectiveness of our proposal.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

122 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Can AI Assistants Know What They Don't Know? cites Training language models to follow instructions with human feedback
  • CoCoA: A Minimum Bayes Risk Framework Bridging Confidence and Consistency for Uncertainty Quantification in LLMs cites Uncertainty Estimation in Autoregressive Structured Prediction
  • HaloScope: Harnessing Unlabeled LLM Generations for Hallucination Detection cites Uncertainty Estimation in Autoregressive Structured Prediction
  • SAFE: Multitask Failure Detection for Vision-Language-Action Models cites HaloScope: Harnessing Unlabeled LLM Generations for Hallucination Detection
  • SAFE: Multitask Failure Detection for Vision-Language-Action Models cites Uncertainty Estimation in Autoregressive Structured Prediction
  • ReAct: Out-of-distribution Detection With Rectified Activations cites Energy-based Out-of-distribution Detection
  • LLM-Check: Investigating Detection of Hallucinations in Large Language Models cites Self-Consistency Improves Chain of Thought Reasoning in Language Models
  • LLM-Check: Investigating Detection of Hallucinations in Large Language Models cites Uncertainty Estimation in Autoregressive Structured Prediction
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers122

  1. LLM-Check: Investigating Detection of Hallucinations in Large Language ModelsGaurang Sriramanan, Siddhant Bharti, Vinu Sankar Sadasivan, Shoumik Saha et al.NeurIPS 2024 · 170 citations
  2. HaloScope: Harnessing Unlabeled LLM Generations for Hallucination DetectionXuefeng Du, Chaowei Xiao, Sharon LiNeurIPS 2024 · 131 citations
  3. SAFE: Multitask Failure Detection for Vision-Language-Action ModelsQiao Gu, Yuanliang Ju, Shengxiang Sun, Igor Gilitschenski et al.NeurIPS 2025 · 103 citations
  4. Can AI Assistants Know What They Don't Know?Qinyuan Cheng, Tianxiang Sun, Xiangyang Liu, Wenwei Zhang et al.ICML 2024 · 48 citations
  5. CoCoA: A Minimum Bayes Risk Framework Bridging Confidence and Consistency for Uncertainty Quantification in LLMsRoman Vashurin, Maiya Goloburda, Albina Ilina, Aleksandr Rubashevskii et al.NeurIPS 2025 · 33 citations

Builds on15

  1. Training language models to follow instructions with human feedbackLong Ouyang, Jeffrey Wu, Xu Jiang, Diogo Almeida et al.NeurIPS 2022 · 24,707 citations
  2. Energy-based Out-of-distribution DetectionWeitang Liu, Xiaoyun Wang, John D. Owens, Yixuan LiNeurIPS 2020 · 2,213 citations
  3. ReAct: Out-of-distribution Detection With Rectified ActivationsYiyou Sun, Chuan Guo, Yixuan LiNeurIPS 2021 · 733 citations
  4. Self-Consistency Improves Chain of Thought Reasoning in Language ModelsXuezhi Wang, Jason Wei, Dale Schuurmans, Quoc V. Le et al.ICLR 2023 · 681 citations
  5. Uncertainty Estimation in Autoregressive Structured PredictionAndrey Malinin, Mark J. F. GalesICLR 2021 · 439 citations

Related papers

  1. Beyond Output Confidence: Epistemic-Aware Hallucination Detection with Answer-Level SignalsJieran Li, Xiuyuan Hu, Yang Zhao, Dongbiao Sun et al.ACL Findings 2026
  2. Hallucination Detox: Sensitivity Dropout (SenD) for Large Language Model TrainingShahrad Mohammadzadeh, Juan David Guerra, Marco Bonizzato, Reihaneh Rabbany et al.ACL 2025 · 4 citations
  3. Estimating LLM Consistency: A User Baseline vs Surrogate MetricsXiaoyuan Wu, Weiran Lin, Omer Akgul, Lujo BauerEMNLP 2025
  4. Semantic Volume: Quantifying and Detecting Both External and Internal Uncertainty in LLMsXiaomin Li, Zhou Yu, Ziji Zhang, Yingying Zhuang et al.AAAI 2026 · 11 citations
  5. On Early Detection of Hallucinations in Factual Question AnsweringBen Snyder, Marius Moisescu, Muhammad Bilal ZafarKDD 2024 · 10 citations
Dusk over the sea between two cliffs drawn in fine vertical lines