Banishing LLM Hallucinations Requires Rethinking Generalization

Johnny Li, Saksham Consul, Eda Zhou, James Wong, Naila Farooqui +7 more
6/25/2024
cs.CLcs.AI

No official code found. Best implementation: lamini-ai/Lamini-Memory-Tuning (278 stars, last commit 2024-07-15).

Abstract

Despite their powerful chat, coding, and reasoning abilities, Large Language Models (LLMs) frequently hallucinate. Conventional wisdom suggests that hallucinations are a consequence of a balance between creativity and factuality, which can be mitigated, but not eliminated, by grounding the LLM in external knowledge sources. Through extensive systematic experiments, we show that these traditional approaches fail to explain why LLMs hallucinate in practice. Specifically, we show that LLMs augmented with a massive Mixture of Memory Experts (MoME) can easily memorize large datasets of random numbers. We corroborate these experimental findings with a theoretical construction showing that simple neural networks trained to predict the next token hallucinate when the training loss is above a threshold as it usually does in practice when training on internet scale data. We interpret our findings by comparing against traditional retrieval methods for mitigating hallucinations. We use our findings to design a first generation model for removing hallucinations -- Lamini-1 -- that stores facts in a massive mixture of millions of memory experts that are retrieved dynamically.

View on arXivView PDF

Code Implementations(1)

Banishing LLM Hallucinations Requires Rethinking Generalization

27811Jun 13, 20242 years ago

Cite this paper

@article{li2024banishing,
  title  = {Banishing LLM Hallucinations Requires Rethinking Generalization},
  author = {Johnny Li and Saksham Consul and Eda Zhou and James Wong and Naila Farooqui and Yuxin Ye and Nithyashree Manohar and Zhuxiaona Wei and Tian Wu and Ben Echols and Sharon Zhou and Gregory Diamos},
  year   = {2024},
  eprint = {2406.17642},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2406.17642v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2406.17642.svg)](https://codeofpaper.com/paper/2406.17642)

Discussion