arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2309.16620stat.MLcond-mat.dis-nncs.AIcs.LG
收藏

残差网络中的深度超参数迁移:动力学与标度极限

Depthwise Hyperparameter Transfer in Residual Networks: Dynamics and Scaling Limit

Harvard University(哈佛大学);ETH Zürich(苏黎世联邦理工学院);Princeton University(普林斯顿大学)

Blake Bordelon, Lorenzo Noci, Mufan Bill Li, Boris Hanin, Cengiz Pehlevan

AI总结:

本文提出将残差分支尺度 1/√depth 与 μP 参数化结合,使 ResNet 和 ViT 的最优超参数可跨宽度与深度迁移,并以 DMFT 证明其联合无限宽、无限深极限。

摘要:

深度学习中超参数调优的成本随着模型规模不断上升,促使从业者寻找利用较小网络作为代理的新调优方法。其中一种方案采用 μP 参数化网络,即小宽度网络的最优超参数可迁移到任意大宽度的网络。然而,在该方案中,超参数无法跨深度迁移。作为补救,我们研究了残差分支尺度为 1/√depth 的残差网络,并将其与 μP 参数化相结合。我们提供的实验表明,使用这种参数化训练的残差架构(包括卷积 ResNet 和 Vision Transformer)在 CIFAR-10 和 ImageNet 上展现出最优超参数跨宽度和深度的迁移。此外,我们的实证发现得到了理论的支持和启发。利用神经网络学习动力学的动态平均场理论(DMFT)描述的最新进展,我们证明 ResNet 的这种参数化具有定义明确的特征学习联合无限宽与无限深极限,并证明有限规模网络的动力学会收敛到该极限。

英文摘要:

The cost of hyperparameter tuning in deep learning has been rising with model sizes, prompting practitioners to find new tuning methods using a proxy of smaller networks. One such proposal uses $μ$P parameterized networks, where the optimal hyperparameters for small width networks transfer to networks with arbitrarily large width. However, in this scheme, hyperparameters do not transfer across depths. As a remedy, we study residual networks with a residual branch scale of $1/\sqrt{\text{depth}}$ in combination with the $μ$P parameterization. We provide experiments demonstrating that residual architectures including convolutional ResNets and Vision Transformers trained with this parameterization exhibit transfer of optimal hyperparameters across width and depth on CIFAR-10 and ImageNet. Furthermore, our empirical findings are supported and motivated by theory. Using recent developments in the dynamical mean field theory (DMFT) description of neural network learning dynamics, we show that this parameterization of ResNets admits a well-defined feature learning joint infinite-width and infinite-depth limit and show convergence of finite-size network dynamics towards this limit.

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

↑