Neural Interactive Translation Prediction

Rebecca Knowles, Philipp KoehnAMTA 2016

Introduction

Interactive Machine Translation (IMT) serves as a critical productivity tool for professional translators, functioning as an advanced "auto-complete" system. In an IMT workflow, the system suggests a completion for a sentence, which the human translator can either accept or override. When a translator provides manual input, the system must dynamically recalculate its suggestions based on the new prefix. Traditional phrase-based IMT systems often suffer from brittleness; a single unexpected word choice by the human can lead to a "cascade of errors" in subsequent suggestions. This paper explores the application of Neural Machine Translation (NMT) to IMT, demonstrating significant improvements in both accuracy and error recovery.

Methodology

The researchers adapted a standard NMT encoder-decoder architecture with an attention mechanism to support interactivity.

Prefix Feeding

The core modification involves "prefix feeding." Instead of the decoder relying on its own previous predictions to generate the next token, it is constrained to use the specific words provided by the human translator. This allows the neural model to re-evaluate the source sentence context via its attention mechanism at every step, ensuring the generated completion remains semantically grounded in the user's current input.

The NMT encoder-decoder architecture with attention used for interactive prediction.

Optimization for Latency

To meet the industry-standard latency threshold of 100 milliseconds, the authors introduced a "patching" heuristic. Rather than recalculating the entire sentence completion for every keystroke, the system predicts only the next three words following a user's change. It then uses Kullback–Leibler (KL) divergence to find the most mathematically compatible point to resume a pre-computed translation sequence, balancing speed with predictive quality.

Experimental Setup

The models were evaluated using the WMT 2016 German–English dataset. The training set comprised a 115-million-word parallel corpus supplemented by 75 billion words of monolingual English data used for back-translation. Performance was measured on the official WMT 2016 news test set (2,999 sentences) using word and letter prediction accuracy metrics.

Results and Analysis

The neural approach demonstrated a clear advantage over traditional methods. The NMT model (using greedy search) achieved a word prediction accuracy of 61.6%, compared to 43.3% for the phrase-based baseline.

Error Recovery and the Synonym Factor

A key finding was the NMT model's resilience to "unexpected" human input. While phrase-based systems often produce nonsensical output after a deviation, NMT models consistently find plausible paths forward. Analysis revealed that approximately 21% of the model's "errors" were actually semantically valid synonyms. For instance, the model might predict "rising" with high probability while the human translator chose "increasing."

Analysis of prediction probability distributions, illustrating the model's handling of synonyms and error recovery.

As shown in the table above, the model often assigns significant probability to the correct word even when its top prediction differs. This semantic awareness allows the system to "get back on track" almost immediately after a mismatch, with most errors occurring as isolated 1-word sequences rather than long chains of failures.

Performance and Latency

On GPU hardware, the system achieved a single-word prediction time of approximately 7 milliseconds. The "patching" heuristic maintained a respectable word accuracy of 56.4% while ensuring average response times of ~54ms, well within the limits required for a fluid user experience.

Conclusion

Neural Machine Translation significantly elevates the state of the art for interactive translation tools. By leveraging the flexibility of the attention mechanism and the semantic depth of neural embeddings, these systems provide more accurate, resilient, and human-aligned suggestions than previous phrase-based generations. Future work will focus on improving long-range reordering within the patching heuristic and addressing the infrastructure challenges of deploying GPU-accelerated IMT at scale.

Summary updated

BibTeX
@inproceedings{knowles2016neural,
  author = {Rebecca Knowles and Philipp Koehn},
  title = {{Neural Interactive Translation Prediction}},
  booktitle = {AMTA},
  year = {2016},
}
Figure