Encoding Gated Translation Memory into Neural Machine Translation

Qian Cao, Deyi Xiong

Abstract

Neural Machine Translation (NMT) has significantly advanced the field of automated translation, yet it often fails to leverage the structured knowledge found in Translation Memories (TM)—databases of previously translated sentence pairs used by professional translators. This paper presents NMT-GTM (Neural Machine Translation with Gated Translation Memory), a novel architecture that integrates TM as a guiding signal rather than a rigid template. By employing a dual-encoder setup and a dynamic gating mechanism, NMT-GTM achieves a substantial 10.32 BLEU point improvement over standard NMT baselines on the Chinese-English UN Parallel Corpus, demonstrating particular strength when high-quality matches are available.

Introduction

In professional translation workflows, Translation Memory (TM) is an indispensable tool. When a translator encounters a new sentence similar to a previously translated one, they can adapt the existing translation rather than starting anew. While NMT models excel at mapping source text to target text in continuous mathematical spaces, they struggle to incorporate the discrete, symbolic knowledge of a TM. Previous integration attempts often led to models either ignoring the TM or blindly copying it, resulting in errors when the TM match was imperfect. NMT-GTM addresses this by treating the TM as a flexible reference.

Methods

The NMT-GTM architecture is designed to mimic the human translator's workflow through four primary components:

  1. Coupled Encoders: The system utilizes two encoders. One processes the current source sentence, while the second encodes the target translation of the most semantically similar sentence retrieved from the TM.
  2. Semantic Retrieval: Instead of traditional character-based "fuzzy matching," NMT-GTM uses sentence embeddings to identify TM matches based on semantic similarity, allowing it to find relevant examples even with differing surface-level wording.
  3. TM Gating Network: A sigmoid-based gating mechanism calculates a dynamic value at each decoding step. This "gate" determines the relative influence of the TM match versus the source sentence on the final translation.
  4. TM-Guided Decoder: The decoder integrates the gated TM signal into its internal hidden states. This ensures the TM influences the translation process without being directly copied, allowing the model to correct discrepancies between the TM match and the current source.
Architecture of the NMT-GTM model featuring coupled encoders and a gating network.

Key Results

The model was evaluated using the Chinese-English United Nations (UN) Parallel Corpus. Performance was categorized by Fuzzy Match Scores (FMS) to assess how the model handles varying levels of TM relevance.

The results demonstrate that NMT-GTM significantly outperforms standard RNNsearch baselines. Across the entire test set, the model achieved a 10.32 BLEU point gain. The impact is most pronounced in high-similarity scenarios; for sentences with an FMS between 0.9 and 1.0, the BLEU score increased from 43.97 to 77.67.

Comparative performance (BLEU) across different Fuzzy Match Score (FMS) intervals.

Importantly, the gating mechanism ensures robustness. When TM matches are of low quality (low FMS), the gate "closes," and the model relies more on the source encoder, preventing the introduction of noise from irrelevant TM entries. Analysis shows that as the quality of the TM match increases, the gate opens wider to allow more information through.

Conclusion

NMT-GTM successfully bridges the gap between neural models and symbolic translation memories. By using a gating mechanism to regulate the flow of external information, the model acts as a professional assistant that knows when to follow a reference and when to ignore it. Future work will focus on reducing the computational overhead of the dual-encoder architecture and exploring the model's performance in less repetitive, more creative domains.

Summary updated

BibTeX
@inproceedings{cao2018encoding,
  author = {Qian Cao and Deyi Xiong},
  title = {{Encoding Gated Translation Memory into Neural Machine Translation}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2018},
  doi = {10.18653/v1/d18-1340},
}
Figure