Abstract
Modern Neural Machine Translation (NMT) systems often fail to utilize available context, such as surrounding sentences or images, because the immediate source sentence provides a sufficiently strong signal. This paper addresses this "lazy" context utilization problem by proposing a novel learning objective rather than a new architecture. We introduce a multi-level pairwise ranking loss that regularizes the model to reward the use of additional context. Evaluation on document-level translation shows significant improvements in both translation quality (BLEU) and context sensitivity.
Introduction
Standard NMT translates sentences in isolation. While "larger-context" NMT aims to incorporate document-level or multimodal information, models frequently ignore this extra data. The signal from the source sentence is dominant, making the subtle benefits of context easy to overlook. Previous attempts to solve this focused on architectural changes, but this work argues that the learning objective is the primary bottleneck. The goal is to move from "building a better box" to teaching the model how to use the tools it already has.
Methodology
The authors propose a Context Regularization term based on a multi-level pairwise ranking loss. The core idea is that a model should assign a higher probability to a correct translation when it has the correct context than when it has no context (or incorrect context).
The loss operates at three levels:
- Token level: The probability of a specific word.
- Sentence level: The log-probability of the whole sentence.
- Data level: The aggregate score across a batch.
By using a margin ranking loss for each level, the model is "nudged" to ensure context provides a measurable boost in confidence without over-relying on it. To estimate performance without context, the authors use a shuffling technique where contexts are randomized within a minibatch, providing a "context-less" baseline for the ranking loss.
Experimental Setup
The researchers evaluated their approach on document-level translation using the OpenSubtitles2018 English → Russian dataset. They used a subset of 2 million examples for training, following standard benchmarks. The model architecture was a modified Transformer, and Byte Pair Encoding (BPE) with 32k merge operations was used for vocabulary management.
Key Results and Analysis
The proposed regularization significantly enhanced the model's sensitivity to context across several metrics:
- Translation Quality: The proposed context-aware model achieved a BLEU score of 29.91, outperforming both the baseline (29.16) and a standard context model trained without the new loss (29.34).
- Context Sensitivity: To prove the model was actually utilizing the extra information, the authors used an intrinsic metric, $\Delta^D_{BLEU}(\theta)$, which measures the performance gap between using correct context and random context. This metric jumped from 0.40 in the standard context model to 3.74 with the new regularization.
- Robustness and Sensitivity: When provided with random or incorrect context, the regularized model's performance dropped significantly more than the baseline. While this might seem like a drawback, it actually serves as a "sensitivity test," proving the model has successfully learned to incorporate specific contextual information into its decision-making process.
Conclusion
This work demonstrates that improving context utilization in NMT is primarily a matter of the training signal rather than architectural complexity. By penalizing "lazy" behavior through a multi-level ranking loss, models become significantly more document-aware. Future work includes refining the estimation of context-less scores and applying this ranking loss approach to multimodal tasks, such as image-guided translation.
Summary updated