Training in reverse: How iteration order influences convergence and stability in deep learning
Benoit Dherin, Benny Avelin, Anders Karlsson, Hanna Mazzawi, Javier Gonzalvo, Michael Munn
TL;DR
The paper investigates how the order in which gradient updates are applied affects convergence and stability in deep learning under a constant learning rate and small batches. It introduces a backward contraction principle showing that backward SGD converges to a fixed point in contractive regions, and it connects this point convergence to forward SGD's stationary distribution. Two explicit SGD examples and extensive experiments across CNNs and MLPs demonstrate that backward trajectories are more stable and converge faster, while forward trajectories oscillate or converge to distributions. The authors also propose practical approximations and potential applications, such as windowed backward updates and Lie-bracket corrections, highlighting a new avenue for leveraging iteration order to improve training dynamics.
Abstract
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 order of gradient updates affects stability and convergence in gradient-based optimizers. We illustrate this new line of thinking using backward-SGD, which processes batch gradient updates like SGD but in reverse order. 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 opportunities to exploit reverse training dynamics (or more generally alternate iteration orders) to improve training. To our knowledge, this represents a new and unexplored avenue in deep learning optimization.
