Introduction
Selecting the optimal learning rate (LR) remains one of the most tedious aspects of training deep neural networks. This "learning rate tax" often requires extensive grid searches, as sub-optimal settings lead to either divergence or stagnation. While adaptive optimizers like Adam provide some relief, they often rely on monotonic decay or convex assumptions that do not always hold in complex, non-convex landscapes.
GALA (Gradient Alignment-based Learning rate Adaptation) addresses this by treating LR selection as a one-dimensional online learning problem. By tracking the alignment between consecutive gradients and estimating local curvature on the fly, GALA automatically adjusts the learning rate, allowing optimizers like SGD and Adam to succeed even with "terrible" initial settings.
Methodology: Gradient Alignment
The core of GALA is the Alignment Signal. Using the fundamental theorem of calculus, the authors demonstrate that training progress is proportional to the inner product (alignment) between the current gradient and the average gradient along the optimization path. High alignment suggests the optimizer can safely accelerate.
GALA casts LR selection as a 1D online learning game using the Follow-the-Regularized-Leader (FTRL) algorithm. In each round, the learner chooses a learning rate $\eta$ that balances a linear term (rewarding alignment) with a quadratic regularization term (penalizing high local curvature).
Unlike traditional schedulers, GALA is capable of bidirectional adaptation. It can detect "flat" regions in the loss landscape and increase the learning rate to speed up training, or decrease it when the landscape becomes "bumpy" by estimating a local Lipschitz constant ($L_t$) at every step. This local estimation allows the algorithm to adapt to the specific "bumpiness" of the current region rather than relying on a global constant.
Experimental Evaluation
The authors evaluated GALA by training ResNet-18 architectures on CIFAR-10, CIFAR-100, and Flower102. They compared GALA-augmented versions of SGD and Adam against their standard counterparts across a wide range of initial learning rates.
Key Results: Robustness to Initialization
The most significant finding is GALA's extreme robustness. While standard SGD and Adam are highly sensitive to their starting LR—often failing to converge if the initial value is too high or too low—GALA-augmented versions consistently converge to a near-optimal performance range.
As shown in the figure above, GALA-SGD and GALA-Adam maintain stability where standard optimizers (colored lines) exhibit high variance or total failure. In experiments on CIFAR-100, SGD-GALA maintained near-optimal performance across seven orders of magnitude of initial learning rates, effectively eliminating the need for precise manual tuning.
Discussion and Future Work
GALA provides a principled, "parameter-free" approach to optimization with solid non-convex convergence guarantees. It matches the $O(T^{-1/4})$ complexity of hand-tuned SGD while offering superior stability and lower variance across different random seeds compared to other state-of-the-art methods like Mechanic.
However, some limitations remain. The most rigorous version of the algorithm requires an additional gradient evaluation per step, though the authors provide efficient heuristics to mitigate this cost. Future research may extend this framework to second-order methods or the specialized optimizers used in Large Language Model (LLM) training.
Summary updated