Standard Neural Machine Translation (NMT) systems typically translate sentences in isolation. While context-aware NMT aims to resolve ambiguities—such as pronoun gender or lexical consistency—by incorporating surrounding sentences, these models often suffer from a "context bottleneck." Despite having the architectural capacity to utilize context, models frequently ignore it, relying solely on the immediate source sentence. This paper, presented at ACL 2021, introduces a formal metric to quantify this behavior and a novel training technique to overcome it.
Quantifying Context Usage: CXMI
A major hurdle in document-level NMT has been the lack of a general-purpose metric for context reliance. Previous evaluations relied on narrow "contrastive sets" that do not reflect general translation behavior. To address this, the authors propose Conditional Cross-Mutual Information (CXMI).
CXMI measures the "information gain" provided by context ($C$). It is calculated as the difference in cross-entropy between a model given only the current source sentence ($X$) and the same model given both $X$ and $C$. If the model's confidence in the correct translation ($Y$) increases when $C$ is present, the CXMI score rises, providing a clear signal of context utility.
COWORD Dropout: Training for Context Awareness
The authors observe that simply providing context is insufficient; models are often "lazy" and ignore external signals if the local source sentence is perceived as sufficient. To counter this, they introduce COWORD Dropout (Context-aware Word Dropout).
During training, words in the current source sentence are randomly replaced with a [MASK] token, while the context sentences remain intact. This forces the model to "look around" at the context to recover missing information, effectively training the model to prioritize contextual cues. This inductive bias ensures the model develops the necessary "muscles" for document-level understanding.
Key Insights and Results
The study revealed several critical aspects of how NMT models handle context:
- Target Context vs. Source Context: Models generally derive more utility from previous target sentences (the model's own previous outputs) than from previous source sentences.
- Diminishing Returns: Context usage does not scale linearly. Most benefits come from the immediately preceding sentence; adding more than 2-3 sentences of context can introduce noise that actually decreases CXMI.
- Performance Gains: COWORD dropout consistently increased CXMI across various context sizes. On the IWSLT2017 EN-DE task, BLEU scores improved from 26.36 to 27.72.
Discourse Mastery
The most significant improvements were observed in discourse-specific tasks like pronoun resolution. On the ContraPro dataset, the COWORD-boosted model increased pronoun translation accuracy from ~43% to ~66%.
Conclusion
By providing both a way to measure context usage (CXMI) and a method to increase it (COWORD dropout), this research offers a path forward for more consistent and accurate document-level translation. CXMI serves as a valuable "litmus test" for context-awareness, potentially applicable to other fields like dialogue systems and document summarization.
Summary updated