Manuscript Offprint
arXiv:2610.23182What LLMs Do in the Shadows: Reading Context Reliance from the Unembedding Dark Space
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
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.
1 Introduction
In context-grounded tasks such as retrieval-augmented generation and summarization, large language models frequently generate faithfulness hallucinations — claims that contradict or cannot be verified against the source text (Niu et al., 2024; Chuang et al., 2024). Detecting such errors at inference time is crucial for reliable deployment, particularly in high-stakes domains such as medicine, law, or finance where adherence to source documents is non-negotiable.
Prior work indicates that faithfulness hallucinations frequently stem from conflicts between a model’s internal knowledge and the provided context (Xu et al., 2024). In particular, Sun et al. (2025) demonstrate that such failures occur when models prioritize parametric memory over contextual evidence, showing that hallucinations can be detected by contrasting a context utilization score against a parametric reliance score. However, current approaches introduce substantial overhead, relying on attention-map materialization (Sun et al., 2025), counterfactual forward passes (Yeh et al., 2026), or auxiliary probe training (Wang, 2025).
In this paper, we show that context reliance can be estimated directly from residual hidden states by projecting them onto the dark space of the unembedding matrix (Cancedda, 2024) — directions that compose weakly with and minimally affect vocabulary logits. Contrary to the hypothesis that this subspace primarily serves to form initial-token attention sinks, we find that dark components at non-BOS positions actively mediate context processing and retrieval. Grounded in this finding, we introduce the Dark Matter Ratio (DMR), which measures the fraction of hidden-state norm residing in the dark space to serve as an attention-free context reliance score.
Building on DMR, we introduce DARKLENS, a lightweight faithfulness detector that pairs this context utilization signal with the parametric knowledge score of Sun et al. (2025). Because both quantities are computed solely from residual hidden states and static projections, DARKLENS operates in a single forward pass without requiring attention-map materialization or probe training.
Our main contributions are:
• We examine the dark components of hidden states — directions that compose weakly with the unembedding matrix — and show that, contrary to prior hypotheses that this subspace primarily serves to form initial-token attention sinks, they actively mediate context
Our code is available at the following link.
processing across non-BOS positions;
• Based on these findings, we propose the Dark Matter Ratio (DMR), an attention-free context utilization score defined as the fraction of hidden-state norm residing in the dark subspace, which avoids attention map materialization and extra forward passes;
• We introduce DARKLENS, a lightweight detector combining DMR with a parametric knowledge signal in a single forward pass. Evaluated across three benchmarks on six open-weight LLMs (4B–13B parameters), DARKLENS achieves performance on par with or superior to a wide range of baselines.
While popular interpretability techniques such as the logit lens (nostalgebraist, 2020; Belrose et al., 2023) use this mapping to inspect representations across layers, they inherently overlook components that have low composition with the unembedding matrix and thus have little effect on output logits.
Cancedda (2024) formalized these weakly composing directions via the singular value decomposition , defining the dark space as the subspace spanned by the right singular vectors corresponding to the 5% of the smallest singular values. Projections onto this subspace induce negligible logit variation, rendering them largely invisible to vocabulary-level readouts. Using the orthogonal projection matrix , any hidden state decomposes into:
where is the dark component and is the vocabulary-visible component. Cancedda (2024) showed that the initial (BOS) token resides almost entirely in this dark space ( ), allowing it to act as an attention sink (Gu et al., 2025) without distorting vocabulary logits. They hypothesized that the dark space primarily enables such BOS sinks, leaving its role at subsequent tokens unestablished. In this work, we examine dark representations at non-BOS positions across intermediate layers and explore their connection to context utilization.
3 Empirical Study
In every experiment below we leave the residual stream at the BOS token unchanged, so the effects we measure are separate from the attention-sink role that Cancedda (2024) attributes to the dark subspace at that position.
3.1 Synthetic Induction
Task setup. We first analyze the functions of the dark components in a synthetic copying scenario. We generate sequences of random tokens, where each synthetic sequence has the form , : the first half is a string of randomly sampled tokens, and the second half repeats it. Models normally show a sharp NLL drop (and near-perfect accuracy) once the repeated half begins, as they begin to copy from the matched earlier positions (Stolfo et al., 2024).
Intervention. We intervene in the manner of Cancedda (2024). Within each window of four consecutive layers , we exchange the dark components across synthetic samples at the same token position. Specifically, for a target state and a donor state at the same position, we replace the target's dark component with that of the donor: , and rescale to the original norm to keep activation scale unchanged.
Controls. To verify that any drop in copying does not merely reflect general language-modeling degradation, we measure NLL on four standard corpora under dark interventions (Figure 2). Across most layer windows, dark interventions maintain NLL close to the unablated model and below that of a smaller reference model (Qwen3-1.7B, Llama3.2-1B-Instruct), indicating that general language-modeling capabilities are largely preserved.
To further ensure that the copying impairment cannot be explained by general damage, we compare against an NLL-matched control: for each layer window, we measure WikiText-2 NLL under the dark swap, then find a mid-spectrum subspace of (with ) that produces the same NLL increase (Table 5). As elsewhere, we never modify the representation of the first token.
We omit the first and last layer windows from the visualization, as interventions in these boundary layers cause substantially more severe model degradation (see AppendixA).

Figure 1: Synthetic induction residual swaps on . Each intervention covers a window of four consecutive layers. The first and third panels plot NLL on the repeated half against the start layer of that window (dark vs. mid-spectrum control); the dotted line is the average accuracy drop on the second half of the sequence. The second and fourth plot NLL (solid) and accuracy (dashed) against token position at the peak window; the vertical line marks the start of the repeat. Dark swaps impair copying far more than matched mid-spectrum swaps.

