Prediction Improves Simultaneous Neural Machine Translation

Ashkan Alinejad, Maryam Siahbani, Anoop SarkarEMNLP 2018

Introduction

Simultaneous neural machine translation (SNMT) aims to translate speech or text in real-time, minimizing latency while maintaining high accuracy. This task presents a fundamental "wait-or-go" dilemma: waiting for more source-side context improves translation quality but increases delay, while translating early reduces lag but risks errors due to incomplete information. Traditional SNMT systems typically utilize two actions: READ (waiting for more input) or WRITE (outputting a translated word). This paper introduces a third action, PREDICT, which allows the system to anticipate future source words to bridge the context gap.

The PREDICT Action and Framework

The authors propose an agent-based framework that integrates a predictive component into the translation pipeline. The system consists of three primary modules:

  1. The Environment: A standard attention-based Encoder-Decoder NMT system that processes available input and generates candidate translations.
  2. The Predictor: A separate language model that "hallucinates" the next word in the source stream when prompted.
  3. The Agent: A reinforcement learning (RL) controller that decides whether to READ, WRITE, or PREDICT at any given step.
The proposed SNMT framework architecture featuring the Agent, Predictor, and Environment components.

When the agent selects the PREDICT action, the predictor guesses the next source word. This hallucinated word is fed into the encoder, providing the decoder with "future" context. If a subsequent READ action occurs, the hallucinated word is replaced by the actual word. The agent is trained using Policy Gradient reinforcement learning, optimized by a reward function that balances translation quality (BLEU), latency (Average Proportion), and the utility of the predictions.

Key Insights and Ideas

  • Strategic Hallucination: The model does not require perfect predictions to benefit. Even likely future contexts help the decoder prepare for upcoming sentence structures, particularly in language pairs with significant reordering requirements.
  • Reducing Latency through Confidence: Prediction consistently reduces the "average segment length" ($\mu$), which is the number of consecutive READ actions. By predicting, the agent gains enough confidence to WRITE sooner, effectively breaking up long pauses in the output.
  • Language-Specific Advantages: The approach is most effective when translating from verb-final languages (like German) to verb-medial languages (like English), as it allows the agent to anticipate verbs that have not yet appeared in the source stream.

Key Results

The "Predict Model" (PM) was evaluated against a standard "Greedy Decoding" (GD) baseline on WMT 2015 and Newstest datasets for English-German (EN-DE) translation. The results demonstrate that the inclusion of the PREDICT action improves both quality and responsiveness.

BLEU score performance of the Predict Model versus Greedy Decoding across varying sentence lengths for two translation directions.

As shown in the performance analysis across sentence lengths, the Predict Model consistently maintains higher BLEU scores compared to the baseline. Specifically:

  • English → German: BLEU scores improved from 16.75 to 17.54, while latency (Average Proportion) dropped from 0.79 to 0.74.
  • German → English: BLEU scores rose from 21.43 to 21.83, with a significant latency reduction from 0.77 to 0.70.

Limitations and Future Work

While effective, the system's performance is tied to the quality of the source-language predictor; poor predictions can degrade translation accuracy. Additionally, the reward function requires precise tuning to prevent the model from becoming overly reliant on hallucinations. Future research may explore more sophisticated prediction architectures or the direct integration of predictive capabilities into the NMT encoder itself to reduce computational overhead.

Summary updated

BibTeX
@inproceedings{alinejad2018prediction,
  author = {Ashkan Alinejad and Maryam Siahbani and Anoop Sarkar},
  title = {{Prediction Improves Simultaneous Neural Machine Translation}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2018},
  doi = {10.18653/v1/d18-1337},
}
Figure