Order-Agnostic Cross Entropy for Non-Autoregressive Machine Translation

Cunxiao Du, Zhaopeng Tu, Jing Jiang
6/9/2021
cs.CLcs.AIcs.LG

Official code: tencent-ailab/ICML21_OAXE (28 stars, Python, last commit 2021-09-28).

Abstract

We propose a new training objective named order-agnostic cross entropy (OaXE) for fully non-autoregressive translation (NAT) models. OaXE improves the standard cross-entropy loss to ameliorate the effect of word reordering, which is a common source of the critical multimodality problem in NAT.

Show full abstract

Concretely, OaXE removes the penalty for word order errors, and computes the cross entropy loss based on the best possible alignment between model predictions and target tokens. Since the log loss is very sensitive to invalid references, we leverage cross entropy initialization and loss truncation to ensure the model focuses on a good part of the search space. Extensive experiments on major WMT benchmarks show that OaXE substantially improves translation performance, setting new state of the art for fully NAT models. Further analyses show that OaXE alleviates the multimodality problem by reducing token repetitions and increasing prediction confidence. Our code, data, and trained models are available at https://github.com/tencent-ailab/ICML21_OAXE.

View on arXivView PDF

Code Implementations(1)

284Python, LuaJun 7, 20215 years agoNOASSERTION

Similar Papers

Cite this paper

@article{du2021orderagnostic,
  title  = {Order-Agnostic Cross Entropy for Non-Autoregressive Machine Translation},
  author = {Cunxiao Du and Zhaopeng Tu and Jing Jiang},
  year   = {2021},
  eprint = {2106.05093},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2106.05093}
}

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

Discussion