Papers
Topics
Authors
Recent
Search
2000 character limit reached

Hallucination-Associated Neurons in LLMs

Updated 2 December 2025
  • H-Neurons are defined as a sparse subset of feed-forward units whose activations statistically predict hallucination events using an ℓ1-regularized logistic regression probe.
  • They are identified by constructing balanced datasets and engineering CETT metrics, achieving up to 83% accuracy in detecting hallucinations across domains.
  • Experimental activation scaling demonstrates that H-Neurons causally influence model compliance, informing strategies for precise hallucination mitigation.

Hallucination-Associated Neurons (H-Neurons) are a sparse subset of feed-forward network (FFN) units in LLMs whose activity is tightly predictive of hallucination events—outputs that are plausible but factually incorrect. Recent work has provided a formal and empirical foundation for identifying, quantifying, and causally intervening upon these neurons. The existence of H-Neurons offers a bridge between macroscopic hallucination phenomena and the microscopic mechanisms encoded in neural architectures, furnishing tools for more reliable detection and mitigation of factual errors in LLM outputs (Gao et al., 1 Dec 2025).

1. Formal Definition and Mathematical Properties

An H-Neuron is defined with reference to the activations of all neurons in the FFN layers of an LLM. For DD total neurons, each neuron jj receives a weight θj\theta_j from a sparse 1\ell_1-regularized logistic regression probe. Given per-neuron features xRDx\in\mathbb{R}^D for a single response, the probability P(y=1x)=σ(θx)P(y=1|x)=\sigma(\theta^\top x) models hallucination presence (y=1y=1).

To quantify individual contribution, the CETT (Causal Effect on Token Trajectory) metric is used: CETTj,t=ht(j)2ht2\mathrm{CETT}_{j,t}=\frac{\|h_t^{(j)}\|_2}{\|h_t\|_2} where htRdh_t\in\mathbb{R}^d is the total token-wise hidden update and ht(j)h_t^{(j)} is the component due to neuron jj0. Aggregation over answer tokens jj1 or non-answer tokens yields: jj2 The probe’s jj3 penalty ensures only a minuscule fraction (typically jj4) receive nonzero weights jj5, forming the set of H-Neurons jj6.

2. Identification Protocols and Predictive Generalization

The canonical methodology for identifying H-Neurons consists of:

  • Dataset Construction: Balanced faithfully factual and fully hallucinatory responses, as in 1,000-trial splits from TriviaQA, are collected with randomized sampling (temperature=1.0, top_k=50, top_p=0.9) and filtered for consistency.
  • Feature Engineering: Per-example vectors jj7 concatenate the jj8 metrics across all FFN neurons for both answer and non-answer spans.
  • Label Assignment and Probe Training: Answer-span features from hallucinated outputs are labeled jj9, and all others θj\theta_j0. The sparse logistic objective is solved for weights θj\theta_j1.
  • H-Neuron Selection: Neurons with θj\theta_j2 are designated H-Neurons.
  • Evaluation Metrics: Precision, recall, F1, and cross-domain generalization (on NQ-Open, BioASQ, NonExist) are reported.

A critical empirical finding is that using fewer than θj\theta_j3 of all FFN units, the probe achieves accuracy gains from θj\theta_j4–θj\theta_j5 (baseline) to θj\theta_j6–θj\theta_j7 on held-out and out-of-domain hallucination detection tasks.

3. Behavioral Causality and Intervention Studies

Direct manipulation of H-Neuron activations establishes their causal influence on model behavior:

  • Activation Scaling: Pre-nonlinearity activation of H-Neuron θj\theta_j8 at token θj\theta_j9 is re-scaled: 1\ell_10, 1\ell_11. The corresponding causal contribution scales linearly: 1\ell_12.
  • Compliance Benchmarks: Behavioral impact is measured across benchmarks targeting over-compliance, including FalseQA, FaithEval, Sycophancy, and Jailbreak.
  • Quantitative Effects: Compliance rate increases monotonically with 1\ell_13 and decreases for 1\ell_14; average compliance slope 1\ell_15 (small models) and 1\ell_16 (large models). One-sided 1\ell_17-tests confirm the statistical significance (1\ell_18 for most 1\ell_19).

This establishes H-Neurons as a direct cause of hallucinatory and over-compliant behaviors.

4. Tracing Neural Origins: Pre-training versus Instruction Tuning

