CHAIR -- Classifier of Hallucination as Improver
Ao Sun
TL;DR
CHAIR tackles hallucinations in LLMs by leveraging a history of internal token representations across all model layers, using per-layer logits $s_i(t)$ computed as $s_i(t) = lm_head(h_i(t))$ and a compact feature set derived from the sequence $S(t) = {s_1(t), ..., s_L(t)}$. A lightweight classifier is trained on these features—including $Last Score$, $ ext{Mean}$, $Max$, $Min$, $Std$, and $Slope$ with normalization—to detect hallucinations. Evaluations on TruthfulQA and MMLU show substantial improvements, notably in zero-shot scenarios, and demonstrate cross-dataset generalization when training on one dataset and testing on others. This work highlights the value of internal representations for detecting and potentially mitigating hallucinations and motivates integrating logit-patterns into decoding strategies to improve factuality and coherence.
Abstract
In this work, we introduce CHAIR (Classifier of Hallucination As ImproveR), a supervised framework for detecting hallucinations by analyzing internal logits from each layer of every token. Our method extracts a compact set of features such as maximum, minimum, mean, standard deviation, and slope-from the token logits across all layers, enabling effective hallucination detection without overfitting. Experiments on TruthfulQA and MMLU datasets demonstrate that CHAIR significantly improves detection accuracy, particularly in zero-shot scenarios, showcasing its robustness and generalizability. Beyond hallucination detection, CHAIR highlights the potential of using internal representations for designing advanced decoding strategies. By leveraging patterns in logits, we suggest that more sophisticated models and adaptive decoding methods could further reduce hallucinations and enhance text completion quality. CHAIR not only offers a practical solution for detecting hallucinations but also lays the groundwork for exploring richer representations in LLMs to improve their factuality and coherence.
