Abstract
While it has been shown that Neural Machine Translation (NMT) is highly sensitive to noisy parallel training samples, prior work treats all types of mismatches between source and target as noise. As a result, it remains unclear how samples that are mostly equivalent but contain a small number of semantically divergent tokens impact NMT training. To close this gap, we analyze the impact of different types of fine-grained semantic divergences on Transformer models. We show that models trained on synthetic divergences output degenerated text more frequently and are less confident in their predictions. Based on these findings, we introduce a divergent-aware NMT framework that uses factors to help NMT recover from the degradation caused by naturally occurring divergences, improving both translation quality and model calibration on EN-FR tasks.
Introduction: The Spectrum of Data Quality
In the development of Neural Machine Translation (NMT) systems, parallel data is the essential fuel. However, real-world corpora mined from the web are rarely perfect. Traditionally, researchers have viewed data quality through a binary lens: a sentence pair is either a perfect translation or it is "noise" to be filtered out.
This paper identifies a critical middle ground: fine-grained semantic divergences. These occur when a source and target sentence share the majority of their meaning but differ in specific details—for example, a French sentence mentioning "votre père" (your father) paired with an English sentence saying "your parent." Unlike coarse noise, these subtle mismatches contain useful signals but can mislead a model if treated as ground truth.
The Impact of Divergence on Model Behavior
Through controlled experiments using synthetic divergences (lexical substitution, phrase replacement, and subtree deletion), the authors discovered that these mismatches significantly degrade model performance in two specific ways:
- The "Degeneration" Trap: Models trained on divergent data are prone to producing repetitive loops of n-grams (e.g., "...and the engineering and architecture and the engineering..."). This suggests that semantic mismatches disrupt the model's internal logic regarding sequence transitions and termination.
- Uncertainty and Calibration: Divergences make models "hesitant." They assign lower probabilities to their predictions and exhibit poor calibration, meaning their confidence scores do not accurately reflect their actual translation accuracy.
The Divergent-Aware Framework (DIV-FACTORIZED)
To mitigate these issues, the authors propose a DIV-FACTORIZED framework. This model explicitly "tags" tokens as either Equivalent (EQ) or Divergent (DIV) using an mBERT-based classifier.
- Source-side Factors: The encoder receives an additional embedding for each token indicating its divergence status.
- Target-side Factors: The model employs multi-task learning to predict the next word while simultaneously predicting the EQ/DIV tag for the previous word. This time-shifted approach forces the model to internalize the relationship between the translation and the semantic mismatch.
Key Results
The proposed framework demonstrates significant improvements across several metrics on the EN-FR WikiMatrix task:
- Performance Recovery: The
DIV-FACTORIZEDmodel recovered most of the quality lost to divergences, improving BLEU scores by ~1.5 to 2.0 points over standard "divergent-agnostic" models. - Robustness: The model halved the frequency of degenerated text and showed superior performance in out-of-domain medical translation tasks, indicating better generalization.
- Calibration: Factorized models were better calibrated, showing higher confidence when correct and lower over-estimation of their own accuracy.
Conclusion and Future Work
This research proves that fine-grained semantic divergence is a distinct phenomenon from coarse noise and requires specialized handling. By acknowledging these differences through token-level factors, NMT models can leverage imperfect data more effectively. Future work will focus on improving the accuracy of divergence classifiers and expanding the framework to low-resource language pairs where data quality is often a primary bottleneck.
Summary updated