Unsupervised Hyper-alignment for Multilingual Word Embeddings

Jean Alaux, Edouard Grave, Marco Cuturi, Armand Joulin

This paper introduces a method for creating a "universal" semantic space where words from many different languages can be compared directly, even if the system has never seen a translation dictionary.

TL;DR

The authors propose Unsupervised Multilingual Hyperalignment (UMH), a method to align word embeddings from multiple languages into a single common space without any supervision. By enforcing transitivity—ensuring that a mapping from French to English and English to German results in a high-quality French-to-German mapping—they significantly improve "indirect" translation accuracy while remaining competitive on direct translations.

The Hub-and-Spoke Problem

In modern NLP, we often use word embeddings (like fastText or word2vec) to represent the meaning of words as vectors in high-dimensional space. However, these are typically trained on monolingual corpora (e.g., just English Wikipedia), meaning the "dog" vector in English has no mathematical relationship to the "chien" vector in French.

Recent research has shown we can align two languages (bilingual alignment) without a dictionary by exploiting the fact that semantic structures are similar across languages. However, when trying to align many languages, the standard approach is to map everything to a "pivot" language (usually English).

Hub-and-spoke model vs. global alignment

This "hub-and-spoke" model suffers from a "broken telephone" effect. While the mapping from Italian to English might be good, and English to Portuguese is also good, the composed mapping (Italian $\to$ English $\to$ Portuguese) is often poor because the individual alignments weren't trained to be compatible. This paper aims to solve this lack of transitivity.

Methodology: Unsupervised Multilingual Hyperalignment

Instead of independent bilingual mappings, the authors introduce UMH to optimize a global objective that considers the alignment between all pairs of languages simultaneously.

Key technical components include:

  • Gromov-Wasserstein Initialization: To start without a dictionary, they use an entropic regularization of the Gromov-Wasserstein distance. This provides a "warm start" by finding an initial correspondence between vocabularies based purely on the internal geometric structure of the word clouds.
  • Procrustes Alignment: They use the Orthogonal Procrustes method to find the best rotation to align one vector space to another.
  • RCSLS Loss: They adapt the Relaxed Cross-Domain Similarity Local Scaling (RCSLS) loss. This is a specialized objective function designed to mitigate the "hubness" problem—a common issue in high-dimensional spaces where certain vectors (hubs) appear as the nearest neighbors to almost everything else.
  • Stochastic Optimization: To handle the $O(N^2)$ complexity of comparing all language pairs, they use a stochastic procedure that samples pairs of languages at each iteration.

Datasets and Evaluation

The researchers evaluated their method using pre-trained fastText word vectors (trained on Wikipedia) across 11 languages: Czech, Danish, Dutch, English, French, German, Italian, Polish, Portuguese, Russian, and Spanish. They benchmarked performance using the MUSE dataset, a standard for multilingual word translation evaluation.

Key Insights and Results

  • Transitivity as a Constraint: The core "aha" moment is that by forcing the model to care about the alignment between all pairs (e.g., ensuring French aligns well with both English and Spanish), the resulting common space becomes much more robust.
  • Pivot Weighting: Giving higher weight to the pivot language (English) in the loss function is crucial. This ensures that the global alignment doesn't "drift" so much that it degrades the high-quality direct translations to English that users expect.
  • Indirect Translation Gains: On the 11-language benchmark, UMH improved indirect translation (translating between two non-English languages) by nearly 4% over standard bilingual baselines.
  • Slavic Language Improvement: The method was particularly effective for Slavic languages, which are often harder to align to English than Romance or Germanic languages.
  • Competitive Direct Translation: Even while focusing on the global space, UMH achieved an average accuracy of 75.2% on English-centric translations, slightly outperforming existing state-of-the-art unsupervised bilingual methods (like the MUSE framework at 74.4%).
  • Efficiency: Despite the complexity of multilingual alignment, the system is efficient, running in about 2 hours for 6 languages on a standard CPU.

Limitations and Future Work

While highly effective, the approach has a few notable limitations. First, scaling to hundreds of languages remains untested; it is unclear if the $O(N^2)$ pair-sampling approach holds up when trying to align the massive language sets supported by modern embeddings. Second, because the alignment is based solely on word embeddings, it may be "too coarse" to capture very subtle linguistic nuances or low-frequency words.

Generated language tree showing anomalous connections

Finally, when visualizing the "language tree" generated by their model, some edges made little linguistic sense. For example, the tree connects Spanish directly to Dutch. This suggests that while the vectors align well enough for translation tasks, they do not perfectly capture historical linguistic evolution.

Summary updated

BibTeX
@inproceedings{alaux2019unsupervised,
  author = {Jean Alaux and Edouard Grave and Marco Cuturi and Armand Joulin},
  title = {{Unsupervised Hyper-alignment for Multilingual Word Embeddings}},
  booktitle = {International Conference on Learning Representations},
  year = {2019},
}
Figure