BiTIIMT: A Bilingual Text-infilling Method for Interactive Machine Translation

Yanling Xiao, Lemao Liu, Guoping Huang, Qu Cui, Shujian Huang, Shuming Shi, Jiajun Chen

Abstract

Interactive Machine Translation (IMT) facilitates high-quality translation through human-AI collaboration. Traditional IMT methods, such as Lexically Constrained Decoding (LCD), often suffer from high computational latency and a "prefix-heavy" bias that ignores future context. We present BiTIIMT, a novel approach that reframes IMT as a bilingual text-infilling task. By training a standard Transformer to fill gaps in a human-edited template, BiTIIMT achieves translation speeds up to five times faster than LCD baselines while significantly improving quality by leveraging bidirectional context.

Introduction

Interactive Machine Translation (IMT) is essential for professional translation workflows where high accuracy is paramount. Current IMT systems generally follow two paradigms: left-to-right completion, which restricts human edits to the sentence prefix, and Lexically Constrained Decoding (LCD), which allows edits anywhere but treats them as hard constraints during a complex beam search.

The Interactive Machine Translation process involves human edits (Translate) to refine the model's output (Target).

LCD-based systems face two major hurdles:

  1. Latency: The constrained search is computationally expensive, leading to frustrating delays for users.
  2. Contextual Limitation: Most models struggle to effectively incorporate words placed after a blank, leading to awkward phrasing that does not harmonize with the surrounding text.

Methodology: Bilingual Text-Infilling

BiTIIMT addresses these issues by shifting the complexity from the decoding algorithm to the task format. The core idea is Bilingual Text-Infilling (BiTI).

Task Formulation

Given a source sentence $X$ and a human-edited "template" $\bar{Y}$ (a translation containing blanks), the model is tasked with predicting the missing segments $Y^b$. Unlike traditional methods, BiTIIMT uses a standard sequence-to-sequence Transformer architecture. The input is formed by concatenating the source sentence and the template using a special <sep> token. The model then generates the missing segments, separated by <eob> (end-of-block) tokens.

Training via Simulation

To overcome the lack of large-scale interactive datasets, the authors employed a simulation strategy using standard parallel corpora.

The simulation process transforms a standard parallel pair (X, Y) into a triplet (X, Y-bar, Y-b) by randomly masking segments of the target sentence.

As shown in the figure above, target sentences $Y$ are randomly sampled to create templates $\bar{Y}$ with $K$ blanks. This synthetic data allows the model to learn the infilling task at scale. To prevent the model from losing its ability to perform standard translation (the "cold start" problem), the training set includes a mix of synthetic infilling data and original, unmasked parallel data.

Experimental Results

The model was evaluated on WMT14 (En-De, En-Fr) and WMT (Zh-En) benchmarks, as well as a real-world post-editing dataset.

  • Efficiency: BiTIIMT maintains the same computational complexity as standard NMT. In tests with five constraint segments, it outperformed LCD baselines by a factor of five in terms of speed.
  • Translation Quality: BiTIIMT consistently outperformed baselines. On the Zh-En task, it showed a +1.12 BLEU improvement with one constraint. On the WMT21 post-editing task, the improvement reached +9 BLEU points.
  • Human Effort: In the human study, professional translators using BiTIIMT reached satisfactory results in fewer rounds and with lower editing costs (fewer keystrokes and deletions) compared to traditional IMT systems.

Discussion and Conclusion

The success of BiTIIMT stems from its bidirectional nature; by processing the entire template, the model uses both preceding and following context to ensure the filled segments fit perfectly. Furthermore, by simplifying the IMT task into a standard infilling problem, the system eliminates the latency bottleneck of constrained decoding.

Future work may explore explicit alignment mechanisms to better map source words to specific blanks and the potential for non-autoregressive translation (NAT) to further reduce latency toward near-instantaneous interaction.

Summary updated

BibTeX
@inproceedings{xiao2022bitiimt,
  author = {Yanling Xiao and Lemao Liu and Guoping Huang and Qu Cui and Shujian Huang and Shuming Shi and Jiajun Chen},
  title = {{BiTIIMT: A Bilingual Text-infilling Method for Interactive Machine Translation}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2022},
  doi = {10.18653/v1/2022.acl-long.138},
}
Figure