[Paper Review] Towards Making the Most of Context in Neural Machine Translation
This paper proposes a unified neural machine translation framework that explicitly models both local sentence context and global document context in a flexible, end-to-end manner, enabling effective translation across documents of any length—including single sentences. The model outperforms Transformer baselines and prior document-level NMT systems by up to 2.1 BLEU, demonstrating that larger context consistently improves translation quality when properly leveraged.
Document-level machine translation manages to outperform sentence level models by a small margin, but have failed to be widely adopted. We argue that previous research did not make a clear use of the global context, and propose a new document-level NMT framework that deliberately models the local context of each sentence with the awareness of the global context of the document in both source and target languages. We specifically design the model to be able to deal with documents containing any number of sentences, including single sentences. This unified approach allows our model to be trained elegantly on standard datasets without needing to train on sentence and document level data separately. Experimental results demonstrate that our model outperforms Transformer baselines and previous document-level NMT models with substantial margins of up to 2.1 BLEU on state-of-the-art baselines. We also provide analyses which show the benefit of context far beyond the neighboring two or three sentences, which previous studies have typically incorporated.
Motivation & Objective
- To address the limitations of existing document-level NMT models that fail to fully exploit global context and cannot handle single-sentence inputs.
- To design a unified architecture that supports both sentence-level and document-level translation without separate training regimes.
- To investigate whether increasing context length improves translation quality beyond the commonly assumed optimal window of 2–3 sentences.
- To enable robust, context-aware translation that maintains discourse consistency (e.g., anaphora, tense, ellipsis) across longer documents.
Proposed method
- The model uses a dual-encoding mechanism: it independently encodes the local sentence context and the global document context before fusing them via a context fusion gate.
- The context fusion gate dynamically balances local and global representations at each layer, reducing sensitivity to noisy or lengthy context.
- The decoder incorporates partially generated target-side translations as a form of global target context, enabling autoregressive generation with awareness of future content.
- The architecture is trained end-to-end on standard sentence-level and document-level datasets without requiring separate data splits or fine-tuning.
- It employs segment-level relative attention to model inter-sentence dependencies, visualizing that distant and adjacent sentences are both attended to, with future sentences receiving stronger attention.
- Transfer learning is applied using pre-trained source and target language models to improve performance, especially when document-level data is scarce.
Experimental results
Research questions
- RQ1Can a single NMT model effectively handle documents of arbitrary length, including single sentences, without sacrificing performance?
- RQ2Does increasing the size of the document context lead to improved translation quality, or does noise in long contexts degrade performance?
- RQ3How do attention mechanisms in the proposed model distribute attention across source and target sentences, and what patterns emerge in context utilization?
- RQ4To what extent does the model resolve discourse phenomena such as anaphora, lexical consistency, and ellipsis compared to context-agnostic models?
- RQ5Can the model’s attention patterns reveal meaningful insights into how global context is used during translation?
Key findings
- The proposed model achieves a 2.1 BLEU point improvement over the strongest baseline on the TED Zh-En dataset, demonstrating state-of-the-art performance.
- On the IWSLT2017 En-Ro and IWSLT2017 En-Zh benchmarks, the model outperforms previous document-level NMT models by 1.5–2.0 BLEU points.
- The model maintains strong performance on single-sentence inputs, unlike prior context-aware models that degrade without document context.
- Analysis shows that the model attends to both immediate neighbors and distant sentences, with future sentences receiving stronger attention, indicating effective long-range context utilization.
- The model significantly improves accuracy on discourse phenomena: 61.3% for deixis, 46.1% for lexicon consistency, 61.0% for ellipsis (inflection), and 35.6% for ellipsis (VP), outperforming the baseline.
- Transfer learning with source and target pre-training boosts performance to 21.3 BLEU on TED Zh-En, showing that data scarcity can be mitigated with pre-training.
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.