Share your thoughts, 1 month free Claude Pro on usSee more
WorkDL logo mark

Robust Hallucination Detection in LLMs via Adaptive Token Selection

About

Hallucinations in large language models (LLMs) pose significant safety concerns that impede their broader deployment. Recent research in hallucination detection has demonstrated that LLMs' internal representations contain truthfulness hints, which can be harnessed for detector training. However, the performance of these detectors is heavily dependent on the internal representations of predetermined tokens, fluctuating considerably when working on free-form generations with varying lengths and sparse distributions of hallucinated entities. To address this, we propose HaMI, a novel approach that enables robust detection of hallucinations through adaptive selection and learning of critical tokens that are most indicative of hallucinations. We achieve this robustness by an innovative formulation of the Hallucination detection task as Multiple Instance (HaMI) learning over token-level representations within a sequence, thereby facilitating a joint optimisation of token selection and hallucination detection on generation sequences of diverse forms. Comprehensive experimental results on four hallucination benchmarks show that HaMI significantly outperforms existing state-of-the-art approaches.

Mengjia Niu, Hamed Haddadi, Guansong Pang• 2025

Related benchmarks

TaskDatasetResultRank
Hallucination DetectionTriviaQA--
621
Hallucination DetectionTruthfulQA
AUC (ROC)0.61
178
Hallucination DetectionNQ
AUC0.885
154
Hallucination DetectionHaluEval
AUROC0.86
131
Hallucination DetectionBioASQ
AUROC0.903
104
Hallucination DetectionHaluBench
AUROC87
75
Hallucination DetectionRAGTruth
AUROC0.46
58
Hallucination DetectionSQuAD--
28
Hallucination DetectionMedHallu
AUROC0.52
24
Hallucination DetectionLegal
AUROC50
24
Showing 10 of 13 rows

Other info

Follow for update