D-Score: A Spectral Hidden-State Signal for Hallucination Detection in Large Language Models

Bianca Raimondi, Davide Evangelista, Maurizio Gabbrielli, Elena Loli Piccolomini
7/27/2026
cs.CLcs.AI

No confident code implementation found for this paper.

Abstract

Large Language Models can produce fluent text that is false, unsupported by the available evidence, or inconsistent with information that appears to be internally represented by the model. We study hallucination detection from the geometry of hidden activations and introduce the D-Score, a simple spectral statistic computed from a single forward pass.

Show full abstract

For a fixed model, layer, and tolerance parameter, the D-Score counts how many singular directions of the hidden activation matrix have singular values that remain close to the leading one. We use this quantity as a hallucination score, classifying an input text as hallucinated when its D-Score is larger than a pre-defined quantity. The motivation is that, when a model processes a text that conflicts with information available in its own internal state, the hidden representation may encode both the asserted content and some form of counter-evidence, uncertainty, correction, or lack of support; this can make the hidden trajectory spread across additional singular directions. We formalize this intuition through a lightweight spectral argument and evaluate the resulting detector on FAVA-Annotation and RAGTruth. The experiments indicate that the D-Score is a strong hidden-state signal for hallucination detection, while requiring no external verifier, no retrieval step, and no multiple generations.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{raimondi2026dscore,
  title  = {D-Score: A Spectral Hidden-State Signal for Hallucination Detection in Large Language Models},
  author = {Bianca Raimondi and Davide Evangelista and Maurizio Gabbrielli and Elena Loli Piccolomini},
  year   = {2026},
  eprint = {2607.24586},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2607.24586v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2607.24586.svg)](https://codeofpaper.com/paper/2607.24586)

Discussion