Syntactically Supervised Transformers for Faster Neural Machine Translation

Nader Akoury, Kalpesh Krishna, Mohit Iyyer
6/6/2019
cs.CL
transformer-attention

Official code: dojoteef/synst (80 stars, Python, BSD-3-Clause, last commit 2022-10-06).

Abstract

Standard decoders for neural machine translation autoregressively generate a single target token per time step, which slows inference especially for long outputs. While architectural advances such as the Transformer fully parallelize the decoder computations at training time, inference still proceeds sequentially.

Show full abstract

Recent developments in non- and semi- autoregressive decoding produce multiple tokens per time step independently of the others, which improves inference speed but deteriorates translation quality. In this work, we propose the syntactically supervised Transformer (SynST), which first autoregressively predicts a chunked parse tree before generating all of the target tokens in one shot conditioned on the predicted parse. A series of controlled experiments demonstrates that SynST decodes sentences ~ 5x faster than the baseline autoregressive Transformer while achieving higher BLEU scores than most competing methods on En-De and En-Fr datasets.

View on arXivView PDF

Code Implementations(1)

dojoteef/synstOfficial100%
BSD-3-Clause

Source code to reproduce the results in the ACL 2019 paper "Syntactically Supervised Transformers for Faster Neural Machine Translation"

806Python, ShellMay 29, 20194 years agoBSD-3-Clause

Similar Papers

Cite this paper

@article{akoury2019syntactically,
  title  = {Syntactically Supervised Transformers for Faster Neural Machine Translation},
  author = {Nader Akoury and Kalpesh Krishna and Mohit Iyyer},
  year   = {2019},
  eprint = {1906.02780},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1906.02780}
}

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

Discussion