[论文解读] Language Ranker: A Metric for Quantifying LLM Performance Across High and Low-Resource Languages
本文介绍 Language Ranker,这是一个基于相似度的度量,用英语表示作为基线来量化跨语言的 LLM 性能,并分析性能与语言预训练比例及模型规模的相关性。
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.
研究动机与目标
- 鉴于多语言训练数据不平衡,动机是定量衡量低资源语言的 LLM 性能。
- 提出一种基于相似度的度量(Language Ranker),以英语表示为基线来评估其他语言。
- 分析语言与英语的相似度、模型规模和预训练语料比例如何影响多语言性能。
- 展示跨模型的排名一致性,并将相似度分数与来自预训练数据的语料组成相关联。
提出的方法
- 在多个 Transformer 层提取英语和目标语言的表示。
- 对英语和目标语言表示计算逐层余弦相似度,并在所选层(层 5、10、15、20、25)上取平均。
- 按与英语的相似度对语言进行排序,并使用最长公共部分序列度量在不同 LLMs 间比较语言排名。
- 在语言范围内评估四个开源模型(LlaMa2, Qwen, Mistral, Gemma),包括 10 种代表性语言(5 个高资源、5 个低资源)。
- 将相似度分数与来自模型报告的已知预训练语料比例相关联(如 LlaMa2)。
- 通过比较 Qwen 的 0.5B、4B 和 7B 变体在各语言组上的表现,分析规模效应。

实验结果
研究问题
- RQ1基于英语表示的相似性能否作为跨语言 LLM 性能的代理?
- RQ2语言性能排名是否在跨模型间保持一致性,与模型规模无关?
- RQ3预训练语料中某语言的比例与提出的相似性度量有何关系?
- RQ4模型规模和语言资源水平对跨语言性能有何影响?
- RQ5Language Ranker 能否反映语言特定微调或定向预训练带来的改进?
主要发现
- 跨语言的语言排序在不同 LLM 间大致一致。
- 不同的模型规模呈现相同的语言性能的部分序。
- 在若干语言上,Llama2 的语言相似性与其预训练语料比例存在强相关性。
- 高资源语言通常比低资源语言更接近英语。
- 对特定语言进行微调(例如 Qwen 的中文)可以提高该语言的表现,尤其是在后层。
- 相似性度量与预训练中报告的语言比例相关,尽管由于其他语言因素并非完美相关。

阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。