Sources of Hallucination by Large Language Models on Inference Tasks

Nick McKenna, Tianyi Li, Liang Cheng, Mohammad Javad Hosseini, Mark Johnson +1 more
5/23/2023
302 citations
cs.CLcs.AI

Official code: Teddy-Li/LLM-NLI-Analysis (15 stars, Python, last commit 2023-07-08).

Abstract

Large Language Models (LLMs) are claimed to be capable of Natural Language Inference (NLI), necessary for applied tasks like question answering and summarization. We present a series of behavioral studies on several LLM families (LLaMA, GPT-3.5, and PaLM) which probe their behavior using controlled experiments.

Show full abstract

We establish two biases originating from pretraining which predict much of their behavior, and show that these are major sources of hallucination in generative LLMs. First, memorization at the level of sentences: we show that, regardless of the premise, models falsely label NLI test samples as entailing when the hypothesis is attested in training data, and that entities are used as ``indices'' to access the memorized data. Second, statistical patterns of usage learned at the level of corpora: we further show a similar effect when the premise predicate is less frequent than that of the hypothesis in the training data, a bias following from previous studies. We demonstrate that LLMs perform significantly worse on NLI test samples which do not conform to these biases than those which do, and we offer these as valuable controls for future LLM evaluation.

View on arXivView PDF

Code Implementations(1)

152PythonDec 17, 20223 years ago

Similar Papers

Cite this paper

@article{mckenna2023sources,
  title  = {Sources of Hallucination by Large Language Models on Inference Tasks},
  author = {Nick McKenna and Tianyi Li and Liang Cheng and Mohammad Javad Hosseini and Mark Johnson and Mark Steedman},
  year   = {2023},
  eprint = {2305.14552},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2305.14552v2}
}

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/2305.14552.svg)](https://codeofpaper.com/paper/2305.14552)

Discussion