An Automatic Learning Rate Schedule Algorithm for Achieving Faster Convergence and Steeper Descent

Zhao Song, Chiwun YangarXiv 2023

Abstract: The delta-bar-delta algorithm is recognized as a learning rate adaptation technique that enhances the convergence speed of the training process in optimization by dynamically scheduling the learning rate based on the difference between the current and previous weight updates. While this algorithm has demonstrated strong competitiveness in full data optimization when compared to other state-of-the-art algorithms like Adam and SGD, it may encounter convergence issues in mini-batch optimization scenarios due to the presence of noisy gradients. In this study, we thoroughly investigate the convergence behavior of the delta-bar-delta algorithm in real-world neural network optimization. To address any potential convergence challenges, we propose a novel approach called RDBD (Regrettable Delta-Bar-Delta). Our approach allows for prompt correction of biased learning rate adjustments and ensures the convergence of the optimization process. Furthermore, we demonstrate that RDBD can be seamlessly integrated with any optimization algorithm and significantly improve the convergence speed. By conducting extensive experiments and evaluations, we validate the effectiveness and efficiency of our proposed RDBD approach. The results showcase its capability to overcome convergence issues in mini-batch optimization and its potential to enhance the convergence speed of various optimization algorithms.

Introduction

Finding the optimal learning rate (LR) is a critical yet tedious component of training neural networks. A learning rate that is too high leads to divergence, while one that is too low results in prohibitively slow convergence. While adaptive optimizers like Adam mitigate some of these issues, they still frequently require manually tuned initial schedules to perform optimally.

This research introduces Regrettable Delta-Bar-Delta (RDBD), an automatic learning rate scheduler that moves beyond simple adaptation to incorporate self-correction. By allowing the algorithm to "regret" and revert suboptimal learning rate updates, RDBD achieves faster convergence and steeper descent than standard methods, particularly in the noisy environment of mini-batch optimization.

The Challenge of Noisy Gradients

The RDBD algorithm is an evolution of the classic Delta-Bar-Delta (DBD) technique. DBD operates on a simple heuristic: if the current gradient $g_t$ and the previous gradient $g_{t-1}$ point in the same direction (a positive dot product), the learning rate should increase to accelerate progress. Conversely, if they point in opposite directions (a negative dot product), the optimizer has likely overshot the minimum, and the learning rate should decrease.

While effective in full-batch optimization, DBD often fails in mini-batch settings. Stochastic noise in mini-batches can cause gradients to point in directions that do not represent the global loss landscape. Standard DBD might interpret this noise as a signal to spike the learning rate, leading to training instability or collapse.

Methods: The "Regrettable" Mechanism

RDBD addresses the noise problem by treating learning rate adjustments as hypotheses that require verification. The core innovation is a "buffering" or "regret" mechanism:

  1. Hypothesis: At step $t$, the algorithm adjusts the learning rate $\alpha$ based on the relationship between $g_t$ and $g_{t-1}$.
  2. Verification: At step $t+1$, the algorithm evaluates the new gradient. If the relationship between the current and previous gradients suggests the prior adjustment was biased by noise, the algorithm triggers a "reversion."
  3. Regret: Upon detecting bias, RDBD undoes the previous learning rate update and reverts the parameter weights to a safer, more productive state.
Geometric intuition of the RDBD update. The algorithm adjusts the step size based on gradient alignment, ensuring the RDBD update is closer to the optimum than a standard update.

This mechanism ensures a "steeper loss descent" guarantee, mathematically proving that $f(x_{t+1}^{RDBD}) \le f(x_{t+1}) \le f(x_t)$. RDBD acts as a plug-and-play supervisor that can be wrapped around standard optimizers like SGD or Adam to ensure their step sizes remain productive.

Experimental Results

The effectiveness of RDBD was evaluated on two standard benchmarks: MNIST (using a 3-layer linear network) and CIFAR-10 (using a 3-layer CNN).

Convergence Speed and Efficiency

Across both datasets, RDBD and its hybrid variant, Adam+RDBD, reached lower loss levels significantly faster than standalone Adam or SGD. The most dramatic improvements occurred during the early stages of training (the first 3,000 steps). In this phase, RDBD's ability to aggressively but safely scale the learning rate allowed for a much steeper initial drop in loss compared to traditional schedules.

Training loss on MNIST and CIFAR-10 datasets. RDBD and Adam+RDBD consistently outperform standard SGD and Adam in convergence speed and final loss.

Robustness to Initialization

A key finding is RDBD's relative insensitivity to the initial learning rate. Even when initialized with a very small learning rate (e.g., 0.0001), RDBD quickly identifies the potential for faster movement and ramps up the LR to an optimal level. In contrast, standard SGD remains trapped in a slow convergence path under the same conditions.

Conclusion and Future Work

RDBD provides a reliable automatic learning rate scheduler that overcomes the historical limitations of Delta-Bar-Delta in stochastic settings. While highly effective, the authors note that the relative advantage of the regret mechanism decreases as batch sizes grow and gradients become less noisy. Additionally, the "undo" mechanism introduces a minor computational overhead by requiring the storage of previous states. Future research will focus on scaling RDBD to massive architectures, such as large-scale Transformers, to evaluate its performance in more complex loss landscapes.

Summary updated

BibTeX
@misc{song2023automatic,
  author = {Zhao Song and Chiwun Yang},
  title = {{An Automatic Learning Rate Schedule Algorithm for Achieving Faster Convergence and Steeper Descent}},
  year = {2023},
  eprint = {2310.11291},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2310.11291},
}
Figure