Non-autoregressive Streaming Transformer for Simultaneous Translation

Zhengrui Ma, Shaolei Zhang, Shoutao Guo, Chenze Shao, Min Zhang, Yang Feng

Introduction

Simultaneous machine translation (SiMT) is a critical technology for real-time applications such as live captioning and international interpretation. The primary challenge in SiMT is balancing the trade-off between latency (how long the user waits) and quality (how accurate the translation is). Traditional approaches rely on autoregressive (AR) models, which generate text word-by-word. However, these models face significant structural hurdles when applied to streaming contexts. This paper introduces the Non-autoregressive Streaming Transformer (NAST), a novel architecture designed to overcome the inherent limitations of AR models in simultaneous translation.

The Limitations of Autoregressive SiMT

Existing AR models for SiMT suffer from two primary issues that degrade performance in real-time scenarios:

  1. The Non-Monotonicity Problem: Languages often feature divergent word orders. For example, German frequently places verbs at the end of a sentence, while English does not. AR models, which are trained to follow a strict left-to-right sequence, struggle to "wait" for necessary source information, often leading to premature and incorrect predictions.
  2. Source-Info Leakage and Hallucinations: During training, AR models typically use "teacher forcing," where the model is provided with the ground-truth previous word to predict the next. This creates a discrepancy during inference: the model becomes overconfident and attempts to predict target words before the corresponding source information has been processed. This "leakage" results in hallucinations—the generation of fluent but entirely inaccurate text.

The NAST Framework

NAST departs from the word-by-word dependency of AR models by utilizing a non-autoregressive (NAR) decoder. This allows the model to generate translation chunks in parallel, breaking the rigid temporal constraints of traditional transformers.

Key Architectural Components

  • Unidirectional Encoder & NAR Decoder: The encoder is restricted to looking only at past source tokens to ensure a streaming workflow. The decoder generates a sequence of potential tokens for every source token received, allowing for flexible output timing.
  • Flexible READ/WRITE Strategy: Instead of using fixed rules for when to output text, NAST employs a Connectionist Temporal Classification (CTC) approach. This allows the model to output "blank" tokens (effectively a READ action) or repetitive tokens to dynamically adjust its timing based on the source input.
  • Two-Stage Training:
    • Stage 1: The model establishes a basic monotonic alignment using standard CTC loss.
  • Stage 2: The model is refined using Non-Monotonic Latent Alignment (NMLA) loss and an alignment-based latency loss. This enables the model to learn natural reordering while maintaining low latency.
  • Glancing Strategy: To mitigate the "multimodality problem" common in NAR models—where the model might struggle to choose between multiple valid translation paths—a glancing strategy is used during training. The model occasionally "glances" at the target reference to maintain coherence.

Experimental Evaluation

Researchers evaluated NAST on two benchmark datasets: WMT15 German $\rightarrow$ English (De$\rightarrow$En), representing a difficult pair with significant word-order differences, and WMT16 English $\rightarrow$ Romanian (En$\rightarrow$Ro), which features more similar word orders.

Key Results

  • Superior Quality at Low Latency: On the De$\rightarrow$En task, NAST outperformed the previous state-of-the-art (HMT) by up to 6 BLEU points in ultra-low latency settings. Remarkably, at an Average Lagging (AL) of 6.85, NAST even outperformed some "offline" models that wait for the entire source sentence before beginning translation.
  • Reduced Hallucinations: Qualitative analysis confirmed that NAST significantly reduces hallucination rates compared to AR baselines. By removing the reliance on teacher forcing, the model is less likely to "guess" information that has not yet appeared in the source stream.
  • Handling Complex Reordering: NAST showed its greatest strengths in language pairs requiring heavy reordering. By treating alignment as a latent variable, the model finds the most efficient path to translate without being forced into a strict word-for-word sequence.

Discussion and Future Work

While NAST represents a significant leap in SiMT performance, it introduces a trade-off in fluency. Because NAR models lack strong word-to-word dependencies, their output can occasionally be less grammatically smooth than AR models, as reflected in higher perplexity scores. Additionally, the benefits of NAST are most pronounced in language pairs with divergent word orders; for pairs like English-to-Romanian, the performance gains are more modest.

Future research will focus on improving the linguistic fluency of NAR-based streaming models without sacrificing the latency and hallucination-reduction benefits provided by the NAST architecture.

Summary updated

BibTeX
@inproceedings{ma2023non,
  author = {Zhengrui Ma and Shaolei Zhang and Shoutao Guo and Chenze Shao and Min Zhang and Yang Feng},
  title = {{Non-autoregressive Streaming Transformer for Simultaneous Translation}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2023},
  doi = {10.18653/v1/2023.emnlp-main.314},
}
Figure