Faster Re-translation Using Non-Autoregressive Model For Simultaneous Neural Machine Translation

Hyojung Han, Sathish Reddy Indurthi, Mohd Abbas Zaidi, Nikhil Kumar Lakumarapu, Beomseok Lee, Sangha Kim, Chanwoo Kim, Inchul HwangarXiv 2020

Abstract

Recently, simultaneous translation has gathered a lot of attention since it enables compelling applications such as subtitle translation for a live event or real-time video-call translation. Some of these translation applications allow editing of partial translation giving rise to re-translation approaches. The current re-translation approaches are based on autoregressive sequence generation models (ReTA), which generate target tokens in the (partial) translation sequentially. The multiple re-translations with sequential generation in ReTA models lead to an increased inference time gap between the incoming source input and the corresponding target output as the source input grows. Besides, due to the large number of inference operations involved, the ReTA models are not favorable for resource-constrained devices. In this work, we propose a faster re-translation system based on a non-autoregressive sequence generation model (FReTNA) to overcome the aforementioned limitations. We evaluate the proposed model on multiple translation tasks and our model reduces the inference times by several orders and achieves a competitive BLEU score compared to the ReTA and streaming (Wait-k) models. The proposed model reduces the average computation time by a factor of 20 when compared to the ReTA model by incurring a small drop in the translation quality. It also outperforms the streaming-based Wait-k model both in terms of computation time (1.5 times lower) and translation quality.

Introduction

Simultaneous Neural Machine Translation (SNMT) is essential for real-time applications like live subtitling and instant video-call translation. However, the field faces a fundamental trade-off between "streaming" and "re-translation." Streaming models, such as the Wait-k approach, append words to a translation and never revise them. While fast, they often lack the context necessary to correct early errors. Conversely, re-translation models (ReTA) offer higher quality by revising the entire output as new source context arrives.

The primary drawback of existing ReTA models is their autoregressive nature; they generate tokens one by one. As source sentences grow, the computational cost increases exponentially, leading to a significant "wall-clock time gap" and distracting "flickering" for the user. To address this, we introduce FReTNA, a system utilizing a non-autoregressive translation (NAT) model to perform parallel revisions.

The FReTNA Architecture

The core innovation of FReTNA is the transition from an autoregressive engine to a Non-Autoregressive Translation model, specifically the Levenshtein Transformer (LevT). Unlike standard models that predict token $N+1$ based on token $N$, FReTNA predicts all tokens in the partial translation simultaneously.

Figure 1: The FReTNA architecture illustrating the streaming inference process across time steps using Placeholder, Token, and Deletion classifiers.

As shown in Figure 1, the model employs three distinct classifiers:

  1. Placeholder Classifier: Identifies where new words should be inserted.
  2. Token Classifier: Fills the placeholders with specific target words.
  3. Deletion Classifier: Removes redundant or incorrect words from previous iterations.

To mitigate the "flicker" problem, we implemented a positional bias in these classifiers, encouraging the model to maintain stability at the beginning of a sentence while focusing edits on the more recent, uncertain segments. The model is trained via knowledge distillation from a high-quality autoregressive teacher model.

Experimental Results

We evaluated FReTNA across three major benchmarks: WMT’15 German-to-English (DeEn), IWSLT 2020 English-to-German (EnDe), and WMT’14 English-to-French (EnFr).

Inference Speed

FReTNA demonstrates a massive reduction in latency. As illustrated in Figure 4, FReTNA (red circles) consistently maintains a significantly lower time-per-sentence compared to the autoregressive ReTA model (green crosses).

Figure 4: Comparison of inference time per sentence vs. Average Latency (AL) across DeEn, EnDe, and EnFr tasks.

Key findings include:

  • 10x to 20x Speedup: FReTNA reduces average computation time by an order of magnitude compared to ReTA.
  • Efficiency vs. Streaming: FReTNA is approximately 1.5x faster than the Wait-k streaming model while providing superior BLEU scores.
  • Stability: The inclusion of positional bias effectively reduced flickers in low-latency ranges, enhancing readability for human users.

Conclusion

FReTNA successfully breaks the speed barrier of re-translation in SNMT. By leveraging the parallel editing capabilities of non-autoregressive models, it achieves a 20x speedup over traditional ReTA models and outperforms streaming models in both speed and quality. While NAT models face challenges in extremely low-latency scenarios due to limited context, FReTNA represents a significant step toward making high-quality, real-time AI translation viable for resource-constrained devices and live applications.

Summary updated

BibTeX
@misc{han2020faster,
  author = {Hyojung Han and Sathish Reddy Indurthi and Mohd Abbas Zaidi and Nikhil Kumar Lakumarapu and Beomseok Lee and Sangha Kim and Chanwoo Kim and Inchul Hwang},
  title = {{Faster Re-translation Using Non-Autoregressive Model For Simultaneous Neural Machine Translation}},
  year = {2020},
  eprint = {2012.14681},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2012.14681},
}
Figure