Standard machine translation systems suffer from "tunnel vision." By translating one sentence at a time, they lose the thread of the broader conversation, leading to inconsistent word choices, mismatched pronoun genders, and broken morphological agreement. While early context-aware models focused on looking further back into the source text, a growing body of research suggests that the most critical signal for a coherent translation often lies in the target-side history—the words the model has already generated in the output language.
The Consistency Gap
When a model translates a document, it must maintain "lexical cohesion." If a source word like bank is translated as finanční instituce (financial institution) in the first sentence, it shouldn't suddenly switch to břeh (river bank) in the second.
Deyi Xiong and colleagues noted in 2013 that relying solely on previously generated target words is often insufficient because the model needs to know which source "triggers" caused those choices. However, Jörg Tiedemann and his team demonstrated that simply prepending previous target-side sentences to the current input (a method called concatenation) often yields better consistency than using source-side context alone. This suggests that the model’s primary job in document-level translation is to remain consistent with its own previous decisions.
Mechanisms for Contextual Awareness
Integrating this history is not as simple as expanding the input window. Researchers have explored several architectural paths to balance the influence of the current sentence with its surrounding context:
- Discriminative Classifiers: Ales Tamchyna and Alexander Fraser integrated high-speed classifiers into the decoding process. By looking at the gender or case of previously generated words, the system can select the correct inflected forms for subsequent words, which is vital for morphologically rich languages like Czech.
- Gated Fusion: Rather than forcing the model to attend to everything, Shaohui Kuang and Deyi Xiong proposed inter-sentence gate models. These gates act as a filter, selectively fusing information from the preceding sentence into the current decoding step only when the local context is ambiguous.
- Adaptive Weighting: Yachao Li and Junhui Li observed that the need for context shifts word-by-word. When starting a new phrase, the model relies on the source text; however, for subsequent words within that phrase, it relies almost entirely on the target-side context it just created.
The Challenge of Sparse Signals
A persistent problem in this field is that models often ignore the context they are given. Because most sentences in a training set can be translated reasonably well in isolation, the "signal" to look at surrounding sentences is sparse.
To combat this, Marco Dinarelli and Laurent Besacier developed the "Divide and Rule" (d&r) strategy. By artificially splitting sentences into segments during pre-training, they force the model to rely on surrounding context to resolve broken syntactic links. This "forces" the model to learn the value of context before it is even tasked with document-level translation.
Is Long-Range History Necessary?
While much work focuses on expanding context, some researchers ask if we are over-engineering the solution. Hao Zhou and Zhaopeng Tu revisited the Markov property, suggesting that a decoder might only need to look at the last few words to maintain fluency, provided the source-side context is sufficiently captured.
However, evidence from ACL 2021 suggests that neural models naturally prioritize target-side history over source context when resolving discourse-level ambiguities like pronoun gender. This indicates that the "flow" of the target language is often the most reliable anchor for a model's decision-making.
Future Directions in LLMs
As the field shifts toward Large Language Models (LLMs), the problem of context integration has evolved into a prompting challenge. Xinglin Lyu and colleagues introduced DeMPT, which uses multi-phase prompt tuning to separate inter-sentence and intra-sentence encoding. This ensures that LLMs, which are prone to treating all input tokens with equal priority, learn to distinguish between the immediate sentence they are translating and the historical target-side context required for document-level coherence.