Dynamic Regret of Convex and Smooth Functions

Peng Zhao, Yu-Jie Zhang, Lijun Zhang, Zhi-Hua Zhou

Abstract

In Online Convex Optimization (OCO), dynamic regret serves as a critical metric for evaluating performance in non-stationary environments. While standard bounds for general convex functions scale with the time horizon $T$, they often fail to capture the benefits of function smoothness. This paper introduces Sword, a family of algorithms that exploit smoothness to achieve problem-dependent dynamic regret bounds. By replacing the dependence on $T$ with quantities such as gradient variation and cumulative loss, Sword provides significantly tighter bounds in stable environments while maintaining optimal worst-case performance.

Introduction

Online Convex Optimization (OCO) provides a robust framework for sequential decision-making under uncertainty. In this setting, a learner iteratively selects a decision from a convex set, subsequently incurring a loss determined by a convex function. Traditionally, the learner's performance is measured by static regret, which compares the cumulative loss to that of the single best fixed decision in hindsight.

However, in dynamic real-world scenarios—such as financial markets or adaptive sensor networks—the optimal decision often changes over time. To address this, researchers utilize dynamic regret, which compares the learner against an arbitrary sequence of comparators. The current state-of-the-art (SOTA) bound for dynamic regret is $O(\sqrt{T(1 + P_T)})$, where $P_T$ represents the "path-length" or the cumulative movement of the comparator sequence. While mathematically optimal for general convex functions, this bound is often overly pessimistic, scaling with the square root of time even when the environment is highly stable or the losses are minimal.

The Sword Framework: Leveraging Smoothness

The primary contribution of this research is the Sword (Smoothness-aware online learning with dynamic regret) framework. The authors demonstrate that the "smoothness" of a loss function—a property where the gradient's rate of change is bounded—can be leveraged to create more adaptive algorithms.

Sword employs a meta-expert framework consisting of two layers:

  1. Experts: Multiple instances of an expert algorithm (e.g., Online Gradient Descent) run in parallel, each initialized with a different learning rate to account for varying levels of environmental volatility.
  2. Meta-Algorithm: A higher-level algorithm, specifically a specialized version of OptimisticHedge, aggregates the experts' predictions.

The innovation lies in the design of the optimism vector. By carefully constructing this vector, the authors can cancel out specific terms in the regret analysis that typically lead to $T$-dependence. This allows the final regret bound to scale with the intrinsic difficulty of the problem rather than the mere passage of time.

Adaptive Variants and Problem-Dependent Bounds

The paper introduces three distinct versions of the algorithm, each targeting different environmental characteristics:

  • Sword$_{var}$: Designed to adapt to the variation in gradients ($V_T$). This is particularly effective when the loss functions change slowly over time.
  • Sword$_{small}$: Achieves "small-loss" bounds by adapting to the cumulative loss of the comparator ($F_T$). This is ideal for scenarios where the optimal decisions incur very low total loss.
  • Sword$_{best}$: A unified version that automatically achieves the better of the two bounds, providing a "best-of-both-worlds" guarantee.

For smooth functions, the norm of the gradient is bounded by the function value itself (the "self-bounding" property). Sword leverages this property to replace the crude $T$ factor in the SOTA bound with $\min\{V_T, F_T\}$. The resulting bound for Sword$_{best}$ is $O(\sqrt{(1 + P_T + \min\{V_T, F_T\})(1 + P_T)})$. Since $V_T$ and $F_T$ are at most $O(T)$, this bound is never worse than the standard SOTA, but it can be as low as $O(1)$ in benign environments.

Theoretical Validation

As a theoretical contribution, the paper validates these bounds using synthetic mathematical instances designed to highlight the limitations of standard OCO algorithms:

  • Instance 1: A scenario with low gradient variation but high cumulative loss. Sword$_{var}$ achieves constant $O(1)$ regret, whereas standard methods suffer $O(\sqrt{T})$.
  • Instance 2: A scenario with zero cumulative loss but high gradient variation. Here, Sword$_{small}$ achieves $O(1)$ regret.

These instances prove that Sword can close the gap between universal dynamic regret (comparing against any sequence) and worst-case dynamic regret (comparing against exact minimizers), a feat previously unachieved for smooth functions.

Conclusion and Future Work

Sword represents a significant advancement in making online learning algorithms more adaptive to real-world conditions. By exploiting smoothness, the framework provides a path toward "parameter-free" adaptivity where the learner automatically performs better in easier environments without sacrificing robustness.

Future research directions include extending these techniques to functions with different curvature properties, such as strong convexity or exp-concavity, which could potentially yield even tighter logarithmic regret bounds. Additionally, while the $O(\log T)$ computational overhead of the meta-expert framework is manageable, developing more efficient, single-instance adaptive algorithms remains an open challenge.

Summary updated

BibTeX
@inproceedings{zhao2020dynamic,
  author = {Peng Zhao and Yu-Jie Zhang and Lijun Zhang and Zhi-Hua Zhou},
  title = {{Dynamic Regret of Convex and Smooth Functions}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2020},
  url = {https://openreview.net/forum?id=bLYHvBMj0mx},
}
Figure