Exploring Alignment in Shared Cross-lingual Spaces

Basel Mousi, Nadir Durrani, Fahim Dalvi, Majd Hawasly, Ahmed Abdelali
5/23/2024
cs.CLcs.AI

No official code found. Best implementation: qcri/multilingual-latent-concepts (6 stars, last commit 2024-05-23).

Abstract

Despite their remarkable ability to capture linguistic nuances across diverse languages, questions persist regarding the degree of alignment between languages in multilingual embeddings. Drawing inspiration from research on high-dimensional representations in neural language models, we employ clustering to uncover latent concepts within multilingual models. Our analysis focuses on quantifying the \textit{alignment} and \textit{overlap} of these concepts across various languages within the latent space. To this end, we introduce two metrics \CA{} and \CO{} aimed at quantifying these aspects, enabling a deeper exploration of multilingual embeddings. Our study encompasses three multilingual models (\texttt{mT5}, \texttt{mBERT}, and \texttt{XLM-R}) and three downstream tasks (Machine Translation, Named Entity Recognition, and Sentiment Analysis). Key findings from our analysis include: i) deeper layers in the network demonstrate increased cross-lingual \textit{alignment} due to the presence of language-agnostic concepts, ii) fine-tuning of the models enhances \textit{alignment} within the latent space, and iii) such task-specific calibration helps in explaining the emergence of zero-shot capabilities in the models.\footnote{The code is available at \url{https://github.com/baselmousi/multilingual-latent-concepts}}

View on arXivView PDF

Code Implementations(1)

Code associated with the ACL24 paper titled, "Exploring Alignment in Shared Cross-Lingual Spaces"

60Shell, PythonMay 23, 20242 years ago

Similar Papers

Cite this paper

@article{mousi2024exploring,
  title  = {Exploring Alignment in Shared Cross-lingual Spaces},
  author = {Basel Mousi and Nadir Durrani and Fahim Dalvi and Majd Hawasly and Ahmed Abdelali},
  year   = {2024},
  eprint = {2405.14535},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2405.14535v1}
}

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

Discussion