改变梯度更新顺序能提升训练稳定性和收敛速度。
How iteration order influences convergence and stability in deep learning
- 提出反向SGD,通过改变梯度更新顺序来优化训练过程。
- 在小批量和固定学习率下,反向SGD收敛到确定点而非分布,稳定性更强。
- 为优化器设计提供新思路,适合关注训练稳定性的研究者。
尽管深度学习取得了显著成就,但神经网络训练仍计算开销大,常受不稳定问题困扰,影响收敛性。虽然学习率调度可缓解此问题,但寻找最优调度耗时费力。本文研究了固定学习率与小批量情况下的训练稳定性。出人意料的是,我们发现梯度更新的组合顺序会影响优化器的稳定性和收敛性。以反向SGD为例,其在每一步通过逆转批次梯度的常规前向组合顺序生成参数迭代。理论分析表明,在收缩区域(如极小值附近),反向SGD收敛至一个确定点,而标准前向SGD通常仅收敛至分布。实验验证了该方法在稳定性和收敛性上的优势。尽管全量反向SGD计算成本高,但它揭示了在优化步骤中创造性重用历史批次可能带来显著收益。实验提供了该现象的初步证据,我们认为这为深度学习优化开辟了全新且未被探索的方向。
原文摘要 · Abstract (English)
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.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。