atlas

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

Robust Hallucination Detection in LLMs via Adaptive Token Selection

NeurIPS 2025 · Large language models › Language, safety and interpretability · approach: Data and hallucination detection · 0 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 HaMI, a multiple-instance-learning detector that adaptively selects the most hallucination-indicative tokens from LLM hidden states jointly with detector training, augmented by uncertainty-enhanced representations.

Problem

Hallucination detection from internal representations usually relies on predetermined tokens (first, last, before-last), which is unstable for free-form generations of varying length with sparse hallucinated entities.

Approach

Formulates hallucination detection as multiple instance learning over token-level hidden states: each response is a bag, top-k scoring tokens are selected end-to-end with a MIL margin loss plus a sequential smoothness loss, and hidden states are scaled by semantic-entropy-based uncertainty.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Use HaMI's adaptive token selection instead of the first generated token (ablation)Hallucination detection · Trivia QA and SQuAD; LLaMA-3.1-8B and MistralAUROC: average improvement of 6%Helped
Use HaMI's adaptive token selection instead of the last generated token (ablation)Hallucination detection · Trivia QA and SQuAD; LLaMA-3.1-8B and MistralAUROC: average improvement of 2%Helped
Augment original representations with semantic consistency uncertainty (ablation)HaMI · Trivia QA and SQuAD; LLaMA-3.1-8B and MistralAUROC: improvements up to 6.7%Helped
Augment original representations with sentence-level uncertainty (ablation)HaMI · Trivia QA and SQuAD; LLaMA-3.1-8B and MistralAUROCHelped
Augment original representations with token-level uncertainty (ablation)HaMI · Trivia QA and SQuAD; LLaMA-3.1-8B and MistralAUROCNo clear effect
Add the smoothness loss to the MIL loss (ablation)HaMI · Within-dataset and cross-dataset benchmarksAUROC: 0.7% and 1.1%Helped
Increase uncertainty augmentation strength from 0.0 toward 1.0 (ablation)HaMI · Four QA benchmarks; LLaMA-3.1-8BAUROCHelped
Use HaMI instead of the strongest listed baselineHallucination detection · Trivia QA, SQuAD, NQ, and BioASQ across three LLMsAUROCHelped

Surprising findings

Limitations

Experimental setup

Datasets: TriviaQA SQuAD Natural Questions BioASQ

Benchmarks: TriviaQA SQuAD Natural Questions BioASQ

Metrics: AUROC

Baselines: p(True) Perplexity Semantic Entropy MARS MARS-SE CCS SAPLMA HaloScope CED LLM-Check

Builds on: Semantic Entropy HaloScope SAPLMA multiple instance learning

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