考虑批量大小的语言模型训练缩放定律
Scaling Law for Language Models Training Considering Batch Size
AI总结:
本文通过125M至2.6B参数模型、最多3000亿token实验,研究全局批量大小与学习率对LLM收敛和泛化的影响,提出固定算力与固定数据量下的批量大小缩放定律。
摘要:
近年来,大型语言模型(LLM)取得了显著进展,缩放定律在这一快速进步中发挥了关键作用。本文通过实证研究考察一个关键超参数,即全局批量大小,如何影响 LLM 训练过程。我们首先训练参数量从1.25亿到26亿的语言模型,使用多达3000亿个高质量 token。通过这些实验,我们建立了关于模型规模和训练数据量的基础缩放定律。随后,我们考察不同批量大小和学习率如何影响这些模型的收敛与泛化。我们的分析给出了两种不同情形下的批量大小缩放定律:固定计算预算情形,以及固定训练数据量情形。在规模不断增大的模型上进行的外推实验验证了我们预测的定律,这为在特定资源约束下优化 LLM 训练策略提供了指导。
英文摘要:
Large language models (LLMs) have made remarkable advances in recent years, with scaling laws playing a critical role in this rapid progress. In this paper, we empirically investigate how a critical hyper-parameter, i.e., the global batch size, influences the LLM training prdocess. We begin by training language models ranging from 125 million to 2.6 billion parameters, using up to 300 billion high-quality tokens. Through these experiments, we establish a basic scaling law on model size and training data amount. We then examine how varying batch sizes and learning rates affect the convergence and generalization of these models. Our analysis yields batch size scaling laws under two different cases: with a fixed compute budget, and with a fixed amount of training data. Extrapolation experiments on models of increasing sizes validate our predicted laws, which provides guidance for optimizing LLM training strategies under specific resource constraints.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。