Non-Autoregressive Machine Translation with Disentangled Context Transformer

Jungo Kasai, James Cross, Marjan Ghazvininejad, Jiatao Gu
1/15/2020
cs.CL
transformer-attention

Official code: facebookresearch/DisCo (77 stars, Python, last commit 2022-07-28).

Abstract

State-of-the-art neural machine translation models generate a translation from left to right and every step is conditioned on the previously generated tokens. The sequential nature of this generation process causes fundamental latency in inference since we cannot generate multiple tokens in each sentence in parallel.

Show full abstract

We propose an attention-masking based model, called Disentangled Context (DisCo) transformer, that simultaneously generates all tokens given different contexts. The DisCo transformer is trained to predict every output token given an arbitrary subset of the other reference tokens. We also develop the parallel easy-first inference algorithm, which iteratively refines every token in parallel and reduces the number of required iterations. Our extensive experiments on 7 translation directions with varying data sizes demonstrate that our model achieves competitive, if not better, performance compared to the state of the art in non-autoregressive machine translation while significantly reducing decoding time on average. Our code is available at https://github.com/facebookresearch/DisCo.

View on arXivView PDF

Code Implementations(1)

DisCo Transformer for Non-autoregressive MT

777Python, LuaJun 29, 20204 years agoNOASSERTION

Similar Papers

Cite this paper

@article{kasai2020nonautoregressive,
  title  = {Non-Autoregressive Machine Translation with Disentangled Context Transformer},
  author = {Jungo Kasai and James Cross and Marjan Ghazvininejad and Jiatao Gu},
  year   = {2020},
  eprint = {2001.05136},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2001.05136}
}

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

Discussion