Introduction
Standard Neural Machine Translation (NMT) models typically operate in an autoregressive manner, generating translations token-by-token from scratch. While effective, this approach faces challenges in professional translation workflows where consistency with existing Translation Memories (TM) is paramount. Professional translators often rely on "fuzzy matches"—previously translated sentences similar to the current source—to ensure stylistic and terminological alignment.
Existing Retrieval-Augmented Machine Translation (RAMT) systems generally utilize only the single best match from a TM. This paper introduces $TM^N$-LevT, an extension of the Levenshtein Transformer (LevT) designed to simultaneously edit and merge multiple fuzzy matches. By leveraging multiple examples, the model improves translation accuracy and increases transparency by explicitly copying verified human-translated text.
The $TM^N$-LevT Architecture
The $TM^N$-LevT architecture builds upon the non-autoregressive LevT framework, which translates through iterative refinement: deleting unwanted tokens and inserting placeholders for new ones. The authors introduce several key modifications to support multi-source editing.
As shown in the architecture diagram, the model encodes the source sentence and up to $N$ retrieved TM matches. A specialized "sequence encoding" helps the decoder distinguish between different retrieved examples. The core innovation is the Combination Policy ($\pi^{cmb}$), which allows the model to look at multiple candidate sequences derived from different TM matches and merge the most relevant segments into a single cohesive translation candidate.
Multi-Source Editing and Policy Learning
The translation process in $TM^N$-LevT follows a structured pipeline of edit operations. For each retrieved match, the model first applies a deletion policy to remove irrelevant tokens and an insertion policy to add placeholders where new information is needed.
Following these initial edits, the combination policy merges the survivors from all matches. Finally, the token prediction policy fills the placeholders to produce the final output. To train this system, the authors developed an N-way optimal alignment heuristic to determine the "expert" edit operations required to reach the target sentence from multiple starting points.
Experimental Results and Insights
The model was evaluated on English-to-French translation across 11 diverse domains, ranging from technical (medical, legal) to general (Wikipedia).
Key Findings:
- The Power of Multiple Matches: Utilizing three matches ($TM^3$) consistently outperformed single-match baselines ($TM^1$). On the aggregate test set, $TM^3$-LevT achieved a BLEU score of 53.0 compared to 52.0 for the $TM^1$ variant, suggesting that additional matches provide valuable context that a single match might lack.
- High-Precision Copying: A significant advantage of this approach is its reliance on existing translations. Tokens copied directly from a TM match demonstrated a precision of 87.5%, whereas tokens generated from scratch by the model had a precision of only 52.6%. The multi-match model increased the proportion of copied unigrams from 64.5% to 68.8%.
- Transparency and Provenance: By explicitly "keeping" tokens from specific TM matches, the model provides clear provenance for its output. This allows human editors to see exactly which part of a translation originated from which memory entry, making the system more interpretable than standard "black box" NMT models.
- Domain Sensitivity: The benefits were most pronounced in specialized domains (e.g., medical or legal) where high-quality matches are frequent. In broader, noisier domains like Wikipedia, the gains were more modest.
Conclusion
$TM^N$-LevT represents a significant step toward integrating the strengths of Translation Memories with the flexibility of NMT. By moving from single-source to multi-source editing, the model achieves higher accuracy and greater transparency. While it still faces an "autoregressive gap" compared to the strongest traditional models, its ability to maximize the use of verified human translations makes it a compelling tool for professional translation environments. Future work will explore extending this approach to more diverse language pairs and further optimizing the encoder to better process the target-side information of TM matches.
Summary updated