arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2410.12883cs.CLcs.LG
收藏

多语言语言模型的缩放定律

Scaling Laws for Multilingual Language Models

University of Illinois Urbana-Champaign(伊利诺伊大学厄巴纳-香槟分校);Microsoft(微软公司)

Yifei He, Alon Benhaim, Barun Patra, Praneetha Vaddamanu, Sanchit Ahuja, Parul Chopra, Vishrav Chaudhary, Han Zhao, Xia Song

AI总结:

针对多语言预训练的语言平衡问题,本文提出按语言系属建立幂律缩放定律,可预测不同数据、模型规模与采样比例下的损失,并证明小模型得到的最优采样比例可泛化至1.2B参数模型。

摘要:

我们提出了一种新颖的缩放定律,适用于在多语言数据上训练的通用 decoder-only 语言模型(LM),以解决多语言预训练过程中的语言平衡问题。研究多语言缩放的一个主要挑战在于,由于跨语言迁移,很难分析单一语言的性能。为解决这一问题,我们将关注点从单一语言转向语言系属。我们提出并验证了一个假设:每个语言系属的测试交叉熵损失仅由其自身的采样比例决定,而与混合语料中的其他语言无关。这一洞见简化了多语言缩放的复杂性,并使分析能够扩展到任意数量的语言。基于该假设,我们推导出一种幂律关系,将性能与数据集规模、模型规模和采样比例联系起来。这一关系使我们能够预测上述三种量在不同组合下的性能,并推导不同模型规模下的最优采样比例。为证明所提出缩放定律的有效性和准确性,我们开展了大规模实证研究,在涵盖5个语言系属的23种语言上训练了100多个模型。实验表明,从85M参数的小模型推导出的最优采样比例,可有效泛化至参数规模大几个数量级的1.2B参数模型,从而为大规模多语言LM训练提供了一种资源高效的方法。

英文摘要:

We propose a novel scaling law for general-purpose decoder-only language models (LMs) trained on multilingual data, tackling the problem of balancing languages during multilingual pretraining. A primary challenge in studying multilingual scaling is the difficulty of analyzing individual language performance due to cross-lingual transfer. To address this, we shift the focus from individual languages to language families. We introduce and validate a hypothesis that the test cross-entropy loss for each language family is determined solely by its own sampling ratio, independent of other languages in the mixture. This insight simplifies the complexity of multilingual scaling and make the analysis scalable to an arbitrary number of languages. Building on this hypothesis, we derive a power-law relationship that links performance with dataset size, model size and sampling ratios. This relationship enables us to predict performance across various combinations of the above three quantities, and derive the optimal sampling ratios at different model scales. To demonstrate the effectiveness and accuracy of our proposed scaling law, we perform a large-scale empirical study, training more than 100 models on 23 languages spanning 5 language families. Our experiments show that the optimal sampling ratios derived from small models (85M parameters) generalize effectively to models that are several orders of magnitude larger (1.2B parameters), offering a resource-efficient approach for multilingual LM training at scale.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