Introduction
Modern Neural Machine Translation (NMT) systems predominantly operate at the sentence level, often neglecting the broader document context. This lack of "discourse awareness" frequently results in lexical inconsistency, where the same source term is translated into different target words across a single document. For instance, a person's name might be rendered as "Sun Yanzi" in one sentence and "Sun Yen-tzu" in the next. Such discrepancies confuse readers and undermine the perceived quality of professional translations, which generally adhere to the "one translation per discourse" principle.
To address this, researchers have introduced Document-Level Translation Repair (DocRepair), an automatic post-editing framework designed to harmonize terminology across a translated document.
Methodology: The DocRepair Pipeline
The proposed DocRepair model employs a specialized three-step process to identify and rectify translation glitches:
- Locating Inconsistency: The system identifies "lexical chains"—repeated words in the source text. If these words are mapped to different target terms in the initial translation, they are flagged as inconsistency triggers.
- Obtaining Candidates: For each flagged term, the system compiles a list of all translation variants found within the document. These candidates are weighted based on their frequency of occurrence.
- Lattice-Like Input & G-Transformer: Instead of a standard flat text input, the repair model uses a word lattice. This graph-based structure represents multiple translation paths for a single source word, allowing the model to evaluate different candidates within the grammatical context of the sentence.
The core of this architecture is an adapted G-Transformer. It utilizes Lattice Positions to preserve the structural relationships within the graph and Token Weights to prioritize more common translation choices from the original output.
Evaluation and Metrics
The model was rigorously tested on three major benchmarks: NIST (Chinese ↔ English), PDC (Chinese → English), and Europarl (German → English).
Beyond standard BLEU scores, the authors introduced a more nuanced metric: ref-LTCR (Reference-based Lexical Translation Consistency Ratio). While traditional consistency metrics only measure if a model is uniform, ref-LTCR verifies if the model's consistent choices align with the human reference translation, ensuring both consistency and accuracy.
Key Results
The DocRepair model demonstrated significant improvements over strong sentence-level and document-level baselines:
- Accuracy Gains: On the NIST ZH-EN task, the BLEU score rose from 48.45 to 50.28.
- Consistency Improvements: The consistency ratio (LTCR) on NIST increased from 65.25 to 69.51, while the ref-LTCR improved from 78.61 to 80.74.
- Human Evaluation: In blind tests, human evaluators preferred DocRepair's outputs over standard Transformer results in 65% of cases where a preference was stated.
Ablation studies highlighted that Lattice Position information was the most critical component for the model's success, as it allows the Transformer to correctly interpret the non-linear structure of the word lattice.
Conclusion and Future Work
By explicitly modeling inconsistencies through a word-lattice structure, the DocRepair framework effectively bridges the gap between sentence-level efficiency and document-level coherence.
However, the model currently assumes that consistency is always desirable. In literary contexts, stylistic variation (using synonyms) is often intentional. Future iterations may incorporate "confidence scores" to distinguish between errors requiring repair and stylistic choices that should be preserved. Additionally, expanding the system to handle semantic consistency (e.g., pronouns and related concepts) remains a promising avenue for research.
Summary updated