大型语言模型(LLM)最优扩展中的主要挑战之一是超参数调优成本高昂,尤其是学习率 η 和批量大小 B。尽管 μP(Yang 等人,2022)等技术为无限模型规模极限下的最优 η 迁移提供了扩展规则,但无限数据规模极限下的最优扩展行为仍不清楚。我们填补了这一空白:首次观察到最优 η 扩展对预训练 token 预算 T、B 及其与临界批量大小 B_crit 关系的复杂依赖;我们测得 B_crit 随 T 演化为 B_crit ∝ T。此外,我们表明最优批量大小与 B_crit 正相关:即使学习率得到最优扩展,随时间推移保持批量大小固定也会变得次优。令人惊讶的是,我们的结果证明,观察到的最优 η 和 B 动态在 μP 模型扩展下得以保持,这挑战了 B_crit 仅依赖于损失值的传统观点。作为最优性的补充,我们考察了损失对学习率变化的敏感性,发现该敏感性随 T 增加而下降,并在 μP 模型扩展下保持恒定。我们希望这些结果能迈向数据与模型联合最优扩展统一图景的第一步。
英文摘要:
One of the main challenges in optimal scaling of large language models (LLMs) is the prohibitive cost of hyperparameter tuning, particularly learning rate $η$ and batch size $B$. While techniques like $μ$P (Yang et al., 2022) provide scaling rules for optimal $η$ transfer in the infinite model size limit, the optimal scaling behavior in the infinite data size limit remains unknown. We fill in this gap by observing for the first time an intricate dependence of optimal $η$ scaling on the pretraining token budget $T$, $B$ and its relation to the critical batch size $B_\mathrm{crit}$, which we measure to evolve as $B_\mathrm{crit} \propto T$. Furthermore, we show that the optimal batch size is positively correlated with $B_\mathrm{crit}$: keeping it fixed becomes suboptimal over time even if learning rate is scaled optimally. Surprisingly, our results demonstrate that the observed optimal $η$ and $B$ dynamics are preserved with $μ$P model scaling, challenging the conventional view of $B_\mathrm{crit}$ dependence solely on loss value. Complementing optimality, we examine the sensitivity of loss to changes in learning rate, where we find the sensitivity to decrease with increase of $T$ and to remain constant with $μ$P model scaling. We hope our results make the first step towards a unified picture of the joint optimal data and model scaling.
Deriving Scaling Laws for OpenEuroLLM Models: Learning Rate, Batch Size and Loss
Eindhoven University of Technology(埃因霍温理工大学);Georgia Institute of Technology(佐治亚理工学院);University of Freiburg(弗赖堡大学);LAION;Open-Ψ (Open-Sci) Collective(Open-Ψ(开放科学)集体);University of Turku(图尔库大学);OpenEuroLLM
FedHealth 2: Weighted Federated Transfer Learning via Batch Normalization for Personalized Healthcare
Institute of Computing Technology, Chinese Academy of Sciences(中国科学院计算技术研究所);University of Chinese Academy of Sciences(中国科学院大学);Microsoft Research Asia(微软亚洲研究院)
From drift to adaptation to the failed ml model: Transfer Learning in Industrial MLOps
University College London(伦敦大学学院);The Alan Turing Institute(艾伦·图灵研究所);Univeristy of Engineering and Technology(工程与技术大学);Sahiwal Coal Fired Power Plant(萨希瓦尔燃煤发电厂)
How Does Critical Batch Size Scale in Pre-training?
Harvard University(哈佛大学);Kempner Institute at Harvard University(哈佛大学凯普勒研究所);University of California, Berkeley(加州大学伯克利分校);The University of Hong Kong(香港大学);Amazon(亚马逊公司)
Training-Time Batch Normalization Reshapes Local Partition Geometry in Piecewise-Affine Networks
AI for Good Istituto Italiano di Tecnologia(AI for Good 意大利技术研究院);DITEN University of Genoa(DITEN Genoa大学);State Key Laboratory of Novel Software Technology School of Intelligence Science and Technology(新型软件技术国家重点实验室 智能科学与技术学院);School of Artificial Intelligence Nanjing University(人工智能学院 南京大学);Department of Computer Science University of Verona(计算机科学系 Verona大学)
Télécom Paris Tech(巴黎电信学院);University of Edinburgh(爱丁堡大学);King Abdullah University of Science and Technology(阿卜杜拉国王科技大学);Moscow Institute of Physics and Technology(莫斯科物理技术学院)
Automated Batch Distillation Process Simulation for a Large Hybrid Dataset for Deep Anomaly Detection
Fraunhofer Institute for Industrial Mathematics (ITWM)(弗劳恩霍夫工业数学研究所);Laboratory of Engineering Thermodynamics (LTD)(工程热力学实验室);RPTU Kaiserslautern(科隆大学(卡塞尔拉特恩分校))