Universal Gradient Methods for Stochastic Convex Optimization

Anton Rodomanov, Ali Kavis, Yongtao Wu, Kimon Antonakopoulos, Volkan Cevher

Introduction

In the realm of convex optimization, algorithms are typically specialized: some are designed for smooth functions (where gradients change slowly), while others target nonsmooth functions (which can exhibit sharp kinks). Mathematically, this spectrum is defined by Hölder smoothness, parameterized by an exponent $\nu$ between 0 (nonsmooth) and 1 (smooth).

To achieve optimal performance, practitioners usually need to know $\nu$ and the corresponding "smoothness constant" $L_\nu$ in advance to tune the step size. However, in real-world machine learning, these values are rarely known. The challenge is compounded in stochastic optimization, where only noisy estimates of the gradient are available. Existing "universal" methods that adapt to smoothness rely on "line search"—repeatedly testing different step sizes. Unfortunately, line search breaks down when gradients are noisy because it creates a feedback loop that biases the results.

To solve this, researchers have developed the first "universal" stochastic gradient methods that automatically adapt to both the Hölder smoothness of a function and the noise level of the data without any prior tuning. By replacing traditional line-search with a novel "balance equation" for step sizes, these algorithms achieve optimal convergence rates across a wide range of optimization problems.

Methods: Line-Search-Free Universal Optimization

The authors introduce a family of Universal Gradient Methods (UGMs) that are entirely line-search-free.

The core innovation is a nonlinear balance equation used to update the step-size coefficient ($H_k$). Unlike the popular AdaGrad algorithm, which adjusts step sizes by accumulating the norms of all past gradients, this method accumulates combinations of gradient differences ($\nabla f(x) - \nabla f(y)$) and iterate differences. This approach provides a much more accurate local picture of a function's curvature than gradient magnitudes alone.

Key algorithmic contributions include:

  • USGM (Universal Stochastic Gradient Method): A stochastic version of the gradient method that uses a symmetrized Bregman distance to estimate local smoothness on the fly.
  • USFGM (Universal Stochastic Fast Gradient Method): An accelerated version based on Nesterov’s "Method of Similar Triangles" that reaches theoretical lower bounds for efficiency in this problem class.

By avoiding line search, the algorithm ensures that the step size at iteration $k$ doesn't "peek" at the noise in a way that ruins the statistical unbiasedness of the stochastic gradient. Instead of "guessing and checking" step sizes, the algorithm solves a simple algebraic equation at each step to find a $H_{k+1}$ that balances the approximation error with the step size.

Experiments and Key Results

The authors evaluated their methods on several standard benchmarks, including LIBSVM datasets for convex problems (Least-Squares and Logistic Regression), MNIST for non-convex neural network training, and CIFAR-10 for training a ResNet18 architecture.

Theoretical Optimality

The algorithms are truly "agnostic"—they do not need to be told if the function is smooth, nonsmooth, or how much noise is in the data. Despite this lack of prior knowledge, the Universal Stochastic Fast Gradient Method (USFGM) achieves a worst-case complexity of $O(\epsilon^{-\frac{2}{1+3\nu}} + \sigma^2 \epsilon^{-2})$. This matches the best possible theoretical rates for both deterministic Hölder-smooth optimization and stochastic optimization.

Empirical Performance

In tests against popular optimizers like Adam, AdaGrad, and SGD, the proposed methods (USGM and USFGM) performed competitively or better.

Convergence comparison on LIBSVM datasets

As shown in the empirical evaluations on logistic regression and least-squares tasks, USGM and USFGM are slightly faster than AdaGrad and perform similarly to other specialized adaptive methods like UniXGrad. Furthermore, even though the theory is built for convex problems, the method successfully trained a ResNet18 on CIFAR-10, suggesting the "balance equation" approach is robust even for non-convex landscapes.

Limitations and Future Work

While highly adaptable, the algorithms currently require knowing (or estimating) an upper bound $D$ on the diameter of the feasible set (the maximum possible distance from the start to the solution). While common in theoretical settings, estimating this can be cumbersome in practice.

The authors note that a major next step is creating "parameter-free" versions that do not require the diameter $D$, making the algorithms truly "plug-and-play." Additionally, for certain complex constraints, the proximal step (the subproblem solved at each iteration) might require a one-dimensional nonlinear solver, though this is generally computationally cheap.

Summary updated

BibTeX
@inproceedings{rodomanov2024universal,
  author = {Anton Rodomanov and Ali Kavis and Yongtao Wu and Kimon Antonakopoulos and Volkan Cevher},
  title = {{Universal Gradient Methods for Stochastic Convex Optimization}},
  booktitle = {International Conference on Machine Learning},
  year = {2024},
  url = {https://openreview.net/forum?id=Wnhp34K5jR},
}
Figure