Memory-augmented Neural Machine Translation

Yang Feng, Shiyue Zhang, Andi Zhang, Dong Wang, Andrew Abel

Abstract

Neural Machine Translation (NMT) often fails on rare words because it prioritizes frequent patterns, leading to "meaning drift." This paper introduces M-NMT, a hybrid architecture that equips a standard neural model with an external memory—essentially a digital dictionary—to store and retrieve specific translation rules for infrequent and out-of-vocabulary (OOV) words. By combining the semantic depth of NMT with the "memorization" strengths of statistical methods, the researchers achieved gains of up to 9.0 BLEU points on Chinese-English translation tasks.

The Challenge: Rare Words and "Meaning Drift"

While NMT has revolutionized translation, it suffers from a "long tail" problem. Because NMT models share parameters across all words, they tend to overfit to frequent words and "forget" how to handle rare ones. This is a byproduct of Zipf’s law: a few words appear constantly, while the vast majority appear rarely.

When an NMT system encounters a rare word like "chromosomes" (染色体), it might lack a strong internal representation for it and instead produce a high-probability but irrelevant word, a phenomenon the authors call "meaning drift." Conventional Statistical Machine Translation (SMT) is actually better at this specific task because it uses discrete phrase tables (symbolic knowledge) that don't get "smoothed out" by frequent data. The authors sought to bridge this gap by creating a neural-symbolic hybrid.

Methodology: The M-NMT Architecture

The proposed Memory-augmented NMT (M-NMT) architecture consists of two main parts:

  1. The Neural Component: A standard attention-based RNN (specifically the Bahdanau et al. encoder-decoder model) that handles the general "flow" and semantics of the sentence.
  2. The Memory Component: An external storage system that acts like a dictionary.
  3. Global Memory: A static database of source-to-target word mappings derived from SMT phrase tables or dictionaries.
  4. Local Memory: For every input sentence, the system pulls relevant entries from the Global Memory to create a "cheat sheet" for that specific context.
  5. Memory Attention: A separate, trainable attention mechanism that decides which word in the local memory is the most likely translation at each step.
The M-NMT architecture featuring global, local, and merged memory components.

The final translation is a weighted combination (interpolation) of the neural model’s prediction and the memory component’s suggestion. This allows the system to rely on the "dictionary" when it encounters a rare word it isn't sure about.

Experimental Setup

The researchers evaluated their model on two Chinese-to-English translation tasks:

  • IWSLT Corpus: A relatively small dataset (44K sentences) focused on tourism and travel.
  • NIST Corpus: A much larger dataset (1M sentence pairs) from various LDC corpora.
  • Memory Data: To build the memory, they used the GIZA++ toolkit to align words and extract dictionaries from the training data.

Key Results and Analysis

The M-NMT model significantly outperformed the baseline NMT across the board. On the small IWSLT task, M-NMT improved the BLEU score by 9.0 points (from 43.9 to 52.9). On the larger NIST task, it improved by 2.7 points.

BLEU score comparison between baseline NMT and various M-NMT configurations.

Beyond aggregate scores, frequency analysis showed that the biggest improvements occurred in sentences containing the most infrequent words. In tests specifically targeting out-of-vocabulary words, M-NMT achieved a recall rate of 28-40%, whereas the baseline NMT essentially scored zero. Qualitative examples confirmed that M-NMT effectively corrects meaning drift, correctly identifying technical terms like "chromosomes" where standard NMT might hallucinate unrelated phrases like "human history."

Discussion and Future Work

The paper demonstrates a powerful Neural-Symbolic Synergy. Neural models are excellent at "general rules" (grammar, fluid semantics), while symbolic models (like dictionaries/SMT tables) are better at "special cases" (rare nouns, technical terms).

However, limitations remain. The current implementation uses a fixed interpolation parameter to balance the neural and memory components; dynamic optimization of this balance could yield further gains. Additionally, while the memory currently focuses on single-word mappings, extending it to multi-word expressions is a key goal for future research.

Summary updated

BibTeX
@inproceedings{feng2017memory,
  author = {Yang Feng and Shiyue Zhang and Andi Zhang and Dong Wang and Andrew Abel},
  title = {{Memory-augmented Neural Machine Translation}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2017},
  doi = {10.18653/v1/d17-1146},
}
Figure