Revisiting the linearity in cross-lingual embedding mappings: from a perspective of word analogies

Xutan Peng, Chenghua Lin, Mark Stevenson, Chen Li

Introduction

In Natural Language Processing (NLP), cross-lingual word embedding (CLWE) mappings are essential for transferring knowledge between languages without requiring massive parallel corpora. For years, the field has relied on the empirical observation that a simple linear transformation—such as a rotation or scaling—is sufficient to align embedding spaces from different languages. However, this "linearity assumption" has lacked a rigorous theoretical foundation, often failing for rare words or linguistically distant language pairs. This paper addresses this gap by proving that the success of linear mappings is directly tied to the preservation of word analogies across languages.

Theoretical Framework: Linearity and Analogies

The core contribution of this research is the formal proof that a mapping between two embedding spaces is linear if and only if it preserves "parallelogram structures." In vector space, word analogies like king - man = queen - woman are represented as parallelograms where the offset vector between two words (e.g., gender or tense) remains consistent.

Figure 3: Parallelogram structures representing word analogies in English (left) and French (right).

If the vector offset for a specific linguistic relation in English is identical to the offset for the same relation in French, a linear map can perfectly align these structures. This establishes that the feasibility of cross-lingual mapping depends less on the languages themselves and more on how consistently the underlying monolingual models capture these linguistic regularities.

Empirical Validation

To validate this theory, the authors conducted experiments across five languages (English, German, Italian, French, and Polish) using three major embedding models: Word2Vec, GloVe, and FastText. The methodology involved a multi-step process to identify and map these analogical structures.

Figure 4: A four-step visualization of the process used to identify word pairs and their corresponding offset vectors to test for analogical consistency.

Key metrics included:

  • LRCos: Used to measure how well each monolingual model handled analogies.
  • Bilingual Lexicon Induction (BLI): Measured the precision of word translation using an orthogonal Procrustes mapping.
  • Analogical vs. Random Groups: The researchers compared the mapping accuracy of words with clear morphological relations against random word sets to see which adhered better to the linear assumption.

Key Insights and Results

The FastText Advantage

FastText consistently outperformed Word2Vec and GloVe in mapping accuracy. The authors attribute this to FastText’s use of sub-word information, which allows it to capture morphological analogies (like verb tenses) more reliably. By better satisfying the condition of analogical invariance, FastText creates a space more conducive to linear alignment.

The Rare Word Problem

One of the most persistent challenges in CLWE is the failure to map rare words. The study found that for rare words, "analogical strength" (measured by LRCos) drops significantly. Because the model fails to learn the structural relationships for these words, the linear assumption breaks down, explaining why standard methods struggle with low-frequency vocabulary.

Correlation and Locality

The research found a high Spearman’s Correlation (0.617 to 0.943) between a model's ability to solve analogies and its success in cross-lingual mapping. Furthermore, "analogical groups" significantly outperformed random sets in mapping tests; for instance, in Italian-English tests, the precision (P@1) was over 10% higher for analogical groups. This suggests that linearity holds best in "geometrically-local" regions where linguistic structures are uniform.

Conclusion and Future Work

While this paper provides a strong theoretical link between analogies and linearity, it acknowledges that current embedding models are often discontinuous. A single global linear transformation may be insufficient to capture the diverse range of analogies present in a full vocabulary. The authors suggest that future research should move toward fine-grained, analogy-sensitive mappings that partition the embedding space into smaller, structurally consistent regions based on the specific types of analogies they encode.

Summary updated

BibTeX
@article{peng2022revisiting,
  author = {Xutan Peng and Chenghua Lin and Mark Stevenson and Chen Li},
  title = {{Revisiting the linearity in cross-lingual embedding mappings: from a perspective of word analogies}},
  journal = {Accepted by TMLR},
  year = {2022},
  url = {https://openreview.net/forum?id=8HuyXvbvqX},
}
Figure