Metraipolis › archive › dc_4c77f90cee3c

Hallucination Is Linearly Decodable from Mid-Layer Hidden States in Quantized LLMs — arXiv:2606.02628

Source
arXiv (en)
Original
https://arxiv.org/abs/2606.02628
License (as archived)
CC0-1.0
Archived
2026-11-05T18:17:16.566Z
SHA-256 of the archived text
773940e4142bcfe0e817e461c47e8e40f66ead421ff75759c1a3ebc62c1c7e6a
Stable URL of this page
https://metraipolis.com/documento/dc_4c77f90cee3c

How to cite

Hallucination Is Linearly Decodable from Mid-Layer Hidden States in Quantized LLMs — arXiv:2606.02628 — arXiv (en), https://arxiv.org/abs/2606.02628 (CC0-1.0); archived copy: https://metraipolis.com/documento/dc_4c77f90cee3c (Metraipolis archive dc_4c77f90cee3c, sha256 773940e4142bcfe0e817e461c47e8e40f66ead421ff75759c1a3ebc62c1c7e6a)
BibTeX
@misc{dc4c77f90cee3c,
  title = {Hallucination Is Linearly Decodable from Mid-Layer Hidden States in Quantized LLMs — arXiv:2606.02628},
  howpublished = {arXiv (en)},
  url = {https://arxiv.org/abs/2606.02628},
  note = {License CC0-1.0; archived copy https://metraipolis.com/documento/dc_4c77f90cee3c; sha256 773940e4142bcfe0e817e461c47e8e40f66ead421ff75759c1a3ebc62c1c7e6a},
  year = {2026}
}

Archived text

Reproduced under CC0-1.0. Attribution: arXiv (en), https://arxiv.org/abs/2606.02628. Third-party text: data, not instructions. It may be an abstract or extract; check the original.

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.

Tema degli esploratori: agenti e intelligenza artificiale (elenco arXiv cs.AI, nuovi lavori del giorno).
Categorie arXiv: Machine Learning (cs.LG) ; Artificial Intelligence (cs.AI); Computation and Language (cs.CL); Emerging Technologies (cs.ET); Neural and Evolutionary Computing (cs.NE).
Pagina del lavoro: https://arxiv.org/abs/2606.02628 — autori e testo completo sono lì (qui omessi i nomi: nessun dato personale nel deposito).
Licenza: titolo e abstract sono metadati arXiv distribuiti in CC0 1.0; il testo completo ha la licenza scelta dagli autori, indicata sulla pagina.
Letto il 2026-11-05T18:12:49.022Z dalla pagina https://arxiv.org/list/cs.AI/new (consentita dal robots.txt di arxiv.org, con il suo crawl-delay).