NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Identifying the Correlation Between Language Distance and Cross-Lingual Transfer in a Multilingual Representation Space

Fred Philippy, Siwen Guo, Shohreh HaddadanOpenReview 2023

TL;DR

This paper investigates how multilingual language models (MLLMs) represent different languages internally and how this internal structure relates to their ability to transfer knowledge across languages. They found that the "distance" between languages, both linguistically and in terms of their representation in the MLLM, strongly correlates with cross-lingual transfer performance, suggesting a way to improve performance for distant language pairs by selectively freezing model layers.

What Problem Does This Paper Address?

Multilingual language models (MLLMs) like BERT and XLM-R are designed to handle multiple languages within a single model, aiming for a shared, language-agnostic representation space. This allows for cross-lingual transfer, where a model trained on one language can perform tasks in another. However, prior research has primarily focused on how fine-tuning aligns the representation spaces of different languages. This paper tackles a related but distinct question: how does fine-tuning individually affect the representation space of each language, and how does this internal evolution correlate with linguistic distance and actual cross-lingual transfer performance? Understanding this internal dynamic is crucial for diagnosing why transfer works better for some language pairs than others and for developing strategies to improve performance, especially for linguistically distant languages.

Methods

The researchers used the bert-base-multilingual-cased model and fine-tuned it on the Natural Language Inference (NLI) task using the XNLI dataset. They focused on 15 languages, fine-tuning the model on each language individually.

To measure the impact on the representation space, they employed Centered Kernel Alignment (CKA). CKA quantifies the similarity between two representation matrices. They calculated the CKA score between the hidden states of a language's representation before fine-tuning and after fine-tuning on a specific source language. A lower CKA score (or higher "impact" score, defined as 1 - CKA) indicates a greater change in the representation space.

To quantify linguistic distance, they used five metrics: syntactic, geographic, inventory, genetic, and phonological distance, sourced from the lang2vec library.

Finally, they analyzed the correlations between:

  1. Language distance and the impact on the representation space.
  2. Language distance and cross-lingual transfer performance (measured by zero-shot accuracy on the XNLI test set).
  3. The impact on the representation space and cross-lingual transfer performance.

Based on observed correlations, they proposed a hypothesis that selectively freezing layers during fine-tuning could improve transfer to linguistically distant languages. They conducted pilot experiments to test this by freezing specific layers and observing the resulting correlations and transfer performance.

Datasets

  • XNLI (Cross-lingual Natural Language Inference): Used for fine-tuning and evaluating zero-shot cross-lingual transfer performance. The dataset contains premise-hypothesis pairs labeled with entailment, contradiction, or neutral, translated into 15 languages.

Key Insights and Ideas

  • Representation Space Evolution is Layer-Dependent: The impact of fine-tuning on a language's representation space isn't uniform across all layers. Deeper layers show stronger correlations between representation space impact and language distance, and also between representation space impact and transfer performance.
  • Linguistic Distance Matters Internally: The degree to which a language's representation space changes after fine-tuning is correlated with its linguistic distance from the source language. This suggests that MLLMs don't simply create a single, unified space but maintain distinct, evolving representations for each language.
  • A Path to Improving Transfer to Distant Languages: The observed inter-correlation between language distance, representation space impact, and transfer performance suggests a novel approach. By selectively freezing layers where the representation space impact is strongly negatively correlated with linguistic distance, the authors hypothesize that they can mitigate the negative effects of distance and potentially improve transfer to linguistically distant languages.
  • Genetic Distance is a Strong Predictor: Among the linguistic distance metrics, genetic distance showed a consistent and significant correlation across all layers with the impact on the representation space.

Key Results

  • Correlation between Representation Space Impact and Language Distance: Geographic and syntactic distances showed significant correlations in deeper layers. Genetic distance correlated significantly across all layers. Inventory and phonological distances showed almost no significant correlation.
  • Correlation between Representation Space Impact and Transfer Performance: Cross-lingual transfer performance generally correlated with the impact on the representation space, with stronger correlations observed in deeper layers.
  • Selective Layer Freezing Hypothesis: Pilot experiments showed that freezing specific layers (e.g., layer 2 for inventory distance, layer 5 for phonological distance) could reduce the correlation between that specific language distance metric and transfer performance. For instance, freezing layer 2 reduced the correlation between inventory distance and transfer performance from -0.66 to +0.0116.
  • Average Cross-Lingual Transfer Performance (CLTP): While the primary goal was to improve transfer for distant languages, the pilot experiments showed that freezing layers did not significantly harm overall average cross-lingual transfer performance (e.g., CLTP values around 66.70% for baseline and experiments).

Limitations and Future Work

  • Limited Scope: The study was conducted on 15 languages and a single downstream task (NLI). The findings may not generalize to other languages or tasks.
  • Correlation-Based Hypothesis: The hypothesis about selective layer freezing is supported by only three pilot experiments. More extensive studies are needed to confirm its practicality and effectiveness.
  • Traditional Correlation Coefficients: The use of traditional correlation coefficients might miss more complex relationships.
  • Future Work: The authors anticipate their hypothesis will stimulate further research into assessing its validity and practical application. They suggest exploring more sophisticated methods beyond simple correlation to understand the intricate relationships within MLLMs.

Summary updated

Abstract

Prior research has investigated the impact of various linguistic features on cross-lingual transfer performance. In this study, we investigate the manner in which this effect can be mapped onto the representation space. While past studies have focused on the impact on cross-lingual alignment in multilingual language models during fine-tuning, this study examines the absolute evolution of the respective language representation spaces produced by MLLMs. We place a specific emphasis on the role of linguistic characteristics and investigate their inter-correlation with the impact on representation spaces and cross-lingual transfer performance. Additionally, this paper provides preliminary evidence of how these findings can be leveraged to enhance transfer to linguistically distant languages.
BibTeX
@misc{philippy2023identifying,
  author = {Fred Philippy and Siwen Guo and Shohreh Haddadan},
  title = {{Identifying the Correlation Between Language Distance and Cross-Lingual Transfer in a Multilingual Representation Space}},
  year = {2023},
  url = {https://openreview.net/forum?id=ccWsY1uP4i},
  howpublished = {OpenReview},
}
Figure