atlas

Research map / Large language models / Language, safety and interpretability

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

ICLR 2024 · Large language models › Language, safety and interpretability · approach: Uncertainty quantification for LLMs · 3 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Proposes INSIDE, which detects LLM hallucinations using an EigenScore (log-determinant of the covariance of multi-sample hidden embeddings) plus test-time feature clipping of extreme penultimate-layer activations.

Problem

Detecting knowledge hallucinations in LLM QA responses; existing token-logit uncertainty and language-level self-consistency methods lose semantic information during decoding.

Approach

Measure self-consistency of K sampled responses directly in the LLM's internal sentence-embedding space via the LogDet (eigenvalues) of their covariance matrix, which is linked to differential entropy, and clip extreme activations at test time to reduce overconfident hallucinations.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Use EigenScore instead of Lexical SimilarityLLaMA-7B hallucination detection · CoQAAUROC (sentence similarity): 74.8 -> 80.4Helped
Use EigenScore instead of Lexical SimilarityLLaMA-7B hallucination detection · SQuADAUROC (sentence similarity): 74.9 -> 81.5Helped
Use EigenScore instead of Lexical SimilarityOPT-6.7B hallucination detection · SQuADAUROC (sentence similarity): 72.8 -> 81.7Helped
Use EigenScore instead of PerplexityLLaMA-7B hallucination detection · TriviaQAAUROC (sentence similarity): 83.6 -> 82.7Hurt
Add test-time feature clipping (ablation)EigenScore with LLaMA-7B · CoQAAUROC (sentence similarity): 79.3 -> 80.4Helped
Add test-time feature clipping (ablation)EigenScore with OPT-6.7B · NQAUROC (sentence similarity): 77.1 -> 77.9Helped
Determine clipping thresholds with a memory bank rather than the current input sample (ablation)EigenScore with LLaMA-7B · CoQAAUROC (sentence similarity): 78.1 -> 80.4Helped
Determine clipping thresholds with a memory bank rather than a precomputed batch (ablation)EigenScore with LLaMA-7B · NQAUROC (sentence similarity): 75.3 -> 76.5Helped
Increase the number of generations from below 15 toward 15 (ablation)EigenScore, LN-Entropy, and Lexical Similarity · NQAUROC (sentence similarity)Helped
Increase the number of generations beyond 15 (ablation)EigenScore · NQAUROC (sentence similarity)No clear effect
Use the last-token embedding from a middle layer instead of averaged token embeddings (ablation)EigenScore with LLaMA-7B · CoQAAUROC (sentence similarity)Helped
Use sentence embeddings from shallow or final layers instead of layers near the middle (ablation)EigenScore · CoQAAUROC (sentence similarity)Hurt

Surprising findings

Limitations

Experimental setup

Datasets: CoQA SQuAD v2.0 Natural Questions TriviaQA TruthfulQA

Benchmarks: CoQA SQuAD NQ TriviaQA TruthfulQA

Metrics: AUROC PCC accuracy G-Mean

Baselines: Perplexity LN-Entropy Lexical Similarity Energy Semantic Entropy SentSAR SelfCheckGPT ITI

Builds on: Lexical Similarity Length-normalized Entropy SelfCheckGPT ReAct-style OOD feature rectification

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy