Skip to main content
QUICK REVIEW

[Paper Review] Understanding and Detecting Hallucinations in Neural Machine Translation via Model Introspection

Weijia Xu, Sweta Agrawal|arXiv (Cornell University)|Jan 18, 2023
Topic ModelingComputer Science6 citations
TL;DR

This paper proposes a glass-box hallucination detection method for neural machine translation by identifying internal model symptoms—specifically, concentrated and static source token contributions—through layer-wise relevance propagation (LRP). The approach outperforms model-free baselines and black-box detectors based on pre-trained models in detecting natural hallucinations on English-Chinese and German-English test sets.

ABSTRACT

Neural sequence generation models are known to "hallucinate", by producing outputs that are unrelated to the source text. These hallucinations are potentially harmful, yet it remains unclear in what conditions they arise and how to mitigate their impact. In this work, we first identify internal model symptoms of hallucinations by analyzing the relative token contributions to the generation in contrastive hallucinated vs. non-hallucinated outputs generated via source perturbations. We then show that these symptoms are reliable indicators of natural hallucinations, by using them to design a lightweight hallucination detector which outperforms both model-free baselines and strong classifiers based on quality estimation or large pre-trained models on manually annotated English-Chinese and German-English translation test beds.

Motivation & Objective

  • Address the lack of systematic understanding of hallucination triggers in neural machine translation (NMT).
  • Identify reliable internal model symptoms that signal hallucinations during inference.
  • Develop a lightweight, interpretable hallucination detector that generalizes to natural, non-perturbed inputs.
  • Improve detection accuracy and robustness compared to existing model-free and black-box approaches.
  • Release human-annotated test beds for natural hallucinations to support future research in NMT faithfulness.

Proposed method

  • Use counterfactual input perturbations to generate hallucinated and non-hallucinated translation pairs.
  • Apply layer-wise relevance propagation (LRP) to compute relative token contributions from source and target sequences.
  • Analyze source contribution patterns across generation steps to identify consistent symptoms of hallucination.
  • Detect hallucinations based on two key symptoms: (1) concentrated contribution from a small subset of source tokens and (2) static contribution distribution over time.
  • Train a lightweight classifier using these symptoms as features to detect hallucinations in natural test sets.
  • Evaluate the detector against model-free baselines, quality estimation models, and black-box classifiers based on large pre-trained models.

Experimental results

Research questions

  • RQ1What internal model behaviors or symptoms are consistently associated with hallucinated translations in NMT?
  • RQ2Can symptoms identified via adversarial perturbations generalize to detect hallucinations in naturally occurring translations?
  • RQ3How do source contribution patterns compare to attention or confidence-based features in detecting hallucinations?
  • RQ4Can a lightweight, glass-box detector based on these symptoms outperform model-free and black-box detection methods?
  • RQ5How robust is the proposed detector to domain shifts in real-world translation scenarios?

Key findings

  • Concentrated and static source token contribution patterns are strong, reliable indicators of hallucinations, outperforming relative source-target contribution metrics.
  • The LRP-based symptom detection method generalizes effectively from perturbed inputs to natural hallucinations in real-world test sets.
  • The proposed lightweight detector achieves higher accuracy and better robustness to domain shift than black-box classifiers based on large pre-trained models.
  • The detector outperforms model-free baselines and quality estimation-based classifiers in hallucination detection on manually annotated English-Chinese and German-English test beds.
  • The study reveals that source contribution patterns are more predictive of hallucinations than attention patterns or model confidence scores.
  • The authors release human-annotated test sets of natural hallucinations in English-Chinese and German-English translation, enabling future benchmarking.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.