When the Wrong Key Wins: Understanding and Detecting Hallucinations in LLMs
Xuhan Tong, Haoyue Bai, Dawei Zhou, Naichen Shi, Jiawei Zhang
Abstract
Large language models can hallucinate even when the knowledge required for a correct answer is already available. We study this failure through a latent-key view of inference, where answer selection depends on competition among associations acquired during pretraining. We show that model predictions can be highly sensitive to individual query keywords, that these influential keywords exhibit entity-specific binding, and that their effects are systematically shaped by pretraining frequency. Multiple bindings can also compete and exhibit higher-order interactions within the same query. Based on this mechanism, we introduce a two-stage keyword-perturbation method for hallucination detection. By removing influential keywords and measuring how the model reorganizes its prediction, the method distinguishes errors caused by misleading key associations from correct decisions supported by diagnostic evidence. Across multiple models and benchmarks, perturbation provides a strong and transferable detection signal, reaching AUROC on probe-known ScientistQA. Finally, we extend the same probabilistic framework to four hallucination regimes: knowledge deficit, wrong knowledge, context distraction, and unstable inference. Their operational distributions across benchmarks provide diagnostic context for why different detector families succeed in different settings.
Create a lesson
Related papers
Vroom-Vroom at SHROOM-Visions: A Multi-Judge Committee for Detecting Hallucinated Spans in Vision-Language Outputs
Shared title terminologycs.CLToqeer Ehsan, Nico Penttilä, Richard Schmidt et al.
Disentangling Topology and Diversity in Multi-Agent LLMs for Multilingual Low-Resource Emotion Detection
Shared title terminologycs.CLUlugbek Shernazarov, Charitha Ruwansiri Weerakon Basnayake, Abdelkhaleq El Jarjini et al.
NeuroActiSep: Detecting Factual Hallucinations from Feed-Forward Neurons in a Single Pass
Shared title terminologycs.CLAli Derogar Odolou, Reza Nazari, Mostafa Salehi
Stable Gated DeltaNet-2: Understanding and Mitigating Recurrent State Instability
Shared title terminologycs.CLXichong Zhang, Xixuan Hao, Zhichen Liu et al.
ChemDeduce: Benchmarking LLMs for Unknown Chemical Identification through Interactive Simulated Experiments
Shared title terminologycs.CLHengyi Cai, Yuqi Tang, Zichang Li et al.
Joint Detection of Constructive Speech, Hate Speech and Agreement in Online Conversations
Shared title terminologycs.CLIda Dencker, Simon Karg, Kenneth Enevoldsen