Abstract: Koustava Goswami, Sourav Dutta, Haytham Assem, Theodorus Fransen, John P. McCrae. Proceedings of the 2021 Conference on Empirical Methods in Natural Language Processing (EMNLP).
2021.
Introduction
Sentence embeddings are a fundamental component of modern Natural Language Processing (NLP), enabling machines to map textual meaning into a shared mathematical vector space. Ideally, sentences with similar semantic content should reside close to one another in this space, regardless of the language used.
However, state-of-the-art supervised models like LASER or mUSE rely heavily on massive parallel corpora—millions of translated sentence pairs. Such datasets are unavailable for the vast majority of the world's languages. While unsupervised methods exist, they often depend on machine translation to generate synthetic data, which fails for low-resource languages where translation quality is poor. This paper introduces DuEAM (Dual Encoder with Anchor-Learner Model), a framework designed to build high-quality multilingual embeddings without the need for parallel translated pairs.
Methodology: The DuEAM Framework
DuEAM utilizes a novel "teacher-student" architecture consisting of two primary modules: the Anchor module and the Learner module.
Anchor-Learner Architecture
- Anchor Module: This module leverages pre-trained word embeddings to calculate the Word Mover’s Distance (WMD) between sentence pairs. WMD measures the minimum "travel cost" to transform one sentence's word distribution into another, providing a robust semantic signal without requiring direct translations.
- Learner Module: This module generates the final sentence embeddings using an underlying XLM-RoBERTa model. It is trained via a multi-task loss function:
- Semantic Loss ($L_A$): Forces the Euclidean distance between generated embeddings to approximate the WMD calculated by the Anchor.
- Translation Mining Loss ($L_B$): Uses cosine similarity to align related sentences in the vector space.
Training variants include an unsupervised version (using randomly shuffled pairs) and a weakly supervised version (using semantically related pairs from the XNLI dataset), both avoiding explicit translation labels.
Experimental Evaluation
The model was evaluated across several benchmarks, including Semantic Textual Similarity (STS), bitext mining (BUCC), and cross-lingual parallel sentence matching (Tatoeba). While trained on only 13 languages from the XNLI dataset, the model's performance was tested for zero-shot generalization across more than 30 additional languages.
Results and Analysis
A key finding of the study is the necessity of the multi-task approach. As shown in the experimental results, neither semantic similarity learning nor translation pair learning alone achieves high accuracy. The combination of both—defining the topology of the space via WMD and the alignment via cosine similarity—leads to a significant performance leap.
Key Performance Metrics
- Low-Resource Superiority: On the Tatoeba dataset, DuEAM outperformed supervised state-of-the-art models by an average of 10% for under-resourced languages like Tagalog and Irish.
- Bitext Mining: In the BUCC task, DuEAM showed a 35.6 F1 score improvement over standard unsupervised mBERT mean pooling.
- Data Efficiency: DuEAM achieved these results using only 1GB of training data, a fraction of the 10x to 100x larger datasets required by supervised competitors.
- Monolingual Integrity: The model maintained competitive performance on English-only benchmarks (SentEval), ensuring that multilingual alignment does not degrade native language understanding.
Conclusion and Future Work
DuEAM demonstrates that word-level semantic relationships can serve as a powerful "anchor" for cross-lingual alignment in the absence of parallel data. One noted limitation is that WMD is word-order agnostic, which may lead to difficulties in distinguishing sentences where syntax alters meaning (e.g., "The dog bit the man" vs. "The man bit the dog"). Future research will explore integrating syntactic structures into the loss function and scaling training to larger, unlabelled datasets like Wikipedia to further enhance cross-lingual semantic capture.
Summary updated