Non-autoregressive Streaming Transformer for Simultaneous Translation

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

TL;DR

This paper introduces NAST, a novel non-autoregressive streaming Transformer for simultaneous machine translation. NAST tackles the inherent trade-off between translation quality and low latency by employing a parallel decoding strategy and a new alignment-based loss function, outperforming existing autoregressive models.

What Problem Does This Paper Address?

Simultaneous Machine Translation (SiMT) aims to translate speech or text in real-time, meaning translation starts before the entire source input is available. The core challenge in SiMT is balancing translation quality with low latency. Existing models often achieve low latency by "anticipating" future words, which can lead to errors and hallucinations. This anticipation problem is exacerbated by the autoregressive nature of most SiMT models, which generate tokens sequentially and are trained with teacher forcing. Teacher forcing can inadvertently leak future source information to the decoder during training, leading to overly optimistic predictions during inference. Furthermore, autoregressive models struggle with the non-monotonic alignment between source and target sentences that is common across languages, hindering their ability to produce natural, human-like translations.

Methods

The proposed Non-autoregressive Streaming Transformer (NAST) addresses these issues through several key innovations:

  • Non-autoregressive Decoder with Intra-chunk Parallelism: Unlike traditional autoregressive models, NAST's decoder generates tokens within a chunk in parallel. This inherently reduces latency and allows for more flexible alignment strategies.
  • Blank Token and Repetitive Tokens: NAST can generate blank tokens ($\epsilon$) or repeat tokens. This capability allows the model to dynamically adjust its "READ/WRITE" strategy, deciding when to consume more source input (READ) and when to produce target tokens (WRITE), mimicking human translation behavior.
  • Alignment-based Latency Loss: The authors introduce a novel loss function that directly optimizes for a non-monotonic latent alignment between source and target. This helps the model learn to produce translations that are more naturally aligned with the source, reducing anticipation and improving quality. This loss is combined with a chunk wait-k strategy to control latency.
  • Two-Stage Training: NAST is trained in two stages. First, a CTC loss is used to obtain a reference monotonic alignment with adaptive latency. Second, a combination of the non-monotonic latent alignment loss and the alignment-based latency loss is applied to further refine the model.
  • Glancing Strategy: To mitigate the multimodality problem inherent in non-autoregressive models (where a source can have multiple valid translations), NAST employs a "glancing" strategy during training. This involves randomly replacing decoder input tokens with tokens from the most probable latent alignment, helping the model explore different translation possibilities.

Datasets

The experiments were conducted on two standard SiMT benchmarks:

  • WMT15 German → English (De→En): Approximately 4.5 million sentence pairs.
  • WMT16 English → Romanian (En→Ro): Approximately 0.6 million sentence pairs.

The paper uses standard validation and test sets (newstest2013/2015 for De→En, newsdev-2016/newstest-2016 for En→Ro). BPE with 32k merge operations was used to create a joint subword vocabulary.

Key Insights and Ideas

  • Non-autoregressive is better for SiMT: The paper strongly argues that the parallel decoding nature of non-autoregressive models is fundamentally better suited for the demands of simultaneous translation than traditional autoregressive approaches.
  • Explicitly modeling alignment is crucial: By introducing an alignment-based loss, NAST directly addresses the non-monotonicity problem, leading to more natural and accurate translations, especially under strict latency constraints.
  • Flexibility in READ/WRITE is key: The ability to generate blank or repetitive tokens provides a more nuanced control over the translation process, allowing the model to adapt its strategy dynamically.
  • Trade-offs are manageable: The proposed training strategies and loss functions allow for fine-tuning the balance between latency and quality, demonstrating that high quality can be achieved even at very low latencies.

Key Results

  • State-of-the-art performance: NAST significantly outperforms strong autoregressive SiMT baselines on both De→En and En→Ro datasets across various latency settings.
  • High quality at low latency: On De→En, NAST achieved a BLEU score of 27.73 at an Average Lagging (AL) of 1.44, surpassing the previous SOTA model HMT by nearly 6 BLEU points. Even at an AL of 6.85, NAST still showed superior performance.
  • Reduced hallucination: NAST exhibits a significantly lower hallucination rate compared to HMT, attributed to avoiding source-info leakage during training.
  • Improved performance on challenging subsets: NAST shows particular strength on "hard" test subsets with complex cross-alignments, demonstrating its effectiveness in handling non-monotonicity.
  • Fluency trade-off: While NAST achieves improved quality and latency, it does show a slight impact on fluency (higher perplexity) compared to autoregressive models. However, the authors deem this trade-off acceptable for practical SiMT scenarios.

Limitations and Future Work

  • Fluency degradation: The non-autoregressive nature of NAST leads to a slight decrease in fluency compared to autoregressive models, as indicated by higher perplexity scores. The authors suggest this is a trade-off for improved quality and latency, and that in real-world scenarios, audiences often prioritize overall quality over perfect fluency.
  • Performance on SVO-to-SVO: The paper notes that NAST's performance is less satisfactory when translating between languages with similar SVO (Subject-Verb-Object) word orders (like English-Romanian) compared to SOV-to-SVO translation (like German-English). This suggests that while NAST excels at handling word reordering, it's less impactful when the source and target grammars are already aligned.
  • Future work: The paper implicitly suggests further exploration into improving fluency without sacrificing quality and latency, and potentially developing strategies to better handle SVO-to-SVO translation scenarios.

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