TL;DR
Adaptive optimization methods like Adam are incredibly popular but can suffer from non-convergence due to their aggressive exponential weighting of past gradients. This paper introduces WADA (Weighted Adaptive Algorithm), an optimizer that uses a milder, linear growing weight strategy to guarantee convergence while maintaining a powerful data-dependent regret bound that can outperform AdaGrad when gradients decrease rapidly.
What Problem Does This Paper Address?
Adaptive learning rate methods (such as AdaGrad, RMSprop, and Adam) scale the learning rate for each parameter individually based on historical gradients. To prioritize recent gradients over older ones, standard Adam uses an Exponential Moving Average (EMA) strategy.
However, recent theoretical insights have shown that this aggressive EMA strategy can cause the learning rate to inadvertently increase during training, leading to non-convergence in certain settings. Existing fixes like AMSGrad solve the convergence issue but suffer from a loose data-independent regret bound ($O(\sqrt{T})$), losing the ability to exploit sparse or small gradients effectively. Other alternatives like AdamNC use equal weights for all past gradients, failing to prioritize the most recent (and relevant) gradient information.
The authors bridge this gap by designing an optimizer that guarantees convergence, prioritizes recent gradients, and maintains a tight, data-dependent regret bound.
Methods
The authors introduce the Weighted Adaptive Gradient Method Framework (WAGMF), a generalized architecture that unifies existing adaptive optimizers based on how they weight past gradients.
Using WAGMF, they propose WADA (Weighted Adaptive Algorithm), which replaces Adam's exponential weights with a linear growing weight strategy ($\gamma_t = t$).
To ensure that the learning rate never aggressively increases (which guarantees convergence), WADA pairs the squared past gradients ($p_1=2$) with a element-wise 4th-root normalization ($p_2=4$). The paper also introduces a mathematically equivalent, numerically stable iterative form of the algorithm to ensure it remains computationally efficient and low-memory, just like standard Adam.
Datasets
The authors evaluated WADA on three standard image classification benchmarks representing varying levels of difficulty:
- MNIST: 60,000 training and 10,000 test images of handwritten digits (10 classes).
- CIFAR-10: 50,000 training and 10,000 test images (10 classes).
- CIFAR-100: 50,000 training and 10,000 test images (100 classes).
Key Insights and Ideas
- The Linear Sweet Spot: Exponential weighting is too aggressive and risks non-convergence, while equal weighting ignores the temporal importance of recent gradients. Linear growing weights ($\gamma_t = t$) provide a stable middle ground.
- Superior Regret Bounds: WADA achieves a weighted data-dependent regret bound of $O(\sum_{j=1}^d \sqrt[4]{\sum_{i=1}^T i \cdot g_{i,j}^2})$. Because optimization gradients typically decrease rapidly as a model approaches a local minimum, WADA’s bound becomes significantly tighter than AdaGrad's traditional bound.
- Theoretical Justification for Adam: This new bound offers a partial theoretical explanation for why focusing heavily on recent gradients works so well for Adam in practical deep learning scenarios, despite its edge-case convergence flaws.
Key Results
Synthetic Convex Problems
In a 1D synthetic convex optimization problem specifically designed to make Adam fail, Adam's average regret fails to converge to 0. WADA successfully fixes this issue, converging rapidly to the optimal solution alongside AMSGrad.
Convex Optimization (Softmax Regression)
When training an $L_2$-regularized softmax regression model, WADA and its variants (WADA-V3, WADA-V4) consistently achieved lower training loss than Adam, AMSGrad, and AdamNC across all three datasets.
Deep Neural Networks
The authors evaluated WADA on non-convex problems using a 3-layer Multi-Layer Perceptron (MLP), a Simple CNN, and a ResNet-20 architecture.
- On the Simple CNN and ResNet-20 architectures trained on CIFAR-10 and CIFAR-100, WADA and WADA-V3 consistently outperformed all baselines, demonstrating both lower training loss and superior final test accuracy.
Limitations and Future Work
While the paper provides strong theoretical proofs and solid empirical backing on standard image datasets, it leaves a few areas open for future exploration:
- Scale of Evaluation: The experiments are restricted to relatively small-scale image datasets (MNIST, CIFAR). Performance on massive datasets (like ImageNet) or large-scale Natural Language Processing tasks (e.g., Transformers) is not discussed.
- Hyperparameter Selection: The authors introduce variants like WADA-V3 ($p_1=3$) and WADA-V4 ($p_1=4$) which perform well on specific tasks, but they do not provide an automated heuristic for choosing the optimal gradient power parameter ($p_1$) for a given architecture.
Summary updated