Reference Network for Neural Machine Translation

Han Fu, Chenghao Liu, Jianling Sun

Abstract

Standard Neural Machine Translation (NMT) models typically process sentences in isolation, ignoring the broader patterns and paraphrasing cues available within a training corpus. This paper introduces the Reference Network (RefNet), a lightweight architecture designed to provide NMT decoders with a "global memory." By utilizing Local Coordinate Coding (LCC), RefNet compresses an entire training corpus into a set of "anchor points" that act as a reference library during translation. Evaluations on NIST Chinese-English and WMT English-German benchmarks demonstrate that RefNet significantly improves translation accuracy (BLEU scores) with minimal computational overhead and negligible impact on decoding speed.

Introduction

Traditional NMT models translate one sentence at a time, often leading to inconsistency and ambiguity, especially when encountering rare or technical phrases. While "document-level" NMT models attempt to address this by looking at surrounding context, they are generally limited to a very narrow window of one or two preceding sentences. Furthermore, these models struggle when sentences are submitted in isolation, such as in web-based translation queries.

RefNet addresses these limitations by providing a "global" reference book. Instead of relying on immediate local context, it draws upon patterns found across the entire training corpus. This approach allows the model to maintain consistency and resolve ambiguities by relating the current input to common paraphrases and translation mappings learned during training.

Methodology

The core innovation of RefNet is the application of Local Coordinate Coding (LCC) to represent the semantic space of a corpus as a high-dimensional manifold approximated by a fixed number of anchor points. This prevents the "memory explosion" associated with storing every training sentence.

RefNet Architectures

The authors propose two distinct versions of the network:

  1. M-RefNet (Monolingual): This variant acts as a global paraphrasing tool. It represents the latent space of the source language, providing a context vector that helps the decoder understand the current sentence by its relationship to common source-side patterns.
  2. B-RefNet (Bilingual): This variant functions as a global translation dictionary. It learns mappings from source and target contexts to specific target word embeddings, suggesting "referable" target words based on corpus-wide translation history.
The RefNet architecture showing the integration of average pooling, LCC anchor points, and the attention mechanism to generate global context vectors.

To ensure efficiency, the model uses a tri-nonlinear score function for the attention mechanism over anchor points. Training follows a stage-wise strategy where a standard NMT model is first pre-trained, followed by the addition and fine-tuning of RefNet components.

Experimental Results

The researchers evaluated RefNet on two major benchmarks: the NIST Chinese-English (Zh-En) dataset (1.25M pairs) and the WMT English-German (En-De) dataset (4.5M pairs).

Accuracy and Efficiency

RefNet demonstrated substantial improvements in translation quality. On the Zh-En task, B-RefNet improved the baseline BLEU score from 32.81 to 35.50. On the En-De task, it improved the score from 24.37 to 26.16.

Crucially, these gains do not come at the cost of performance. M-RefNet adds only 9.3% more parameters and maintains a decoding speed of 113.26 words/second, nearly matching the baseline NMT (114.21 words/second) and significantly outperforming existing document-level models like DC-NMT (54.07 words/second).

Comparison of translation quality (BLEU) and averaged translation length across varying source sentence lengths for NMT, M-RefNet, and B-RefNet.

Robustness

As shown in the length analysis, RefNet consistently outperforms the baseline across all sentence lengths. It is particularly effective at providing accurate collocations for difficult fragments, ensuring that the generated translations remain fluent and contextually appropriate regardless of the input length.

Conclusion

RefNet provides a powerful yet efficient method for incorporating global corpus knowledge into NMT. By using LCC to create a compressed "reference book," the model improves translation quality for both document-level and isolated sentence inputs. Future work will focus on integrating these concepts into the Transformer architecture and exploring dynamic references that can adapt to specific document styles or specialized domains.

Summary updated

BibTeX
@inproceedings{fu2019reference,
  author = {Han Fu and Chenghao Liu and Jianling Sun},
  title = {{Reference Network for Neural Machine Translation}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2019},
  doi = {10.18653/v1/p19-1287},
}
Figure