Latent-Variable Non-Autoregressive Neural Machine Translation with Deterministic Inference Using a Delta Posterior

Raphael Shu, Jason Lee, Hideki Nakayama, Kyunghyun Cho

Introduction

Standard Neural Machine Translation (NMT) models typically operate in an autoregressive manner, generating tokens sequentially. While this approach yields high-quality translations, it introduces a significant computational bottleneck during inference because each token's prediction depends on all previously generated words, preventing parallelization.

Non-autoregressive (NAT) models aim to overcome this by predicting all tokens simultaneously. However, they frequently encounter the "multimodality problem," where independent predictions at each position lead to incoherent outputs (e.g., "thank thank you") because the model cannot coordinate between multiple valid translation paths. Previous solutions involving iterative refinement in the discrete word space have proven difficult due to fixed sentence lengths and the "jagged" nature of discrete token distributions.

Methodology: The LaNMT Framework

The authors introduce LaNMT (Latent-variable Non-autoregressive NMT), which shifts the refinement process from discrete word space to a continuous latent space.

Architecture of the LaNMT model, illustrating the relationships between the source $x$, target $y$, and latent variables $z$.

Continuous Latent Variables and Delta Posterior

LaNMT learns a sequence of continuous latent variables ($z$) that represent the underlying "plan" for the target sentence. To ensure efficient, non-random translation, the authors utilize a "delta posterior"—a proxy distribution that collapses to a single point (a Dirac delta). This allows for deterministic inference.

Iterative Refinement and Length Transformation

During translation, the model performs deterministic iterative inference. It starts with an initial guess and alternates between updating the latent variables to match the current target guess and updating the target tokens to match the refined latent variables. Because this refinement occurs in a continuous space, the model can dynamically adjust the target sentence length by adding or removing words as the latent "plan" evolves. A monotonic, location-based attention mechanism handles the length transformation between source and target sequences.

Experimental Setup

The model was evaluated on two large-scale benchmarks:

  • ASPEC Ja-En: 3 million Japanese-to-English sentence pairs.
  • WMT’14 En-De: 4.5 million English-to-German sentence pairs.

Standard preprocessing included the Moses toolkit, Kytea, and Byte-Pair Encoding (BPE). Crucially, the model utilized knowledge distillation, training on the outputs of a pre-trained autoregressive "teacher" model to simplify the target distribution.

Key Results

LaNMT demonstrates a compelling trade-off between translation quality and inference speed.

Performance comparison of LaNMT variants against Transformer baselines on ASPEC and WMT'14 tasks.
  • Efficiency: On the WMT’14 En-De task, LaNMT achieved a 12.5x speedup over the autoregressive Transformer baseline.
  • Quality: On the ASPEC Ja-En task, the model reached 27.5 BLEU, slightly exceeding the autoregressive baseline (27.1 BLEU) while being 8.6x faster.
  • Latent Search: By implementing "latent search"—sampling multiple latent plans and rescoring them with the teacher model—the quality gap on WMT'14 was reduced to just 1.0 BLEU point while maintaining a 6.8x speedup.

Discussion and Limitations

The study highlights that refining low-dimensional continuous vectors is significantly more effective than navigating discrete word spaces. Furthermore, the model's ability to adjust length mid-process addresses a major limitation of prior NAT architectures.

However, some challenges remain. The model's performance is sensitive to the quality of the initial guess; a highly repetitive or poor starting point can hinder the refinement process. Additionally, the reliance on an autoregressive teacher for knowledge distillation and rescoring means the model is not yet fully independent of sequential architectures. Future work may focus on training such latent-variable models from scratch.

Summary updated

BibTeX
@inproceedings{shu2020latent,
  author = {Raphael Shu and Jason Lee and Hideki Nakayama and Kyunghyun Cho},
  title = {{Latent-Variable Non-Autoregressive Neural Machine Translation with Deterministic Inference Using a Delta Posterior}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2020},
  doi = {10.1609/aaai.v34i05.6413},
}
Figure