Dynamic Regret in Online Convex Optimization with Indicator Switching Costs

Naram Mhaisen, George IosifidisNeurIPS 2026

TL;DR

In the real world, changing your mind often carries a fixed, flat tax—spinning up a cloud server or redeploying an ML model costs the same regardless of whether your configuration changed by an inch or a mile. This paper introduces the first online learning algorithm capable of tracking a moving target in continuous spaces while paying these unforgiving "indicator" switching costs. By blending an ensemble of base learners operating at different speeds, it achieves optimal adaptability without needing to know how erratic the environment will be in advance.

What Problem Does This Paper Address?

Imagine playing a game of Online Convex Optimization (OCO): at every round $t$, you pick a continuous action $\boldsymbol{x}_t$, nature reveals a convex loss function, and you take a hit. Usually, if the environment is non-stationary, we measure success via dynamic regret—how well you do compared to a sequence of changing, optimal actions $\{\boldsymbol{u}_t\}$ in hindsight.

To prevent erratic thrashing, formulations often add a switching cost. Historically, OCO research has focused on norm-based switching costs, where tiny adjustments cost tiny amounts ($\|\boldsymbol{x}_t - \boldsymbol{x}_{t-1}\|$). Yet many engineering problems feature indicator switching costs: if $\boldsymbol{x}_t \neq \boldsymbol{x}_{t-1}$, you pay a flat penalty $\lambda_t$, period. Think cache updates, model redeployments, or spending a slice of a differential privacy budget.

Until now, handling indicator costs in continuous spaces was only solved for static targets (where $\boldsymbol{u}_t$ never moves), using randomized Follow-the-Regularized-Leader (FTRL) algorithms. The other workhorse of online learning, Online Mirror Descent (OMD), updates actions recursively from the previous step, making it impossible to write down the closed-form probability densities needed to keep indicator switches low. Could an algorithm track a moving target in OCO while paying flat switching fees?

Methods

The authors first show that simply restarting existing randomized FTRL methods on a fixed schedule fails. Instead, they build a two-layer meta-learning architecture:

  • The Base Layer (Multi-scale "Lazy" Experts): They run roughly $\log_2 T$ parallel copies of FPRLL (Follow the Perturbed Regularized Lazy Leader—FTRL equipped with random Laplace noise and a log-barrier to stay away from boundaries). Each copy is assigned a dyadic lifespan $H \in \{1, 2, 4, 8, \dots\}$ and restarts from scratch every $H$ steps. Short-lived experts react fast to shifts but pay lots of restart switching penalties; long-lived experts are stable ("lazy") but sluggish.
  • The Movement-Aware Master: Instead of picking one expert, a master algorithm (using a discounted-normal predictor) maintains a weight vector $\boldsymbol{v}_t$ to mix the probability densities of all base experts into a single mixture distribution $\mathcal{P}_t$.
  • Surrogate Pricing & Maximal Coupling: Each expert is scored on a surrogate loss combining its expected prediction loss and its Total Variation (TV) distance from the last round—effectively pricing in the switching cost that expert would cause on its own. Finally, the actual action $\boldsymbol{x}_t$ is drawn from $\mathcal{P}_t$ using maximal coupling ("lazy sampling") with $\mathcal{P}_{t-1}$, ensuring the probability of actually changing actions equals the TV distance $\|\mathcal{P}_t - \mathcal{P}_{t-1}\|_{\text{TV}}$.
The Density-Mixture Master algorithm, which scores base experts on both loss and movement, mixes their probability densities, and lazy-samples actions.

Because computing exact expectations and TV distances in high dimensions can be intractable, the authors also provide a lightweight, practical version that uses a single fresh sample per expert and a precomputed upper bound on movement.

Datasets

Not discussed in the paper. (This is a purely theoretical work proving worst-case mathematical guarantees.)

