The Geometry of Multilingual Language Model Representations

Tyler A. Chang, Zhuowen Tu, Benjamin K. Bergen
5/22/2022
cs.CL

Official code: tylerachang/multilingual-geometry (22 stars, Python, last commit 2022-10-21).

Abstract

We assess how multilingual language models maintain a shared multilingual representation space while still encoding language-sensitive information in each language. Using XLM-R as a case study, we show that languages occupy similar linear subspaces after mean-centering, evaluated based on causal effects on language modeling performance and direct comparisons between subspaces for 88 languages.

Show full abstract

The subspace means differ along language-sensitive axes that are relatively stable throughout middle layers, and these axes encode information such as token vocabularies. Shifting representations by language means is sufficient to induce token predictions in different languages. However, we also identify stable language-neutral axes that encode information such as token positions and part-of-speech. We visualize representations projected onto language-sensitive and language-neutral axes, identifying language family and part-of-speech clusters, along with spirals, toruses, and curves representing token position information. These results demonstrate that multilingual language models encode information along orthogonal language-sensitive and language-neutral axes, allowing the models to extract a variety of features for downstream tasks and cross-lingual transfer learning.

View on arXivView PDF

Code Implementations(1)

The geometry of multilingual language model representations (EMNLP 2022).

223PythonMay 2, 20224 years ago

Similar Papers

Cite this paper

@article{chang2022geometry,
  title  = {The Geometry of Multilingual Language Model Representations},
  author = {Tyler A. Chang and Zhuowen Tu and Benjamin K. Bergen},
  year   = {2022},
  eprint = {2205.10964},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2205.10964}
}

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/2205.10964.svg)](https://codeofpaper.com/paper/2205.10964)

Discussion