arXiv:2610.27455cs.CLOct 2026

Manuscript Offprint

arXiv:2610.27455

Detecting Errors in Large Language Model Responses: The Incremental Predictive Value of Hidden States

Ningzhi Li, Xiaojun Ma, Xiaofei Wang

Abstract

Although large language models support a wide range of tasks, hallucinations remain a major obstacle to user trust. When a model generates an answer, both its internal processing and final output vary with the question. Internal states are often expected to offer richer signals for hallucination detection. However, studies using these states typically report their standalone discrimination performance, while output-side comparisons often use simple baselines with weaker modeling capacity. We integrate output-side information available at inference time into a combined baseline and compare detection performance before and after adding hidden states under identical data splits and evaluation rules. Experiments cover open-ended generation and constrained multiple-choice tasks across different models. Adding hidden states improves AUROC by approximately 0.004 and 0.039 on the two tasks, respectively. Hidden states thus provide additional predictive information, but strong standalone detection performance can still yield only limited additional gains.

1 Introduction

Large language models (LLMs) have become widely used as interactive assistants (Chatterji et al., 2025). Users obtain knowledge and information through natural-language questions, and retrieval-based systems generate answers supported by web sources (Nakano et al., 2021). A central requirement is that these models answer accurately and reliably without producing false information (Lin et al., 2022; Nakano et al., 2021). Yet fluent responses can depart from facts or contradict the given context. This phenomenon is commonly called hallucination. For example, a model may fabricate a reference or add unsupported information when summarizing a document. Fluency alone therefore provides an unreliable basis for assessing factuality, motivating hallucination detection.

Prior work detects hallucinations using information available at the model's output and hidden states recorded during generation (Snyder et al., 2024; Azaria and Mitchell, 2023). When decoding scores are accessible, logits and token probabilities can be retained at each generation step; statistics derived from them have been used to estimate uncertainty (Snyder et al., 2024; Vashurin et al., 2025). Agreement among responses sampled for the same question also provides evidence of reliability (Manakul et al., 2023; Kadavath et al., 2022). Semantic entropy further accounts for differences in meaning to estimate uncertainty and detect some factual hallucinations (Kuhn et al., 2023; Farquhar et al., 2024). These findings show that output-side information available at inference time can help predict hallucinations. Hidden states, in turn, encode internal representations during answer generation and have been used to distinguish true from false statements or detect factual errors in generated answers (Azaria and Mitchell, 2023; Snyder et al., 2024). However, probe performance depends on classifier capacity and control settings, so high predictive performance alone does not establish the role of an internal representation (Hewitt and Liang, 2019; Belinkov, 2022). Richer hidden representations need not yield larger improvements once output-side information is used. Noise may impede access to useful signals, while overlap with output-side information means that some predictive capability is already available. Thus, even when hidden states distinguish correct from incorrect answers well, their standalone performance does not reveal which capabilities remain useful beyond existing output-side information. This motivates our question: after using the available output-side information, can hidden states further improve error detection, and how large is the additional gain?

We jointly model several types of output-side information as a combined baseline, check whether it preserves the predictive performance of each component block, and compare detection performance before and after adding hidden states. The difference measures their incremental predictive value relative to this baseline. Experiments on open-ended generation and constrained multiple-choice tasks examine this value under different output conditions. On open-ended generation, Qwen's standalone-statement adaptation yields a gain of 0.0043, while Llama gains 0.0040 over the combined baseline. On multiple-choice questions, Llama retains a gain of 0.0387 after jointly including the selected option text and the full response in the output baseline, with a 95% confidence interval of [0.0264, 0.0515]. Hidden states can therefore further improve error detection, but strong standalone performance does not necessarily yield a large additional gain. Standalone detection performance is consequently insufficient to establish their added value over output-side information.

Our contributions are:

  1. We formulate the question of conditional gain from hidden states, shifting attention from their standalone detection performance to their added predictive value over available non-activation information.

  2. We develop and apply an experimental and identification protocol fixed before analysis, using a combined baseline and blockwise comparisons to establish how incremental results should be interpreted.

  3. Cross-model and readout comparisons show that hidden states provide gains beyond a combined output-side baseline, while strong standalone performance need not translate into large additional improvements. 1^{1}