Non-Autoregressive Translation by Learning Target Categorical Codes

Yu Bao, Shujian Huang, Tong Xiao, Dongqi Wang, Xinyu Dai +1 more
3/21/2021
cs.CLcs.AI

Official code: baoy-nlp/CNAT (11 stars, Python, MIT, PyTorch, last commit 2021-07-11).

Abstract

Non-autoregressive Transformer is a promising text generation model. However, current non-autoregressive models still fall behind their autoregressive counterparts in translation quality.

Show full abstract

We attribute this accuracy gap to the lack of dependency modeling among decoder inputs. In this paper, we propose CNAT, which learns implicitly categorical codes as latent variables into the non-autoregressive decoding. The interaction among these categorical codes remedies the missing dependencies and improves the model capacity. Experiment results show that our model achieves comparable or better performance in machine translation tasks, compared with several strong baselines.

View on arXivView PDF

Code Implementations(1)

baoy-nlp/CNATOfficial100%
PyTorchMIT

Non-autoregressive Translation by Learning Target Categorical Codes

113PythonMay 11, 20215 years agoMIT
conditional-random-fieldsnon-autoregressive-translationpytorchvector-quantization

Similar Papers

Cite this paper

@article{bao2021nonautoregressive,
  title  = {Non-Autoregressive Translation by Learning Target Categorical Codes},
  author = {Yu Bao and Shujian Huang and Tong Xiao and Dongqi Wang and Xinyu Dai and Jiajun Chen},
  year   = {2021},
  eprint = {2103.11405},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2103.11405}
}

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

Discussion