Traditional Statistical Machine Translation (SMT) systems have long been constrained by a "sentence-by-sentence" paradigm. By treating documents as collections of independent units, these systems often fail to maintain consistency or handle discourse-level phenomena. This paper introduces Docent, an open-source decoder developed at Uppsala University designed to translate entire documents as single units, enabling the integration of sophisticated document-level features.
The Document-Level Challenge
Standard decoders, such as Moses, typically rely on Dynamic Programming (DP) to build translations word-by-word or phrase-by-phrase. While efficient, DP requires an "independence assumption" where the choice of a word in one sentence cannot depend on a choice made several sentences away. This approach struggles with:
- Anaphora Resolution: Ensuring pronouns (e.g., "it," "she") correctly refer to nouns introduced in previous sentences.
- Lexical Consistency: Maintaining uniform terminology for specific concepts throughout a document.
- Discourse Cohesion: Correctly using connectors like "however" or "therefore" to maintain logical flow.
The Docent Architecture: Local Search
Docent shifts the translation paradigm from constructive building to iterative improvement. Instead of building a translation from scratch using DP, Docent employs a local search algorithm:
- Initialization: The process begins with a complete document translation, which can be randomly generated or initialized from a standard sentence-level decoder.
- Stochastic Hill Climbing: The decoder makes small, random modifications—such as swapping phrases or selecting alternative translations—and evaluates if the change improves the overall document score.
- Efficiency via Two-Step Scoring: To mitigate the computational cost of document-wide re-scoring, Docent uses a "cheap" upper-bound estimate for potential changes. If the estimate falls below a certain threshold, the change is rejected before performing a full, expensive calculation.
This framework allows the decoder to hold the entire document state in memory, granting feature models unrestricted access to any part of the source or target text at any time.
Experimental Setup and Features
The researchers evaluated Docent using the Europarl corpus (English–Swedish), comprising 1.48 million sentences for training and a test set of 20 documents (690 sentences). A key innovation of this study was the integration of readability metrics, such as the Swedish LIX score and lexical variety metrics like OVIX, directly into the decoding process to encourage simpler and more consistent output.
Results and Discussion
The evaluation focused on whether document-level features could improve consistency without sacrificing general translation quality.
As shown in the results table, the integration of document-level features (the "All" configuration) maintained stable BLEU scores (~0.243) while successfully improving readability and consistency. Specifically, the OVIX score dropped from 56.88 to 47.80, indicating significantly more consistent word usage, and the LIX score improved from 51.17 to 49.29, reflecting enhanced readability.
Qualitative Analysis
Beyond metrics, the decoder demonstrated the ability to perform complex linguistic simplifications and maintain technical consistency that sentence-level decoders often miss.
Qualitative examples highlight how the system simplifies formal expressions (e.g., "the honourable Members" to "the members") and ensures the consistent use of abbreviations like "WTO." However, the researchers also noted instances where aggressive simplification led to grammatical errors or the removal of important context, indicating that these models remain prototypes.
Conclusion and Future Work
Docent provides a vital "enabler" framework for the SMT community, offering a sandbox to test features that were previously impossible to implement. While the stochastic nature of the search means translations can vary between runs, the ability to optimize for document-wide coherence represents a significant step forward. Future work will focus on refining these models, including the use of part-of-speech tagging to target consistency efforts toward technical terminology and exploring more complex discourse phenomena like verb tense synchronization.
Summary updated