Skip to main content
QUICK REVIEW

[Paper Review] Semi-Autoregressive Neural Machine Translation

Chunqi Wang, Ji Zhang|arXiv (Cornell University)|Aug 26, 2018
Natural Language Processing TechniquesComputer Science22 references12 citations
TL;DR

This paper proposes the semi-autoregressive Transformer (SAT), a novel sequence generation model that produces multiple words in parallel at each time step while preserving global autoregressive structure to maintain translation quality. On WMT’14 English-German translation, SAT achieves 5.58× speedup over the standard Transformer with 88% of its BLEU score, and with K=2, it is nearly lossless (1% BLEU drop).

ABSTRACT

Existing approaches to neural machine translation are typically autoregressive models. While these models attain state-of-the-art translation quality, they are suffering from low parallelizability and thus slow at decoding long sequences. In this paper, we propose a novel model for fast sequence generation --- the semi-autoregressive Transformer (SAT). The SAT keeps the autoregressive property in global but relieves in local and thus is able to produce multiple successive words in parallel at each time step. Experiments conducted on English-German and Chinese-English translation tasks show that the SAT achieves a good balance between translation quality and decoding speed. On WMT'14 English-German translation, the SAT achieves 5.58$ imes$ speedup while maintains 88\% translation quality, significantly better than the previous non-autoregressive methods. When produces two words at each time step, the SAT is almost lossless (only 1\% degeneration in BLEU score).

Motivation & Objective

  • To address the slow decoding speed of autoregressive neural machine translation models due to sequential generation.
  • To improve parallelizability without sacrificing translation quality, by relaxing autoregressive constraints locally while preserving global autoregressive structure.
  • To explore a middle ground between fully autoregressive and non-autoregressive models, balancing speed and quality.
  • To develop a method that enables efficient, high-quality sequence generation applicable beyond machine translation.
  • To investigate knowledge distillation and training objectives that improve long-distance dependency modeling in semi-autoregressive settings.

Proposed method

  • The SAT uses a group-level chain rule to generate K consecutive target words in parallel at each time step, where K is the group size.
  • It applies a relaxed causal mask that allows attention to attend to future tokens within the same group, reducing sequential dependency.
  • The model leverages sequence-level knowledge distillation from a strong autoregressive teacher model to stabilize training and improve performance.
  • Long-distance dependency modeling is enhanced through a modified training objective that reduces position-wise cross-entropy, especially for distant positions.
  • The architecture is built upon the Transformer encoder-decoder framework, with modifications to the decoder self-attention and cross-attention mechanisms to support group-wise generation.
  • The model uses a shared decoder head across all positions in a group, enabling parallel prediction of K tokens while maintaining consistency.

Experimental results

Research questions

  • RQ1Can semi-autoregressive generation achieve a better trade-off between decoding speed and translation quality than fully autoregressive or non-autoregressive models?
  • RQ2How does relaxing autoregressive constraints locally affect the model's ability to generate fluent and accurate sequences?
  • RQ3To what extent does sequence-level knowledge distillation improve the performance of semi-autoregressive models?
  • RQ4How does the group size K influence the speed-accuracy trade-off in sequence generation?
  • RQ5Can the SAT maintain high fluency and low repetition rates even when generating multiple words per step, especially for long sequences?

Key findings

  • On WMT’14 English-German translation, the SAT achieves 5.58× speedup over the standard Transformer while maintaining 88% of its BLEU score.
  • With K=2, the SAT achieves only a 1% BLEU score degradation compared to the autoregressive Transformer, indicating near-lossless performance.
  • On Chinese-English translation, SAT with K=2 achieves 1.69× speedup while maintaining 97% of the reference model’s translation quality.
  • In an extreme setting with K=6 and beam size=1, SAT achieves 6.41× speedup on Chinese-English translation while maintaining 83% of the reference model’s BLEU score.
  • Sequence-level knowledge distillation significantly improves performance, especially for larger K values, reducing training instability and improving output fluency.
  • Position-wise cross-entropy analysis reveals periodic patterns with period K, indicating that modeling long-distance dependencies remains challenging and is a key target for future improvement.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.