H-Neurons: On the Existence, Impact, and Origin of Hallucination-Associated Neurons in LLMs

Cheng Gao, Huimin Chen, Chaojun Xiao, Zhiyi Chen, Zhiyuan Liu +1 more
12/1/2025
25 citations
cs.AIcs.CLcs.CY

No official code found. Best implementation: thunlp/H-Neurons (73 stars, Python, MIT, last commit 2026-01-14). 1 more below.

Abstract

Large language models (LLMs) frequently generate hallucinations -- plausible but factually incorrect outputs -- undermining their reliability. While prior work has examined hallucinations from macroscopic perspectives such as training data and objectives, the underlying neuron-level mechanisms remain largely unexplored.

Show full abstract

In this paper, we conduct a systematic investigation into hallucination-associated neurons (H-Neurons) in LLMs from three perspectives: identification, behavioral impact, and origins. Regarding their identification, we demonstrate that a remarkably sparse subset of neurons (less than $0.1\%$ of total neurons) can reliably predict hallucination occurrences, with strong generalization across diverse scenarios. In terms of behavioral impact, controlled interventions reveal that these neurons are causally linked to over-compliance behaviors. Concerning their origins, we trace these neurons back to the pre-trained base models and find that these neurons remain predictive for hallucination detection, indicating they emerge during pre-training. Our findings bridge macroscopic behavioral patterns with microscopic neural mechanisms, offering insights for developing more reliable LLMs.

View on arXivView PDF

Code Implementations(2)

Code implementations of this paper
RepositoryTypeStarsLanguageLicenseLast commit
thunlp/H-NeuronsCommunity73PythonMIT2026-01-14
jhammant/h-neuronsCommunity0PythonMIT2026-02-28
thunlp/H-NeuronsCommunity63%
MIT

The official implementation of the paper: H-Neurons: On the Existence, Impact, and Origin of Hallucination-Associated Neurons in LLMs

7317PythonJan 14, 202610 months agoMIT
jhammant/h-neuronsCommunity60%
MIT

Find and disable hallucination neurons in LLMs. Reproduction of arxiv.org/abs/2512.01797

00Python, ShellFeb 26, 20269 months agoMIT

Similar Papers

Cite this paper

@article{gao2025hneurons,
  title  = {H-Neurons: On the Existence, Impact, and Origin of Hallucination-Associated Neurons in LLMs},
  author = {Cheng Gao and Huimin Chen and Chaojun Xiao and Zhiyi Chen and Zhiyuan Liu and Maosong Sun},
  year   = {2025},
  eprint = {2512.01797},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2512.01797v2}
}

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

Discussion