Best of Both Worlds Guarantees for Smoothed Online Quadratic Optimization

Neelkamal Bhuyan, Debankur Mukherjee, Adam Wierman · DOI

Abstract

We study the smoothed online quadratic optimization (SOQO) problem where, at each round $t$, a player plays an action $x_t$ in response to a quadratic hitting cost and an additional squared $\ell_2$-norm cost for switching actions. This problem class has strong connections to a wide range of application domains including smart grid management, adaptive control, and data center management, where switching-efficient algorithms are highly sought after. We study the SOQO problem in both adversarial and stochastic settings, and in this process, perform the first stochastic analysis of this class of problems. We provide the online optimal algorithm when the minimizers of the hitting cost function evolve as a general stochastic process, which, for the case of martingale process, takes the form of a distribution-agnostic dynamic interpolation algorithm (LAI). Next, we present the stochastic-adversarial trade-off by proving an $\Omega(T)$ expected regret for the adversarial optimal algorithm in the literature (ROBD) with respect to LAI and, a sub-optimal competitive ratio for LAI in the adversarial setting. Finally, we present a best-of-both-worlds algorithm that obtains a robust adversarial performance while simultaneously achieving a near-optimal stochastic performance.

Introduction

In many real-world systems—such as managing power grids, cooling data centers, or implementing adaptive control—a decision-maker faces a fundamental tension between two competing costs:

  1. Hitting Cost: The immediate penalty for the distance between the current action and the "ideal" target at that moment.
  2. Switching Cost: The penalty for changing actions from the previous step, representing the physical wear-and-tear or energy expenditure of ramping a system up or down.

This framework, known as Smoothed Online Quadratic Optimization (SOQO), has traditionally been analyzed through two distinct lenses. The adversarial lens assumes an environment that may provide worst-case inputs, leading to algorithms that prioritize a robust "competitive ratio." The stochastic lens assumes the environment follows a random but somewhat predictable pattern, leading to algorithms that minimize "regret" over time. Historically, algorithms optimized for one setting perform poorly in the other. This paper introduces the first "best-of-both-worlds" algorithm, LAI($\gamma$), which bridges this gap.

The Problem: The "Adversarial Tax"

A significant finding of this research is the existence of an "Adversarial Tax." The current state-of-the-art for adversarial SOQO, known as Regularized Online Balanced Descent (ROBD), is designed to be pessimistic to protect against worst-case scenarios. However, the authors prove that ROBD suffers from $\Omega(T)$ expected regret in simple stochastic settings. In practical terms, being too paranoid about the worst-case scenario makes an algorithm significantly less efficient in a normal, predictable environment. Conversely, algorithms optimized purely for stochastic patterns can be easily exploited by adversarial inputs.

Methodology

The authors tackle this trade-off using a combination of control theory and online learning techniques:

1. Dynamic Programming and LAI

Using the Bellman equation, the authors characterize the mathematically optimal online action when the sequence of targets follows a stochastic process. For the specific case where targets follow a martingale (where the best guess for the future is the current value), they derive Lazy Adaptive Interpolation (LAI). LAI is a distribution-agnostic algorithm that simply interpolates between the current target and the previous action.

2. The Best-of-Both-Worlds Algorithm: LAI($\gamma$)

To achieve robustness, the authors introduce LAI($\gamma$), which utilizes a hyperparameter $\gamma \in [0, 1]$.

  • When $\gamma=0$, the algorithm behaves like the stochastic-optimal LAI.
  • When $\gamma=1$, the algorithm shifts its structure to mimic adversarial-optimal behaviors.

3. Potential Function Analysis

To prove adversarial robustness for an algorithm whose decision rules change over time, the authors developed a new analysis framework for "memoryless" algorithms. This allows them to provide guarantees even when the environment shifts between stochastic and adversarial modes.

Key Insights and Results

Stochastic and Adversarial Performance

  • Constant Regret: In stochastic environments, LAI($\gamma$) achieves constant regret relative to the optimal policy. This means the cumulative error does not grow indefinitely over time but remains bounded.
  • Finite Competitive Ratio: In adversarial settings, LAI($\gamma$) maintains a finite competitive ratio. For the $\gamma=1$ configuration, this ratio is near-optimal, scaling with the square root of the condition number of the cost matrix.
  • Vanishing Gaps: The failure of previous fixed-interpolation algorithms in stochastic settings was due to a "non-vanishing gap" between their fixed rules and the time-varying optimal rule. LAI($\gamma$) resolves this by allowing the decision rule to evolve dynamically.

Empirical Validation

The authors conducted extensive numerical simulations in $\mathbb{R}^{10}$ across various scenarios:

  • Distributions: Testing included light-tail (Uniform, Normal, Laplace) and heavy-tail (Log-normal, Pareto) distributions. The stochastic guarantees held even for heavy-tail distributions, provided the variance remained finite.
  • Mixed Environments: In simulations where a percentage of rounds were replaced with adversarial inputs, LAI(1) outperformed the adversarial-standard ROBD until the environment became more than 20% adversarial, demonstrating a much wider "sweet spot" for real-world applications.

Conclusion and Future Work

This work provides a robust framework for SOQO that does not force a choice between safety and efficiency. However, several avenues for future research remain:

  • Unknown Costs: The current model assumes the cost matrix $A$ is known; future work could explore learning this matrix online.
  • Multi-Agent Systems: Extending these guarantees to settings where multiple agents have coupled costs is a significant open challenge.
  • General Convexity: Moving beyond quadratic costs to general convex hitting costs would further broaden the applicability of these "best-of-both-worlds" guarantees.

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