Abstract
The emergence of unsupervised word embeddings, pre-trained on very large monolingual text corpora, is at the core of the ongoing neural revolution in Natural Language Processing (NLP). Initially introduced for English, such pre-trained word embeddings quickly emerged for a number of other languages. Subsequently, there have been a number of attempts to align the embedding spaces across languages, which could enable a number of cross-language NLP applications. Performing the alignment using unsupervised cross-lingual learning (UCL) is especially attractive as it requires little data and often rivals supervised and semi-supervised approaches. Here, we analyze popular methods for UCL and we find that often their objectives are, intrinsically, versions of the Wasserstein-Procrustes problem. Hence, we devise an approach to solve Wasserstein-Procrustes in a direct way, which can be used to refine and to improve popular UCL methods such as iterative closest point (ICP), multilingual unsupervised and supervised embeddings (MUSE) and supervised Procrustes methods. Our evaluation experiments on standard datasets show sizable improvements over these approaches.
Introduction
In Natural Language Processing (NLP), words are typically represented as dense vectors (embeddings) where semantic similarity corresponds to geometric proximity. However, embeddings trained independently on different monolingual corpora (e.g., English and French) reside in distinct coordinate systems. Unsupervised Cross-Lingual Alignment (UCAE) seeks to find a transformation—typically a rotation and shift—to align these disparate "clouds" of vectors without the aid of a bilingual dictionary.
This task is notoriously difficult due to the "hubness" problem, where certain vectors become nearest neighbors to many others, and the lack of initial correspondences. Traditional methods often rely on adversarial training or iterative closest point approximations, which can be unstable or prone to local minima.
Methods: The Wasserstein-Procrustes Framework
The authors demonstrate that many existing alignment methods are essentially attempting to solve the Wasserstein-Procrustes problem. This problem combines two fundamental geometric tasks: finding the optimal orthogonal transformation (Procrustes) and the optimal one-to-one matching (Wasserstein) between point sets.
To address this directly, the paper introduces the Iterative Hungarian (IH) Algorithm. Unlike previous methods that used approximations, IH directly alternates between:
- Solving the matching problem using the Hungarian algorithm (an optimal transport method).
- Solving the rotation problem using Singular Value Decomposition (SVD).
To avoid getting stuck in local minima, the researchers introduce "natural initializations" leveraging the trace norm. This allows the algorithm to explore the search space from multiple perspectives, significantly increasing the likelihood of finding a globally optimal alignment.
Experimental Evaluation
The study utilizes the standard MUSE benchmark, featuring fastText embeddings trained on Wikipedia. The IH algorithm was tested as a refinement tool for several baseline methods across diverse language pairs, including English to Spanish, French, Italian, German, and Russian.
Key Results
The Iterative Hungarian algorithm consistently improved the performance of every baseline method it refined. The gains were particularly notable in linguistically distant pairs like English-Russian, where accuracy rose significantly when refining the ICP method.
Key insights from the results include:
- Refinement Efficacy: IH serves as a powerful "polishing" step, taking a rough initial alignment (e.g., from a GAN) and snapping vectors into more precise positions.
- Mitigating Hubness: By enforcing a strict one-to-one mapping (permutation), the algorithm prevents common words from "hogging" all the matches, a frequent issue in soft-matching approaches.
- Robustness: In controlled English-to-English tests, IH achieved 100% alignment accuracy across different training algorithms and window sizes, provided a reasonable initialization was used.
Conclusion and Future Work
This work provides a unifying mathematical framework for unsupervised cross-lingual alignment. By identifying the underlying Wasserstein-Procrustes objective, the authors developed a direct refinement tool that consistently improves state-of-the-art results.
Future research directions include extending these geometric alignment techniques to dynamic, contextual embeddings like BERT or GPT, and addressing the $O(N^3)$ computational complexity of the Hungarian algorithm to handle larger vocabularies.
Code and instructions to reproduce the experiments are available at https://github.com/guillemram97/wp-hungarian.
Summary updated