Abstract
Neural Machine Translation (NMT) systems typically rely on Maximum Likelihood Estimation (MLE), which treats all incorrect word predictions as equally erroneous, regardless of semantic similarity. This paper introduces ReWE (Regressing Word Embeddings), a regularization technique that forces the model to jointly predict discrete word categories and continuous pre-trained word embeddings. By incorporating semantic relationships into the training objective, ReWE improves model generalization, particularly in low-resource scenarios. Experimental results across multiple language pairs demonstrate significant BLEU score improvements, with gains of up to 2.54 points, without adding any computational overhead during inference.
Introduction
Standard NMT training via MLE suffers from a semantic "blind spot": it penalizes a model equally for predicting a synonym (e.g., "car" instead of "automobile") as it does for a completely unrelated word (e.g., "banana"). This lack of semantic awareness makes models brittle, especially when training data is scarce. Furthermore, the discrepancy between training (using ground-truth prefixes) and inference (using generated prefixes), known as exposure bias, can lead to compounding errors. ReWE addresses these issues by introducing a semantic smoothing mechanism that leverages the rich information contained in pre-trained word embeddings.
The ReWE Framework
The authors propose a joint learning architecture for the NMT decoder. In addition to the standard categorical path, a regressive path is added to the hidden state $s_j$.
- Categorical Path: A standard softmax layer predicting the probability distribution over the vocabulary.
- Regressive Path (ReWE): A small, two-layer neural network that maps the hidden state $s_j$ to a continuous vector $e_j$, aiming to match the pre-trained word embedding of the target token.
The total training loss is a weighted sum: $Loss = NLL_{loss} + \lambda ReWE_{loss}$. The authors found that Cosine Embedding Loss (CEL) is superior to Mean Squared Error (MSE) for the regressive component, as the direction of high-dimensional vectors is a more robust indicator of semantic meaning than magnitude. Crucially, the ReWE branch is discarded during inference, ensuring no additional latency in production.
Experimental Evaluation
The method was evaluated on three datasets representing different data scales:
- IWSLT16 English-French (en-fr): ~220k sentence pairs (Medium resource).
- IWSLT16 Czech-English (cs-en): ~114k sentence pairs (Medium-low resource).
- WMT16 Basque-English (eu-en): ~89k sentence pairs (Very low resource).
Results and Discussion
ReWE provided consistent improvements over strong baselines. The most significant gains were observed in the lowest-resource setting (Basque-English), with an increase of +2.54 BLEU points. Medium-resource pairs saw improvements between +1.26 and +1.36 BLEU.
Qualitative analysis suggests that ReWE helps the model learn the "neighborhood" of words. Even when the exact word is not predicted, the hidden state is pushed toward a semantically similar region, improving the overall adequacy of the translation. For instance, the ReWE-enhanced model is better at capturing specific terminology and handling pronouns compared to the baseline.
Conclusion
ReWE serves as a "free" regularizer that injects semantic knowledge into NMT models. By leveraging pre-trained embeddings during training, it bridges the gap between discrete token prediction and continuous semantic space, leading to more robust translation systems without increasing inference-time complexity. Future work may explore its application in unsupervised NMT, where semantic anchors are even more critical.
Summary updated