规模坍缩揭示计算最优训练神经网络的普适动力学
Scaling Collapse Reveals Universal Dynamics in Compute-Optimally Trained Neural Networks
AI总结:
本文发现计算最优训练的神经网络在归一化计算量和损失后,不同规模模型的损失曲线会坍缩到同一普适曲线,并提出“超坍缩”现象及一个SGD噪声动力学模型来解释其机制,为判断缩放是否最优提供了实用指标。
摘要:
当模型规模和训练时间同步增长时,何种规模极限支配着神经网络训练的动力学?我们表明,尽管架构、训练算法和数据之间存在复杂的相互作用,计算最优训练的模型却展现出一种极为精确的普适性。具体而言,当训练计算量和损失在训练结束时被归一化为1时,不同规模模型的损失曲线坍缩到一条单一的普适曲线上。在学习率衰减的情况下,这种坍缩变得非常紧密,以至于不同模型之间归一化曲线的差异低于单个模型在不同随机种子下损失曲线的噪声底限,我们将这一现象称为“超坍缩”。我们在不同的学习率调度、数据集和架构中都观察到了超坍缩现象,包括在下一词元预测任务上训练的Transformer模型,并且发现当超参数以次优方式缩放时,这种现象会失效,从而为良好的缩放提供了一个精确且实用的指标。我们通过将坍缩现象与典型神经规模律中的幂律结构联系起来解释这些现象,并分析了一个简单却出奇有效的SGD噪声动力学模型,该模型能够准确预测各种学习率调度下的损失曲线,并定量解释了超坍缩现象的起源。
英文摘要:
What scaling limits govern neural network training dynamics when model size and training time grow in tandem? We show that despite the complex interactions between architecture, training algorithms, and data, compute-optimally trained models exhibit a remarkably precise universality. Specifically, loss curves from models of varying sizes collapse onto a single universal curve when training compute and loss are normalized to unity at the end of training. With learning rate decay, the collapse becomes so tight that differences in the normalized curves across models fall below the noise floor of individual loss curves across random seeds, a phenomenon we term supercollapse. We observe supercollapse across learning rate schedules, datasets, and architectures, including transformers trained on next-token prediction, and find it breaks down when hyperparameters are scaled suboptimally, providing a precise and practical indicator of good scaling. We explain these phenomena by connecting collapse to the power-law structure in typical neural scaling laws, and analyzing a simple yet surprisingly effective model of SGD noise dynamics that accurately predicts loss curves across various learning rate schedules and quantitatively explains the origin of supercollapse.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。