Adapting to Smoothness: A More Universal Algorithm for Online Convex Optimization

Guanghui Wang, Shiyin Lu, Yao Hu, Lijun Zhang

Introduction

In the field of Online Convex Optimization (OCO), a learner iteratively selects actions from a convex set and incurs losses determined by an adversary. The primary goal is to minimize regret—the difference between the learner's cumulative loss and that of the best fixed strategy in hindsight. Traditionally, achieving optimal regret requires prior knowledge of the loss functions' geometric properties, such as whether they are general convex, exp-concave, or strongly convex.

While "universal" algorithms have been developed to adapt to these categories automatically, they often overlook a critical property: smoothness. Smoothness, which characterizes how rapidly a function's gradient changes, is a powerful lever for performance. It enables "small-loss" regret bounds, where the error scales with the cumulative loss of the optimal strategy ($L_*$) rather than the total number of rounds ($T$). This paper introduces UFO (Universal algorithm For Online smooth optimization), a framework that exploits smoothness to achieve tighter bounds across all common function types without sacrificing worst-case optimality.

The Problem: The Gap in Universal Optimization

Standard OCO algorithms are typically tuned for specific function classes. For instance, Online Gradient Descent (OGD) achieves $O(\sqrt{T})$ regret for general convex functions and $O(\log T)$ for strongly convex functions. However, if the environment is "easy"—meaning the best strategy has a very low total loss—we expect the algorithm to perform even better.

Existing universal algorithms that handle multiple function classes simultaneously often fail to capture these "small-loss" benefits. The core issue lies in the use of surrogate loss functions within meta-learning frameworks. These surrogates are designed to simplify the optimization task for sub-algorithms (experts), but they frequently "mask" or destroy the smoothness of the original losses. Consequently, the resulting algorithms cannot achieve the $O(\sqrt{L_*})$ or $O(\log L_*)$ bounds that smoothness should theoretically allow.

The UFO Framework

The researchers propose a hierarchical meta-algorithm called UFO, structured around three primary pillars:

1. S²OGD: Smooth and Strongly Convex OGD

The foundation of the framework is a new base algorithm, S²OGD, designed specifically for functions that are both smooth and strongly convex. Unlike standard OGD, S²OGD employs a sophisticated step-size update mechanism that incorporates the average of previous gradients, allowing it to adapt more precisely to the local curvature of the loss surface.

2. PASS: Parameter-Free Adaptation

S²OGD requires knowledge of the strong convexity parameter ($\lambda$). To remove this requirement, the authors developed PASS (Parameter-free algorithm for Strongly convex and Smooth functions). PASS operates by running multiple instances of a surrogate algorithm (S³OGD) as experts, each initialized with a different learning rate. A meta-algorithm then aggregates these experts to identify the optimal configuration dynamically.

3. The UFO Meta-Algorithm

The final layer of the hierarchy is the UFO meta-algorithm itself. It maintains three distinct sets of experts, each tailored to one of the three major function classes: general convex, exp-concave, and strongly convex.

  • Preserving Smoothness via Surrogate Losses: To solve the "surrogate gap," the authors derived new loss transformations that preserve the smoothness property. This ensures that the experts can exploit the small-loss structure of the problem.
  • Learning with Experts: UFO uses the Titled Exponential Weighted Algorithm (TEWA) to combine the predictions from all expert sets into a single, final action. This allows the learner to achieve the best possible regret bound for whichever class the actual loss functions belong to.

Key Results and Theoretical Impact

UFO represents a significant theoretical advancement in OCO. By preserving smoothness through the meta-learning process, the algorithm achieves the following regret bounds:

  • General Convex: $O(\sqrt{L_*})$, matching the best known small-loss bounds.
  • Exp-concave: $O(d \log L_*)$, where $d$ is the dimensionality of the problem.
  • Strongly Convex: $O(\log L_*)$.

Notably, the bound for strongly convex functions is a breakthrough. Previous state-of-the-art small-loss bounds for this category included a factor of $d$ (the number of dimensions). UFO is the first algorithm to achieve a bound of $O(\log L_*)$ that is independent of the dimensionality factor, effectively closing a long-standing gap in the literature.

Furthermore, UFO remains minimax optimal. In the worst-case scenario where $L_*$ is large, the bounds gracefully revert to $O(\sqrt{T})$, $O(d \log T)$, and $O(\log T)$, respectively. This confirms that smoothness-based adaptation is essentially a "free lunch"—it provides significant gains in favorable conditions without any penalty in difficult ones.

Limitations and Future Directions

While UFO is a powerful theoretical tool, it has practical considerations. The algorithm's reliance on multiple sets of experts and sub-algorithms ($O(\log T)$ per class) introduces computational overhead compared to simple gradient descent. Additionally, the small-loss benefits are contingent on the smoothness of the loss functions; for non-smooth functions, the algorithm remains universal but loses its tighter small-loss scaling.

Future research may explore extending this universal framework to adapt to "variation bounds," where regret depends on the temporal variability of the loss functions, or seeking even broader universality across a wider array of function geometries.

Summary updated

BibTeX
@inproceedings{wang2020adapting,
  author = {Guanghui Wang and Shiyin Lu and Yao Hu and Lijun Zhang},
  title = {{Adapting to Smoothness: A More Universal Algorithm for Online Convex Optimization}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2020},
  doi = {10.1609/aaai.v34i04.6081},
}
Figure