Dark space reveals large language models context usage for faithfulness
What LLMs Do in the Shadows: Reading Context Reliance from the Unembedding Dark Space
Computation and Language
Summary
Large language models sometimes produce believable but false information, which can be risky in important areas. The authors found a new, efficient way to tell how much the model relies on the input context versus internal memory by looking at a hidden part of the model's state called the dark space. They use this insight to create a quick method called DarkLens that detects when the model might be hallucinating without needing extra calculations. This method was tested on several tasks and models and worked as well as or better than previous techniques.
What this means in practice
- •For ai safety engineers: Identify when large language models produce unfaithful outputs during use without extra computational cost.
- •For natural language processing teams: Integrate a fast and reliable faithfulness detector into QA and summarization pipelines to improve output quality.
Authors
Alexandra Kuleshova, Andrey Volodichev, Daria Kotova, Alexey Zaytsev
Abstract
Detecting faithfulness hallucinations in large language models (LLMs) is crucial for their safe deployment in high-stakes domains. Recent approaches address this by contrasting contextual against parametric knowledge utilization, yet measuring context reliance typically demands noticeable overhead, such as materializing attention maps, running additional forward passes, or training auxiliary probes. In this work, we show that context reliance can be estimated by projecting hidden states onto the dark space - directions that compose weakly with the unembedding matrix. Beyond its recognized function as an initial-token attention sink, we show that this subspace actively mediates context processing, and that its share of hidden-state norm - termed the Dark Matter Ratio (DMR) - provides a direct score of context utilization. Pairing DMR with a parametric knowledge score yields DarkLens, a lightweight faithfulness detector operating strictly within a single forward pass. Evaluated across three QA and summarization benchmarks on six open-weight LLMs (4B-13B parameters), DarkLens matches or outperforms a wide range of baselines without requiring extra forward passes or probe training.