Introduction
Neural Machine Translation (NMT) has seen significant advancements, yet a persistent gap remains between how models are trained and how they are evaluated. Most NMT systems are optimized using Maximum Likelihood Estimation (MLE) or sequence-level objectives that treat sentences as isolated units. However, evaluation typically relies on document-level metrics like BLEU or TER. This "metric gap" often results in models that miss document-level nuances such as lexical consistency and pronoun agreement.
This paper introduces Document-level Minimum Risk Training (Doc-MRT), a novel training objective that allows models to optimize directly for document-level metrics by aggregating sentence samples into "pseudo-documents" within training batches.
The Metric Gap and Minimum Risk Training
Standard training objectives often suffer from the "zero-score" problem: at the sentence level, metrics like BLEU can frequently return zero for short or difficult sentences, providing a poor gradient for learning. Minimum Risk Training (MRT) addresses this by minimizing the "expected risk" (average error) across a set of sampled candidate translations. While effective, traditional MRT is limited to individual sequences.
Doc-MRT extends this concept by treating an entire mini-batch of sentences as a single document. By calculating risk over larger text aggregates, the training signal becomes smoother and more robust, effectively bridging the gap between training objectives and evaluation metrics.
Methodology: Ordered Document Sampling
A significant challenge in document-level MRT is the combinatorial explosion of possible document configurations. If a batch contains $S$ sentences and each sentence has $N$ samples, there are $N^S$ possible document combinations—far too many to compute efficiently.
To solve this, the authors propose Ordered Document Sampling. Instead of random combinations, they sort the $N$ samples for each sentence (e.g., by their individual BLEU scores) and concatenate the $n$-th best sample of every sentence to form $N$ diverse "documents." This strategy ensures a wide range of scores and a stable gradient for training.
Experimental Results
The researchers evaluated Doc-MRT on English-to-German (En-De) translation using WMT19 data and Grammatical Error Correction (GEC) tasks using JFLEG and CoNLL 2014 benchmarks.
NMT Performance and Sample Efficiency
One of the most striking findings was the efficiency of the Doc-MRT approach. Previous research into sequence-level MRT suggested that at least 20 samples per sentence were required for significant gains. In contrast, Doc-MRT achieved superior results with as few as 8 samples per sentence.
As shown in the results, Doc-MRT (ordered) consistently outperformed both the MLE baseline and standard Seq-MRT. Notably, it demonstrated high stability even at $N=4$, making it a computationally efficient alternative for researchers with limited hardware resources.
Grammatical Error Correction
In GEC tasks, where context is vital for correcting subtle errors, Doc-MRT reached a 51.4 GLEU score on the JFLEG dataset. This outperformed both the baseline and sequence-level objectives, highlighting the method's versatility across different sequence-to-sequence tasks.
Conclusion
Doc-MRT successfully addresses the mismatch between sentence-level training and document-level evaluation. By utilizing ordered sampling to create pseudo-documents, the method provides a smoother training signal and achieves state-of-the-art results with significantly fewer samples than traditional MRT. While the approach currently requires a pre-trained MLE model to be effective, it represents a major step toward more context-aware and robust neural machine translation systems.
Summary updated