English

From Flat Facts to Sharp Hallucinations: Detecting Stubborn Errors via Gradient Sensitivity

Machine Learning 2026-05-13 v2 Artificial Intelligence

Abstract

Traditional hallucination detection fails on "Stubborn Hallucinations" - errors where LLMs are confidently wrong. We propose a geometric solution: Embedding-Perturbed Gradient Sensitivity (EPGS). We hypothesize that while robust facts reside in flat minima, stubborn hallucinations sit in sharp minima, supported by brittle memorization. EPGS detects this sharpness by perturbing input embeddings with Gaussian noise and measuring the resulting spike in gradient magnitude. This acts as an efficient proxy for the Hessian spectrum, differentiating stable knowledge from unstable memorization. Our experiments show that EPGS significantly outperforms entropy-based and representation-based baselines, providing a robust signal for detecting high-confidence factual errors.

Cite

@article{arxiv.2605.00939,
  title  = {From Flat Facts to Sharp Hallucinations: Detecting Stubborn Errors via Gradient Sensitivity},
  author = {Yee Zhing Liew and Andrew Huey Ping Tan and Anwar P. P. Abdul Majeed},
  journal= {arXiv preprint arXiv:2605.00939},
  year   = {2026}
}

Comments

Accepted to ICML 2026. Camera-ready version

R2 v1 2026-07-01T12:45:43.293Z