Directed Acyclic Transformer for Non-Autoregressive Machine Translation

Fei Huang, Hao Zhou, Yang Liu, Hang Li, Minlie Huang
5/16/2022
cs.CL
transformer-attention

Official code: thu-coai/DA-Transformer (138 stars, Python, PyTorch, last commit 2023-09-10).

Abstract

Non-autoregressive Transformers (NATs) significantly reduce the decoding latency by generating all tokens in parallel. However, such independent predictions prevent NATs from capturing the dependencies between the tokens for generating multiple possible translations.

Show full abstract

In this paper, we propose Directed Acyclic Transfomer (DA-Transformer), which represents the hidden states in a Directed Acyclic Graph (DAG), where each path of the DAG corresponds to a specific translation. The whole DAG simultaneously captures multiple translations and facilitates fast predictions in a non-autoregressive fashion. Experiments on the raw training data of WMT benchmark show that DA-Transformer substantially outperforms previous NATs by about 3 BLEU on average, which is the first NAT model that achieves competitive results with autoregressive Transformers without relying on knowledge distillation.

View on arXivView PDF

Code Implementations(1)

PyTorch

Official Implementation for the ICML2022 paper "Directed Acyclic Transformer for Non-Autoregressive Machine Translation"

13817Python, CudaMay 15, 20223 years agoNOASSERTION
machine-translationnatural-language-generationpytorchtext-generation

Similar Papers

Cite this paper

@article{huang2022directed,
  title  = {Directed Acyclic Transformer for Non-Autoregressive Machine Translation},
  author = {Fei Huang and Hao Zhou and Yang Liu and Hang Li and Minlie Huang},
  year   = {2022},
  eprint = {2205.07459},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2205.07459}
}

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

Discussion