Language Ranker: A Metric for Quantifying LLM Performance Across High and Low-Resource Languages

Zihao Li, Yucheng Shi, Zirui Liu, Fan Yang, Ali Payani +2 more
4/17/2024
cs.CLcs.AIcs.LG

No official code found. Best implementation: lizh9885/Language-Ranker (2 stars, last commit 2024-12-11).

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.

View on arXivView PDF

Code Implementations(1)

This is the source code of "Language Ranker: A Metric for Quantifying LLM Performance Across High and Low-Resource Languages"

20Shell, PythonNov 8, 20241 years ago

Similar Papers

Cite this paper

@article{li2024language,
  title  = {Language Ranker: A Metric for Quantifying LLM Performance Across High and Low-Resource Languages},
  author = {Zihao Li and Yucheng Shi and Zirui Liu and Fan Yang and Ali Payani and Ninghao Liu and Mengnan Du},
  year   = {2024},
  eprint = {2404.11553},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2404.11553v3}
}

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

Discussion