[Paper Review] Detecting Hallucinated Content in Conditional Neural Sequence Generation
This paper introduces a token-level hallucination detection task to identify generated content not supported by the input in neural sequence generation. It proposes a method using synthetic hallucinations and fine-tuned pretrained language models, achieving strong performance on machine translation and abstractive summarization, and demonstrates improved low-resource MT via hallucination-aware loss truncation and noisy data filtering.
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. 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.
Motivation & Objective
- To address the problem of hallucinated content in neural sequence generation, where models generate fluent but factually incorrect outputs not grounded in the input.
- To develop a task-agnostic, run-time applicable method for detecting hallucinations without requiring reference outputs.
- To create high-quality human-annotated datasets for hallucination detection in machine translation and abstractive summarization.
- To enable improved training in low-resource settings by using hallucination labels to filter or truncate loss on erroneous tokens.
- To demonstrate the utility of hallucination detection in word-level quality estimation and self-training for neural machine translation.
Proposed method
- Proposes a new task: predicting whether each token in a generated sequence is hallucinated (not supported by input) or faithful.
- Creates synthetic hallucinated data by inserting non-entailed spans into reference outputs using back-translation and other data augmentation techniques.
- Fine-tunes a pretrained language model (e.g., BERT) on synthetic hallucination data to learn to detect token-level hallucinations.
- Applies the trained detector to predict hallucination labels at inference time, enabling run-time faithfulness assessment.
- Uses token-level hallucination labels to define a fine-grained loss truncation scheme in low-resource MT, discarding gradients for hallucinated tokens.
- Applies the method to word-level quality estimation in both supervised and unsupervised settings, showing effectiveness across settings.
Experimental results
Research questions
- RQ1Can we detect hallucinated content at the token level without relying on reference outputs or human-annotated references?
- RQ2How effective is a model trained on synthetic hallucinations for detecting real hallucinations in zero-shot or few-shot settings?
- RQ3Can token-level hallucination detection improve low-resource neural machine translation by filtering noisy training data or improving self-training?
- RQ4How does hallucination-aware loss truncation compare to standard training in terms of reducing hallucinations and improving BLEU scores?
- RQ5Can the hallucination detection model be effectively applied to word-level quality estimation in both supervised and unsupervised MT settings?
Key findings
- The proposed method achieves an average F1 score of approximately 0.6 on benchmark datasets without any human-annotated training data, establishing a strong baseline for the new task.
- In low-resource MT, the hallucination-aware loss truncation method outperforms strong baselines, achieving new state-of-the-art results on the WMT2019 shared task for Nepali-English and Sinhala-English.
- On the Ne-En and Si-En test sets, the method achieves BLEU scores of 7.4 and 8.11 respectively, surpassing the best submission in the WMT19 shared task.
- For 10M noisy training data, the method maintains reasonable performance (BLEU 5.18) where the baseline fails (BLEU 0.14), demonstrating robustness to extreme noise.
- The method improves word-level quality estimation in both supervised and unsupervised settings, showing generalizability beyond MT.
- The use of hallucination labels in self-training reduces hallucination rates and improves model performance, even when the teacher model generates noisy outputs.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.