Detecting LLM Hallucination Through Layer-wise Information Deficiency: Analysis of Ambiguous Prompts and Unanswerable Questions
Hazel Kim, Tom A. Lamb, Adel Bibi, Philip Torr, Yarin Gal
TL;DR
The paper tackles LLM hallucination by introducing layer-wise usable information, $\mathcal{L}$I, which tracks cross-layer information flow to detect when prompts are ambiguous or questions are unanswerable. Built on the $\mathcal{V}$-usable information framework, $\mathcal{L}$I does not require fine-tuning and uses two forward passes to compute per-layer predictive entropy differences, aggregating them across all layers. Empirical results across CoQA, QuAC, and CondaQA with Llama3 and Phi3 models show that $\mathcal{L}$I reliably distinguishes unanswerable cases and reflects prompt quality better than final-layer baselines, with favorable AUROC and calibration (ECE) metrics and minimal computational overhead. The approach demonstrates that tracking information dynamics throughout the model depth yields robust signals of model reliability, offering a practical tool for safer deployment of LLMs in contexts with uncertain or incomplete information.
Abstract
Large language models (LLMs) frequently generate confident yet inaccurate responses, introducing significant risks for deployment in safety-critical domains. We present a novel, test-time approach to detecting model hallucination through systematic analysis of information flow across model layers. We target cases when LLMs process inputs with ambiguous or insufficient context. Our investigation reveals that hallucination manifests as usable information deficiencies in inter-layer transmissions. While existing approaches primarily focus on final-layer output analysis, we demonstrate that tracking cross-layer information dynamics ($\mathcal{L}$I) provides robust indicators of model reliability, accounting for both information gain and loss during computation. $\mathcal{L}$I integrates easily with pretrained LLMs without requiring additional training or architectural modifications.