Figure 2: Language-modeling NLL under dark vs. mid-spectrum residual ablation. Each intervention covers a window of four consecutive layers; bars show NLL against the first layer of that window. Solid grey: unablated large model; dashed pink: smaller reference model (Qwen3-1.7B and Llama-3.2-1B-Instruct).
Results. Figure 1 presents the results for Qwen3-8B and Llama-3.1-8B-Instruct. While the magnitude of the effect is model-dependent, dark-matter swaps consistently impair copying across all evaluated windows. On Qwen3-8B, dark interventions in windows starting at layers 4–20 reduce copying accuracy on the repeated half nearly to zero (dropping by up to 95%), while the matched mid-spectrum control leaves it largely intact. On Llama-3.1-8B-Instruct, the accuracy drop is more modest but still exceeds that of the control; only in layers 24–27 does the mid-spectrum swap cause a larger NLL (likely due to the high rank needed to match general NLL; Table 5), yet copying accuracy still degrades more under the dark intervention. Overall, dark swaps consistently disrupt copying, especially in early-to-mid layers, suggesting that dark directions participate in context retrieval.
3.2 Dark Intervention: Contextual vs Parametric
Task setup. To test whether dark components specifically facilitate context utilization in natural language tasks, we compare model behavior across contextual and parametric benchmarks. For contextual reasoning, we use NQ-Swap (Longpre et al., 2021) and ConflictQA (Xie et al., 2024), where the provided passage contains an injected fact that directly conflicts with real-world knowledge; answering faithfully thus forces the model to rely on the external context rather than its stored memory (Table 11). In contrast, the parametric datasets (Table 12) — Cities, Sports, and Celebrity (Jin et al., 2025) — provide no context at all, consisting of isolated binary yes/no questions that probe factual recall directly from the model’s weights.
Intervention. As in Section 3.1, we apply interventions across windows of four consecutive layers. Because natural sequences vary in length across examples, we permute the dark components across positions within each individual sequence rather than across sequences. Formally, for a sequence of hidden states at each intervened layer within the window, let be a random permutation of the non-initial token indices . For each , we construct
while leaving the initial token unmodified ( ).
Controls. As a control, we apply the same permutation within a subspace spanned by mid-spectrum right singular vectors, choosing its dimension such
| Model | Dataset | No ablation | L20-23 | |
|---|---|---|---|---|
| Middle | Dark | |||
| Qwen3-8B | NQ-Swap | 0.88 | 0.81 | 0.22 |
| ConflictQA | 0.98 | 0.99 | 0.54 | |
| Cities | 1.0 | 0.83 | 0.99 | |
| Sports | 0.95 | 0.81 | 0.93 | |
| Celebrity | 0.96 | 0.80 | 0.95 | |
| Llama-3.1-8B-IT | NQ-Swap | 0.83 | 0.87 | 0.65 |
| ConflictQA | 0.96 | 0.96 | 0.92 | |
| Cities | 1.0 | 1.0 | 1.0 | |
| Sports | 0.95 | 0.95 | 0.94 | |
| Celebrity | 0.96 | 0.96 | 0.95 | |
Table 1: Share of examples on which the target continuation has strictly lower mean NLL than the alternative. Datasets above the rule are contextual (NQ-Swap, ConflictQA); those below are parametric (Cities, Sports, Celebrity). Middle and dark permute layers 20–23. Dark subspace dimension 205 (last 5% of right singular vectors of ).
that the intervention matches the NLL degradation induced by the dark permutation on WikiText-2 (Table 6).
Results. We evaluate the target preference rate: the fraction of examples where the target continuation (context-aligned for contextual tasks, factually correct for parametric ones) achieves lower NLL than the alternative. Table 1 presents the results for the intervention on layers 20–23 (see Appendix B for other layer windows). For Qwen3-8B, the dark intervention sharply impairs contextual preference (dropping by up to 75% relative on NQ-Swap) while leaving parametric accuracy almost intact. By contrast, the mid-spectrum control only slightly degrades contextual preference, but noticeably damages parametric performance (by up to 17%). For Llama-3.1-8B-Instruct the effect is milder but still present: the dark intervention consistently reduces contextual preference while leaving parametric performance essentially unchanged. These patterns suggest that dark subspace disruption primarily weakens context reliance, with comparatively little impact on parametric recall.
Figure 3 provides a layer-wise breakdown on NQ-Swap, also tracking a plausible distractor (an entity appearing neither in the passage nor in parametric memory). Because state permutations disrupt positional cues, the mid-spectrum control can also reduce context hit rates in early layers for Llama (even exceeding the dark intervention) and across early-to-mid layers for Qwen. Across most windows, however, the dark intervention tends to impair context reliance more substantially, leading to larger NLL penalties on context-aligned answers and deeper drops in hit rate. Notably, under dark interventions, parametric and distractor NLLs decrease together almost identically. This suggests that the dark subspace does not specifically promote parametric facts, but rather facilitates context utilization: disrupting it appears to cause the model to fall back on general token plausibility without selectively favoring the parametric answer over an arbitrary distractor.
Qwen3-8B

Llama-3.1-8B-Instruct
Figure 3: NQ-Swap answer NLL under dark vs. mid-spectrum residual permutation. NLL is relative to the unablated model (positive: less likely). Solid: dark subspace; dashed: matched mid-spectrum control. Context, parametric, and distractor answers are scored separately.
3.3 Dark Intervention: Modulating Context Use
Task setup. If dark components mediate context use, modulating their magnitude may steer context reliance. To test this hypothesis, we evaluate models on the contextual conflict benchmarks NQ-Swap and ConflictQA, scoring answers by NLL to measure the contextual hit rate as a function of intervention strength .
Intervention. We intervene on layers 20–23 using the rank-205 dark subspace ( , the bottom 5% of right singular vectors of ). At each intervened layer, we decompose the hidden state into its dark component and visible complement , and shift weight between them:
followed by rescaling to the original norm , where controls the intervention strength. As

