Improving Unsupervised Neural Machine Translation via Training Data Self-Correction

Jinliang Lu, Jiajun ZhangCOLING 2024

Introduction

Unsupervised Neural Machine Translation (UNMT) has emerged as a powerful paradigm for translating between languages without parallel corpora. However, UNMT typically relies on back-translation (BT), where a model translates monolingual data into a target language and then uses that translation as a synthetic "ground truth" to train itself. This creates a "chicken-and-egg" problem: early in training, the model produces low-quality, "hallucinated" translations. Training on these errors reinforces incorrect alignments, limiting the model's final performance.

This paper proposes a novel self-correction mechanism that identifies and fixes translation errors on-the-fly. By leveraging the high-quality token-level knowledge already present in the model's cross-lingual embedding tables, the authors break the cycle of error propagation.

Methodology: The Self-Correction Pipeline

The core of the proposed method is a three-step pipeline designed to clean synthetic training data before the model learns from it.

The three-step self-correction pipeline: Alignment Matrix Estimation, Translation-Mistake Detection, and Continuous Semantic Modification.
  1. Alignment Matrix Estimation: To correct a sentence, the model must first determine which source tokens correspond to which generated tokens. The authors formulate this as an Optimal Transport problem, calculating the semantic "cost" of moving information between tokens to find the most likely alignment.
  2. Translation-Mistake Detection: The model compares each generated token against a "real-time dictionary" derived from its own cross-lingual embedding table. If a token's similarity to its aligned source token is significantly lower than the potential similarity suggested by the embedding table, it is flagged as a mistake.
  3. Continuous Semantic Modification: Rather than a discrete replacement, the model performs a "soft" correction. It interpolates the embedding of the incorrect token with the embedding of the "correct" token found in the embedding table. This creates a semantically cleaner training example while maintaining the continuous nature of the neural representation.

Phase 2: Consistency Training

As training progresses and the model converges, the mechanism shifts from error correction to semantic augmentation. The authors introduce a consistency loss (KL-divergence) to ensure that the model's output remains stable whether it is processing the original noisy translation or the corrected version.

Experimental Results

The researchers evaluated the self-correction method across several standard benchmarks, including WMT14 (En-Fr), WMT16 (En-De, En-Ro), and WMT17 (En-Zh). They tested the approach on a variety of architectures, including XLM, MASS, and large-scale models like XGLM (up to 7.5B parameters).

Training Dynamics and Quality

The impact of self-correction is visible in both the training loss and the quality of the generated back-translations. By providing cleaner supervision, the modified loss function leads to more stable convergence and higher-quality synthetic data.

Comparison of training loss and back-translation quality over time, showing the effectiveness of the modified loss function.

Key findings include:

  • Performance Gains: On the English-Romanian task, the method improved XLM's performance by +1.7 BLEU points.
  • LLM Scaling: When applied to the 7.5B parameter XGLM model for English-to-Chinese translation, the COMET score—a metric highly correlated with human judgment—increased from 82.68 to 83.28.
  • Orthogonality: The method is compatible with other UNMT enhancements, such as Quality Filtering (QF) and Self-Training (ST), allowing for cumulative performance improvements.

Discussion and Conclusion

The primary insight of this work is that pre-trained embedding tables contain a "hidden goldmine" of token-level translation knowledge that often exceeds the model's sentence-level generation capabilities early in training. By extracting this latent knowledge, the authors provide a form of internal supervision that significantly improves UNMT.

While the method introduces a computational overhead of approximately 35-40% due to the "double forward" pass in the consistency phase, it remains more efficient than multi-model data augmentation strategies. Future work may focus on extending these token-level corrections to handle more complex grammatical and structural errors at the sentence level.

Summary updated

BibTeX
@inproceedings{lu2024improving,
  author = {Jinliang Lu and Jiajun Zhang},
  title = {{Improving Unsupervised Neural Machine Translation via Training Data Self-Correction}},
  booktitle = {International Conference on Computational Linguistics},
  year = {2024},
}
Figure