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

论被忽视的随机梯度结构

On the Overlooked Structure of Stochastic Gradients

Baidu Research(百度研究院);Hong Kong Baptist University(香港浸会大学)

Zeke Xie, Qian-Yuan Tang, Mingming Sun, Ping Li

AI总结:

本文对深度学习中随机梯度的分布和重尾特性进行形式化统计检验,发现维度级梯度呈幂律重尾而迭代级梯度及小批量噪声不呈重尾,并揭示了先前被忽视的梯度协方差谱的幂律结构及其理论意义。

摘要:

随机梯度与深度神经网络(DNN)的优化和泛化密切相关。一些工作试图通过梯度噪声的重尾特性来解释随机优化在深度学习中的成功,而另一些工作则提出了反对梯度噪声重尾假设的理论和经验证据。遗憾的是,用于分析深度学习中随机梯度的结构和重尾的形式化统计检验仍未得到充分探索。本文主要有两项贡献。首先,我们对跨参数和跨迭代的随机梯度分布及梯度噪声进行了形式化统计检验。我们的统计检验表明,维度级梯度通常呈现幂律重尾,而迭代级梯度和由小批量训练引起的随机梯度噪声通常不呈现幂律重尾。其次,我们进一步发现随机梯度的协方差谱具有先前研究忽视的幂律结构,并提出了其对 DNN 训练的理论意义。虽然先前的研究认为随机梯度的各向异性结构对深度学习很重要,但他们没有料到梯度协方差能具有如此优雅的数学结构。我们的工作挑战了现有观点,为深度学习中随机梯度的结构提供了新见解。

英文摘要:

Stochastic gradients closely relate to both optimization and generalization of deep neural networks (DNNs). Some works attempted to explain the success of stochastic optimization for deep learning by the arguably heavy-tail properties of gradient noise, while other works presented theoretical and empirical evidence against the heavy-tail hypothesis on gradient noise. Unfortunately, formal statistical tests for analyzing the structure and heavy tails of stochastic gradients in deep learning are still under-explored. In this paper, we mainly make two contributions. First, we conduct formal statistical tests on the distribution of stochastic gradients and gradient noise across both parameters and iterations. Our statistical tests reveal that dimension-wise gradients usually exhibit power-law heavy tails, while iteration-wise gradients and stochastic gradient noise caused by minibatch training usually do not exhibit power-law heavy tails. Second, we further discover that the covariance spectra of stochastic gradients have the power-law structures overlooked by previous studies and present its theoretical implications for training of DNNs. While previous studies believed that the anisotropic structure of stochastic gradients matters to deep learning, they did not expect the gradient covariance can have such an elegant mathematical structure. Our work challenges the existing belief and provides novel insights on the structure of stochastic gradients in deep learning.

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

↑