arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2207.05931cs.LGstat.ML
收藏

了解动量如何改善深度学习中的泛化

Towards understanding how momentum improves generalization in deep learning

Princeton University(普林斯顿大学);Carnegie Mellon University(卡内基梅隆大学)

Samy Jelassi, Yuanzhi Li

摘要:

具有动量的随机梯度下降(SGD)被广泛用于训练现代深度学习架构。虽然众所周知,使用动量可以在各种设置中导致更快的收敛速度,但也观察到动量产生更高的泛化。先前的工作认为,动量在训练过程中稳定了SGD噪声,这导致了更高的泛化能力。在本文中,我们采用了另一种观点,并首次实证表明,在某些深度学习问题中,与梯度下降(GD)相比,动量梯度下降(GD+M)显着提高了泛化能力。从这个观察,我们正式研究动量如何提高泛化。我们设计了一个二进制分类设置,其中一个隐藏层(过参数化)卷积神经网络与GD+M训练证明推广优于相同的网络与GD训练,当这两种算法类似地初始化。我们分析中的关键见解是,动量在数据集中是有益的,其中示例共享一些特征,但它们的边际不同。与记忆小边缘数据的GD相反,GD+M仍然学习这些数据中的特征,这要归功于其历史梯度。最后,我们实证验证我们的理论研究结果。

英文摘要:

Stochastic gradient descent (SGD) with momentum is widely used for training modern deep learning architectures. While it is well-understood that using momentum can lead to faster convergence rate in various settings, it has also been observed that momentum yields higher generalization. Prior work argue that momentum stabilizes the SGD noise during training and this leads to higher generalization. In this paper, we adopt another perspective and first empirically show that gradient descent with momentum (GD+M) significantly improves generalization compared to gradient descent (GD) in some deep learning problems. From this observation, we formally study how momentum improves generalization. We devise a binary classification setting where a one-hidden layer (over-parameterized) convolutional neural network trained with GD+M provably generalizes better than the same network trained with GD, when both algorithms are similarly initialized. The key insight in our analysis is that momentum is beneficial in datasets where the examples share some feature but differ in their margin. Contrary to GD that memorizes the small margin data, GD+M still learns the feature in these data thanks to its historical gradients. Lastly, we empirically validate our theoretical findings.

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

↑