On the Inference Calibration of Neural Machine Translation

Shuo Wang, Zhaopeng Tu, Shuming Shi, Yang Liu
5/3/2020
cs.CL

Official code: shuo-git/InfECE (20 stars, Python, last commit 2020-12-31).

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.

Show full abstract

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.

View on arXivView PDF

Code Implementations(1)

shuo-git/InfECEOfficial100%
202Python, ShellApr 19, 20205 years ago

Similar Papers

Cite this paper

@article{wang2020inference,
  title  = {On the Inference Calibration of Neural Machine Translation},
  author = {Shuo Wang and Zhaopeng Tu and Shuming Shi and Yang Liu},
  year   = {2020},
  eprint = {2005.00963},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2005.00963}
}

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

Discussion