Cross-lingual Similarity of Multilingual Representations Revisited

Maksym Del, Mark Fishel
12/4/2022
cs.CLcs.AIcs.LG

Official code: TartuNLP/xsim (4 stars, Python, last commit 2024-02-22).

Abstract

Related works used indexes like CKA and variants of CCA to measure the similarity of cross-lingual representations in multilingual language models. In this paper, we argue that assumptions of CKA/CCA align poorly with one of the motivating goals of cross-lingual learning analysis, i.e., explaining zero-shot cross-lingual transfer.

Show full abstract

We highlight what valuable aspects of cross-lingual similarity these indexes fail to capture and provide a motivating case study \textit{demonstrating the problem empirically}. Then, we introduce \textit{Average Neuron-Wise Correlation (ANC)} as a straightforward alternative that is exempt from the difficulties of CKA/CCA and is good specifically in a cross-lingual context. Finally, we use ANC to construct evidence that the previously introduced ``first align, then predict'' pattern takes place not only in masked language models (MLMs) but also in multilingual models with \textit{causal language modeling} objectives (CLMs). Moreover, we show that the pattern extends to the \textit{scaled versions} of the MLMs and CLMs (up to 85x original mBERT).\footnote{Our code is publicly available at \url{https://github.com/TartuNLP/xsim}}

View on arXivView PDF

Code Implementations(1)

TartuNLP/xsimOfficial100%

Our Research in Cross-lingual Representational Similarity

41Python, ShellAug 14, 20222 years ago

Similar Papers

Cite this paper

@article{del2022crosslingual,
  title  = {Cross-lingual Similarity of Multilingual Representations Revisited},
  author = {Maksym Del and Mark Fishel},
  year   = {2022},
  eprint = {2212.01924},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2212.01924}
}

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

Discussion