LLMs Know More Than They Show: On the Intrinsic Representation of LLM Hallucinations

Hadas Orgad, Michael Toker, Zorik Gekhman, Roi Reichart, Idan Szpektor +2 more
2/12/2026

No official code found. Best implementation: technion-cs-nlp/LLMsKnow (95 stars, MIT, last commit 2025-01-22). 1 more below.

Abstract

Large language models (LLMs) often produce errors, including factual inaccuracies, biases, and reasoning failures, collectively referred to as"hallucinations". Recent studies have demonstrated that LLMs' internal states encode information regarding the truthfulness of their outputs, and that this information can be utilized to detect errors. In this work, we show that the internal representations of LLMs encode much more information about truthfulness than previously recognized. We first discover that the truthfulness information is concentrated in specific tokens, and leveraging this property significantly enhances error detection performance. Yet, we show that such error detectors fail to generalize across datasets, implying that -- contrary to prior claims -- truthfulness encoding is not universal but rather multifaceted. Next, we show that internal representations can also be used for predicting the types of errors the model is likely to make, facilitating the development of tailored mitigation strategies. Lastly, we reveal a discrepancy between LLMs' internal encoding and external behavior: they may encode the correct answer, yet consistently generate an incorrect one. Taken together, these insights deepen our understanding of LLM errors from the model's internal perspective, which can guide future research on enhancing error analysis and mitigation.

View on arXivView PDF

Code Implementations(2)

MIT
9525PythonOct 3, 20241 years agoMIT

A follow-up research to https://arxiv.org/abs/2410.02707. Exploring the representation of truthfulness in LLMs.

00Python, Jupyter NotebookApr 23, 20251 years ago

Similar Papers

Cite this paper

@article{orgad2026llms,
  title  = {LLMs Know More Than They Show: On the Intrinsic Representation of LLM Hallucinations},
  author = {Hadas Orgad and Michael Toker and Zorik Gekhman and Roi Reichart and Idan Szpektor and Hadas Kotek and Yonatan Belinkov},
  year   = {2026},
  eprint = {2410.02707},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2410.02707},
  journal = {ICLR 2024 2024}
}

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/2410.02707.svg)](https://codeofpaper.com/paper/2410.02707)

Discussion