Hallucination Is Linearly Decodable from Mid-Layer Hidden States in Quantized LLMs
- URL: http://arxiv.org/abs/2606.02628v1
- Date: Sat, 30 May 2026 02:04:30 GMT
- Title: Hallucination Is Linearly Decodable from Mid-Layer Hidden States in Quantized LLMs
- Abstract summary: We investigate whether open-source LLMs encode a linearly separable signal in their hidden states, and at which network depth this signal is strongest.<n>We extract per-layer hidden states on four benchmarks (TruthfulQA, HaluEval-QA, FEVER, and a controlled synthetic set)<n>Peak probing layers fall in a consistent band across model families on natural-language benchmarks.
- Score: 5.584060970507507
- License: http://creativecommons.org/licenses/by/4.0/
- Abstract: We investigate whether open-source LLMs encode a linearly separable truthfulness signal in their hidden states, and at which network depth this signal is strongest. Across three $7$B--$8$B instruction-tuned models (Llama-3.1-8B, Mistral-7B, Qwen2.5-7B) loaded in $4$-bit NF4 quantization, we extract per-layer hidden states on four hallucination benchmarks (TruthfulQA, HaluEval-QA, FEVER, and a controlled synthetic set) and compare four detection approaches: linear and MLP probes, INSIDE EigenScore, self-consistency, and attention entropy. A linear probe on a single mid-network layer achieves $0.904$--$1.000$ AUROC on held-out splits, while sampling-based detectors do not exceed $0.541$ AUROC under the same protocol. The truthfulness signal is approximately linear: MLP probes rarely surpass linear probes by more than $0.01$ AUROC. Peak probing layers fall in a consistent band across model families on natural-language benchmarks -- blocks~$13$--$18$ of~$32$ for Llama and Mistral, and blocks~$19$--$25$ of~$28$ for Qwen. First-block attention entropy provides a complementary signal in knowledge-grounded settings ($0.866$--$0.941$ AUROC on HaluEval-QA) at no additional inference cost. The low discriminability of sampling methods under this protocol reflects a structural mismatch between paired-label evaluation and the information these methods access, rather than an inherent limitation of those methods. Code and data are released for full reproducibility on a single $8$\,GB GPU.
Related papers
- The Intruder Threshold: A Spectral Law for LoRA Fine-Tuning [3.860898721527665]
LoRA fine-tuning can create intruder dimensions that drive catastrophic forgetting.<n>No theory has predicted, layer by layer on measured spectra, when they appear.<n>Full fine-tuning disperses its update far below the threshold of every layer.<n>Norm-matched interventions confirm that threshold-crossing layers, rather than update magnitude, carry the forgetting.
arXiv Detail & Related papers (2026-07-26T15:17:41Z) - Dead-Direction Signatures: A Cheap Spectral Reading of Singular Complexity [5.67642958049511]
Singular learning theory characterises the complexity of a deep network through the geometry of its loss singularities.<n>We introduce DeadDirection Signatures (DDS), a family of cheap closed-form spectral readings of singular structure.<n>Each reads a network's activation matrix or per-sample-gradient FisherGram at a chosen layer, replacing the posterior chain spectral linear algebra.
arXiv Detail & Related papers (2026-06-19T06:49:09Z) - Now You (Still) See Me: Detecting Evasive Steganographic Payloads in LLMs [52.149036302760386]
Large language models can be fine-tuned to encode prompt-borne secrets into fluent, seemingly benign outputs.<n>Recent work proposes detection using linear probes that recover the secret from internal activations.<n>We show that this defense can be systematically evaded, but that detectability can be recovered through a targeted data-level intervention.
arXiv Detail & Related papers (2026-06-08T12:27:11Z) - Which Defense Closes Which Threat? Attributing OWASP-LLM-Top-10 Coverage and Its Brittleness Under Paraphrasing [51.56484100374058]
Production LLM applications stack several defense families -- refusal-phrase filters, tokenbudget controls, model allowlists, rate limits, tool-registry authentication -- yetBAS benchmarks report a single aggregate coverage number.<n>We add four-LLM-Top-10-aware agents to a 21-agent baseline scanner and target a lattice of four synthetic LLM endpoints.
arXiv Detail & Related papers (2026-06-01T19:39:25Z) - Weight Decay Regimes in Grokking Transformers: Cheap Online Diagnostics [0.0]
Transformers trained on modular arithmetic exhibit sharp transitions between memorization, generalization, and collapse.<n>We show that weight decay acts as a scalar empirical control parameter for these regimes.<n>We introduce online diagnostics, mean pairwise attentionhead cosine similarity and entropy standard deviation, that track training dynamics.
arXiv Detail & Related papers (2026-05-19T19:48:40Z) - Fidelity Probes for Specification--Code Alignment [7.754687669049819]
We introduce fidelity probes: natural-dependence questions generated from a reference artifact with code-derived ground-truth answers.<n>The fidelity probes decompose into contradiction and coverage-gap rates that drive targeted spec edits to convergence.<n>On a 15-program, roughly 12k-line benchmark, we raise frozen-test specification fidelity from 0.63 to 0.94 over eight iterations.
arXiv Detail & Related papers (2026-05-17T04:05:54Z) - Attributing Emergence in Million-Agent Systems [68.53670424791751]
Large language models (LLMs) can simulate human-like reasoning and decision-making in individual agents.<n>Such studies require attributing macro emergence to individual agents.<n>We adapt Aumann--Shapley path-integral attribution to LLM-powered MAS at million-agent scale.
arXiv Detail & Related papers (2026-05-12T01:49:41Z) - Beating the Style Detector: Three Hours of Agentic Research on the AI-Text Arms Race [3.9508043303559828]
Reproducing an empirical NLP study used to take weeks.<n>All code, $648$ mimic drafts, trained detectors, diagnostics, and adversarial trajectories are released.
arXiv Detail & Related papers (2026-05-04T14:10:41Z) - DRIFT: Detecting Representational Inconsistencies for Factual Truthfulness [5.785021425715989]
LLMs often produce fluent but incorrect answers, yet detecting such hallucinations typically requires multiple sampling passes or post-hoc verification.<n>We propose a lightweight probe to read these signals directly from hidden states.<n>We develop an LLM router that answers confident queries immediately while delegating uncertain ones to stronger models.
arXiv Detail & Related papers (2026-01-20T18:16:10Z) - High-fidelity heralded quantum state preparation and measurement [0.0]
We present a novel protocol for high-fidelity qubit state preparation and measurement (SPAM)
It combines standard SPAM methods with a series of in-sequence measurements to detect and remove errors.
We demonstrate the use of the protocol for three different qubit encodings in a single trapped $137mathrmBa+$ ion.
arXiv Detail & Related papers (2024-09-09T17:11:44Z) - Testing the Feasibility of Linear Programs with Bandit Feedback [53.40256244941895]
We develop a test based on low-regret algorithms and a nonasymptotic law of iterated logarithms.
We prove that this test is reliable, and adapts to the signal level,' $Gamma,$ of any instance.
We complement this by a minimax lower bound $(Omegad/Gamma2)$ for sample costs of reliable tests.
arXiv Detail & Related papers (2024-06-21T20:56:35Z) - Minimax-Optimal Multi-Agent RL in Zero-Sum Markov Games With a
Generative Model [50.38446482252857]
Two-player zero-sum Markov games are arguably the most basic setting in multi-agent reinforcement learning.
We develop a learning algorithm that learns an $varepsilon$-approximate Markov NE policy using $$ widetildeObigg.
We derive a refined regret bound for FTRL that makes explicit the role of variance-type quantities.
arXiv Detail & Related papers (2022-08-22T17:24:55Z) - Model-Based Multi-Agent RL in Zero-Sum Markov Games with Near-Optimal
Sample Complexity [67.02490430380415]
We show that model-based MARL achieves a sample complexity of $tilde O(|S||B|(gamma)-3epsilon-2)$ for finding the Nash equilibrium (NE) value up to some $epsilon$ error.
We also show that such a sample bound is minimax-optimal (up to logarithmic factors) if the algorithm is reward-agnostic, where the algorithm queries state transition samples without reward knowledge.
arXiv Detail & Related papers (2020-07-15T03:25:24Z) - A Provably Efficient Sample Collection Strategy for Reinforcement
Learning [123.69175280309226]
One of the challenges in online reinforcement learning (RL) is that the agent needs to trade off the exploration of the environment and the exploitation of the samples to optimize its behavior.
We propose to tackle the exploration-exploitation problem following a decoupled approach composed of: 1) An "objective-specific" algorithm that prescribes how many samples to collect at which states, as if it has access to a generative model (i.e., sparse simulator of the environment); 2) An "objective-agnostic" sample collection responsible for generating the prescribed samples as fast as possible.
arXiv Detail & Related papers (2020-07-13T15:17:35Z)
This list is automatically generated from the titles and abstracts of the papers in this site.
This site does not guarantee the quality of this site (including all information) and is not responsible for any consequences.