The Limiting Dynamics of SGD: Modified Loss, Phase-Space Oscillations, and Anomalous Diffusion

Author:

Kunin Daniel1,Sagastuy-Brena Javier2,Gillespie Lauren3,Margalit Eshed4,Tanaka Hidenori5,Ganguli Surya67,Yamins Daniel L. K.8

Affiliation:

1. Stanford University, Stanford, CA 94305, U.S.A. kunin@stanford.edu

2. Stanford University, Stanford, CA 94305, U.S.A. jvrsgsty@stanford.edu

3. Stanford University, Stanford, CA 94305, U.S.A. gillespl@stanford.edu

4. Stanford University, Stanford, CA 94305, U.S.A. eshedm@stanford.edu

5. NTT Research, Sunnyvale, CA 94085, U.S.A. hidenori.tanaka@ntt-research.com

6. Stanford University, Stanford, CA 94305, U.S.A.

7. Facebook AI Research, Menlo Park, CA 94025, U.S.A. sganguli@stanford.edu

8. Stanford University, Stanford, CA 94305, U.S.A. yamins@stanford.edu

Abstract

Abstract In this work, we explore the limiting dynamics of deep neural networks trained with stochastic gradient descent (SGD). As observed previously, long after performance has converged, networks continue to move through parameter space by a process of anomalous diffusion in which distance traveled grows as a power law in the number of gradient updates with a nontrivial exponent. We reveal an intricate interaction among the hyperparameters of optimization, the structure in the gradient noise, and the Hessian matrix at the end of training that explains this anomalous diffusion. To build this understanding, we first derive a continuous-time model for SGD with finite learning rates and batch sizes as an underdamped Langevin equation. We study this equation in the setting of linear regression, where we can derive exact, analytic expressions for the phase-space dynamics of the parameters and their instantaneous velocities from initialization to stationarity. Using the Fokker-Planck equation, we show that the key ingredient driving these dynamics is not the original training loss but rather the combination of a modified loss, which implicitly regularizes the velocity, and probability currents that cause oscillations in phase space. We identify qualitative and quantitative predictions of this theory in the dynamics of a ResNet-18 model trained on ImageNet. Through the lens of statistical physics, we uncover a mechanistic origin for the anomalous limiting dynamics of deep neural networks trained with SGD. Understanding the limiting dynamics of SGD, and its dependence on various important hyperparameters like batch size, learning rate, and momentum, can serve as a basis for future work that can turn these insights into algorithmic gains.

Publisher

MIT Press

Subject

Cognitive Neuroscience,Arts and Humanities (miscellaneous)

Reference54 articles.

1. The implicit regularization of stochastic gradient flow for least squares;Ali,2020

2. Potential in stochastic differential equations: Novel construction;Ao;Journal of Physics A: Mathematical and General,2004

3. Comparing dynamics: Deep neural networks versus glassy systems;Baity-Jesi,2018

4. Entropy-SGD: Biasing gradient descent into wide valleys;Chaudhari;Journal of Statistical Mechanics: Theory and Experiment,2019

Cited by 1 articles. 订阅此论文施引文献 订阅此论文施引文献,注册后可以免费订阅5篇论文的施引文献,订阅后可以查看论文全部施引文献

同舟云学术

1.学者识别学者识别

2.学术分析学术分析

3.人才评估人才评估

"同舟云学术"是以全球学者为主线,采集、加工和组织学术论文而形成的新型学术文献查询和分析系统,可以对全球学者进行文献检索和人才价值评估。用户可以通过关注某些学科领域的顶尖人物而持续追踪该领域的学科进展和研究前沿。经过近期的数据扩容,当前同舟云学术共收录了国内外主流学术期刊6万余种,收集的期刊论文及会议论文总量共计约1.5亿篇,并以每天添加12000余篇中外论文的速度递增。我们也可以为用户提供个性化、定制化的学者数据。欢迎来电咨询!咨询电话:010-8811{复制后删除}0370

www.globalauthorid.com

TOP

Copyright © 2019-2024 北京同舟云网络信息技术有限公司
京公网安备11010802033243号  京ICP备18003416号-3