Detecting Hallucinated Content in Conditional Neural Sequence Generation

Chunting Zhou, Graham Neubig, Jiatao Gu, Mona Diab, Paco Guzman +2 more
11/5/2020
242 citations
cs.CLcs.AI

Official code: violet-zct/fairseq-detect-hallucination (64 stars, Python, MIT, last commit 2022-04-15).

Abstract

Neural sequence models can generate highly fluent sentences, but recent studies have also shown that they are also prone to hallucinate additional content not supported by the input. These variety of fluent but wrong outputs are particularly problematic, as it will not be possible for users to tell they are being presented incorrect content.

Show full abstract

To detect these errors, we propose a task to predict whether each token in the output sequence is hallucinated (not contained in the input) and collect new manually annotated evaluation sets for this task. We also introduce a method for learning to detect hallucinations using pretrained language models fine tuned on synthetic data that includes automatically inserted hallucinations Experiments on machine translation (MT) and abstractive summarization demonstrate that our proposed approach consistently outperforms strong baselines on all benchmark datasets. We further demonstrate how to use the token-level hallucination labels to define a fine-grained loss over the target sequence in low-resource MT and achieve significant improvements over strong baseline methods. We also apply our method to word-level quality estimation for MT and show its effectiveness in both supervised and unsupervised settings. Codes and data available at https://github.com/violet-zct/fairseq-detect-hallucination.

View on arXivView PDF

Code Implementations(1)

MIT

Detect hallucinated tokens for conditional sequence generation.

645Python, CudaOct 24, 20204 years agoMIT

Similar Papers

Cite this paper

@article{zhou2020detecting,
  title  = {Detecting Hallucinated Content in Conditional Neural Sequence Generation},
  author = {Chunting Zhou and Graham Neubig and Jiatao Gu and Mona Diab and Paco Guzman and Luke Zettlemoyer and Marjan Ghazvininejad},
  year   = {2020},
  eprint = {2011.02593},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2011.02593}
}

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

Discussion