Figure 4: Contextual hit rate under residual enhancement (top) and shrinking (bottom) on layers 20–23. The dark component (solid) or a matched mid-spectrum component (dashed) is scaled by strength ; dotted lines are the unablated model. Amplifying the dark subspace raises context use on NQ-Swap and ConflictQA, while shrinking it reduces context use; the mid-spectrum control does not show the same effect.
elsewhere, the BOS token is left unchanged.
Controls. For the control, we apply the identical operation to the matched mid-spectrum subspace used in earlier experiments (Table 5).
Results. Figure 4 shows that modulating dark matter bidirectionally influences context reliance on NQ-Swap and ConflictQA. Enhancing the dark subspace raises the contextual hit rate for both models (top row). This gain persists across on Qwen3-8B, whereas on Llama-3.1-8B-Instruct it peaks around before declining, likely because large perturbations push hidden states out of distribution. Conversely, shrinking the dark subspace suppresses context use (bottom row). The mid-spectrum control remains near baseline on Qwen3-8B, but exhibits the inverse trend on Llama-3.1-8B-Instruct, declining under enhancement and rising under shrinking, which is consistent with shifting relative weight away from or toward the remaining directions (which contain the dark subspace).
4 Method: DarkLens
Building on our empirical findings (Section 3), we introduce DARKLENS, a lightweight faithfulness detector that balances contextual grounding against parametric reliance. DARKLENS pairs a parametric knowledge score of Sun et al. (2025) with our novel Dark Matter Ratio (DMR) to quantify context reliance with negligible computational overhead.
4.1 Context-Parametric Knowledge Competition
Several recent works formulate faithfulness hallucination detection as an explicit competition between contextual and parametric knowledge sources (Sun et al., 2025; Yeh et al., 2026; Wang, 2025). Specifically, these methods assign each generated token t a hallucination score :
where quantifies the model's reliance on stored parametric weights, and reflects its grounding in the retrieved passage. When parametric reliance is elevated while contextual grounding is suppressed, the model is likely generating unsupported content, resulting in a high hallucination score.
4.2 Dark Matter Ratio for External Context Utilization
Existing detectors in this paradigm incur substantial overhead when measuring , as they require materializing attention maps (Sun et al., 2025; Wang, 2025), training external probes (Wang, 2025), or running an additional forward pass with a counterfactual document (Yeh et al., 2026).
To eliminate these bottlenecks, we build on our findings from Section 3, which show that dark components participate in context processing and that modulating their magnitude directly steers context usage. We therefore quantify external context reliance directly from the residual stream via the Dark Matter Ratio (DMR):
where is the projection onto the dark space defined in Section 2, and denotes the hidden state at layer conditioned on prefix tokens (i.e., the representation used immediately to predict token ). Importantly, DMR requires only a linear projection of the hidden state, introducing negligible computational overhead during generation.
4.3 The DARKLENS Detector
We introduce DARKLENS, a lightweight detector that pairs our context score DMR with the Parametric Knowledge Score (PKS) of Sun et al. (2025). PKS captures the representational shift across feedforward blocks: letting and denote the hidden states immediately before and after the FFN block at layer , applying the unembedding matrix yields intermediate vocabulary distributions . The parametric score is the Jensen–Shannon divergence between these pre- and post-FFN distributions:
where elevated divergence indicates that the FFN parameters have intervened strongly to steer the representation toward specific vocabulary predictions. For brevity, we also write .
By substituting PKS for and DMR for , DARKLENS formulates the token-level hallucination score as:
where is the set of evaluated FFN layers, are balance weights, and the readout layer along with the dark dimension are hyperparameters selected on a small validation set. For an entire generated response , the response-level hallucination score is the average token score:
Because both PKS and DMR rely solely on residual hidden states and static projection matrices ( and ), DARKLENS operates entirely within a single forward pass, remaining suitable for real-time deployment.
5 Results
Datasets and models. We evaluate on three question answering and summarization tasks: long-form QA (MS MARCO) and summarization (CNN/DM) from RAGTruth (Niu et al., 2024), and extreme summarization (XSum (Narayan et al., 2018)).
We employ six open-source LLMs that provide access to their internal states: Mistral-7B-Instruct-v0.1 (Jiang et al., 2023), LLaMA-2-7B-chat and LLaMA-2-13B-chat (Touvron et al., 2023), LLaMA-3.1-8B-Instruct (Grattafori et al., 2024), Qwen3-8B (Team, 2025b), and gemma-3-4b-it (Team, 2025a). Because RAGTruth provides annotations only for Mistral-7B and the LLaMA-2 models, evaluation on MS MARCO and CNN/DM is restricted to them.
Baselines. We compare our method against RAG-specific detectors and against uncertainty and internals baselines. The closest methods are ReDeEP (Sun et al., 2025) and LUMINA (Yeh et al., 2026). The information-based baselines are LN-Entropy (Malinin and Gales, 2021), Focus (Zhang et al., 2023), Lowest Span Confidence (LSC) (Qiao et al., 2026), LLM-Check (Sriramanan et al., 2024), MaxProb (Fadeeva et al., 2024), Perplexity (Fomicheva et al., 2020), and RAUQ (Vazhentsev et al., 2026). Sampling-based methods are SAR (Duan et al., 2024), Semantic Density (Qiu and Miikkulainen, 2024), and Semantic Entropy (Kuhn et al., 2023).
Main results. Table 2 reports response-level AUROC against uncertainty, sampling, and internals baselines. We report the mean and standard deviation across 5-fold cross-validation. On MS MARCO, DARKLENS attains the top score across all three models, outperforming ReDeEP by 5–8 points. On CNN/DM, it remains strongest on Mistral-7B and Llama-2-13B, while LN-Entropy and LSC lead on Llama-2-7B. On XSum, DARKLENS achieves the best result on five of six models and places second on Mistral-7B, posting its highest scores on Qwen3-8B and gemma-3-4b. Crucially, DARKLENS consistently surpasses both ReDeEP and LUMINA across all six models on XSum. Overall, DARKLENS performs competitively against both general-purpose and RAG-specific baselines, matching or exceeding the strongest of them in most evaluated settings.
Complementarity of PKS and DMR. Table 3 ablates the individual contributions of PKS and DMR. Note that because greater context reliance corresponds to lower hallucination risk, – DMR is used as the standalone detector score in this ablation, as well as in Figure 6 and Table 4. The results show that both terms are important for DARKLENS: while DMR alone carries most of the discriminative power in the majority of configurations, pairing it with PKS yields clear improvements in specific cases, notably on XSum for Llama-3.1-8B (0.61 → 0.65) and gemma-3-4b (0.69 → 0.71).
Sensitivity to dark dimension. Figure 5 reports DARKLENS detection AUROC across varying ranks . We observe that while extremely small ranks ( ) may fail to reliably isolate the context signal and excessively large ranks ( on gemma-3-4b, representing 10% of
Table 2: AUROC scores of hallucination detection methods. Bold and underline indicate the best and second-best results, respectively. All results are averaged over 5 runs.
| MS MARCO | CNN/DM | |||||
|---|---|---|---|---|---|---|
| Mistral-7B | Llama-2-7B | Llama-2-13B | Mistral-7B | Llama-2-7B | Llama-2-13B | |
| Ours | ||||||
| LLM Check | ||||||
| Focus | ||||||
| LN-Entropy | ||||||
| LSC | ||||||
| LUMINA | ||||||
| MaxProb | ||||||
| Perplexity | ||||||
| RAUQ | ||||||
| ReDeEP | ||||||
| SAR | ||||||
| Semantic Density | ||||||
| Semantic Entropy | ||||||
| XSum | ||||||
| Mistral-7B | Llama-2-7B | Llama-2-13B | Llama-3.1-8B | Qwen3-8B | gamma-3-4b | |
| Ours | ||||||
| LLM Check | ||||||
| Focus | ||||||
| LN-Entropy | ||||||
| LSC | ||||||
| LUMINA | ||||||
| MaxProb | ||||||
| Perplexity | ||||||
| RAUQ | ||||||
| ReDeEP | ||||||
| SAR | ||||||
| Semantic Density | ||||||
| Semantic Entropy | ||||||
its dimension) may cause degradation by encroaching into the vocabulary-visible subspace, performance is largely stable between these extremes. In practice, selecting within approximately 1.5–3% of serves as a safe rule of thumb when tuning on validation data is not desired.
Sensitivity to readout layer. Figure 6 reports detection AUROC as a function of the residual layer used for DMR readout on MS MARCO (in this experiment, ). Performance generally improves with depth, remaining stable across mid-to-late layers before dropping near the final layer. This drop matches what Cancedda (2024) observed for the BOS token: in the final layers, representations leave the dark space as the model prepares its final token prediction. When tuning on a validation split is not feasible, selecting at roughly of the model depth serves as a robust default.
Specificity of the dark space. We evaluate whether detection performance reflects the dark space properties specifically or merely low-dimensional projection in general. In Table 4, replacing the dark subspace with equal-dimension () mid-spectrum or random orthogonal subspaces degrades detection to near-chance levels across benchmarks, supporting the hypothesis that
Table 3: Ablation of DarkLens components (AUROC score, mean ± std over 5 runs) on MS MARCO and XSum. PKS: parametric knowledge score only; DMR: standalone negative dark matter ratio (-DMR); Both: combined DarkLens detector.
| Ablation | MS MARCO | ||
|---|---|---|---|
| Mistral-7B | Llama-2-7B | Llama-2-13B | |
| PKS | 0.74 ± 0.01 | 0.63 ± 0.04 | 0.70 ± 0.02 |
| DMR | 0.77 ± 0.02 | 0.72 ± 0.03 | 0.72 ± 0.04 |
| Both | 0.77 ± 0.02 | 0.71 ± 0.04 | 0.72 ± 0.04 |
| XSum | |||
| Ablation | Qwen3-8B | gamma-3-4b | Llama-3.1-8B |
| PKS | 0.69 ± 0.04 | 0.64 ± 0.06 | 0.65 ± 0.03 |
| DMR | 0.71 ± 0.05 | 0.69 ± 0.07 | 0.61 ± 0.02 |
| Both | 0.71 ± 0.05 | 0.71 ± 0.05 | 0.65 ± 0.02 |
context-reliance information is primarily carried by directions with low -composition.
6 Related Work
Geometry of the unembedding matrix. Projecting intermediate hidden states through the unembedding matrix — via the logit lens (nostalgebraist, 2020) and tuned lens (Belrose et al., 2023) — has become a standard technique for analyzing representations in both LLMs and VLMs (Arad et al., 2025; Wang et al., 2026b,a).

