Abstract
Multilingual language models like mBERT and mT5 demonstrate impressive zero-shot transfer capabilities, yet the internal mechanisms driving this cross-lingual alignment remain poorly understood. This paper introduces two novel metrics, CALIGN and COLAP, to quantify how latent concepts align and overlap across model layers. Our analysis reveals that while models initially process language-specific lexical features, deeper layers develop a shared semantic space. Furthermore, we demonstrate that task-specific fine-tuning acts as a calibration mechanism, significantly enhancing cross-lingual alignment even for languages not present during the fine-tuning phase.
Introduction
The success of multilingual models in zero-shot scenarios—where a model trained on English can perform tasks in Arabic without additional training—suggests the existence of a shared "latent space." In this space, semantically similar words from different languages are positioned closely together. However, measuring this alignment has historically been challenging. This research moves beyond individual word-level analysis to examine latent concepts: clusters of internal representations that capture broader semantic categories.
Methods: Measuring Concept Alignment
The researchers propose a framework based on unsupervised clustering to discover and measure these internal concepts:
- Concept Discovery: By passing parallel data through a model and applying K-means clustering to the internal activations of each layer, the model's internal "worldview" is mapped into discrete concepts (e.g., clusters for occupations, adverbs, or medical terms).
- CALIGN (Concept Alignment): This metric determines if a concept cluster in one language has a semantically equivalent counterpart in another, verified via translation dictionaries.
- COLAP (Concept Overlap): This measures the degree of "multilinguality" within a single cluster, checking if it simultaneously contains tokens from multiple languages.
The Evolution of Representations
A key finding is the progression of representations through the network. Lower layers are primarily concerned with language-specific "lexical" features, such as suffixes. As data moves deeper into the model, these features give way to "semantic" concepts that are more universally aligned across languages.
One of the most striking insights is that fine-tuning a model on a specific task (e.g., English Named Entity Recognition) serves as a "calibration" step. This process forces the model to organize its internal concepts more efficiently, leading to a marked increase in alignment across all languages in the latent space, even those not used in the fine-tuning.
Key Results
Quantitative analysis across various benchmarks (TED Corpus, Xtreme, SST-2) highlights the impact of this calibration:
- Alignment Peaks: In higher layers, up to 42% of concepts were found to be perfectly aligned between German and English.
- Language Proximity: Closely related languages like English and French show high overlap (~80%), whereas distant pairs like English and Arabic peak significantly lower (~25%).
- Encoder-Decoder Divergence: In models like mT5, the encoder maintains high alignment in final layers, while the decoder's alignment drops as it prepares to generate language-specific output.
Conclusion and Limitations
The study provides a quantifiable link between internal alignment and zero-shot performance, suggesting that the "calibration" effect of fine-tuning is a primary driver of cross-lingual transfer. However, the authors note that extracting these representations is computationally expensive, requiring significant memory resources. Future research will explore the causal relationship between specific concept alignment and model performance through ablation studies.
Summary updated