$M^3$ 缩放定律:优化低资源语言模型的多周期、多语言和多阶段训练
$M^3$ Scaling Law: Optimizing Multi-Epoch, Multi-Lingual, and Multi-Stage Training for Low-Resource Language Models
AI总结:
本文提出 $M^3$ 缩放定律,统一预测模型规模、目标语料周期数、平均目标语言比例和最终阶段目标语言比例对低资源语言模型预训练损失的影响,并推导出最优训练策略的实用指南。
摘要:
在本文中,我们研究了低资源语言环境下预训练大型语言模型(LLMs)的一个基本设计问题。现有工作采用多周期、多语言和多阶段训练来有效利用有限的目标语言语料库,但没有先前的缩放定律可以在相同的计算预算 $C$ 和目标语言语料库大小 $D_T$ 下比较这些方法,导致最优训练设置不明确。为填补这一空白,我们提出了 $M^3$ 缩放定律,这是一个统一的预测模型,参数化为模型规模、目标语料库周期数 $k$、平均目标语言比例 $r$ 和最终阶段目标语言比例 $r_f$,将单语言单阶段、多语言单阶段和多语言多阶段方案置于单一的目标语言损失曲面上。在三个语言对中,它比现有缩放定律更准确地外推到未见过的超参数区域。使用 $M^3$ 作为替代目标,我们为低资源 LLM 预训练推导出两个实用指南:(i) 随着 $D_T$ 减小,最优方案在计算预算相关的阈值处直接从单语言单阶段转变为多语言两阶段训练,而在我们的实验网格中多语言单阶段从未最优;(ii) 最优周期数在稀缺变量 $D_T/D^*(C)$ 上坍缩为一条曲线,其中 $D^*(C) \propto C^{α/(α+β)}$ 是单语言计算最优语料库大小。
英文摘要:
In this paper, we study a fundamental design problem in pretraining Large Language Models (LLMs) for low-resource language regimes. Existing works adopt multi-epoch, multi-lingual, and multi-stage training to utilize the limited target-language corpus efficiently, but no prior scaling law can compare recipes spanning these approaches under the same compute budget $C$ and target-language corpus size $D_T$, leaving the optimal training setup unclear. To address this gap, we propose the $M^3$ Scaling Law, a unified predictive model parameterized by the model scale, the number of target-corpus epochs $k$, the average target-language ratio $r$, and the final-stage target-language ratio $r_f$, which places monolingual single-stage, multi-lingual single-stage, and multi-lingual multi-stage recipes on a single target-language loss surface. Across three language pairs, it extrapolates to unseen hyperparameter regions more accurately than existing scaling laws. Using $M^3$ as a surrogate objective, we derive two practical guidelines for low-resource LLM pretraining: (i) as $D_T$ decreases, the optimal recipe shifts directly from monolingual single-stage to multi-lingual two-stage training at a compute-budget-dependent threshold, with multi-lingual single-stage never optimal in our experimental grid; and (ii) the optimal number of epochs collapses onto a single curve in the scarcity variable $D_T/D^*(C)$, where $D^*(C) \propto C^{α/(α+β)}$ is the monolingual compute-optimal corpus size.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。