Abstract
Standard neural machine translation (NMT) systems often translate sentences in isolation, leading to document-level inconsistencies. This research identifies three primary linguistic sources of these errors—deixis, ellipsis, and lexical cohesion—and introduces CADec (Context-Aware Decoder), a novel two-pass model. CADec improves consistency on targeted benchmarks without sacrificing general translation quality, even when document-level training data is limited.
The Problem: Context-Agnostic Translation
Most modern NMT systems are context-agnostic, meaning they process one sentence at a time. While this approach produces grammatically correct individual sentences, it often fails at the document level. For instance, a system might inconsistently translate the pronoun "you" between formal and informal forms in Russian (the T-V distinction) or use different translations for the same entity name across a single scene.
Two major hurdles have historically hindered the development of context-aware NMT:
- The Evaluation Gap: Standard metrics like BLEU are insensitive to document-level consistency. A model can significantly improve logic and cohesion while maintaining the same BLEU score.
- Data Scarcity: Context-aware models typically require massive document-level parallel corpora, which are far rarer than individual parallel sentence pairs.
Methodology: The CADec Architecture
To address these issues, the authors propose CADec, a two-pass framework designed to refine translations using surrounding context.
- Pass 1: A standard, context-agnostic Transformer (the "base model") generates an initial translation.
- Pass 2: The CADec model takes this initial output and refines it by attending to the context of the three preceding source and target sentences.
To train CADec effectively on limited document-level data, the authors employed a "denoising" strategy. During training, the model was fed either the base model's translation or a corrupted version of the reference translation. This taught the model to rely on the first pass for general meaning while looking to the context to fix specific consistency errors.
Training and the BLEU Paradox
A key insight from this research is that standard stopping criteria based on BLEU can be misleading for context-aware models. As shown in the training curves below, while the general BLEU score plateaus or even slightly declines after a certain point, the model's accuracy on specific linguistic phenomena (like lexical cohesion) continues to improve.
Key Results
The study utilized the English-Russian OpenSubtitles2018 corpus and introduced a new targeted test suite of 6,000 examples. CADec demonstrated substantial improvements across all targeted categories:
- General Quality: CADec maintained a BLEU score of 32.38, nearly identical to the context-agnostic baseline (32.40).
- Deixis: Accuracy in handling pronouns and politeness levels rose from 50.0% to 81.6%.
- Lexical Cohesion: Accuracy in maintaining consistent entity naming improved from 45.9% to 58.1%.
- Ellipsis: In verb phrase ellipsis tasks, accuracy jumped from 28.4% to 80.0%.
While simpler "concatenation" baselines (which feed context directly into the input) showed some improvements, they often suffered a significant drop in overall BLEU score (~0.8 points). CADec’s two-pass approach avoids this trade-off.
Conclusion
CADec proves that context-aware translation can be achieved without massive document-level datasets or sacrificing general translation quality. By focusing on the "Big Three" of inconsistency—deixis, ellipsis, and lexical cohesion—this model moves NMT closer to human-level document understanding. Future work may involve expanding these techniques to other language pairs and exploring dynamic context windows for longer-range dependencies.
Summary updated