DoWG Unleashed: An Efficient Universal Parameter-Free Gradient Descent Method

Ahmed Khaled, Konstantin Mishchenko, Chi Jin

Introduction

In the landscape of modern machine learning, hyperparameter optimization remains one of the most significant bottlenecks to efficient model development. Among these, the learning rate (or stepsize) is arguably the most critical and difficult to tune. A stepsize that is too aggressive leads to divergence, while one that is too conservative results in prohibitively slow convergence. While adaptive optimizers like Adam and AdaGrad have mitigated some of these issues, they typically still require a manually specified initial stepsize or a complex learning rate schedule to achieve peak performance.

This paper introduces DoWG (Distance over Weighted Gradients), a new parameter-free optimizer designed to match the performance of perfectly tuned gradient descent without requiring manual intervention. DoWG is characterized as a "universal" algorithm, meaning it automatically adapts to the underlying geometry of the objective function—whether smooth or nonsmooth—achieving optimal convergence rates without prior knowledge of the function's properties.

The Challenge of Parameter-Free Optimization

Existing approaches to parameter-free optimization often introduce significant computational overhead. Some methods rely on "line searches," which require multiple function evaluations per iteration to test different stepsizes. Others utilize "bisection" routines that may restart the optimization process several times. Furthermore, many algorithms are specialized; they may perform optimally on smooth functions but fail on nonsmooth ones, or vice versa.

The authors of DoWG sought to develop an algorithm that is both computationally efficient—requiring only a single step per iteration—and mathematically robust across diverse function landscapes.

Methodology: Distance over Weighted Gradients

DoWG builds upon the foundations of the recent DoG (Distance over Gradients) algorithm but introduces a sophisticated weighting mechanism to improve stability and speed. The algorithm's logic is centered on two primary components:

  1. Distance Estimation: Because the distance to the global optimum ($x_*$) is unknown, DoWG uses the maximum distance traveled from the starting point ($x_0$) as a proxy, denoted as $\bar{r}_t$.
  2. Weighted Gradient Averaging: Unlike AdaGrad, which utilizes a simple running average of squared gradients, DoWG maintains a weighted running average ($v_t$). These weights are proportional to the square of the distance from the initialization point ($\bar{r}_t^2$).

The stepsize is dynamically calculated as: $$\eta_t = \frac{\bar{r}_t^2}{\sqrt{v_t}}$$

This formulation allows the optimizer to become more "aggressive" as it moves further from its starting point, effectively sensing the local curvature of the loss landscape. Crucially, this adjustment happens on the fly without internal loops or expensive sub-routines.

Theoretical and Empirical Validation

Universality and Convergence

DoWG is mathematically proven to be universal. It achieves the $O(1/\sqrt{T})$ convergence rate for nonsmooth functions and the $O(1/T)$ rate for smooth functions. This "automatic gear shifting" allows it to match the performance of a perfectly tuned Gradient Descent (GD) algorithm within a small logarithmic factor, all without knowing the function’s Lipschitz constant or smoothness parameters.

Experimental Performance

The authors evaluated DoWG across several benchmarks:

  • Convex Optimization: Using the LibSVM Mushrooms dataset for $\ell_2$-regularized linear regression to observe theoretical properties.
  • Deep Learning: Training VGG11 and ResNet-50 architectures on the CIFAR-10 dataset.

In deep learning tasks, DoWG demonstrated performance comparable to a meticulously tuned Adam optimizer. While the "last iterate" (the final model state) can sometimes be noisy due to the algorithm's aggressive nature, the authors found that a weighted average of iterates consistently yielded high test accuracy, often surpassing other parameter-free competitors like D-Adaptation.

Key Insights: The Edge of Stability

A notable observation in the paper is DoWG’s tendency to operate at the "Edge of Stability." The optimizer naturally pushes the stepsize upward until the gradients begin to diverge. At the point of divergence, the denominator in the stepsize calculation ($v_t$) increases rapidly, forcing the stepsize back down. This self-stabilizing oscillation allows the optimizer to maintain the highest possible stable speed throughout the training process.

Limitations and Future Directions

While DoWG represents a significant step forward in parameter-free optimization, the authors identify several areas for future research:

  • Stochastic Theory: The current theoretical proofs primarily cover the deterministic (full-batch) setting. While empirical results in mini-batch settings are promising, a rigorous stochastic theory for DoWG remains an open challenge.
  • Architectural Stability: On more complex models like ResNet-50, DoWG showed slightly less stability than on simpler architectures like VGG11. This suggests that the aggressive stepsize estimation may require further refinement for very deep networks.
  • Unconstrained Domains: The core theory assumes a bounded domain, though the authors provide preliminary extensions for unconstrained domains in their supplemental material.

Conclusion

DoWG offers a compelling "set-it-and-forget-it" solution for gradient descent. By leveraging distance-based weighting, it achieves universal optimality across different function types while remaining computationally efficient. For practitioners, it promises to reduce the overhead of hyperparameter tuning, providing a robust default for a wide array of optimization tasks.

Summary updated

BibTeX
@inproceedings{khaled2023dowg,
  author = {Ahmed Khaled and Konstantin Mishchenko and Chi Jin},
  title = {{DoWG Unleashed: An Efficient Universal Parameter-Free Gradient Descent Method}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2023},
  url = {https://openreview.net/forum?id=2RQhgx1WLA},
}
Figure