arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2212.07295stat.MLcs.LG
收藏

深度ReLU网络中的最大初始学习率

Maximal Initial Learning Rates in Deep ReLU Networks

McGill University(麦吉尔大学);Mila – Quebec AI Institute(米拉——魁北克人工智能研究所);Princeton University(普林斯顿大学)

Gaurav Iyer, Boris Hanin, David Rolnick

AI总结:

本文提出最大初始学习率概念,研究深度ReLU网络在随机初始化下能成功开始训练的最大学习率,发现其可由深度×宽度的幂预测,并分析了其与初始化锐度的关系。

摘要:

训练神经网络需要选择合适的学习率,这涉及收敛速度与有效性之间的权衡。尽管已有大量关于学习率可以取多大的理论与实证分析,但大多数先前工作只关注训练后期阶段。在本文中,我们引入最大初始学习率 $η^{\ast}$——即随机初始化的神经网络能够成功开始训练并达到(至少)给定阈值精度的最大学习率。通过使用一种简单的方法来估计 $η^{\ast}$,我们观察到在等宽全连接ReLU网络中,$η^{\ast}$ 的行为与训练后期的最大学习率不同。具体而言,我们发现 $η^{\ast}$ 可以很好地预测为深度 $\times$ 宽度的幂,前提是(i)网络的宽度相对于深度足够大,并且(ii)输入层以相对较小的学习率进行训练。我们进一步分析了 $η^{\ast}$ 与网络初始化时锐度 $λ_{1}$ 之间的关系,表明它们密切相关但并非成反比关系。我们正式证明了 $λ_{1}$ 关于深度 $\times$ 宽度的界,这与我们的实证结果一致。

英文摘要:

Training a neural network requires choosing a suitable learning rate, which involves a trade-off between speed and effectiveness of convergence. While there has been considerable theoretical and empirical analysis of how large the learning rate can be, most prior work focuses only on late-stage training. In this work, we introduce the maximal initial learning rate $η^{\ast}$ - the largest learning rate at which a randomly initialized neural network can successfully begin training and achieve (at least) a given threshold accuracy. Using a simple approach to estimate $η^{\ast}$, we observe that in constant-width fully-connected ReLU networks, $η^{\ast}$ behaves differently from the maximum learning rate later in training. Specifically, we find that $η^{\ast}$ is well predicted as a power of depth $\times$ width, provided that (i) the width of the network is sufficiently large compared to the depth, and (ii) the input layer is trained at a relatively small learning rate. We further analyze the relationship between $η^{\ast}$ and the sharpness $λ_{1}$ of the network at initialization, indicating they are closely though not inversely related. We formally prove bounds for $λ_{1}$ in terms of depth $\times$ width that align with our empirical results.

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

↑