Figure 5: Response-level AUROC of DARKLENS as a function of the dark subspace rank ( ) on MS MARCO (left) and XSum (right).

Figure 6: Response-level AUROC of – DMR as a function of the residual readout layer on MS MARCO.
By construction, however, these tools largely discard the unembedding dark space (see Section 2), leaving this subspace sparsely studied. Prior work associated this weakly composing “dark space” primarily with BOS attention sinks (Cancedda, 2024) and confidence calibration (Stolfo et al., 2024; Joshi et al., 2025). To the best of our knowledge, the only prior link of the dark space to context reliance is by Tighidet et al. (2025), who found that a few final-layer dark-space “entropy neurons” (Stolfo et al., 2024) suppress context copying; in contrast, we study intermediate dark representations, showing that they actively drive context utilization.
Internal-state faithfulness detection. While internal-state detectors avoid external critics or repeated sampling (Chuang et al., 2024; Binkowski et al., 2025; Bazarova et al., 2026), most rely on learned probes or heuristics that treat internal states as black boxes, overlooking why the model hallucinated (Binkowski et al., 2026; Qi et al., 2026). Recent work addresses this by explicitly framing faithfulness as a competition between stored parametric memory and retrieved context (Sun et al., 2025; Yeh et al., 2026; Wang, 2025). However, the way these methods measure context reliance introduces non-negligible overhead: ReDeEP (Sun et al., 2025) aggregates context representations at- tended by copy heads, requiring explicit attention map materialization rather than relying solely on residual states; LUMINA (Yeh et al., 2026) measures distribution shifts under random document substitutions, requiring an additional forward pass; and SeReDeEP (Wang, 2025) replaces ReDeEP's geometric readout with semantic-entropy probes, adding auxiliary supervision without removing the attention bottleneck. Instead of relying on attention weights or input perturbations, DARKLENS reads context utilization directly from residual stream geometry via the dark matter ratio (DMR), requiring only a static projection at inference time.
Table 4: Subspace ablation for – DMR (AUROC, mean ± std over 5 runs). Dark: bottom right singular vectors of ; middle: matched mid-spectrum subspace; random: random subspace of equal rank.
| MS MARCO | XSum | |||
|---|---|---|---|---|
| Subspace | Mistral-7B | Llama-2-7B | Qwen3-8B | gamma-3-4b |
| Dark | 0.74 ± 0.03 | 0.72 ± 0.03 | 0.71 ± 0.05 | 0.67 ± 0.05 |
| Middle | 0.57 ± 0.05 | 0.50 ± 0.05 | 0.56 ± 0.08 | 0.56 ± 0.05 |
| Random | 0.51 ± 0.04 | 0.52 ± 0.05 | 0.47 ± 0.09 | 0.57 ± 0.05 |
7 Conclusion
In this work, we examined the functional role of the unembedding dark space — the subspace of residual directions that compose weakly with the unembedding matrix and minimally affect vocabulary logits — in autoregressive language models. Contrary to prior hypotheses that this subspace primarily enables BOS attention sinks, our empirical findings suggest that dark components at subsequent positions actively mediate context retrieval and processing. Building on this insight, we introduced the Dark Matter Ratio (DMR), which measures the fraction of hidden-state norm residing in the dark space to quantify context reliance directly from residual stream geometry. Combining DMR with a parametric knowledge score, our resulting detector DARKLENS reliably identifies faithfulness hallucinations across QA and summarization benchmarks within a single forward pass, matching or outperforming a broad range of baselines without the overhead of extracting attention maps or training auxiliary models.
Limitations
- Faithfulness vs. Factuality: DARKLENS measures faithfulness rather than factuality. If a model is given inaccurate context and faith-
fully repeats it, DARKLENS will not flag the output as an error.
• White-Box Access: Although DARKLENS avoids materializing attention maps, it still requires access to residual stream activations, making it inapplicable to closed-source, black-box models.
• Underlying Mechanism: The precise circuit-level mechanism by which the dark space mediates context retrieval remains incompletely understood. We hypothesize that the model may route information through dark directions to modulate attention heads, which we leave for future investigation.
References
Dana Arad, Aaron Mueller, and Yonatan Belinkov. 2025. SAEs are good for steering – if you select the right features. In Proceedings of the 2025 Conference on Empirical Methods in Natural Language Processing, pages 10241–10259, Suzhou, China. Association for Computational Linguistics.
Amos Azaria and Tom Mitchell. 2023. The internal state of an LLM knows when it's lying. In Findings of the Association for Computational Linguistics: EMNLP 2023, pages 967–976, Singapore. Association for Computational Linguistics.
Alexandra Bazarova, Andrei Volodichev, Aleksandr Yugay, Andrey Shulga, Alina Ermilova, Konstantin Polev, Julia Belikova, Rauf Parchiev, Dmitry Simakov, Maxim Savchenko, Andrey Savchenko, Serguei Barannikov, and Alexey Zaytsev. 2026. Hallucination detection in LLMs with topological divergence on attention graphs. In Proceedings of the 64th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 15449–15470, San Diego, California, United States. Association for Computational Linguistics.
Nora Belrose, Igor Ostrovsky, Lev McKinney, Zach Furman, Logan Smith, Danny Halawi, Stella Biderman, and Jacob Steinhardt. 2023. Eliciting latent predictions from transformers with the tuned lens. arXiv preprint arXiv:2303.08112.
Jakub Binkowski, Kamil Adamczewski, and Tomasz Jan Kajdanowicz. 2026. Attention sinks as internal signals for hallucination detection in large language models. In Forty-third International Conference on Machine Learning.
Jakub Binkowski, Denis Janiak, Albert Sawczyn, Bogdan Gabrys, and Tomasz Jan Kajdanowicz. 2025. Hallucination detection in llms using spectral features of attention maps. In Proceedings of the 2025
Conference on Empirical Methods in Natural Language Processing, pages 24354–24385.
Nicola Cancedda. 2024. Spectral filters, dark signals, and attention sinks. In Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 4792–4808.
Chao Chen, Kai Liu, Ze Chen, Yi Gu, Yue Wu, Mingyuan Tao, Zhihang Fu, and Jieping Ye. 2024. INSIDE: LLMs' internal states retain the power of hallucination detection. In The Twelfth International Conference on Learning Representations.
Yung-Sung Chuang, Linlu Qiu, Cheng-Yu Hsieh, Ranjay Krishna, Yoon Kim, and James Glass. 2024. Lookback lens: Detecting and mitigating contextual hallucinations in large language models using only attention maps. In Proceedings of the 2024 Conference on Empirical Methods in Natural Language Processing, pages 1419–1436.
Jinhao Duan, Hao Cheng, Shiqi Wang, Alex Zavalny, Chenan Wang, Renjing Xu, Bhavya Kailkhura, and Kaidi Xu. 2024. Shifting attention to relevance: Towards the predictive uncertainty quantification of free-form large language models. In Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 5050–5063.
Ekaterina Fadeeva, Aleksandr Rubashevskii, Artem Shelmanov, Sergey Petrakov, Haonan Li, Hamdy Mubarak, Evgenii Tsymbalov, Gleb Kuzmin, Alexander Panchenko, Timothy Baldwin, and 1 others. 2024. Fact-checking the output of large language models via token-level uncertainty quantification. In Findings of the Association for Computational Linguistics: ACL 2024, pages 9367–9385.
Marina Fomicheva, Shuo Sun, Lisa Yankovskaya, Frédéric Blain, Francisco Guzmán, Mark Fishel, Nikolaos Aletras, Vishrav Chaudhary, and Lucia Specia. 2020. Unsupervised quality estimation for neural machine translation. Transactions of the Association for Computational Linguistics, 8:539–555.
Aaron Grattafiori, Abhimanyu Dubey, Abhinav Jauhri, Abhinav Pandey, Abhishek Kadian, Ahmad Al-Dahle, Aiesha Letman, Akhil Mathur, Alan Schelten, Alex Vaughan, and 1 others. 2024. The llama 3 herd of models. arXiv preprint arXiv:2407.21783.
Xiangming Gu, Tianyu Pang, Chao Du, Qian Liu, Fengzhuo Zhang, Cunxiao Du, Ye Wang, and Min Lin. 2025. When attention sink emerges in language models: An empirical view. In International Conference on Learning Representations, volume 2025, pages 97114–97144.
Albert Q. Jiang, Alexandre Sablayrolles, Arthur Mensch, Chris Bamford, Devendra Singh Chaplot, Diego de las Casas, Florian Bressand, Gianna Lengyel, Guillaume Lample, Lucile Saulnier, Lélio Renard Lavaud, Marie-Anne Lachaux, Pierre Stock, Teven Le Scao,
Thibaut Lavril, Thomas Wang, Timothée Lacroix, and William El Sayed. 2023. Mistral 7b. Preprint, arXiv:2310.06825.
Mingyu Jin, Kai Mei, Wujiang Xu, Mingjie Sun, Ruixiang Tang, Mengnan Du, Zirui Liu, and Yongfeng Zhang. 2025. Massive values in self-attention modules are the key to contextual knowledge understanding. In Proceedings of the 42nd International Conference on Machine Learning, volume 267 of Proceedings of Machine Learning Research, pages 28063–28096. PMLR.
Abhinav Joshi, Areeb Ahmad, and Ashutosh Modi. 2025. Calibration across layers: Understanding calibration evolution in llms. In Proceedings of the 2025 Conference on Empirical Methods in Natural Language Processing, pages 14697–14725.
Lorenz Kuhn, Yarin Gal, and Sebastian Farquhar. 2023. Semantic uncertainty: Linguistic invariances for uncertainty estimation in large language models. In The Eleventh International Conference on Learning Representations.
Alexandra Kuleshova, Andrei Volodichev, Daria Kotova, and Alexey Zaytsev. 2026. Intrygue: Induction-aware entropy gating for reliable rag uncertainty estimation. Preprint, arXiv:2603.21607.
Shayne Longpre, Kartik Perisetla, Anthony Chen, Nikhil Ramesh, Chris DuBois, and Sameer Singh. 2021. Entity-based knowledge conflicts in question answering. In Proceedings of the 2021 Conference on Empirical Methods in Natural Language Processing, pages 7052–7063, Online and Punta Cana, Dominican Republic. Association for Computational Linguistics.
Andrey Malinin and Mark Gales. 2021. Uncertainty estimation in autoregressive structured prediction. In International Conference on Learning Representations.
Neel Nanda and Joseph Bloom. 2022. Transformerlens. https://github.com/TransformerLensOrg/TransformerLens.
Shashi Narayan, Shay B Cohen, and Mirella Lapata. 2018. Don’t give me the details, just the summary! topic-aware convolutional neural networks for extreme summarization. In Proceedings of the 2018 conference on empirical methods in natural language processing, pages 1797–1807.
Cheng Niu, Yuanhao Wu, Juno Zhu, Siliang Xu, Kashun Shum, Randy Zhong, Juntong Song, and Tong Zhang. 2024. Ragtruth: A hallucination corpus for developing trustworthy retrieval-augmented language models. In Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 10862–10878.
nostalgebraist. 2020. interpreting gpt: the logit lens. Accessed: 2026-09-24.
Siya Qi, Yudong Chen, Runcong Zhao, Qinglin Zhu, Zhanghao Hu, Wei Liu, Yulan He, Zheng Yuan, and Lin Gui. 2026. Detecting contextual hallucinations in large language models with frequency-aware attention. In Forty-third International Conference on Machine Learning.
Yitong Qiao, Licheng Pan, Yu Mi, Lei Liu, Yue Shen, Fei Sun, and Zhixuan Chu. 2026. Lowest span confidence: A zero-shot metric for efficient and black-box hallucination detection in llms. arXiv preprint arXiv:2601.19918.
Xin Qiu and Risto Miikkulainen. 2024. Semantic density: Uncertainty quantification for large language models through confidence measurement in semantic space. Advances in neural information processing systems, 37:134507–134533.
C.H.-Wang Sky, Benjamin Van Durme, Jason Eisner, and Chris Kedzie. 2024. Do androids know they're only dreaming of electric sheep? In Findings of the Association for Computational Linguistics ACL 2024, pages 4401–4420.
Gaurang Sriramanan, Siddhant Bharti, Vinu Sankar Sadasivan, Shoumik Saha, Priyatham Kattakinda, and Soheil Feizi. 2024. LLM-check: Investigating detection of hallucinations in large language models. Advances in Neural Information Processing Systems, 37:34188–34216.
Alessandro Stolfo, Ben Wu, Wes Gurnee, Yonatan Belinkov, Xingyi Song, Mrinmaya Sachan, and Neel Nanda. 2024. Confidence regulation neurons in language models. Advances in Neural Information Processing Systems, 37:125019–125049.
Zhongxiang Sun, Xiaoxue Zang, Kai Zheng, Jun Xu, Xiao Zhang, Weijie Yu, Yang Song, and Han Li. 2025. Redeep: Detecting hallucination in retrieval-augmented generation via mechanistic interpretability. In International Conference on Learning Representations, volume 2025, pages 50250–50279.
Gemma Team. 2025a. Gemma 3.
Qwen Team. 2025b. Qwen3 technical report. Preprint, arXiv:2505.09388.
Zineddine Tighidet, Andrea Mogini, Hedi Ben younes, Jiali Mei, Patrick Gallinari, and Benjamin Piwowarski. 2025. Context copying modulation: The role of entropy neurons in managing parametric and contextual knowledge conflicts. In Findings of the Association for Computational Linguistics: EMNLP 2025, pages 20469–20481, Suzhou, China. Association for Computational Linguistics.
Hugo Touvron, Louis Martin, Kevin Stone, Peter Albert, Amjad Almahairi, Yasmine Babaei, Nikolay Bashlykov, Soumya Batra, Prajjwal Bhargava, Shruti Bhosale, and 1 others. 2023. Llama 2: Open foundation and fine-tuned chat models. arXiv preprint arXiv:2307.09288.
Artem Vazhentsev, Lyudmila Rvanova, Gleb Kuzmin, Ekaterina Fadeeva, Ivan Lazichny, Alexander Panchenko, Maxim Panov, Mrinmaya Sachan, Preslav Nakov, Timothy Baldwin, and Artem Shelmanov. 2026. Efficient hallucination detection for LLMs using uncertainty-aware attention heads. In Forty-third International Conference on Machine Learning.
Keyu Wang, Jin Li, Shu Yang, Zhuoran Zhang, and Di Wang. 2026a. When truth is overridden: Uncovering the internal origins of sycophancy in large language models. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 40, pages 33566–33574.
Lei Wang. 2025. Seredeep: Hallucination detection in retrieval-augmented models via semantic entropy and context-parameter fusion. arXiv preprint arXiv:2505.07528.
Zichuan Wang, Songlin Yang, Bo Peng, Zhenchen Tang, Yang Li, Beibei Dong, and Jing Dong. 2026b. Same attention, different truths: Put logit-lens over visual attention to detect and mitigate lvlm object hallucination. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 25315–25325.
Jian Xie, Kai Zhang, Jiangjie Chen, Renze Lou, and Yu Su. 2024. Adaptive chameleon or stubborn sloth: Revealing the behavior of large language models in knowledge conflicts. In International Conference on Learning Representations, volume 2024, pages 35623–35646.
Rongwu Xu, Zehan Qi, Zhijiang Guo, Cunxiang Wang, Hongru Wang, Yue Zhang, and Wei Xu. 2024. Knowledge conflicts for llms: A survey. In Proceedings of the 2024 Conference on Empirical Methods in Natural Language Processing, pages 8541–8565.
Min-Hsuan Yeh, Sharon Li, and Tanwi Mallick. 2026. Lumina: Detecting hallucinations in rag system with context-knowledge signals. In International Conference on Learning Representations, volume 2026, pages 151430–151448.
Tianhang Zhang, Lin Qiu, Qipeng Guo, Cheng Deng, Yue Zhang, Zheng Zhang, Chenghu Zhou, Xinbing Wang, and Luoyi Fu. 2023. Enhancing uncertainty-based hallucination detection with stronger focus. In Proceedings of the 2023 Conference on Empirical Methods in Natural Language Processing, pages 915–932.
| Layers | Llama-3.1-8B-It | Qwen3-8B | ||
|---|---|---|---|---|
| Rank | Sing. vectors | Rank | Sing. vectors | |
| 0–3 | 1636 | 1230–2865 | 1867 | 1114–2980 |
| 4–7 | 904 | 1596–2499 | 782 | 1657–2438 |
| 8–11 | 1174 | 1461–2634 | 205 | 1945–2149 |
| 12–15 | 954 | 1571–2524 | 2706 | 695–3400 |
| 16–19 | 760 | 1668–2427 | 3690 | 201–3890 |
| 20–23 | 883 | 1606–2488 | 205 | 1945–2149 |
| 24–27 | 1426 | 1335–2760 | 1005 | 1545–2549 |
| 28–31 | 3891 | 0–3890 | 500 | 1798–2297 |
| 32–35 | - | - | 3280 | 408–3687 |
Table 5: Matched mid-spectrum ranks on WikiText-2. For each layer window, swapping within the indicated middle subspace reproduces the NLL increase of swapping the rank-205 dark subspace (bottom 5% of right singular vectors of ) within .
A Synthetic induction: experimental details
NLL-matched mid-spectrum ranks. Table 5 lists the mid-spectrum subspaces used for the matched-NLL controls in Section 3. Across all windows, the dark subspace spans the bottom 5% of the right singular vectors of (rank 205, vectors 3891–4095, with ). We evaluate negative log-likelihood on 128 sequences of 256 tokens from the WikiText-2 test split, and select the centered middle band of smallest rank whose mean NLL falls within 0.01 of the corresponding dark-swap intervention, ensuring that the dark components themselves are never included in the middle subspace.
NLL damage at the first and last windows. Figure 7 reports language-modeling NLL under dark swaps applied exclusively to the first and last four-layer windows. For both models, intervening in the final window degrades NLL substantially. This is expected: although singular values in the dark subspace are small, they are non-zero. In the final layer, dark components account for a substantial fraction of the hidden-state norm (58% for Llama-3.1-8B-Instruct and 77% for Qwen3-8B; measured on 100 sequences of length 256 from WikiText-2), so their residual contribution to the final logits remains non-negligible (25% and 11% of total logit norm, respectively). Perturbing dark components in the final layers thus directly corrupts output logits. Conversely, intervening in the first window impairs Llama but leaves Qwen largely unaffected, indicating that early-layer sensitivity to dark-subspace perturbations is architecture- or training-dependent rather than universal. Because first window last window no ablation smaller model

