Viterbi Decoding of Directed Acyclic Transformer for Non-Autoregressive Machine Translation

Chenze Shao, Zhengrui Ma, Yang Feng
10/11/2022
cs.CL
transformer-attention

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

Abstract

Non-autoregressive models achieve significant decoding speedup in neural machine translation but lack the ability to capture sequential dependency. Directed Acyclic Transformer (DA-Transformer) was recently proposed to model sequential dependency with a directed acyclic graph.

Show full abstract

Consequently, it has to apply a sequential decision process at inference time, which harms the global translation accuracy. In this paper, we present a Viterbi decoding framework for DA-Transformer, which guarantees to find the joint optimal solution for the translation and decoding path under any length constraint. Experimental results demonstrate that our approach consistently improves the performance of DA-Transformer while maintaining a similar decoding speedup.

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{shao2022viterbi,
  title  = {Viterbi Decoding of Directed Acyclic Transformer for Non-Autoregressive Machine Translation},
  author = {Chenze Shao and Zhengrui Ma and Yang Feng},
  year   = {2022},
  eprint = {2210.05193},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2210.05193}
}

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

Discussion