Quantifying Multilingual Performance of Large Language Models Across Languages

Zihao Li, Yucheng Shi, Zirui Liu, Fan Yang, Ninghao Liu, Mengnan Du

Abstract: The development of Large Language Models (LLMs) relies on extensive text corpora, which are often unevenly distributed across languages. This imbalance results in LLMs performing significantly better on high-resource languages like English, German, and French, while their capabilities in low-resource languages remain inadequate. Currently, there is a lack of quantitative methods to evaluate the performance of LLMs in these low-resource languages. To address this gap, we propose the Language Ranker, an intrinsic metric designed to benchmark and rank languages based on LLM performance using internal representations. By comparing the LLM's internal representation of various languages against a baseline derived from English, we can assess the model's multilingual capabilities in a robust and language-agnostic manner. Our analysis reveals that high-resource languages exhibit higher similarity scores with English, demonstrating superior performance, while low-resource languages show lower similarity scores, underscoring the effectiveness of our metric in assessing language-specific capabilities. Besides, the experiments show that there is a strong correlation between the LLM's performance in different languages and the proportion of those languages in its pre-training corpus. These insights underscore the efficacy of the Language Ranker as a tool for evaluating LLM performance across different languages, particularly those with limited resources.

Introduction

Large Language Models (LLMs) are notoriously biased toward English, but quantifying their "fluency" in low-resource languages usually requires expensive, human-annotated benchmarks. This research introduces Language Ranker, an intrinsic metric that measures a model's multilingual competence by comparing its internal "thought" representations of different languages against an English baseline. The results reveal a stark reality: low-resource languages are physically "compressed" into narrower subspaces within the model, directly correlating with the lack of training data.

Methodology

The Language Ranker shifts the focus from model output to internal representations. The approach utilizes parallel sentences from the OPUS-100 corpus to extract hidden state vectors (embeddings) from the model's intermediate layers.

  1. Similarity Measurement: Cosine similarity is calculated between the embeddings of a target language and its English counterpart.
  2. Layer Averaging: Similarity is averaged across multiple layers to ensure a robust measurement of how "close" the target language's representation is to the English "gold standard."
  3. Double Variance Analysis: To understand the structural nature of these representations, the authors use Principal Component Analysis (PCA) to calculate "double variance," identifying whether a language occupies a rich, multi-dimensional space or is flattened into a narrow subspace.

Key Insights: The "Narrow Subspace" Phenomenon

One of the most striking findings is that high-resource languages are evenly distributed throughout the model's embedding space. In contrast, low-resource languages are narrowly distributed and compressed into a near straight line. This suggests the model lacks the representational "vocabulary" to treat these languages with nuance.

PCA visualization of internal representations, showing the "narrow subspace" phenomenon in low-resource languages (bottom row) compared to high-resource languages (top row).

This phenomenon correlates directly with pre-training data; if a language makes up less than 0.01% of the training corpus, its internal representation is fundamentally degraded. Using English as a "North Star" baseline effectively measures the "translation loss" inside the model's own internal logic.

Key Results and Model Consistency

Across different architectures—including Llama, Mistral, Gemma, and Qwen—the relative ranking of languages remained remarkably consistent. High-resource languages (German, Spanish, French) consistently scored above 0.6 in similarity to English, while low-resource languages (Igbo, Kazakh, Turkmen) frequently fell below 0.4.

Cosine similarity of internal representations across layers for various languages in 7B models, demonstrating the consistent performance gap between high and low-resource languages.

Validation against benchmarks like ARC and MMLU confirmed that Language Ranker scores have a strong positive correlation with real-world reasoning ability. Furthermore, the metric successfully captured the effects of targeted training; for example, the Qwen model showed significantly higher similarity scores for Chinese compared to Llama 2, reflecting its additional fine-tuning on Chinese corpora.

Conclusion and Future Work

While Language Ranker provides a scalable way to look "under the hood" of LLMs, it currently depends on English as a baseline and requires parallel text. Future research aims to use this metric to guide the development of more balanced training sets, identifying exactly where a model needs more data to "un-flatten" its understanding of specific languages.

Summary updated

BibTeX
@inproceedings{li2025quantifying,
  author = {Zihao Li and Yucheng Shi and Zirui Liu and Fan Yang and Ninghao Liu and Mengnan Du},
  title = {{Quantifying Multilingual Performance of Large Language Models Across Languages}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2025},
  doi = {10.1609/aaai.v39i27.35038},
}
Figure