Two Pathways to Truthfulness: On the Intrinsic Encoding of LLM Hallucinations

Wen Luo, Guangyue Peng, Wei Li, Shaohang Wei, Feifan Song +6 more
1/12/2026
cs.CLcs.AI

No confident code implementation found for this paper.

Abstract

Despite their impressive capabilities, large language models (LLMs) frequently generate hallucinations. Previous work shows that their internal states encode rich signals of truthfulness, yet the origins and mechanisms of these signals remain unclear. In this paper, we demonstrate that truthfulness cues arise from two distinct information pathways: (1) a Question-Anchored pathway that depends on question-answer information flow, and (2) an Answer-Anchored pathway that derives self-contained evidence from the generated answer itself. First, we validate and disentangle these pathways through attention knockout and token patching. Afterwards, we uncover notable and intriguing properties of these two mechanisms. Further experiments reveal that (1) the two mechanisms are closely associated with LLM knowledge boundaries; and (2) internal representations are aware of their distinctions. Finally, building on these insightful findings, two applications are proposed to enhance hallucination detection performance. Overall, our work provides new insight into how LLMs internally encode truthfulness, offering directions for more reliable and self-aware generative systems.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{luo2026pathways,
  title  = {Two Pathways to Truthfulness: On the Intrinsic Encoding of LLM Hallucinations},
  author = {Wen Luo and Guangyue Peng and Wei Li and Shaohang Wei and Feifan Song and Liang Wang and Nan Yang and Xingxing Zhang and Jing Jin and Furu Wei and Houfeng Wang},
  year   = {2026},
  eprint = {2601.07422},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2601.07422v1}
}

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

Discussion