NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

MirrorAlign: A Super Lightweight Unsupervised Word Alignment Model via Cross-Lingual Contrastive Learning

Di Wu, Liang Ding, Shuo Yang, Mingyang Li

TL;DR

This paper introduces MirrorAlign, a novel, lightweight, and unsupervised word alignment model that achieves state-of-the-art performance while significantly reducing computational costs. By leveraging a bidirectional symmetric attention mechanism and a contrastive learning objective, MirrorAlign effectively learns word correspondences without relying on expensive human-annotated data or complex translation models.

What Problem Does This Paper Address?

Word alignment, the task of identifying corresponding words between parallel sentences, is a fundamental component in many cross-lingual natural language processing tasks, including machine translation, cross-lingual information retrieval, and text generation. While neural methods have surpassed traditional statistical approaches, they often require sophisticated translation models, leading to massive parameter counts and high computational demands. Existing lightweight neural alignment models are scarce, and many current approaches still rely on expensive human-annotated data for supervision. This paper addresses the need for an efficient, unsupervised, and high-performing word alignment model that bridges the gap between lightweight statistical methods and computationally intensive neural translation models.

Methods

MirrorAlign introduces a novel approach centered around a bidirectional symmetric attention mechanism and a contrastive learning objective.

  • Bidirectional Symmetric Attention: The model generates two attention maps: one from source to target (s2t) and another from target to source (t2s). This bidirectional nature captures relationships in both directions.
  • Contrastive Learning Objective: Instead of relying on translation objectives, MirrorAlign uses a contrastive learning framework. It encourages the dot product between aligned word representations and their corresponding attention contexts to be high, while pushing away non-aligned (negative) pairs. This is inspired by the idea that aligned words should have similar semantic representations.
  • Agreement Mechanism: To enforce symmetry between the s2t and t2s attention maps, an "agreement loss" is introduced. This loss penalizes discrepancies between the two attention matrices, ensuring that if word A aligns to word B, then word B should also align to word A. This is crucial for robust word alignment.
  • Sentence Representation: Word embeddings are enhanced by incorporating contextual information through a mean pooling operation over neighboring words, which are then added to the original word embeddings.

Datasets

The paper evaluates MirrorAlign on three widely used datasets:

  • English-French (EN-FR)
  • Romanian-English (RO-EN)
  • German-English (DE-EN)

The EN-FR and RO-EN datasets are from the NAACL 2003 shared tasks. For RO-EN, the Europarl v8 corpus was added to increase the training data size. The DE-EN dataset uses the Europarl v7 corpus for training.

Key Insights and Ideas

  • Unsupervised Alignment is Achievable and Competitive: The paper demonstrates that high-quality word alignment can be achieved without any human-annotated alignment data, challenging the notion that complex supervision is always necessary for neural models.
  • Symmetry is Key: The introduction of the agreement mechanism, enforcing symmetry between attention maps, significantly improves alignment quality. This suggests that word alignment is inherently a symmetric relationship.
  • Contrastive Learning for Alignment: Applying contrastive learning, a technique popular in representation learning, to word alignment proves effective. It allows the model to learn meaningful correspondences by distinguishing between positive and negative alignment examples.
  • Unifying Embeddings and Alignment: The model's ability to learn bilingual word representations as a byproduct of the alignment task opens avenues for unifying these two previously separate tasks in the future.

Key Results

  • Performance: MirrorAlign achieves competitive, and often superior, alignment performance (measured by AER) compared to state-of-the-art statistical (FastAlign, GIZA++) and other neural alignment models. For instance, it shows improvements of 1.3, 0.5, and 2.2 AER over FastAlign on EN-FR, RO-EN, and DE-EN, respectively.
  • Efficiency: The model is significantly faster than FastAlign and GIZA++. It converges in about 14 minutes for one million samples on EN-FR, while FastAlign takes 21 minutes and GIZA++ takes 230 minutes.
  • Model Size: MirrorAlign boasts a substantial parameter compression, being up to 50 times smaller than Transformer-based alignment methods.
  • Ablation Study: The agreement mechanism is identified as the most crucial component, contributing significantly to the overall performance improvement.

Limitations and Future Work

  • Future Exploration of CLWEs and Alignment: The authors suggest further exploring the relationship between Cross-Lingual Word Embeddings (CLWEs) and word alignments. They propose using MirrorAlign as a bridge to unify these two tasks.
  • Sentence-Level Supervision: While the model is unsupervised at the word level, it leverages sentence-level supervision from parallel corpora. The paper mentions that exploring sentence-level representations that incorporate structured information (like syntax) could further enhance performance, but this is left for future work.

Summary updated

BibTeX
@inproceedings{wu2022mirroralign,
  author = {Di Wu and Liang Ding and Shuo Yang and Mingyang Li},
  title = {{MirrorAlign: A Super Lightweight Unsupervised Word Alignment Model via Cross-Lingual Contrastive Learning}},
  booktitle = {IWSLT @ ACL},
  year = {2022},
  doi = {10.18653/v1/2022.iwslt-1.8},
}
Figure