Minimizing the Bag-of-Ngrams Difference for Non-Autoregressive Neural Machine Translation

Chenze Shao, Jinchao Zhang, Yang Feng, Fandong Meng, Jie Zhou
11/21/2019
cs.CLcs.LG

Official code: ictnlp/BoN-NAT (22 stars, Python, BSD-3-Clause, last commit 2019-12-31).

Abstract

Non-Autoregressive Neural Machine Translation (NAT) achieves significant decoding speedup through generating target words independently and simultaneously. However, in the context of non-autoregressive translation, the word-level cross-entropy loss cannot model the target-side sequential dependency properly, leading to its weak correlation with the translation quality.

Show full abstract

As a result, NAT tends to generate influent translations with over-translation and under-translation errors. In this paper, we propose to train NAT to minimize the Bag-of-Ngrams (BoN) difference between the model output and the reference sentence. The bag-of-ngrams training objective is differentiable and can be efficiently calculated, which encourages NAT to capture the target-side sequential dependency and correlates well with the translation quality. We validate our approach on three translation tasks and show that our approach largely outperforms the NAT baseline by about 5.0 BLEU scores on WMT14 En$\leftrightarrow$De and about 2.5 BLEU scores on WMT16 En$\leftrightarrow$Ro.

View on arXivView PDF

Code Implementations(1)

ictnlp/BoN-NATOfficial100%
BSD-3-Clause
223Python, ShellNov 11, 20196 years agoBSD-3-Clause

Similar Papers

Cite this paper

@article{shao2019minimizing,
  title  = {Minimizing the Bag-of-Ngrams Difference for Non-Autoregressive Neural Machine Translation},
  author = {Chenze Shao and Jinchao Zhang and Yang Feng and Fandong Meng and Jie Zhou},
  year   = {2019},
  eprint = {1911.09320},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1911.09320}
}

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

Discussion