[Paper Review] Using Whole Document Context in Neural Machine Translation
This paper proposes a simple, non-architectural method to enhance neural machine translation by incorporating full-document context via pre-computed document embeddings. Using SWEM-aver to average word vectors across entire documents and injecting them into a Transformer model, the approach improves translation coherence and resolves cross-sentence ambiguities, achieving up to 0.85 BLEU gain on English-German and over 1 BLEU on English-French and French-English tasks.
In Machine Translation, considering the document as a whole can help to resolve ambiguities and inconsistencies. In this paper, we propose a simple yet promising approach to add contextual information in Neural Machine Translation. We present a method to add source context that capture the whole document with accurate boundaries, taking every word into account. We provide this additional information to a Transformer model and study the impact of our method on three language pairs. The proposed approach obtains promising results in the English-German, English-French and French-English document-level translation tasks. We observe interesting cross-sentential behaviors where the model learns to use document-level information to improve translation coherence.
Motivation & Objective
- To address the lack of document-level context in standard NMT, which leads to inconsistent translations.
- To explore a non-invasive, pre-processing-based method that allows any NMT model to benefit from full-document context without architectural changes.
- To evaluate whether whole-document embeddings can improve translation of context-dependent phenomena like pronoun resolution and lexical disambiguation.
- To demonstrate that document-level context significantly enhances translation quality, especially in ambiguous or discourse-sensitive cases.
Proposed method
- Pre-compute document embeddings using the SWEM-aver method, which averages all word vectors in a document to form a single fixed-size vector.
- Use pre-trained word embeddings from a baseline Transformer model to ensure consistency between word and document embeddings during training.
- Inject document embeddings into the source input of the Transformer encoder by concatenating them with the input token embeddings.
- Train the enhanced model (Document model) without fine-tuning embeddings to preserve the semantic link between word and document representations.
- Use document tags in the source side of the training data to associate each sentence with its full document context.
- Apply the method to three language pairs: English-German, English-French, and French-English, using standard benchmark datasets.
Experimental results
Research questions
- RQ1Can injecting full-document context via pre-computed embeddings improve neural machine translation performance?
- RQ2Does the proposed method effectively resolve cross-sentence ambiguities such as pronoun reference and lexical disambiguation?
- RQ3How does the performance gain vary across different language pairs, especially in cases requiring discourse-level understanding?
- RQ4Can a non-architectural, pre-processing-based method achieve significant improvements without modifying the NMT model structure?
Key findings
- The proposed method achieved a BLEU improvement of up to 0.85 points on the English-German translation task.
- On English-French and French-English tasks, the model exceeded a 1 BLEU point improvement, indicating strong gains in complex, context-sensitive translation.
- The Document model correctly resolved ambiguous pronouns such as 'lui' (her vs. him) and 'elle' (she vs. it), where the baseline model failed due to lack of context.
- In cases involving formal/informal pronouns (e.g., 'vous' vs. 'tu'), the Document model correctly selected 'vous' when context indicated formality, while the baseline chose 'tu'.
- The method demonstrated cross-sentential behavior, where the model learned to use document-level information to improve coherence and resolve long-range dependencies.
- Even in cases where both models made errors, the Document model’s predictions were more contextually plausible, indicating better reasoning over document structure.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.