A Massively Multilingual Analysis of Cross-linguality in Shared Embedding Space

Alex Jones, William Yang Wang, Kyle Mahowald
9/13/2021
cs.CLcs.AIcs.LG

Official code: AlexJonesNLP/XLAnalysis5K (4 stars, Jupyter Notebook, MIT, last commit 2021-12-25).

Abstract

In cross-lingual language models, representations for many different languages live in the same space. Here, we investigate the linguistic and non-linguistic factors affecting sentence-level alignment in cross-lingual pretrained language models for 101 languages and 5,050 language pairs.

Show full abstract

Using BERT-based LaBSE and BiLSTM-based LASER as our models, and the Bible as our corpus, we compute a task-based measure of cross-lingual alignment in the form of bitext retrieval performance, as well as four intrinsic measures of vector space alignment and isomorphism. We then examine a range of linguistic, quasi-linguistic, and training-related features as potential predictors of these alignment metrics. The results of our analyses show that word order agreement and agreement in morphological complexity are two of the strongest linguistic predictors of cross-linguality. We also note in-family training data as a stronger predictor than language-specific training data across the board. We verify some of our linguistic findings by looking at the effect of morphological segmentation on English-Inuktitut alignment, in addition to examining the effect of word order agreement on isomorphism for 66 zero-shot language pairs from a different corpus. We make the data and code for our experiments publicly available.

View on arXivView PDF

Code Implementations(1)

MIT

Code and data for EMNLP 2021 paper "A Massively Multilingual Analysis of Cross-linguality in Shared Embedding Space."

40Jupyter Notebook, PythonMay 13, 20214 years agoMIT

Similar Papers

Cite this paper

@article{jones2021massively,
  title  = {A Massively Multilingual Analysis of Cross-linguality in Shared Embedding Space},
  author = {Alex Jones and William Yang Wang and Kyle Mahowald},
  year   = {2021},
  eprint = {2109.06324},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2109.06324}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2109.06324.svg)](https://codeofpaper.com/paper/2109.06324)

Discussion