arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2406.11733stat.MLcs.LG
收藏

裁剪还是不裁剪:高维场景下带梯度裁剪的SGD动力学

To Clip or not to Clip: the Dynamics of SGD with Gradient Clipping in High-Dimensions

McGill University(麦吉尔大学);Google DeepMind(谷歌DeepMind)

Noah Marshall, Ke Liang Xiao, Atish Agarwala, Elliot Paquette

AI总结:

本研究针对高维场景下带梯度裁剪的流式SGD展开理论分析,推导出描述损失演化的确定性方程,验证了其在多数据集上的预测有效性,明确了梯度裁剪的适用场景并提出仅需单超参数的近似最优阈值调度启发式方法。

摘要:

现代机器学习的成功部分归功于为解决在复杂数据集上训练大型模型的难题而开发的自适应优化方法。梯度裁剪就是其中一种方法:这是一种理论基础有限的实用操作。在本研究中,我们针对流式SGD(随机梯度下降)下的最小二乘问题研究了梯度裁剪机制。我们针对大固有维度(一种依赖于模型和数据集的维度概念)极限下的学习动力学展开了理论分析。在该极限下,我们推导出了一个描述损失演化的确定性方程,并证明该方程能够预测带裁剪的SGD在合成数据、CIFAR10数据集以及Wikitext2数据集上的运行轨迹。我们研究发现,在高斯噪声场景下,梯度裁剪无法提升SGD的性能;但在其他噪声设置中,通过调整裁剪阈值,梯度裁剪可以带来性能增益。我们提出了一种用于实现近似最优裁剪阈值调度的简单启发式方法,该方法仅需调整一个超参数。最后,我们讨论了高维场景下的梯度裁剪与神经网络训练之间的关联。

英文摘要:

The success of modern machine learning is due in part to the adaptive optimization methods that have been developed to deal with the difficulties of training large models over complex datasets. One such method is gradient clipping: a practical procedure with limited theoretical underpinnings. In this work, we study clipping in a least squares problem under streaming SGD. We develop a theoretical analysis of the learning dynamics in the limit of large intrinsic dimension-a model and dataset dependent notion of dimensionality. In this limit we find a deterministic equation that describes the evolution of the loss and demonstrate that this equation predicts the path of clipped SGD on synthetic, CIFAR10, and Wikitext2 data. We show that with Gaussian noise clipping cannot improve SGD performance. Yet, in other noisy settings, clipping can provide benefits with tuning of the clipping threshold. We propose a simple heuristic for near optimal scheduling of the clipping threshold which requires the tuning of only one hyperparameter. We conclude with a discussion about the links between high-dimensional clipping and neural network training.

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

↑