A Tail-Index Analysis of Stochastic Gradient Noise in Deep Neural Networks
LTCI, Télécom ParisTech, Université Paris-Saclay(巴黎萨克雷大学巴黎高等电信学院LTCI实验室);Institute of Physics, École Polytechnique Fédérale de Lausanne(洛桑联邦理工学院物理研究所);Rutgers Business School(罗格斯商学院)
The gradient noise (GN) in the stochastic gradient descent (SGD) algorithm is often considered to be Gaussian in the large data regime by assuming that the classical central limit theorem (CLT) kicks in. This assumption is often made for mathematical convenience, since it enables SGD to be analyzed as a stochastic differential equation (SDE) driven by a Brownian motion. We argue that the Gaussianity assumption might fail to hold in deep learning settings and hence render the Brownian motion-based analyses inappropriate. Inspired by non-Gaussian natural phenomena, we consider the GN in a more general context and invoke the generalized CLT (GCLT), which suggests that the GN converges to a heavy-tailed $α$-stable random variable. Accordingly, we propose to analyze SGD as an SDE driven by a Lévy motion. Such SDEs can incur `jumps', which force the SDE transition from narrow minima to wider minima, as proven by existing metastability theory. To validate the $α$-stable assumption, we conduct extensive experiments on common deep learning architectures and show that in all settings, the GN is highly non-Gaussian and admits heavy-tails. We further investigate the tail behavior in varying network architectures and sizes, loss functions, and datasets. Our results open up a different perspective and shed more light on the belief that SGD prefers wide minima.
Emergence of heavy tails in homogenized stochastic gradient descent
School of Mathematics and Statistics, Northwestern Polytechnical University(西北工业大学数学与统计学院);TU Dresden(德累斯顿工业大学);ScaDS.ai Center for scalable data analytics and artificial intelligence(ScaDS.ai可扩展数据分析与人工智能中心)
Fractional Underdamped Langevin Dynamics: Retargeting SGD with Momentum under Heavy-Tailed Gradient Noise
LTCI, Télécom Paris, Institut Polytechnique de Paris(巴黎理工学院巴黎电信学院LTCI实验室);Department of Statistics, University of Oxford(牛津大学统计系);Department of Mathematics, Florida State University(佛罗里达州立大学数学系);Department of Management Science and Information Systems, Rutgers Business School(罗格斯大学商学院管理科学与信息系统系)
带动量的随机梯度下降(SGDm)是深度学习中最流行的优化算法之一。虽然有丰富的SGDm理论用于凸问题,但该理论在深度学习的背景下发展得相当少,其中问题是非凸的,并且梯度噪声可能表现出重尾行为,正如最近的研究所观察到的那样。在这项研究中,我们考虑了一个\emph{continuous-time}变形的SGDm,称为欠阻尼朗之万动力学(ULD),并研究其渐近性质下的重尾扰动。支持最近的研究从统计物理,我们认为在理论上和经验上,这种扰动的重尾可以导致偏见,即使当步长很小,在这个意义上说,\emph{the optima of stationary distribution}的动态可能不匹配\emph{the optima of the cost function to be optimized}。作为补救措施,我们开发了一个新的框架,我们将其命名为\emph{fractional} ULD(FULD),并证明FULD针对所谓的吉布斯分布,其最优值与原始成本的最优值完全匹配。我们观察到,FULD的欧拉离散化与\emph{natural gradient}方法和\emph{gradient clipping}具有值得注意的算法相似性,为理解它们在深度学习中的作用带来了新的视角。我们支持我们的理论与合成模型和神经网络上进行的实验。
Algorithmic Stability of Heavy-Tailed Stochastic Gradient Descent on Least Squares
University of Illinois Urbana-Champaign(伊利诺伊大学厄巴纳-香槟分校);Inria(法国国家信息与自动化研究所);Ecole Normale Supérieure(巴黎高等师范学院);PSL Research University(巴黎文理研究大学);Boğaziçi University(博阿齐奇大学);Rutgers University(罗格斯大学);Florida State University(佛罗里达州立大学);CNRS(法国国家科学研究中心)
最近的研究表明,重尾可以出现在随机最优化和尾部的沉重有联系的泛化错误。虽然这些研究揭示了现代环境中泛化行为的有趣方面,但它们依赖于强拓扑和统计规律性假设,这些假设很难在实践中得到验证。此外,经验表明,重尾和泛化之间的关系在实践中可能并不总是单调的,与现有理论的结论相反。在这项研究中,我们建立了新的尾部行为和随机梯度下降(SGD)的泛化性能之间的联系,通过镜头的算法稳定性。我们考虑一个二次优化问题,并使用一个重尾随机微分方程(及其欧拉离散化)作为一个代理建模的重尾行为出现在SGD。然后,我们证明了一致的稳定性界限,这揭示了以下结果:(i)没有任何外来的假设,我们表明,SGD将不会是稳定的,如果稳定性是衡量平方损失$x\mapsto x^2$,而它反过来成为稳定的,如果稳定性,而不是衡量与一些$p<2$的替代损失$x\mapsto |x|^p$。(ii)根据数据的方差,存在\emph{`threshold of heavy-tailedness'},使得泛化误差随着尾部变重而减小,只要尾部比该阈值轻。这表明,重尾和泛化之间的关系不是全局单调的。(iii)我们证明了匹配的一致稳定的下界,这意味着我们的界限是紧的沉重的尾巴。我们支持我们的理论与合成和真实的神经网络实验。
Revisiting Gradient Normalization and Clipping for Nonconvex SGD under Heavy-Tailed Noise: Necessity, Sufficiency, and Acceleration
College of Computer Science and Technology National University of Defense Technology(计算机科学与技术学院 国防科技大学);Center for Machine Learning Research (CMLR) Peking University(机器学习研究中心(CMLR) 北京大学)
Privacy of SGD under Gaussian or Heavy-Tailed Noise: Guarantees without Gradient Clipping
Inria, CNRS, Ecole Normale Supérieure PSL Research University(法国国家科学研究中心、巴黎高等师范学院PSL研究大学);Department of Management Science and Information Systems(管理科学与信息系统系);Faculty of Engineering and Natural Sciences(工程与自然科学学院);Department of Mathematics(数学系)
Nonlinear gradient mappings and stochastic optimization: A general framework with applications to heavy-tail noise
Faculty of Sciences(理学院);University of Novi Sad(诺维萨德大学);Faculty of Technical Sciences(技术科学学院);Amazon Alexa AI(亚马逊Alexa人工智能部门);Carnegie Mellon University(卡内基梅隆大学)
DP-aware AdaLN-Zero: Taming Conditioning-Induced Heavy-Tailed Gradients in Differentially Private Diffusion
School of Computer Science(计算机科学学院);Big Data, Minjiang University, Fuzhou, Fujian, China.(大数据,闽江大学,福州,福建,中国);School of Information, Renmin University of China, Beijing, China(信息学院,中国人民大学,北京,中国)
Federated learning with heavy-tailed gradient noise and communication noise: a variance-reduction based algorithm
School of Mathematics, China University of Mining and Technology(中国矿业大学数学学院);School of Mathematical Sciences, Dalian University of Technology(大连理工大学数学科学学院)