Confidence-Aware Scheduled Sampling for Neural Machine Translation

Yijin Liu, Fandong Meng, Yufeng Chen, Jinan Xu, Jie Zhou
7/22/2021
cs.CL
transformer-attention

Official code: Adaxry/conf_aware_ss4nmt (7 stars, Python, last commit 2021-08-09).

Abstract

Scheduled sampling is an effective method to alleviate the exposure bias problem of neural machine translation. It simulates the inference scene by randomly replacing ground-truth target input tokens with predicted ones during training.

Show full abstract

Despite its success, its critical schedule strategies are merely based on training steps, ignoring the real-time model competence, which limits its potential performance and convergence speed. To address this issue, we propose confidence-aware scheduled sampling. Specifically, we quantify real-time model competence by the confidence of model predictions, based on which we design fine-grained schedule strategies. In this way, the model is exactly exposed to predicted tokens for high-confidence positions and still ground-truth tokens for low-confidence positions. Moreover, we observe vanilla scheduled sampling suffers from degenerating into the original teacher forcing mode since most predicted tokens are the same as ground-truth tokens. Therefore, under the above confidence-aware strategy, we further expose more noisy tokens (e.g., wordy and incorrect word order) instead of predicted ones for high-confidence token positions. We evaluate our approach on the Transformer and conduct experiments on large-scale WMT 2014 English-German, WMT 2014 English-French, and WMT 2019 Chinese-English. Results show that our approach significantly outperforms the Transformer and vanilla scheduled sampling on both translation quality and convergence speed.

View on arXivView PDF

Code Implementations(1)

codes of "Confidence-Aware Scheduled Sampling for Neural Machine Translation"

70PythonMay 26, 20215 years ago

Similar Papers

Cite this paper

@article{liu2021confidenceaware,
  title  = {Confidence-Aware Scheduled Sampling for Neural Machine Translation},
  author = {Yijin Liu and Fandong Meng and Yufeng Chen and Jinan Xu and Jie Zhou},
  year   = {2021},
  eprint = {2107.10427},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2107.10427}
}

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

Discussion