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

不同规模语言模型的训练轨迹

Training Trajectories of Language Models Across Scales

Princeton University(普林斯顿大学);Meta AI

Mengzhou Xia, Mikel Artetxe, Chunting Zhou, Xi Victoria Lin, Ramakanth Pasunuru, Danqi Chen, Luke Zettlemoyer, Ves Stoyanov

AI总结:

本文通过分析不同规模 OPT 模型的训练检查点,发现困惑度比模型规模或训练计算量更能预测模型行为,并揭示了不同规模模型在学习动态上的关键差异。

摘要:

扩大语言模型规模带来了前所未有的性能提升,但人们对模型变大时训练动态如何变化仍知之甚少。不同规模的语言模型在预训练期间是如何学习的?为什么更大的语言模型会表现出更理想的行为?在本文中,我们分析了不同规模的 OPT 模型(Zhang et al., 2022)——从 125M 到 175B 参数——在下一词预测、序列级生成和下游任务上的中间训练检查点。我们发现:1)在给定的困惑度下且与模型规模无关,一个相似的训练词元子集出现了最显著的损失下降,其余词元则停滞不前或表现出双下降行为;2)在训练早期,所有模型都学会降低包含幻觉的语法序列的困惑度,小模型停留在这一次优分布上,而更大的模型最终学会为这些序列分配更低的概率;3)困惑度是 BIG-Bench 中 74 个多项选择任务上上下文学习性能的强预测指标,且这一关系与模型规模无关。综合来看,这些结果表明,与模型规模或训练计算量相比,困惑度更能预测模型行为。

英文摘要:

Scaling up language models has led to unprecedented performance gains, but little is understood about how the training dynamics change as models get larger. How do language models of different sizes learn during pre-training? Why do larger language models demonstrate more desirable behaviors? In this paper, we analyze the intermediate training checkpoints of differently sized OPT models (Zhang et al.,2022)--from 125M to 175B parameters--on next-token prediction, sequence-level generation, and downstream tasks. We find that 1) at a given perplexity and independent of model sizes, a similar subset of training tokens see the most significant reduction in loss, with the rest stagnating or showing double-descent behavior; 2) early in training, all models learn to reduce the perplexity of grammatical sequences that contain hallucinations, with small models halting at this suboptimal distribution and larger ones eventually learning to assign these sequences lower probabilities; 3) perplexity is a strong predictor of in-context learning performance on 74 multiple-choice tasks from BIG-Bench, and this holds independent of the model size. Together, these results show that perplexity is more predictive of model behaviors than model size or training computation.

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

↑