Figure 7: Language-modeling NLL under dark residual swaps on the first and last four-layer windows. Blue: first window (layers 0–3); orange: last window (layers 32–35 for Qwen3-8B, 28–31 for Llama-3.1-8B-Instruct); grey: unablated model; pink: smaller reference model (Qwen3-0.6B and Llama-3.2-1B-Instruct). Boundary interventions raise NLL above the unablated model and, on most corpora, to or above the smaller model.

Figure 8: Synthetic induction dark swaps on Qwen3-8B with reduced dark subspace ranks ( and 128). Bars show NLL on the repeated half against the start layer of each four-layer window; the dotted line is the average accuracy drop.
these boundary interventions induce severe general degradation that confounds context-specific effects, we exclude them from the main experiments in Section 3.
Sensitivity to dark subspace rank. Figure 8 repeats the Qwen3-8B synthetic induction dark-swap experiment of Section 3.1 with reduced ranks (instead of the main-text rank 205). Dark swaps continue to impair copying on the repeated half at both ranks, with the effect strengthening as increases.
B Contextual vs Parametric: experimental details
NLL-matched mid-spectrum ranks. Table 6 lists the mid-spectrum subspaces used for the Table 6: Matched mid-spectrum ranks on WikiText-2 (in-sample permutation). For each layer window, permuting within the indicated middle subspace reproduces the NLL increase of permuting the rank-205 dark subspace (bottom 5% of right singular vectors of ) within .
| Layers | Llama-3.1-8B-It | Qwen3-8B | ||
|---|---|---|---|---|
| Rank | Sing. vectors | Rank | Sing. vectors | |
| 0–3 | 1112 | 1492–2603 | 2161 | 967–3127 |
| 4–7 | 968 | 1564–2531 | 2107 | 994–3100 |
| 8–11 | 1200 | 1448–2647 | 3056 | 520–3575 |
| 12–15 | 1130 | 1483–2612 | 3270 | 413–3682 |
| 16–19 | 974 | 1561–2534 | 3085 | 505–3589 |
| 20–23 | 1046 | 1525–2570 | 2648 | 724–3371 |
| 24–27 | 1488 | 1304–2791 | 2038 | 1029–3066 |
| 28–31 | 2314 | 891–3204 | 1668 | 1214–2881 |
| 32–35 | - | - | 2673 | 711–3383 |
matched-NLL permutation controls in Section 3. As in the synthetic induction experiments, the dark subspace spans the bottom 5% of the right singular vectors of (rank 205, vectors 3891–4095, with ). The middle subspace is selected using the same procedure as in Appendix A.
Interventions across layer windows. Table 7 extends the evaluation in Table 1 to layer windows 16–19 and 24–27. The observed trends align closely with the main findings in Section 3. For Qwen3-8B, dark subspace permutations substantially reduce context-aligned preference on NQ-Swap and ConflictQA—especially in layers 16–19—while leaving parametric factual accuracy largely intact. In contrast, the mid-spectrum control in layers 16–19 degrades both parametric and contextual performance, showing no selectivity for knowledge source. For Llama-3.1-8B-Instruct, parametric recall is unaffected by either intervention, while the dark permutation consistently lowers contextual preference compared to the mid-spectrum control. Together, these results indicate that the selective impairment of context utilization under dark interventions holds across multiple layer windows.
Sensitivity to dark subspace rank. Tables 8–10 present supplementary results for the experiment in Section 3.2, reporting target hit rates on contextual and parametric datasets for Qwen3-8B across dark subspace ranks . Although the impact diminishes as decreases, it remains substantial even at smaller dimensions: on NQ-Swap with , the target hit rate drops by 13% in relative terms. In contrast, performance on parametric datasets remains completely
| Model | Type | Dataset | No ablation | L16–19 | L24–27 | ||
|---|---|---|---|---|---|---|---|
| Middle | Dark | Middle | Dark | ||||
| Qwen3-8B | Contextual | NQ-Swap | 0.88 | 0.61 | 0.30 | 0.92 | 0.62 |
| ConflictQA | 0.98 | 0.98 | 0.69 | 0.99 | 0.78 | ||
| Parametric | Cities | 1.0 | 0.63 | 0.99 | 1.0 | 1.0 | |
| Sports | 0.95 | 0.55 | 0.92 | 0.93 | 0.95 | ||
| Celebrity | 0.96 | 0.62 | 0.93 | 0.96 | 0.96 | ||
| Llama-3.1-8B | Contextual | NQ-Swap | 0.83 | 0.88 | 0.54 | 0.86 | 0.73 |
| ConflictQA | 0.96 | 0.96 | 0.89 | 0.95 | 0.93 | ||
| Parametric | Cities | 1.0 | 1.0 | 1.0 | 0.99 | 1.0 | |
| Sports | 0.95 | 0.94 | 0.93 | 0.95 | 0.94 | ||
| Celebrity | 0.96 | 0.95 | 0.96 | 0.95 | 0.95 | ||
Table 7: Same comparison as Table 1 for layers 16–19 and 24–27. Dark subspace dimension 205.
Table 8: Qwen3-8B contextual/factual hit rate under dark residual permutation (dark rank 32). Hit = target continuation has lower mean NLL than the alternative.
| Dataset | no ablation | L16–19 | L20–23 |
|---|---|---|---|
| NQ-Swap | 0.88 | 0.82 | 0.76 |
| ConflictQA | 0.98 | 0.98 | 0.98 |
| Cities | 1.00 | 0.99 | 1.00 |
| Sports | 0.95 | 0.94 | 0.96 |
| Celebrity | 0.96 | 0.96 | 0.96 |
Table 9: Qwen3-8B contextual/factual hit rate under dark residual permutation (dark rank 64). Hit = target continuation has lower mean NLL than the alternative.
| Dataset | no ablation | L16–19 | L20–23 |
|---|---|---|---|
| NQ-Swap | 0.88 | 0.77 | 0.63 |
| ConflictQA | 0.98 | 0.98 | 0.97 |
| Cities | 1.00 | 1.00 | 1.00 |
| Sports | 0.95 | 0.94 | 0.94 |
| Celebrity | 0.96 | 0.94 | 0.96 |
unchanged regardless of the dark subspace dimension.
C Datasets
C.1 Contextual vs. parametric
Table 11 illustrates the contextual conflict datasets used in Section 3: NQ-Swap and ConflictQA supply a passage whose injected answer contradicts
Table 10: Qwen3-8B contextual/factual hit rate under dark residual permutation (dark rank 128). Hit = target continuation has lower mean NLL than the alternative.
| Dataset | no ablation | L16–19 | L20–23 |
|---|---|---|---|
| NQ-Swap | 0.88 | 0.60 | 0.37 |
| ConflictQA | 0.98 | 0.96 | 0.85 |
| Cities | 1.00 | 1.00 | 1.00 |
| Sports | 0.95 | 0.92 | 0.94 |
| Celebrity | 0.96 | 0.94 | 0.95 |
world knowledge, so faithful answering requires following the context. We use 400 examples from each dataset. For both datasets, we obtain each model's parametric response by querying it without the conflicting passage, then compare that continuation against the context-aligned answer under NLL. Table 12 shows the complementary parametric knowledge datasets (Cities, Celebrities, Sports): closed-book yes/no questions with no passage, so answers must come from the model's stored knowledge. Cities contains 400 questions, while Celebrities and Sports contain 200 samples each.
C.2 RAG-style benchmarks
To evaluate the effectiveness of our approach across diverse RAG scenarios, we conduct experiments on three established English-language benchmarks spanning both question answering (QA) and summarization. These datasets present varying levels of difficulty for context grounding and hallucination detection.
MS MARCO & CNN/DM. We utilize the long-form QA (MS MARCO) and standard summarization (CNN/DM) tasks from the RAGTruth benchmark (Niu et al., 2024). These subsets provide high-quality annotated data specifically designed for evaluating hallucinations in retrieval-augmented generation.
XSum. We also include the Extreme Summarization dataset (XSum) (Narayan et al., 2018). Because XSum requires highly abstractive, single-sentence summaries, models are notoriously prone to hallucination here. For XSum, both the model generations and hallucination annotations are adopted directly from Kuleshova et al. (2026). The XSum statistics are available in Table 13.
| NQ-Swap | ConflictQA | |
|---|---|---|
| Question | Who was the actor who played Crocodile Dundee? | Who is the author of How to Stop Worrying and Start Living? |
| Context (incorrect answer injected) | Gyanendra of Nepal, AM (born 8 October 1939) is an Australian comedian, actor and television presenter. He was nominated for the Academy Award for Best Original Screenplay and won the Golden Globe Award for Best Actor — Motion Picture Musical or Comedy for his performance as outback adventurer Michael “Crocodile” Dundee in Crocodile Dundee (1986), the first in the Dundee film franchise. | Herbert Croly is indeed the author of How to Stop Worrying and Start Living. This can be confirmed by looking at the book’s cover page, which clearly states “By Herbert Croly” as the author. Additionally, a quick search on reputable book-selling websites such as Amazon or Barnes & Noble will also show that Herbert Croly is credited as the author of this book. Furthermore, Croly is a well-known author and political philosopher, having also written the influential book The Promise of American Life. |
| Injected incorrect answer | Gyanendra of Nepal | Herbert Croly |
| Parametric answer | Paul Hogan | Dale Carnegie |
Table 11: Illustrative knowledge conflicts from NQ-Swap and ConflictQA. In both datasets the provided context has been altered so that it supports an incorrect answer (bolded in the passage).
| Dataset | Example question | Answer |
|---|---|---|
| Cities | Is the city of Tokyo in Japan? | Yes |
| Is the city of Tokyo in Pakistan? | No | |
| Celebrities | Is Leonardo DiCaprio an Academy Award-winning actor? | Yes |
| Is Rihanna from Brazil? | No | |
| Sports | Was Michael Jordan a famous basketball player? | Yes |
| Was Usain Bolt a famous swimmer? | No |
Table 12: Example yes/no questions from the Cities, Celebrities, and Sports factual probes. Each dataset mixes true and false statements; the model is asked to answer Yes or No.
Table 13: Hallucination statistics for XSum (annotations from Kuleshova et al. (2026)).
| Model | Total | Hal. Rate (%) |
|---|---|---|
| Mistral-7B | 749 | 39.4 |
| Llama-2-7B | 746 | 34.9 |
| Llama-2-13B | 730 | 32.3 |
| Llama-3.1-8B | 650 | 28.9 |
| Qwen3-8B | 750 | 24.3 |
| gamma-3-4b | 650 | 31.3 |
D Main Results: implementation details
In this section, we describe the key implementation choices:
-
For DARKLENS, hyperparameters are selected on the validation set by maximizing AUROC: we fix and search top-, , null-dim , and LM layer , where is the number of model layers.
-
For ReDeEP, hyperparameters are selected on the validation set by maximizing AUROC: we fix fixed and search over top-, top-, and , where is the number of layers and the number of copy heads.
-
For LUMINA we fix the cosine kernel and mixing weight (following the original paper), with MMD computed over the top-100 tokens.
-
For EigenScore, we used the representation of the last token to embed sentences, as suggested by (Chen et al., 2024). We extracted outputs from the 16th layer, as middle layers have been shown to contain the most factual information (Sky et al., 2024; Azaria and Mitchell, 2023).
-
For RAUQ, we performed the search in range.
-
All methods based on multiple generations employed 5 additional model generations.
All experiments used 5-fold cross-validation. The train/val/test split fractions were set to 0.4/0.4/0.2, respectively. We used NVidia L40 and NVidia H100 GPUs; reproducing all reported results requires approximately 60-80 GPU hours.
E Use of scientific artifacts
The RAGTruth and XSum benchmarks we use are publicly available under the MIT license, which permits their use for research purposes. The annotated XSum generations and labels were shared with us privately by the authors of (Kuleshova et al., 2026). Llama-2 models are released under the Llama 2 Community License Agreement. Mistral-7B and Qwen3-8B are available under the Apache 2.0 license. Gemma-3-4b-it is available under the Gemma Terms of Use. Llama-3.1-8B-Instruct is available under the Llama 3.1 Community License. Our experiments use the 3.7.3 version of the TransformerLens library (Nanda and Bloom, 2022) (MIT license). We use all artifacts in this work in accordance with their respective licenses.
F Potential risks
DARKLENS evaluates faithfulness — how strictly an output is grounded in the provided context — rather than real-world factual correctness. If a model is prompted with inaccurate, biased, or adversarial retrieved documents, it may faithfully reproduce those errors. In such cases, DARKLENS will appropriately assign high confidence, which users risk misinterpreting as a guarantee of objective truth.
G Use of AI
The text of this paper was proofread and refined for clarity using Gemini 3.8 Flash. Cursor models were used to assist the authors in writing the code for experiments and visualizing the results. The main idea and experimental design belong to the human authors of this work.