Introduction
Standard Neural Machine Translation (NMT) systems typically process text sentence-by-sentence, ignoring the broader document context. This "context-blind" approach often leads to errors in pronoun resolution and lexical inconsistency across a document. This paper introduces a novel framework to learn "contextualized" sentence representations by teaching models to predict a sentence's neighbors, an approach inspired by "skip-thought" vectors. By shifting from simply encoding context as an input to predicting context as a training objective, the authors address the primary challenge of document-level NMT: the scarcity of high-quality parallel document data.
Methodology
The authors propose two primary strategies based on the Transformer architecture to incorporate document-level awareness:
- Joint Training: This approach uses a single shared encoder with three separate decoders. While one decoder performs the standard task of translating the source sentence into the target language, the other two decoders attempt to reconstruct the previous and next sentences in the source language. This forces the encoder to capture features relevant to the surrounding document structure.
- Pre-training & Fine-tuning: Recognizing that monolingual data is more abundant than parallel data, the authors first pre-train two encoder-decoder models on massive monolingual corpora to predict neighboring sentences. During the NMT phase, the outputs of these pre-trained "context encoders" are integrated with standard word embeddings and fed into the NMT encoder.
Experimental Setup
The researchers evaluated their methods on two major translation tasks: Chinese-English (using LDC corpora) and English-German (using WMT19 data). For pre-training, they utilized massive monolingual corpora, including a 25M-sentence Chinese corpus and a 10M-sentence English corpus. Evaluation was performed using standard NIST and newstest benchmarks, focusing on BLEU score improvements and qualitative consistency.
Key Results and Insights
The proposed methods consistently outperformed the strong Transformer baseline across all benchmarks. On the Chinese-English task, the Pre-training + Fine-tuning method achieved a +1.28 BLEU improvement over the baseline.
Key insights from the study include:
- The "Skip-Thought" for Sentences: Just as Word2Vec learns word meanings by looking at neighboring words, this model learns sentence "meaning" by looking at neighboring sentences, capturing discourse-level information without complex linguistic features.
- Monolingual Data Utility: The pre-training approach demonstrates that document structure can be learned from monolingual text and successfully transferred to translation tasks, effectively mitigating the parallel data scarcity problem.
- Asymmetric Context: The authors found that using separate encoders for the "previous" and "next" sentences performed better than a single shared one, suggesting that the relationship a sentence has with its history is fundamentally different from its relationship with what follows.
Conclusion
The proposed framework successfully internalizes document structure through context prediction, leading to significant gains in translation accuracy and consistency. While the approach introduces a parameter overhead of approximately 30%, the qualitative improvements in disambiguation and terminology maintenance are substantial. Future work may explore applying this framework to the target side to ensure the translated output flows as naturally as the source document.
Summary updated