Loki's Dance of Illusions: A Comprehensive Survey of Hallucination in Large Language Models

Chaozhuo Li, Pengbo Wang, Chenxu Wang, Litian Zhang, Zheng Liu, Qiwei Ye, Yuanbo Xu, Feiran Huang, Xi Zhang, Philip S. YuarXiv 2025 · DOI

Introduction and Problem Statement

Large Language Models (LLMs) have fundamentally altered the landscape of Natural Language Processing. However, they remain tethered to a persistent and critical flaw: the "Sword of Damocles" known as hallucination. These models often generate responses that are linguistically fluent and plausible yet factually incorrect or logically inconsistent. While previous research has documented these occurrences, most surveys remain descriptive, focusing on empirical symptoms rather than underlying causes.

Comparison of this survey against existing literature across various objectives.

This paper addresses this gap by providing a rigorous, unified framework that moves beyond empirical observation toward formal mathematical definitions and a systematic taxonomy of the field. By formalizing the problem, the authors aim to resolve the fragmentation in current hallucination research, moving from "what" happens to "why" it happens.

Theoretical Foundations of Hallucination

A core contribution of this work is the formalization of hallucinations using set theory. The authors define a "canonical response space" $F(q)$ for any given query $q$. Hallucination is mathematically defined as any output falling outside this set. This allows for a nuanced distinction between partial correctness (where the output overlaps with the truth) and complete divergence (zero overlap).

Furthermore, the authors argue that hallucinations are not merely engineering hurdles but are theoretically inevitable. By invoking Gödel’s Incompleteness Theorems and the Turing Halting Problem, they demonstrate that any sufficiently complex formal system—such as an LLM—will inherently contain undecidable statements. Consequently, perfect self-validation and intent classification are mathematically impossible, suggesting that hallucinations are a fundamental byproduct of model power.

A Systematic Taxonomy

To organize the rapidly expanding body of research, the authors introduce a comprehensive workflow and taxonomy for detecting and mitigating hallucinations.

Comprehensive taxonomy and workflow for LLM hallucination research.

The mitigation strategies are categorized into three primary pillars:

  1. Shifting Demand Strategy: This involves teaching models to recognize their own knowledge boundaries, utilizing refusal strategies and calibration to say "I don't know" when appropriate.
  2. Task Simplification Strategy: Reducing cognitive load through external grounding. This includes Retrieval-Augmented Generation (RAG), Knowledge Graphs (KG), and advanced Prompt Engineering like Chain-of-Thought (CoT).
  3. Capability Enhancement Strategy: Direct improvements to the model architecture and training process, such as structural optimization of attention mechanisms, fine-tuning, and refined decoding strategies.

Key Insights and Conceptual Frameworks

The survey highlights several provocative conceptual frameworks that explain the mechanics of model errors:

  • Schrödinger’s Memory: LLM memory is conceptualized not as a static database but as a "quantum-like superposition" that only manifests upon invocation. This explains why a model might possess a fact but fail to retrieve it due to the "short-sightedness" of attention mechanisms.
  • The Post-Training Paradox: While Supervised Fine-Tuning (SFT) and RLHF improve helpfulness, they often degrade calibration. Models are incentivized to provide definitive answers, leading to "overconfidence" where reported certainty exceeds actual accuracy.
  • Procedural Hallucination: The paper identifies cases where a model provides a correct answer but arrives at it through flawed reasoning or "coincidental correctness," which is as dangerous for reliability as a factual error.

Evaluation and Benchmarks

The paper catalogs a diverse array of benchmarks, moving from general domains (HaluEval) to task-specific (Long QA) and vertical domains (Healthcare, Law, Science). A critical finding is that White-Box Detection—analyzing internal states like logits, embeddings, and hidden layers—is significantly more effective than Black-Box Detection. Internal activations often signal a "lie" before the text is even generated, suggesting that models often "know" when they are hallucinating.

Conclusion and Future Directions

Despite significant progress, an "evaluation gap" remains. Current metrics like BLEU and ROUGE are criticized for focusing on lexical overlap rather than semantic truth. Future research must focus on context-aware metrics, addressing multimodal hallucinations (images/video), and overcoming the computational costs of real-time detection methods. The authors conclude that while hallucinations may be mathematically inevitable, our ability to detect and mitigate them is rapidly evolving.

Summary updated

BibTeX
@misc{li2025loki,
  author = {Chaozhuo Li and Pengbo Wang and Chenxu Wang and Litian Zhang and Zheng Liu and Qiwei Ye and Yuanbo Xu and Feiran Huang and Xi Zhang and Philip S. Yu},
  title = {{Loki's Dance of Illusions: A Comprehensive Survey of Hallucination in Large Language Models}},
  year = {2025},
  eprint = {2507.02870},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2507.02870},
}
Figure