A core finding is that H-Neurons originate primarily during pre-training and are largely unaffected by downstream instruction tuning:

  • Backward Transferability: A probe trained on instruction-tuned activations (xRDx\in\mathbb{R}^D0) is directly applied to base (pre-SFT) model activations, achieving AUROC xRDx\in\mathbb{R}^D1 (up to xRDx\in\mathbb{R}^D2 on TriviaQA), confirming predictive value absent alignment data.
  • Drift Quantification: For each neuron xRDx\in\mathbb{R}^D3, projection weight drift is measured: xRDx\in\mathbb{R}^D4

xRDx\in\mathbb{R}^D5

Aggregate drift xRDx\in\mathbb{R}^D6 is z-normalized and rank-normalized; H-Neurons cluster at high xRDx\in\mathbb{R}^D7 (mean xRDx\in\mathbb{R}^D8, xRDx\in\mathbb{R}^D9), indicating minimal alteration post-alignment. This suggests the emergence of “compliance” circuits is largely a consequence of the foundational training, not alignment stages.

5. Applied Implications and Mitigation Approaches

Key findings on H-Neurons directly inform strategies for detection and mitigation of hallucinations:

  • Neuronal Probes: Lightweight, model-agnostic probes leveraging only the sparse H-Neuron set can serve as efficient hallucination detectors for LLM outputs.
  • Activation Suppression: Real-time suppression (P(y=1x)=σ(θx)P(y=1|x)=\sigma(\theta^\top x)0) of these units reduces both hallucination and over-compliance across evaluation sets. However, uniform scaling impairs model helpfulness, indicating a need for selective or task-sensitive modulation strategies.
  • Architectural Interventions: Recommendations include:
    • Dynamic gating or mask layers to down-weight H-Neurons when accuracy is required,
    • Regularization during pre-training to discourage over-dependence on compliance-encoding neurons,
    • Modification of pre-training objectives through calibration losses or uncertainty penalties to disfavor formation of these “compliance” circuits.

A summary of H-Neuron research axes and major results is presented below:

Dimension Finding Quantitative Summary
Sparsity P(y=1x)=σ(θx)P(y=1|x)=\sigma(\theta^\top x)1 Probe using P(y=1x)=σ(θx)P(y=1|x)=\sigma(\theta^\top x)20.1% neurons
Generalization AUROC P(y=1x)=σ(θx)P(y=1|x)=\sigma(\theta^\top x)3 across domains Up to P(y=1x)=σ(θx)P(y=1|x)=\sigma(\theta^\top x)4 (TriviaQA)
Causal Impact Monotonic compliance increase with P(y=1x)=σ(θx)P(y=1|x)=\sigma(\theta^\top x)5 P(y=1x)=σ(θx)P(y=1|x)=\sigma(\theta^\top x)6ComplianceP(y=1x)=σ(θx)P(y=1|x)=\sigma(\theta^\top x)72.4–3.0
Origin Pre-training phase High P(y=1x)=σ(θx)P(y=1|x)=\sigma(\theta^\top x)8 with minimal drift

6. Theoretical and Practical Significance

H-Neurons provide a mechanistic linkage between single-unit FFN dynamics and global LLM failure modes, reconciling macroscopic over-compliance behaviors with microscopic neural substrates. This substantiates a neuron-level “compliance bias” that is upstream of supervised alignment, challenging the assumption that hallucinations are solely byproducts of post-pretraining tuning or data quality.

*A plausible implication is that robust factuality will not be achieved solely by alignment or prompting, but may require architectural and pre-training design changes to disrupt compliance-related neural circuits before their consolidation.

7. Open Directions and Future Work

Current suppression methods for H-Neuron activity, while effective at reducing hallucination and over-compliance, are blunt, sometimes degrading answer helpfulness. Future research directions include the development of finer-grained neuron editing or gating systems, neuron-level regularization during training, and a deeper exploration of the interaction between H-Neuron dynamics and model scaling laws. The potential for targeted architectural interventions, such as adaptive mask layers or uncertainty-guided gating, is currently under investigation (Gao et al., 1 Dec 2025).

Definition Search Book Streamline Icon: https://streamlinehq.com
References (1)

Topic to Video (Beta)

No one has generated a video about this topic yet.

Whiteboard

No one has generated a whiteboard explanation for this topic yet.

Follow Topic

Get notified by email when new papers are published related to Hallucination-Associated Neurons (H-Neurons).