Introduction
Word alignment—the process of identifying corresponding words between source and target sentences—is a fundamental task in Machine Translation (MT). While critical for terminology constraints and error analysis, it has long been considered a weakness of Neural Machine Translation (NMT). Despite the Transformer's reliance on "attention," these attention maps are often too noisy to serve as reliable alignments. Consequently, practitioners have continued to rely on decades-old statistical tools like GIZA++ and FAST-ALIGN. This paper demonstrates that Transformers do indeed capture high-quality alignments; the key lies in when we extract them.
The Timing Problem and SHIFT-ATT
The primary contribution of this work is identifying the "Timing Problem" in standard attention induction. Traditional methods (NAIVE-ATT) attempt to extract the alignment for a target word $y_i$ at the exact step $i$ when the model is predicting it. However, at this stage, the model has not yet "seen" the word.
The authors propose SHIFT-ATT, which extracts attention weights at step $i+1$, when word $y_i$ is provided as the decoder input. At this point, the hidden state has incorporated the actual token, allowing the attention mechanism to focus much more precisely on the relevant source tokens. To optimize this, they use a "surrogate criterion" to select the specific Transformer layer where the source-to-target and target-to-source models show the highest agreement.
SHIFT-AET: Alignment-Enhanced Transformer
Building on this insight, the authors introduce SHIFT-AET, a lightweight, plug-and-play alignment module. This module is added to a frozen, pre-trained Transformer and trained using the high-quality alignments generated by SHIFT-ATT as supervision. Because the base NMT model remains unchanged, SHIFT-AET provides superior alignments without degrading translation quality or requiring expensive full-model retraining. It adds only approximately 1.4% more parameters, making it highly efficient for production use.
Experimental Results
The methods were evaluated using the Alignment Error Rate (AER) across several language pairs, including German-English (de-en), French-English (fr-en), and Romanian-English (ro-en).
Key findings include:
- Significant AER Reduction: SHIFT-ATT improves upon the naive baseline by 7.0–10.2 points.
- Surpassing Statistical Baselines: SHIFT-AET outperformed the industry-standard GIZA++ by 1.4–4.8 AER points across all tested language pairs. This marks a significant milestone in moving word alignment entirely into the neural domain.
- Downstream Utility: In practical applications like dictionary-guided decoding, the superior alignments from SHIFT-AET led to a BLEU score improvement of up to 1.5 points, proving that these alignments are functionally more effective for MT tasks.
Conclusion
This research proves that the information required for accurate word alignment is already present within vanilla Transformers. By simply shifting the lens through which we view attention (from prediction to observation), we can extract alignments that rival or exceed traditional statistical methods. Future work will explore applying these techniques to interactive MT and improving model coverage to prevent common NMT errors like word repetition or omission.
Summary updated