AdaL: Adaptive Gradient Transformation Contributes to Convergences and Generalizations

Hongwei Zhang, Weidong Zou, Hongbo Zhao, Qi Ming, Tijin Yan, Yuanqing Xia, Weipeng CaoarXiv 2021

Abstract

Deep learning optimizers often face a trade-off between the rapid convergence of adaptive methods like Adam and the superior generalization of Stochastic Gradient Descent (SGD). This paper introduces AdaL (Adaptive Gradient Transformation), an algorithm that bridges this gap. By scaling the current gradient by its $l_1$-norm, AdaL amplifies updates during early training and stabilizes them as they approach minima. This simple transformation preserves beneficial gradient noise, helping models escape sharp local minima and achieve better generalization without additional hyperparameters.

Introduction

In modern deep learning, selecting an optimizer is a critical decision. Stochastic Gradient Descent (SGD) is renowned for its generalization capabilities—often reaching higher peak performance on unseen data—but it is notoriously slow to converge. Conversely, adaptive methods like Adam offer exceptional speed by scaling learning rates for individual parameters, yet they frequently suffer from "generalization degeneration."

Recent studies suggest that Adam's smoothing of gradient noise leads to "light-tailed" noise, making it difficult for the optimizer to escape sharp local minima. AdaL aims to maintain the convergence speed of adaptive methods while restoring the "heavy-tailed" noise characteristics of SGD that are conducive to finding flat, well-generalizing minima.

The AdaL Algorithm

The core of AdaL is a straightforward transformation applied to the gradient $g_t$ before the standard update step. The algorithm computes the $l_1$-norm of the current gradient ($\|g_t\|_1$) and uses it as a scaling coefficient: $$\hat{g}_t = \|g_t\|_1 \cdot g_t$$ This transformed gradient $\hat{g}_t$ is then processed through standard momentum and variance calculations.

Conceptual spectrum positioning AdaL between the adaptive properties of Adam and the generalization strengths of SGD.

As shown in the spectrum above, AdaL occupies a middle ground. In the early stages of training, gradients are large, leading to a high $l_1$-norm that amplifies the update and accelerates the search. In the late stages, as the model approaches a minimum, the gradient norm shrinks, naturally reducing the update size to ensure stable convergence.

Key Theoretical Insights

The "Free" Scheduler

One of the most compelling features of AdaL is its role as a data-dependent learning rate scheduler. Because the $l_1$-norm of the gradient naturally decreases as the model converges, the effective step size is automatically reduced over time.

Evolution of the $l_1$-norm of the gradient $g_t$ over training epochs, demonstrating natural decay.

This behavior, illustrated in the figure above, removes the need for manual tuning of complex decay schedules, providing a "free" mechanism for stabilization.

Noise Tail Engineering

By multiplying the gradient by its norm, AdaL prevents the over-smoothing of noise typical in Adam. This keeps the gradient noise "heavy-tailed," a property theoretically linked to the ability to traverse complex loss landscapes and find flatter minima. Furthermore, the authors provide a convergence proof for AdaL that holds even with a constant momentum parameter ($\beta_1$), bridging the gap between theoretical requirements and practical usage.

Empirical Evaluation

The researchers validated AdaL across diverse benchmarks:

  • Synthetic Landscapes: On the Rastrigin function, characterized by numerous local minima, AdaL successfully reached the global minimum where other adaptive methods often failed.
  • Image Classification: Using CIFAR-10 and CIFAR-100 with ResNet-34 and DenseNet-121 architectures, AdaL consistently outperformed Adam, NosAdam, and AMSGrad in terms of final test accuracy.
  • Convergence and Stability: AdaL demonstrated faster initial training loss reduction and significantly smoother test accuracy curves in the final stages of training compared to standard Adam.

Conclusion

AdaL presents a simple yet effective modification to adaptive optimization. By leveraging the gradient's own $l_1$-norm, it achieves a balance between speed and generalization. As a hyperparameter-free "drop-in" replacement for Adam, it offers a practical solution for researchers and practitioners seeking the best of both worlds in deep learning optimization.

Summary updated

BibTeX
@misc{zhang2021adal,
  author = {Hongwei Zhang and Weidong Zou and Hongbo Zhao and Qi Ming and Tijin Yan and Yuanqing Xia and Weipeng Cao},
  title = {{AdaL: Adaptive Gradient Transformation Contributes to Convergences and Generalizations}},
  year = {2021},
  eprint = {2107.01525},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2107.01525},
}
Figure