Why is unsupervised alignment of English embeddings from different algorithms so hard?

Mareike Hartmann, Yova Kementchedjhieva, Anders Søgaard

Abstract

This paper presents a challenge to the community: Generative adversarial networks (GANs) can perfectly align independent English word embeddings induced using the same algorithm, based on distributional information alone; but fails to do so, for two different embeddings algorithms. Why is that? We believe understanding why, is key to understand both modern word embedding algorithms and the limitations and instability dynamics of GANs. This paper shows that (a) in all these cases, where alignment fails, there exists a linear transform between the two embeddings (so algorithm biases do not lead to non-linear differences), and (b) similar effects can not easily be obtained by varying hyper-parameters. One plausible suggestion based on our initial experiments is that the differences in the inductive biases of the embedding algorithms lead to an optimization landscape that is riddled with local optima, leading to a very small basin of convergence, but we present this more as a challenge paper than a technical contribution.

Introduction

In the quest for "universal" language translation, researchers often employ unsupervised alignment to map word embeddings from one language to another without a bilingual dictionary. The current gold standard for this task is MUSE, a system based on Generative Adversarial Networks (GANs). While MUSE is highly effective across languages, it exhibits a puzzling failure mode: it can perfectly align English word embeddings with near 100% accuracy if both sets were trained using the same algorithm (e.g., FastText to FastText), but drops to 0% accuracy when aligning embeddings from different algorithms (e.g., GloVe to FastText).

This paper investigates this "hidden wall," seeking to determine if the failure stems from a lack of a mathematical mapping or if the GAN's optimization process is simply unable to find an existing linear relationship.

Methods

The researchers evaluated five popular embedding algorithms: Hyperwords-SVD, Hyperwords-SGNS, CBOW (Continuous Bag-of-Words), GloVe, and FastText. All models were trained on a March 2018 dump of English Wikipedia, using two non-overlapping 10% samples to ensure the embeddings were trained on distinct data but within the same language and domain.

Two alignment approaches were compared:

  1. Unsupervised (MUSE): A GAN-based approach where a generator attempts to map one space to another while a discriminator tries to distinguish between them.
  2. Supervised (Procrustes Analysis): A traditional method using a small 5,000-word dictionary to find the optimal linear transformation (rotation and scaling) between two spaces.

Performance was measured using a standard 1,500-word translation test set.

Results and the Linearity Paradox

The most striking finding is the existence of a "Linearity Paradox." While the unsupervised GAN fails completely (0% precision) when aligning different algorithms, supervised Procrustes analysis achieves ~99% precision across almost all pairs. This demonstrates that the different embedding spaces are geometrically similar and that a linear mapping does indeed exist.

Precision of unsupervised vs supervised alignment across different embedding algorithms. The top table shows the complete failure of unsupervised methods for cross-algorithm pairs, while the bottom table shows near-perfect supervised alignment.

Discriminator Dynamics

The failure of the GAN appears to be rooted in the optimization landscape. In successful "same-algorithm" runs, the discriminator and generator engage in a balanced "tug-of-war." However, in failed "different-algorithm" runs, the discriminator "wins" almost immediately. This prevents the generator from ever receiving the gradient signals necessary to learn the mapping.

Discriminator loss during training for same-algorithm (black) vs different-algorithm (gray) pairs. In different-algorithm cases, the loss drops rapidly as the discriminator easily identifies the source space.

Discussion

The authors suggest that the distinct "inductive biases" of different algorithms—such as how GloVe and FastText handle word frequency—create a loss landscape riddled with local optima. This makes the "basin of convergence" for the GAN extremely narrow, causing the algorithm to get lost during training despite the existence of a valid linear solution.

Common preprocessing steps, such as centering or normalizing vectors, did not resolve these issues. This suggests that unsupervised alignment is highly sensitive to the specific geometric quirks introduced by embedding manufacturing processes. The paper concludes as a challenge to the community to develop adversarial training objectives that are more robust to these algorithmic inductive biases.

Summary updated

Abstract

This paper presents a challenge to the community: Generative adversarial networks (GANs) can perfectly align independent English word embeddings induced using the same algorithm, based on distributional information alone; but fails to do so, for two different embeddings algorithms. Why is that? We believe understanding why, is key to understand both modern word embedding algorithms and the limitations and instability dynamics of GANs. This paper shows that (a) in all these cases, where alignment fails, there exists a linear transform between the two embeddings (so algorithm biases do not lead to non-linear differences), and (b) similar effects can not easily be obtained by varying hyper-parameters. One plausible suggestion based on our initial experiments is that the differences in the inductive biases of the embedding algorithms lead to an optimization landscape that is riddled with local optima, leading to a very small basin of convergence, but we present this more as a challenge paper than a technical contribution.
BibTeX
@inproceedings{hartmann2018why,
  author = {Mareike Hartmann and Yova Kementchedjhieva and Anders Søgaard},
  title = {{Why is unsupervised alignment of English embeddings from different algorithms so hard?}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2018},
  url = {https://openreview.net/forum?id=S1WwczGdbB},
}
Figure