Do Androids Know They're Only Dreaming of Electric Sheep?
Sky CH-Wang, Benjamin Van Durme, Jason Eisner, Chris Kedzie
TL;DR
This work shows that transformer hidden states encode detectable signals of grounding-related hallucinations in in-domain data. By training three probe architectures (linear, attention-pooling, ensemble) across three grounded tasks and both organic and synthetic data, the study demonstrates that span- and response-level hallucination detection can be performed efficiently and, in several cases, surpass human judgment and strong baselines. The findings reveal strong layer- and state-type dependencies, with mid-layer signals and feed-forward activations often offering the most predictive cues, while generalization across tasks remains a challenge. The results endorse probing as a practical tool for evaluating and potentially mitigating hallucinations when model states are accessible, and point to directions for improved probe design and cross-task generalization.
Abstract
We design probes trained on the internal representations of a transformer language model to predict its hallucinatory behavior on three grounded generation tasks. To train the probes, we annotate for span-level hallucination on both sampled (organic) and manually edited (synthetic) reference outputs. Our probes are narrowly trained and we find that they are sensitive to their training domain: they generalize poorly from one task to another or from synthetic to organic hallucinations. However, on in-domain data, they can reliably detect hallucinations at many transformer layers, achieving 95% of their peak performance as early as layer 4. Here, probing proves accurate for evaluating hallucination, outperforming several contemporary baselines and even surpassing an expert human annotator in response-level detection F1. Similarly, on span-level labeling, probes are on par or better than the expert annotator on two out of three generation tasks. Overall, we find that probing is a feasible and efficient alternative to language model hallucination evaluation when model states are available.
