Introduction
Word alignment—the task of identifying which words in a source sentence correspond to words in a target translation—is a foundational step for many cross-lingual tasks. Historically, researchers relied on statistical models like GIZA++, which are efficient but struggle with complex linguistic patterns.
Recently, neural models have taken the lead, but they typically "piggyback" on massive Neural Machine Translation (NMT) architectures. This creates significant overhead in terms of computational efficiency and introduces noise, as NMT attention mechanisms are optimized for translation rather than precise word-level correspondence. This paper introduces MirrorAlign (also known as SLUA), a "super lightweight" unsupervised model that achieves state-of-the-art performance without the baggage of heavy neural machinery.
Methodology: The MirrorAlign Framework
MirrorAlign treats alignment as a representation learning problem rather than a translation problem. Its architecture is built on three main pillars designed for speed and precision:
- Contextualized Sentence Representation: Instead of using heavy Transformers, MirrorAlign uses a simple mean-pooling operation over a local window to capture word context. This keeps the model extremely fast and lightweight.
- Bidirectional Symmetric Attention: The model calculates attention maps in both directions (source-to-target and target-to-source). To ensure consistency, the authors implement an Agreement Loss, which penalizes the model if the two directions do not "mirror" each other.
- Contrastive Learning (NCE): The model is trained using Noise Contrastive Estimation (NCE). The goal is to maximize the dot product between the representations of aligned words (positive pairs) while minimizing it for random word pairs (negative samples).
Experimental Results
The model was evaluated on standard bilingual benchmarks including English-French (EN-FR), Romanian-English (RO-EN), and German-English (DE-EN). MirrorAlign strikes an impressive balance between performance and efficiency:
- Accuracy: On the EN-FR dataset, MirrorAlign achieved an Alignment Error Rate (AER) of 9.2, significantly outperforming the statistical baseline FastAlign (10.5) and the neural baseline NNSA (15.7).
- Speed and Compression: It is 16.4× faster than GIZA++, converging in just 14 minutes on the EN-FR dataset. Furthermore, it uses only 4 million parameters, a 50× reduction compared to typical Transformer-based aligners.
- The Power of Symmetry: Ablation studies showed that removing the "Agreement Loss" caused the AER to jump from 9.2 to 14.1, proving that the mirror-symmetry constraint is the most critical component of the system.
Conclusion
MirrorAlign demonstrates that high-quality word alignment does not require the complexity of full translation models. By focusing purely on cross-lingual word similarity via contrastive learning and enforcing bidirectional symmetry, the model avoids the "noisy alignment" issues inherent in NMT-based approaches. Future work may involve incorporating syntactic information, such as dependency trees, to better handle language pairs with significantly different word orders.
Summary updated