Skip to main content
QUICK REVIEW

[Paper Review] On the Inference Calibration of Neural Machine Translation

Shuo Wang, Zhaopeng Tu|arXiv (Cornell University)|May 3, 2020
Natural Language Processing TechniquesComputer Science28 references6 citations
TL;DR

This paper investigates inference calibration in neural machine translation (NMT), revealing that even label-smoothed models suffer from significant miscalibration during inference due to training-inference discrepancy. It proposes graduated label smoothing—applying higher smoothing penalties to high-confidence predictions—which improves both calibration and translation performance, especially under large beam search, while showing that increasing only the encoder preserves calibration and boosts performance.

ABSTRACT

Confidence calibration, which aims to make model predictions equal to the true correctness measures, is important for neural machine translation (NMT) because it is able to offer useful indicators of translation errors in the generated output. While prior studies have shown that NMT models trained with label smoothing are well-calibrated on the ground-truth training data, we find that miscalibration still remains a severe challenge for NMT during inference due to the discrepancy between training and inference. By carefully designing experiments on three language pairs, our work provides in-depth analyses of the correlation between calibration and translation performance as well as linguistic properties of miscalibration and reports a number of interesting findings that might help humans better analyze, understand and improve NMT models. Based on these observations, we further propose a new graduated label smoothing method that can improve both inference calibration and translation performance.

Motivation & Objective

  • To investigate the root causes of miscalibration in NMT during inference, despite well-calibrated training with label smoothing.
  • To analyze the correlation between calibration errors and translation errors, linguistic properties (frequency, position, fertility, syntactic roles, granularity), and model behavior.
  • To improve inference calibration without degrading translation performance, especially under large search spaces.
  • To propose a novel graduated label smoothing method that dynamically adjusts smoothing penalties based on prediction confidence.

Proposed method

  • The paper uses translation error rate (TER) to automatically annotate correctness of generated tokens, enabling evaluation of calibration in inference.
  • It constructs reliability diagrams to visualize the gap between confidence and accuracy across different confidence bins.
  • It introduces graduated label smoothing, where smoothing penalties are set to 0.3 for confidence >0.7, 0.1 for 0.3–0.7, and 0.0 for <0.3.
  • It evaluates the impact of regularization (label smoothing, dropout) and model size (deeper, wider, encoder-only expansion) on inference calibration and BLEU scores.
  • It compares calibration performance across three language pairs (WMT14 En-De, En-Fr, En-Ro) using beam search with varying beam sizes.
  • It analyzes linguistic properties of miscalibrated tokens, including frequency, position, fertility, syntactic roles, and word granularity.

Experimental results

Research questions

  • RQ1Why do NMT models remain miscalibrated during inference despite being well-calibrated during training with label smoothing?
  • RQ2How do translation errors (over-translation, mis-translation, under-translation) correlate with over-estimated or under-estimated confidence predictions?
  • RQ3What linguistic and structural properties (e.g., frequency, position, fertility) are most predictive of miscalibration in NMT outputs?
  • RQ4Can graduated label smoothing effectively reduce inference miscalibration while improving translation performance?
  • RQ5How does increasing model size affect inference calibration, and can encoder-only expansion mitigate negative calibration effects?

Key findings

  • Inference calibration error (ECE) is significantly higher than in training—15.83 vs. 1.39 on WMT14 En-De—indicating a major gap due to training-inference discrepancy.
  • Over-estimated predictions correlate more with over-translation and mis-translation errors, while under-estimated predictions correlate more with under-translation errors.
  • Low-frequency tokens suffer more from under-estimation and contribute more to over-estimation, especially in large-scale data.
  • Tokens with fertility ≥2 (aligning to multiple source words) suffer more from under-estimation, while those with fertility <1 suffer from over-estimation.
  • Graduated label smoothing reduces inference calibration error and improves BLEU scores, especially under large beam search (e.g., beam size = 100), with marginal gains from ECE reduction alone.
  • Increasing model size harms inference calibration; only enlarging the encoder maintains calibration while improving translation quality.

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.