[Paper Review] Looking for a Needle in a Haystack: A Comprehensive Study of Hallucinations in Neural Machine Translation
This paper proposes a rigorous study of hallucinations in neural machine translation (NMT) using a natural, in-domain setting without data perturbations. It introduces a dataset of 3,415 annotated hallucinations, evaluates detection methods—including sequence log-probability and uncertainty-based detectors—and finds that log-probability outperforms specialized heuristics and quality estimation. The authors further propose DeHallucinator, a test-time method that reduces hallucination rates by threefold through MC-dropout re-ranking, improving detection recall from 33% to 85%.
Although the problem of hallucinations in neural machine translation (NMT) has received some attention, research on this highly pathological phenomenon lacks solid ground. Previous work has been limited in several ways: it often resorts to artificial settings where the problem is amplified, it disregards some (common) types of hallucinations, and it does not validate adequacy of detection heuristics. In this paper, we set foundations for the study of NMT hallucinations. First, we work in a natural setting, i.e., in-domain data without artificial noise neither in training nor in inference. Next, we annotate a dataset of over 3.4k sentences indicating different kinds of critical errors and hallucinations. Then, we turn to detection methods and both revisit methods used previously and propose using glass-box uncertainty-based detectors. Overall, we show that for preventive settings, (i) previously used methods are largely inadequate, (ii) sequence log-probability works best and performs on par with reference-based methods. Finally, we propose DeHallucinator, a simple method for alleviating hallucinations at test time that significantly reduces the hallucinatory rate. To ease future research, we release our annotated dataset for WMT18 German-English data, along with the model, training data, and code.
Motivation & Objective
- To establish a solid foundation for studying hallucinations in NMT by moving beyond artificially amplified settings.
- To identify and categorize different types of hallucinations in real-world, in-domain NMT outputs using human-annotated data.
- To rigorously evaluate existing hallucination detection methods, including heuristics and quality estimation, in a natural inference setting.
- To propose and validate DeHallucinator, a lightweight test-time method that reduces hallucinations by re-ranking MC-dropout hypotheses.
- To release a publicly available dataset, model, and code to support future research on hallucinations in NMT.
Proposed method
- Annotate 3,415 sentences from a high-resource NMT system with structured labels for different hallucination types, including oscillatory, strongly detached, and fully detached hallucinations.
- Use human-annotated translations to validate and define hallucination categories based on detachment from source content.
- Evaluate multiple hallucination detection methods, including attention-based heuristics, quality estimation (COMET and COMET-QE), and sequence log-probability.
- Propose DeHallucinator, a test-time correction pipeline that applies a lightweight detector and re-runs generation via MC-dropout to select the highest-scoring translation.
- Use MC-dropout to generate multiple hypotheses and score them using sequence log-probability to select the best candidate, improving reliability.
- Release the annotated dataset, trained model, and code to enable reproducibility and future research.
Experimental results
Research questions
- RQ1How do different hallucination detection methods perform in a natural, unperturbed NMT setting, as opposed to artificially amplified ones?
- RQ2Can sequence log-probability serve as a reliable, reference-free hallucination detector, and how does it compare to reference-based methods like COMET?
- RQ3Do quality estimation systems such as COMET and COMET-QE effectively distinguish hallucinations from other translation errors?
- RQ4Can test-time correction via MC-dropout re-ranking significantly reduce hallucination rates while preserving correct translations?
- RQ5What types of hallucinations are most amenable to correction, and what do they reveal about model behavior?
Key findings
- Sequence log-probability performs as well as reference-based COMET in detecting hallucinations, despite being a byproduct of the generation process and requiring no external references.
- Previous detection methods, including attention-based heuristics and quality estimation systems, are largely inadequate for identifying hallucinations in natural settings.
- COMET-QE, the reference-free variant of COMET, fails to penalize hallucination severity, indicating that quality estimation is not a reliable proxy for hallucination detection.
- DeHallucinator increases the proportion of correct translations among flagged candidates from 33% to 85%, significantly improving detection reliability.
- The hallucination rate is reduced by threefold after applying DeHallucinator, demonstrating its effectiveness in test-time correction.
- Most hallucinations are overwritten with correct translations, suggesting they stem from stochastic generation rather than deep model defects, except for fully detached cases linked to training data duplicates.
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.