Hong Kong University of Science and Technology
Why do Machines Make up Stuff? Hallucination in LLMs
Abstract
dc:description<p>Despite significant advances in Natural Language Generation (NLG) through deep learning, especially with large language models (LLMs), hallucinations remain a major challenge in real-world applications. Hallucination in NLG refers to the generation of plausible-sounding but unfaithful or nonsensical information. This thesis presents a comprehensive investigation into understanding and mitigating this critical challenge. Specifically, this thesis centers on four research questions: (1) What is hallucination in NLG? (2) How can hallucination be mitigated with External Knowledge? (3) How can hallucination be mitigated with Self-Reflection? and (4) How can hallucination be mitigated with Internal States?</p> <p>We begin with a comprehensive review of the hallucination challenge in neural text generation. Hallucinations are categorized as intrinsic and extrinsic types. We analyze diverse causes from training data and modeling. Additionally, we summarize mainstream evaluation metrics and mitigation strategies. This review establishes a foundational understanding for the subsequent investigations.</p> <p>To address hallucinations arising from the misalignment between structured knowledge and free-form text, this thesis introduces a novel approach for integrating external knowledge. Specifically, we propose local and global knowledge graph (KG) grounding combined with a re-ranking mechanism to generate more faithful responses. Experiments on the OpenDialKG dataset demonstrate that our method achieves state-of-the-art performance, significantly reducing hallucinations in knowledge-grounded dialogue.</p> <p>Furthermore, recognizing the growing reliance of powerful LLMs on their parametric knowledge, this thesis proposes a novel self-reflection approach to exploit this internal knowledge while avoiding the pitfalls of hallucination. This method allows LLMs to interactively apply and refine their knowledge in generative question answering by alternating between knowledge acquisition and answer generation. Experimental results prove that this approach substantially increases the accuracy, consistency, and factual basis of the model’s responses, leading to more reliable outputs.</p> <p>Finally, this thesis foregrounds the internal state of LLMs as a critical yet underutilized dimension in mitigating hallucination. Inspired by human meta-cognition, we investigate how models internally represent and express uncertainty. We identify ""confident hallucination"", where models assert falsehoods with unwarranted certainty. This thesis explores how to discern an inner sense of uncertainty before the models respond. We discover that ""verbal uncertainty"" is governed by a single linear feature in the representation space of LLMs and uncover a predictive mismatch between semantic and verbal uncertainty that signals hallucination risks. By calibrating verbal uncertainty with semantic uncertainty through inference-time intervention, we effectively reduce confident hallucinations.</p> <p>In conclusion, this thesis contributes significantly to understanding and mitigating hallucinations in LLMs, offering novel insights and methodologies that promise to elevate the performance of AI systems in generating reliable text across a spectrum of real-world applications.</p>
Author and committee
dc:creator, dc:contributor.*- Author dc:creator
-
- Ji, Ziwei
- Contributors dc:contributor
-
- Fung, Pascale
- Perez Palomar, Daniel
Rights
- Language dc:language
- English
Identifiers
dc:identifier.*- Repository record dc:identifier
- http://repository.hkust.edu.hk/ir/Record/1783.1-152347