Context-Interactive Pre-Training for Document Machine Translation

Pengcheng Yang, Pei Zhang, Boxing Chen, Jun Xie, Weihua Luo

Introduction

Standard Neural Machine Translation (NMT) typically processes text sentence-by-sentence. While computationally efficient, this approach suffers from "goldfish memory," often failing to maintain document-level coherence. Issues such as lexical consistency, ellipsis resolution, and coreference tracking remain significant challenges when context is ignored. Document-level MT (Doc-MT) seeks to address these by incorporating surrounding sentences, yet it faces hurdles like bilingual document data scarcity and the tendency of models to ignore "noisy" context in favor of the immediate source sentence.

Proposed Methodology: Context-Interactive Pre-Training

To overcome these challenges, this research introduces a Context-Interactive Pre-Training framework. The core idea is to force the model to rely on surrounding context through specialized pre-training tasks before fine-tuning on specific translation objectives.

Overview of the pre-training tasks: Cross Sentence Translation (CST), Inter Sentence Generation (ISG), and Parallel Sentence Translation (PST).

The framework consists of three primary tasks:

  1. Cross Sentence Translation (CST): The model is tasked with generating a target translation while the primary source sentence is masked. This forces the encoder to extract information exclusively from the surrounding context.
  2. Inter Sentence Generation (ISG): A monolingual task where the model predicts a missing sentence within a target-language document. This teaches the decoder to model discourse flow and coherence.
  3. Parallel Sentence Translation (PST): To maintain fundamental translation capabilities, the model is also trained on large-scale sentence-level parallel corpora.

To prevent the model from losing these context-aware capabilities during the final fine-tuning stage, the authors employ Elastic Weight Consolidation (EWC). This regularization technique preserves weights identified as critical during the pre-training phase.

Experimental Setup

The model was evaluated on three major English-to-German (EN-DE) document-level benchmarks:

  • TED: Informal talk transcripts.
  • News: Articles requiring high factual and lexical consistency.
  • Europarl: Formal legislative proceedings.

Pre-training utilized Wikipedia for monolingual target data and NewsCrawl for sentence-level parallel data, with weights initialized from the mBART.CC25 model.

Key Results and Analysis

The proposed approach achieved state-of-the-art results across all benchmarks. As shown in the performance comparison, the context-interactive pre-training significantly outperforms both standard Transformers and specialized document-level architectures.

Comparison of the proposed model against various baselines across TED, News, and Europarl datasets.

The model reached an average BLEU score of 29.54, a notable improvement over the "Flat-Transformer" (27.71) and mBART+PST (28.82). Ablation studies confirmed that while PST provides a strong foundation due to data volume, the addition of CST and ISG is crucial for peak performance. Furthermore, the inclusion of EWC regularization provided a measurable boost (from 29.24 to 29.54 BLEU), highlighting the importance of protecting pre-trained contextual knowledge.

Conclusion

By explicitly training for contextual awareness through masking and discourse modeling, this framework effectively addresses the "context neglect" problem in Doc-MT. While currently focused on high-resource EN-DE translation, the methodology offers a promising path for improving document-level coherence in various natural language processing tasks and lower-resource language pairs.

Summary updated

BibTeX
@inproceedings{yang2021context,
  author = {Pengcheng Yang and Pei Zhang and Boxing Chen and Jun Xie and Weihua Luo},
  title = {{Context-Interactive Pre-Training for Document Machine Translation}},
  booktitle = {Conference of the North American Chapter of the Association for Computational Linguistics},
  year = {2021},
  doi = {10.18653/v1/2021.naacl-main.281},
}
Figure