In this paper, we characterize the noise of stochastic gradients and analyze the noise-induced dynamics during training deep neural networks by gradient-based optimizers. Specifically, we firstly show that the stochastic gradient noise possesses finite variance, and therefore the classical Central Limit Theorem (CLT) applies; this indicates that the gradient noise is asymptotically Gaussian. Such an asymptotic result validates the wide-accepted assumption of Gaussian noise. We clarify that the recently observed phenomenon of heavy tails within gradient noise may not be intrinsic properties, but the consequence of insufficient mini-batch size; the gradient noise, which is a sum of limited i.i.d. random variables, has not reached the asymptotic regime of CLT, thus deviates from Gaussian. We quantitatively measure the goodness of Gaussian approximation of the noise, which supports our conclusion. Secondly, we analyze the noise-induced dynamics of stochastic gradient descent using the Langevin equation, granting for momentum hyperparameter in the optimizer with a physical interpretation. We then proceed to demonstrate the existence of the steady-state distribution of stochastic gradient descent and approximate the distribution at a small learning rate.
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) 北京大学)
Department of Computer Science, University of Maryland, College Park.(计算机科学系,马里兰大学 College Park 分校);Department of Computer Science(计算机科学系);Engineering, University of Texas Arlington(工程学院,德克萨斯大学阿灵顿分校)
Revisiting the acceleration phenomenon via high-resolution differential equations
Academy of Mathematics and Systems Science, Chinese Academy of Sciences(中国科学院数学与系统科学研究院);University of Chinese Academy of Sciences(中国科学院大学)
Nesterov的加速梯度下降算法(NAG)是一阶算法历史上的里程碑之一。直到在[Shi et al.,2022]加速现象背后的机制是由于梯度校正项。为了加深我们对高分辨率微分方程框架下收敛速度的理解,本文基于Lyapunov分析和相空间表示技术,继续研究了$μ$ -强凸函数的NAG.首先,我们从梯度校正方案重新审视证明。类似于[Chen等人,2022],简单的计算极大地简化了证明,并将步长扩大到$s=1/L$,只需做一些小的修改。同时,构造李雅普诺夫函数的方法也是有原则的。此外,我们还研究了NAG的隐速度方案。由于速度迭代的不同,我们发现李雅普诺夫函数是由隐速度格式构造的,没有附加项,迭代差分的计算变得简单。结合得到的最佳步长,NAG隐速度格式的高分辨率微分方程框架是完善的,优于梯度校正格式。
Revisiting Recursive Least Squares for Training Deep Neural Networks
Hainan University(海南大学);Yangtze Normal University(长江师范学院)
递归最小二乘(Recursive Least Squares,RLS)算法由于其快速收敛性曾被广泛用于训练小规模神经网络。然而,以前的RLS算法不适合训练深度神经网络(DNN),因为它们具有高计算复杂性和太多的先决条件。为了克服这些缺点,本文提出了三种新的RLS优化算法,分别用于训练前馈神经网络、卷积神经网络和递归神经网络(包括长短期记忆网络),算法采用误差反向传播和我们的平均逼近RLS方法,并结合线性最小二乘损失函数关于隐层线性输出的等效梯度。与以往的RLS优化算法相比,我们的算法是简单和优雅的。它们可以被看作是一种改进的随机梯度下降(SGD)算法,它使用每层的逆自相关矩阵作为自适应学习率。它们的时间和空间复杂度仅是SGD的几倍。它们只要求损失函数是均方误差,输出层的激活函数是可逆的。事实上,我们的算法也可以与其他一阶优化算法结合使用,而不需要这两个先决条件。此外,我们提出了两个改进的方法,我们的算法。最后,我们在MNIST,CIFAR-10和IMDB数据集上证明了它们与Adam算法的有效性,并通过实验研究了它们的超参数的影响。
Revisiting Zeroth-Order Optimization for Memory-Efficient LLM Fine-Tuning: A Benchmark
Michigan State University(密歇根州立大学);The University of North Carolina at Chapel Hill(北卡罗来纳大学教堂山分校);UT Austin(德克萨斯大学奥斯汀分校);University of Minnesota Twin Cities(明尼苏达大学双城分校);IBM Research(IBM研究院);Princeton University(普林斯顿大学);DAMO Academy, Alibaba Group(阿里巴巴达摩院);MIT(麻省理工学院);Harvard University(哈佛大学)
Stochastic Modified Equations and Dynamics of Stochastic Gradient Algorithms I: Mathematical Foundations
Institute of High Performance Computing(高性能计算研究院);Agency for Science, Technology and Research(科学、技术与研究局);Beijing Institute of Big Data Research(北京大数据研究院);Peking University(北京大学);Princeton University(普林斯顿大学)
Stochastic Modified Flows, Mean-Field Limits and Dynamics of Stochastic Gradient Descent
Universität Bielefeld(比勒费尔德大学);Max Planck Institute for Mathematics in the Sciences(马克斯·普朗克数学研究所);Institute of Mathematics of NAS of Ukraine(乌克兰国家科学院数学研究所)
Non-asymptotic convergence analysis of the stochastic gradient Hamiltonian Monte Carlo algorithm with discontinuous stochastic gradient with applications to training of ReLU neural networks
School of Mathematics, Renmin University of China, Beijing, China(中国人民大学数学学院);Division of Mathematical Sciences, Nanyang Technological University, 21 Nanyang Link, 637371 Singapore(南洋理工大学数学科学学院);Financial Technology Thrust, Society Hub, The Hong Kong University of Science and Technology (Guangzhou), Guangzhou, China(香港科技大学(广州)金融科技中心)
Revisiting Gradient Pruning: A Dual Realization for Defending against Gradient Attacks
Huazhong University of Science and Technology(华中科技大学);Griffith University(格里菲斯大学);Union Hospital, Tongji Medical College, Huazhong University of Science and Technology(华中科技大学同济医学院附属协和医院);Lehigh University(理海大学)
ProGen: Revisiting Probabilistic Spatial-Temporal Time Series Forecasting from a Continuous Generative Perspective Using Stochastic Differential Equations
Hong Kong University of Science and Technology (Guangzhou)(香港科技大学(广州))
Revisiting Replay and Gradient Alignment for Continual Pre-Training of Large Language Models
Université de Montréal(蒙特利尔大学);Mila – Quebec AI Institute(魁北克人工智能研究院);Chandar Research Lab(Chandar研究实验室);IBM Research(IBM研究院);Fujitsu Research(富士通研究院);Polytechnique Montréal(蒙特利尔理工学院)