arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2305.13664cs.LGmath.OC
收藏

面向深度学习随机一阶方法的逐层自适应步长

Layer-wise Adaptive Step-Sizes for Stochastic First-Order Methods for Deep Learning

Achraf Bahamou, Donald Goldfarb

AI总结:

本文提出利用深度神经网络 Hessian 对角块中的逐层曲率信息为每层自适应计算学习率,使带动量的 SGD 和 AdamW 无需手动调参即可在多种深度模型上取得优于精细调参和主流优化算法的性能。

摘要:

我们提出了一种新的逐层自适应步长方法,用于随机一阶优化方法,以最小化深度学习中的经验损失函数,从而无需用户手动调节学习率。该方法利用深度神经网络中 Hessian 矩阵对角块所包含的逐层随机曲率信息,为每一层计算自适应步长(即学习率)。该方法的存储需求与一阶方法相当,而其每次迭代的时间复杂度仅增加约相当于一次额外梯度计算的开销。数值实验表明,结合所提出的逐层步长后,带动量的 SGD 和 AdamW 能够选择有效的学习率调度,并在 Autoencoder、卷积神经网络和图卷积网络模型的训练中优于经过精细调参的上述方法以及流行的一阶和二阶算法。最后,我们证明了在使用全批量梯度时,采用逐层步长的理想化 SGD 具有线性收敛性。

英文摘要:

We propose a new per-layer adaptive step-size procedure for stochastic first-order optimization methods for minimizing empirical loss functions in deep learning, eliminating the need for the user to tune the learning rate (LR). The proposed approach exploits the layer-wise stochastic curvature information contained in the diagonal blocks of the Hessian in deep neural networks (DNNs) to compute adaptive step-sizes (i.e., LRs) for each layer. The method has memory requirements that are comparable to those of first-order methods, while its per-iteration time complexity is only increased by an amount that is roughly equivalent to an additional gradient computation. Numerical experiments show that SGD with momentum and AdamW combined with the proposed per-layer step-sizes are able to choose effective LR schedules and outperform fine-tuned LR versions of these methods as well as popular first-order and second-order algorithms for training DNNs on Autoencoder, Convolutional Neural Network (CNN) and Graph Convolutional Network (GCN) models. Finally, it is proved that an idealized version of SGD with the layer-wise step sizes converges linearly when using full-batch gradients.

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

↑