神经网络景观的超一致性与学习率迁移
Super Consistency of Neural Network Landscapes and Learning Rate Transfer
AI总结:
通过损失Hessian谱分析,揭示了μP缩放下神经网络景观锐度不随规模改变的“超一致性”是学习率迁移的原因,而NTK缩放因缺乏特征学习导致锐度动态不同。
摘要:
最近,越来越多的证据表明,如果神经网络的宽度和深度向所谓的丰富特征学习极限(即μP及其深度扩展)进行缩放,那么一些超参数(如学习率)会表现出从小模型到超大模型的迁移特性。从优化角度来看,这一现象令人费解,因为它意味着损失景观在不同模型规模之间保持着一致的相似性。在本研究中,我们通过损失Hessian的视角来研究该景观,重点关注其最大特征值(即锐度),并发现在$μ$P下某些谱特性在很大程度上独立于网络规模,并在训练过程中保持一致。我们将景观的这一特性命名为“超一致性”。另一方面,我们展示了在Neural Tangent Kernel(NTK,神经正切核)及其他缩放机制下,锐度在不同规模下表现出截然不同的动态。但是,是什么导致了锐度动态的这些差异呢?通过Hessian谱与NTK谱之间的联系,我们认为其原因在于特征学习的存在(对于$μ$P)或逐渐缺失(对于NTK缩放)。我们通过大量实验验证了我们的主张,涵盖了广泛的数据集和架构:从在基准视觉数据集上训练的ResNets和Vision Transformers,到在WikiText上训练的基于Transformers的语言模型。
英文摘要:
Recently, there has been growing evidence that if the width and depth of a neural network are scaled toward the so-called rich feature learning limit (\mup and its depth extension), then some hyperparameters -- such as the learning rate -- exhibit transfer from small to very large models. From an optimization perspective, this phenomenon is puzzling, as it implies that the loss landscape is consistently similar across very different model sizes. In this work, we study the landscape through the lens of the loss Hessian, with a focus on its largest eigenvalue (i.e. the sharpness), and find that certain spectral properties under $μ$P are largely independent of the size of the network, and remain consistent as training progresses. We name this property Super Consistency of the landscape. On the other hand, we show that in the Neural Tangent Kernel (NTK) and other scaling regimes, the sharpness exhibits very different dynamics at different scales. But what causes these differences in the sharpness dynamics? Through a connection between the Hessian's and the NTK's spectrum, we argue that the cause lies in the presence (for $μ$P) or progressive absence (for the NTK scaling) of feature learning. We corroborate our claims with a substantial suite of experiments, covering a wide range of datasets and architectures: from ResNets and Vision Transformers trained on benchmark vision datasets to Transformers-based language models trained on WikiText.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。