atlas

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

HaloScope: Harnessing Unlabeled LLM Generations for Hallucination Detection

NeurIPS 2024 · Large language models › Language, safety and interpretability · approach: Data and hallucination detection · 19 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 HaloScope, which estimates membership of unlabeled LLM generations via top singular vectors of centered embeddings and trains a truthfulness classifier on the resulting pseudo-labels for hallucination detection.

Problem

Hallucination detection for LLMs is hard because labeled truthful/hallucinated generations are scarce and costly to annotate, while unlabeled in-the-wild generations are a mixture of truthful and hallucinated content with no clear membership.

Approach

Identify a hallucination subspace from the top singular vectors of centered LLM embeddings of unlabeled generations, score each sample by its singular-value-weighted projection norm to estimate membership, then train an MLP truthfulness classifier on the split sets.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Use HaloScope membership-subspace estimation and classifier instead of Semantic EntropyLLaMA-2-7B-chat hallucination detection · TruthfulQAAUROC: 62.17 -> 78.64Helped
Use HaloScope membership-subspace estimation and classifier instead of CCS*LLaMA-2-7B-chat hallucination detection · TydiQA-GPAUROC: 80.38 -> 94.04Helped
Remove singular-value weighting from membership score (ablation)HaloScope · TruthfulQAAUROC: 77.24 -> 78.64Hurt
Sum scores across layers instead of selecting the best layer (ablation)HaloScope · TruthfulQAAUROC: 65.82 -> 78.64Hurt
Use Attn(f) embeddings instead of transformer-block output embeddings (ablation)HaloScope on LLaMA-2-7B-chat · TruthfulQAAUROC: 75.63 -> 78.64Hurt
Use Q Attn(f) embeddings instead of transformer-block output embeddings (ablation)HaloScope on LLaMA-2-7B-chat · TruthfulQAAUROC: 76.06 -> 78.64Hurt
Use multinomial sampling at temperature 0.5 rather than greedy sampling for unlabeled generations (ablation)HaloScope on LLaMA-2-7B-chat · TruthfulQAAUROC: 76.62 -> 78.64Hurt
Reduce unlabeled generation count from 512 to 100 (ablation)HaloScope on LLaMA-2-7B-chat · TruthfulQAAUROC: 73.34 vs. 78.64Hurt
Extract the membership subspace from TriviaQA rather than TruthfulQA (ablation)HaloScope · TruthfulQAAUROC: 76.26 vs. 78.64Hurt
Scale the base model from OPT-6.7B to OPT-13BHaloScope · TruthfulQAAUROC: 73.17 -> 82.41Helped

Surprising findings

Limitations

Experimental setup

Datasets: TruthfulQA TriviaQA CoQA TydiQA-GP WikiBio HaluEval

Benchmarks: TruthfulQA TriviaQA CoQA TydiQA-GP

Metrics: AUROC

Baselines: Perplexity LN-Entropy Semantic Entropy Lexical Similarity EigenScore SelfCKGPT Verbalize Self-evaluation CCS CCS*

Builds on: Contrast-Consistent Search Huber contamination model EigenScore

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