CoDoNMT: Modeling Cohesion Devices for Document-Level Neural Machine Translation

Yikun Lei, Yuqi Ren, Deyi XiongCOLING 2022

Introduction

Neural Machine Translation (NMT) has traditionally focused on sentence-level translation, often ignoring the broader context of a document. This isolation leads to translations that, while locally accurate, lack global coherence. Common issues include inconsistent terminology for the same entity or incorrect pronoun resolution (anaphora). While some document-level models attempt to incorporate context, they often struggle to distinguish relevant linguistic cues from noise.

Methodology: Explicit Cohesion Modeling

The proposed CoDoNMT framework addresses these challenges by explicitly modeling "cohesion devices"—linguistic elements like word repetitions (reiteration) and coreference links. The architecture enhances the standard Transformer with two novel components:

Cohesion Device Masking (CoDM)

CoDM identifies cohesion devices within a sentence and masks them. The model is then tasked with predicting these masked tokens using information from preceding sentences. This auxiliary task forces the encoder to learn and utilize inter-sentential dependencies actively.

Cohesion Attention Focusing (CoAF)

To ensure these devices are translated accurately, CoAF introduces a "soft" attention mask. When processing a cohesion device, the model is encouraged to focus its attention on related devices in the prior context, effectively "pinpointing" the necessary information.

The CoDoNMT architecture integrates Cohesion Device Masking and Cohesion Attention Focusing to capture inter-sentential dependencies.

Exposure Bias Mitigation

To bridge the gap between training (using ground-truth context) and inference (using model-generated context), the authors employ a strategy that mixes ground-truth and predicted words during the training phase.

Experimental Results

CoDoNMT was evaluated on three major benchmarks: TED (English-German), OpenSubtitles (English-Russian), and Europarl7 (English-German).

Performance and Discourse Accuracy

The model achieved state-of-the-art results, with an average BLEU score of 26.82, significantly outperforming the sentence-level baseline of 24.83. More importantly, on targeted linguistic contrastive tests, CoDoNMT showed superior handling of discourse phenomena, reaching 89.4% accuracy on Deixis and 62.3% on Lexical Cohesion.

Efficiency

Despite its performance gains, CoDoNMT remains efficient. With 50M parameters, it outperforms larger models (up to 91M parameters), demonstrating that targeted linguistic modeling is more effective than simple scaling.

Key Insights

A critical finding is the effectiveness of "soft" constraints. Empirical results indicate that a moderate application of the attention mask ($P_m = 0.5$) yields better results than the baseline ($P_m = 0.0$). This balance allows the model to prioritize cohesion while maintaining the flexibility to process other contextual information.

Impact of the probability threshold $P_m$ on BLEU scores for the TED dataset, showing the benefit of soft attention constraints.

Conclusion and Future Work

CoDoNMT demonstrates that explicit modeling of cohesion devices is a powerful approach for document-level NMT. Future research will focus on reducing dependency on external linguistic tools (like CoreNLP) and expanding the model to capture more complex rhetorical relations such as contrast or causality.

Summary updated

BibTeX
@inproceedings{lei2022codonmt,
  author = {Yikun Lei and Yuqi Ren and Deyi Xiong},
  title = {{CoDoNMT: Modeling Cohesion Devices for Document-Level Neural Machine Translation}},
  booktitle = {International Conference on Computational Linguistics},
  year = {2022},
}
Figure