Best of Both Worlds Guarantees for Smoothed Online Quadratic Optimization

Neelkamal Bhuyan, Debankur Mukherjee, Adam Wierman

Introduction

This paper introduces Lazy Adaptive Interpolation (LAI), the first algorithm proven to be online-optimal for smoothed quadratic optimization in stochastic environments. The authors also develop a "best-of-both-worlds" variant, LAI($\gamma$), which achieves near-optimal performance in both predictable stochastic settings and unpredictable adversarial ones, bridging a major gap in online optimization theory.

The Smoothed Online Optimization Problem

In Online Convex Optimization (OCO), a decision-maker must choose a sequence of actions ($x_t$) to minimize costs that are revealed over time. "Smoothed" online optimization adds a twist: there is a switching cost—a penalty for changing your action from the previous step. This model is critical for real-world systems like data centers (where toggling servers consumes power) or smart grids (where ramping generators up or down is expensive).

Historically, researchers have viewed this through two lenses:

  1. Adversarial: The environment is a "malicious" opponent trying to maximize your cost. Algorithms here focus on the competitive ratio (worst-case performance relative to an omniscient offline solver).
  2. Stochastic: The environment follows a random but somewhat predictable pattern.

The problem is that adversarial algorithms (like the state-of-the-art ROBD) are often too "pessimistic" and perform poorly in structured stochastic environments. Conversely, stochastic-optimal algorithms usually lack robustness and fail miserably if the environment becomes adversarial. This paper seeks an algorithm that excels in both.

Methods: Lazy Adaptive Interpolation

The authors focus on Smoothed Online Quadratic Optimization (SOQO), where hitting costs are quadratic and switching costs are squared $\ell_2$-norms.

  • Lazy Adaptive Interpolation (LAI): Using Dynamic Programming (DP), the authors derive LAI as the optimal online algorithm for stochastic processes (specifically martingales). Unlike previous methods that use fixed interpolation, LAI uses a time-variant matrix recursion to decide how much to move toward the current cost minimizer versus staying at the previous position.
  • LAI($\gamma$): To achieve "best-of-both-worlds" performance, they introduce a hyperparametric version. By tuning $\gamma \in [0, 1]$, the algorithm can shift its priority. When $\gamma=0$, it behaves like the stochastic-optimal LAI. When $\gamma=1$, it adopts a structure similar to adversarial-optimal algorithms but retains the adaptive benefits of the LAI framework.
  • Analytical Framework: The authors extend existing potential function techniques to analyze algorithms with decision rules that change over time, allowing them to prove competitive ratios for a much broader class of "memoryless" algorithms.

Key Insights

  • Static Benchmarks are Deceptive: In stochastic SOQO, comparing your performance to the best static action in hindsight is a weak baseline. The authors show that the optimal dynamic strategy is vastly superior, and algorithms should be measured against it (Dynamic Regret).
  • The Failure of "Fixed" Interpolation: Existing adversarial algorithms like ROBD use fixed weights for interpolation. The authors prove that any algorithm with fixed weights (that aren't exactly the "limit" weights) will suffer linear regret in a stochastic setting. In other words, its error grows indefinitely over time because it doesn't adapt.
  • Distribution Agnosticism: Surprisingly, the optimal stochastic algorithm (LAI) is distribution-agnostic. It only needs to know the cost matrix $A$ and the time horizon $T$; it doesn't need to know the specific probability distribution of the inputs, provided they follow a martingale structure.

Results and Empirical Superiority

The paper relies on synthetic benchmarks to validate the theoretical results across diverse environments, including light-tail and heavy-tail stochastic sequences, as well as mixed environments with varying adversarial percentages.

Stochastic Optimality: LAI is proven to be the unique online-optimal algorithm for martingale minimizer sequences, achieving $O(T)$ total cost.

Empirical Superiority: In simulations, LAI(1) significantly outperforms the standard adversarial algorithm (ROBD) in stochastic settings. As shown below, LAI(1) maintains virtually zero regret across various distributions, whereas ROBD suffers from high linear regret.

Regret comparison between LAI(1) and ROBD across various stochastic environments.

Adversarial Robustness and Mixed Environments: The "best-of-both-worlds" LAI(1) achieves a competitive ratio very close to the theoretical lower bound. To test robustness, the authors introduced an "adversarial percentage" ($p$), where a portion of rounds are replaced with worst-case inputs. LAI(1) remains the superior choice until the environment becomes more than ~20% adversarial, at which point the pessimistic ROBD begins to edge it out in cost ratio.

Cost ratio of algorithms in mixed environments as adversarial percentage increases.

Limitations and Future Work

  • Known Cost Matrix: The current work assumes the quadratic cost matrix $A$ is known beforehand. A natural extension would be "learning" this matrix online.
  • Quadratic Focus: While SOQO covers many applications, extending these "best-of-both-worlds" guarantees to general non-quadratic convex functions remains an open challenge.
  • Multi-Agent Systems: The authors suggest that extending this framework to multi-agent systems, where agents' costs are coupled, would be a high-impact area for future research.

Summary updated

BibTeX
@inproceedings{bhuyan2024best,
  author = {Neelkamal Bhuyan and Debankur Mukherjee and Adam Wierman},
  title = {{Best of Both Worlds Guarantees for Smoothed Online Quadratic Optimization}},
  booktitle = {International Conference on Machine Learning},
  year = {2024},
  url = {https://openreview.net/forum?id=icijMMWwdG},
}
Figure