Refinements to Interactive Translation Prediction Based on Search Graphs

Philipp Koehn, Chara Tsoukala, Herve Saint-AmandACL 2014

Abstract

Interactive Machine Translation (IMT) systems aim to assist professional translators by providing real-time sentence completions as they type. However, maintaining high prediction accuracy within a strict 100ms latency constraint remains a significant technical challenge. This paper introduces several "permissive" matching refinements—including windowed matching of the last typed word, case-insensitivity, and approximate word matching—to improve system robustness against user variations. Our results demonstrate that these refinements achieve a +5.4% boost in word prediction accuracy and a +9.3% jump in letter prediction accuracy while adhering to real-time performance requirements.

Introduction

In the traditional professional translation workflow, translators often perform "post-editing," where they correct a static machine-translated output. Interactive Machine Translation (IMT) offers a more collaborative alternative: the system predicts the remainder of a sentence dynamically as the human types.

To feel "instantaneous" to a user, an IMT system must respond within 100 milliseconds. Most current systems rely on pre-computed "search graphs" (maps of possible translation paths). However, rigid matching algorithms often fail when users introduce slight variations in casing, word endings, or word order. These mismatches lead to poor suggestions or system lag as the algorithm struggles to find a valid path. This paper explores refinements to the matching process to make IMT more flexible and accurate.

Methodology

The authors developed a core dynamic programming algorithm that matches a user’s "prefix" (the text typed so far) against a static search graph. To improve the flexibility of this matching, five key refinements were introduced:

  1. Matching the Last Word (Windowing): Instead of seeking a global best fit for the entire prefix, the system prioritizes matching the most recently typed word within a specific "window" of the predicted path.
  2. Case-Insensitive Matching: This refinement treats capitalized and lowercase versions of the same word (e.g., "University" and "university") as identical, preventing the system from breaking over simple capitalization differences.
  3. Approximate Word Matching: By using letter-level edit distance, the system can identify similar words. If two words are nearly identical, the "cost" of the mismatch is halved.
  4. Stemmed Matching: Specifically designed for morphologically rich languages like Spanish, this treats words as matches if they share a common stem, even if their suffixes differ.
  5. Desperate Word Completion: If a user's current word is not found in the optimized search graph, the system performs a "desperate" search across the entire vocabulary to find a suitable completion.
Impact of window size on prediction accuracy at different latency limits.

Experimental Setup

The study utilized data from the CASMACAT project, featuring a field trial where professional translators corrected machine-translated news stories from English to Spanish. The evaluation was conducted on a substantial dataset consisting of 24,444 word predictions and 141,662 letter predictions.

Results and Discussion

The introduced refinements led to marked improvements over the baseline IMT approach. Word prediction accuracy increased from 56.1% to 60.5%, while letter prediction accuracy rose from 75.2% to 84.5%.

The Importance of the "Last Word"

A primary insight from the study was that the user’s most recent keystroke is the strongest indicator of their intent. As shown in the windowing analysis, allowing the system to find that last word "anywhere" in the translation path—rather than forcing it into a rigid position—provided a massive boost in performance.

Latency and Threshold Management

Permissive matching increases computational complexity. If a search takes longer than 100ms, the system must abort and fall back to a simpler model, which can decrease accuracy. The authors found that optimizing the pruning threshold (setting it to 0.4) provided the ideal balance between search depth and the 100ms response time limit.

Trade-off between pruning threshold, accuracy, and failure rate.

The "Desperate" Completion Win

The "desperate word completion" method was particularly effective, accounting for the significant jump in letter-level accuracy. This proves that even a broad search of the full vocabulary is preferable to providing the user with no suggestion at all when the search graph fails.

Conclusion

This research demonstrates that permissive matching refinements can significantly enhance the utility of IMT systems. While these methods introduce computational overhead, careful threshold management allows them to function within the 100ms latency wall. Future work will focus on developing more efficient data structures, such as hash maps for approximate matches, to further optimize the system's responsiveness.

Summary updated

BibTeX
@inproceedings{koehn2014refinements,
  author = {Philipp Koehn and Chara Tsoukala and Herve Saint-Amand},
  title = {{Refinements to Interactive Translation Prediction Based on Search Graphs}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2014},
  doi = {10.3115/v1/p14-2094},
}
Figure