Abstract
Document-level Neural Machine Translation (DocNMT) often suffers from a lack of parallel document data. This paper, presented at ACL 2022, proposes a multilingual approach to transfer document-level translation capabilities from "teacher" languages with rich document resources to "student" languages that only possess sentence-level data. By fine-tuning a multilingual model on a mixture of document-level and sentence-level data, the authors demonstrate that models can learn to utilize context even for languages where no parallel documents were seen during training. This "zero-shot" transfer significantly improves translation consistency and pronoun accuracy in document-poor languages.
Introduction
Standard Neural Machine Translation (NMT) typically operates on isolated sentences, ignoring the broader context of a document. This "context-blindness" leads to errors in document-level phenomena, such as incorrect pronoun gender or inconsistent terminology across sentences. While DocNMT aims to address these issues by incorporating surrounding context, it requires parallel documents—a resource far scarcer than parallel sentences. For many language pairs, such data is virtually non-existent. This research investigates whether the ability to process context can be transferred across languages within a multilingual framework.
Methodology
The researchers employ a straightforward yet effective strategy to enable cross-lingual context transfer:
- Concatenation-based DocNMT: Instead of introducing complex architectural changes, they concatenate $D$ consecutive sentences into a single sequence, allowing the model to attend to local context naturally.
- Two-Stage Training:
- Stage 1: A multilingual sentence-level model (SenNMT) is pre-trained on all available sentence-level data.
- Stage 2: The model is fine-tuned on a combination of document-level data from "teacher" languages and sentence-level data from "student" languages.
- Transfer Scenarios: The study explores two main configurations: N21 (Many-to-One), where multiple teacher languages support one student language, and 12N (One-to-Many), where a single teacher supports multiple students.
Experimental Setup
The approach was evaluated using two primary benchmarks: Europarl-7 (six European languages to/from English) and IWSLT-10 (nine languages to/from English based on TED talks). Evaluation metrics included standard BLEU scores and document-specific metrics: accuracy on contrastive test sets (specifically for pronoun selection) and a custom Pronoun F1 score.
Key Insights
- Zero-Shot Contextual Awareness: The study confirms that document-level translation capabilities are transferable. A model trained on English-German documents can improve its English-Lithuanian document translation without ever seeing a Lithuanian document pair.
- The Teacher Effect: The N21 setup consistently outperforms the 12N setup. Diverse document-level examples from multiple languages help the model internalize a more universal representation of context.
- Effectiveness of Back-Translation: Interestingly, "pseudo-parallel" documents created via back-translation from monolingual text are nearly as effective as genuine parallel documents. This suggests DocNMT can be extended to languages with limited parallel data but sufficient monolingual resources.
- Optimal Data Balancing: There is a critical balance between document and sentence data during fine-tuning. A proportion $p$ between 30% and 50% is typically the "Goldilocks zone" where context is learned without degrading overall translation quality (BLEU).
Results
The zero-shot DocNMT (N21) model achieved significant improvements in document-level accuracy. On Europarl-7 contrastive test sets, accuracy increased by 11-12 points over the sentence-level baseline for student languages. Human evaluations further supported these findings, with raters preferring the zero-shot models for their superior coherence and reduced pronoun errors.
Discussion and Future Work
While concatenation proves the concept of transfer, future work could explore more sophisticated context-aware architectures. Additionally, the current evaluation metrics like BLEU are limited in capturing document-level nuances, highlighting the need for better automatic metrics for discourse flow. Finally, investigating how linguistic similarity between teacher and student languages impacts transfer quality remains an open research question.
Summary updated