Key Insights and Ideas

  • Single-scale FTRL hits a wall: You can't fix vanilla randomized FTRL simply by restarting it every $k$ steps. Without restarts, it suffers linear $\Omega(T)$ regret if the target moves even once. With any fixed restart period $k$, an adversary can still force suboptimal $\Omega(T^{2/3}\tau^{1/3}/\log T)$ regret. You need multiple time scales running at once.
  • Decoupling expert movement from master movement: A clean mathematical reduction (Lemma 10) shows that the master's probability of switching splits neatly into two parts: the weighted average of the base experts' distribution shifts, plus the $\ell_1$ change in the master's own weights. This turns a thorny continuous-space indicator problem into a classic finite-expert switching problem on the simplex.
  • One algorithm, two flavors of chaos: A target can be non-stationary by jumping abruptly $S_T$ times (piecewise-constant), or by drifting slightly at every single step up to a total path length $P_T$. This single algorithm adapts to whichever measure is kinder, with zero prior knowledge of $S_T$ or $P_T$.

Key Results

All bounds hold in expectation and include the learner's indicator switching penalties:

  • Strongly Adaptive Regret: On every sub-interval $I$ of length $L$, the algorithm achieves $\tilde{\mathcal{O}}(\sqrt{L})$ static regret—the first such guarantee under indicator switching costs in OCO.
  • Piecewise-Constant Targets: It achieves $\tilde{\mathcal{O}}(\sqrt{T(S_T + 1)})$ dynamic regret, matching the known minimax-optimal rate (up to log factors) even though the learner is paying flat switching fees.
  • Drifting Targets & Unified Bound: For targets with total path length $P_T$, it achieves $\tilde{\mathcal{O}}(T^{2/3}(P_T + 1)^{1/3})$, yielding a unified guarantee of $\tilde{\mathcal{O}}\big(\min\{\sqrt{T(S_T + 1)}, T^{2/3}(P_T + 1)^{1/3}\}\big)$.
  • Computational Overhead: Adding the meta-layer incurs only polylogarithmic overhead per round: $\mathcal{O}(\log^2 T)$ arithmetic ops for the master, $\mathcal{O}(1)$ expected base samples, and $\mathcal{O}(\log T)$ density evaluations.

Limitations and Future Work

  • The $T^{2/3}$ Path-Length Gap: Under traditional norm-based switching costs, algorithms can achieve $\mathcal{O}(\sqrt{T(1 + P_T)})$ for drifting comparators. Here, the bound degrades to $\tilde{\mathcal{O}}(T^{2/3} P_T^{1/3})$. This asymmetry happens because the comparator's budget $P_T$ only measures how far it drifts, whereas the learner gets slapped with a flat fee for every tiny adjustment made to keep up. Whether $\tilde{\mathcal{O}}(\sqrt{T(1 + P_T)})$ is possible under indicator costs remains an open question.
  • Oblivious Adversary & Smoothness Assumptions: The guarantees rely on losses being twice-differentiable, smooth, bounded, and chosen by an oblivious adversary (meaning the environment doesn't react to the learner's random coin flips). Extending this to adaptive adversaries or non-smooth losses is left for future exploration.

Summary updated

Abstract

We study dynamic regret in online convex optimization with an \emph{indicator switching cost}: a penalty incurred whenever two consecutive decisions differ. This captures startup overheads such as server activation, model deployment, and cache updates, and on a bounded domain it recovers norm-based movement costs as a special case. Existing techniques for indicator costs handle only static comparators, and we show that a straightforward adaptation to dynamic regret provably fails. Instead, We propose a meta-learning framework with a set of randomized FTRL base learners restarted at dyadic time scales and aggregated by a movement-aware master. The master then mixes the proposed densities and samples actions via maximal coupling of the consecutive mixtures. The algorithm achieves strongly adaptive regret of $\tilde{\mathcal O}(\sqrt{|I|})$ on every interval $I$ and dynamic regret of $\tilde{\mathcal O}(\min\{\sqrt{T(S_T+1)},T^{2/3}(P_T+1)^{1/3}\})$, both in expectation and including indicator switching costs. Here, $S_T$ counts comparator switches and $P_T$ is the comparator path length. The dynamic regret bound holds for all comparator sequences and requires no prior knowledge of $S_T$ or $P_T$. It is minimax-optimal (up to logarithmic factors) for tracking piecewise-constant comparators, and also captures frequently moving comparators with small total path length.
BibTeX
@inproceedings{mhaisen2026dynamic,
  author = {Naram Mhaisen and George Iosifidis},
  title = {{Dynamic Regret in Online Convex Optimization with Indicator Switching Costs}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=frpCLd0FIr},
}
Figure