arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2502.01557cs.LGmath.DSstat.ML
收藏

迭代顺序如何影响深度学习中的收敛与稳定性

How iteration order influences convergence and stability in deep learning

Google Research(谷歌研究院);Department of Mathematics, Uppsala University(乌普萨拉大学数学系);Department of Mathematics, University of Geneva(日内瓦大学数学系)

Benoit Dherin, Benny Avelin, Anders Karlsson, Hanna Mazzawi, Javier Gonzalvo, Michael Munn

AI总结:

本文探讨了梯度更新顺序对训练稳定性与收敛的影响,通过反向SGD实验展示了在固定学习率和小批量情况下,迭代顺序改变可提升稳定性与收敛性。

摘要:

尽管取得了显著成就,训练神经网络仍计算成本高且常受不稳定因素影响,降低收敛性。虽然学习率调度有助于缓解这些问题,但找到最优调度方案耗时且资源密集。本文探讨了在固定学习率(即无调度)和小批量情况下训练稳定性相关的理论问题。令人惊讶的是,我们证明梯度更新的顺序会影响梯度基优化器的稳定性与收敛性。我们通过反向SGD展示了这一新思路,该方法在每一步通过逆转常规的批量梯度前向组合顺序来生成参数迭代。我们的理论分析显示,在收缩区域(如极小值附近),反向SGD收敛到一个点,而标准前向SGD通常只收敛到一个分布。这导致了改进的稳定性与收敛性,我们通过实验进行了验证。尽管完全反向SGD在实践中计算成本高,但它表明通过重新利用先前批次在每个优化步骤中进行创造性修改,可能对改进训练有重要有益影响。我们的实验提供了一个证明概念,支持这一现象。据我们所知,这代表了深度学习优化中一个新且未探索的领域。

英文摘要:

Despite exceptional achievements, training neural networks remains computationally expensive and is often plagued by instabilities that can degrade convergence. While learning rate schedules can help mitigate these issues, finding optimal schedules is time-consuming and resource-intensive. This work explores theoretical issues concerning training stability in the constant-learning-rate (i.e., without schedule) and small-batch-size regime. Surprisingly, we show that the composition order of gradient updates affects stability and convergence in gradient-based optimizers. We illustrate this new line of thinking using backward-SGD, which produces parameter iterates at each step by reverting the usual forward composition order of batch gradients. Our theoretical analysis shows that in contractive regions (e.g., around minima) backward-SGD converges to a point while the standard forward-SGD generally only converges to a distribution. This leads to improved stability and convergence which we demonstrate experimentally. While full backward-SGD is computationally intensive in practice, it highlights that the extra freedom of modifying the usual iteration composition by reusing creatively previous batches at each optimization step may have important beneficial effects in improving training. Our experiments provide a proof of concept supporting this phenomenon. To our knowledge, this represents a new and unexplored avenue in deep learning optimization.

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

↑