Problem-Dependent Dynamic Regret over a Predictor Class with One-Gradient Feedback

Wentao ZhangNeurIPS 2026

TL;DR

Modern online learning systems often have access to "hints" from simulators, forecasters, or neural surrogates—some helpful, some wildly inaccurate. This paper introduces PH-Sword, an algorithm for shifting environments that learns which predictor to trust on the fly while querying only a single true gradient per round. Better yet, if every single hint turns out to be garbage or actively adversarial, the algorithm automatically falls back to safe, worst-case performance without breaking a sweat.

What Problem Does This Paper Address?

Imagine steering a decision-making system—like an ad bidder, a portfolio manager, or a robot controller—through a constantly shifting world. In Online Convex Optimization (OCO), because the environment drifts over time, we don't compare our algorithm against a single fixed strategy in hindsight. Instead, we measure dynamic regret: how well we do compared to a moving target (whose drift is measured by its "path length," $P_T$).

Today, decision-makers rarely fly blind. Before making a move, they can get cheap guesses of the next gradient from physics simulators, time-series forecasters, or replay buffers. If a guess is spot-on, it can dramatically speed up adaptation. If it's biased or adversarial, it can ruin your Theoretical Guarantees™.

Making things harder is a strict real-world budget called one-gradient feedback: evaluating a decision might require running a costly real-world rollout, so you only get to observe the true gradient once per round, right where you acted. Prior state-of-the-art methods (like Sword++) could handle one-gradient feedback, but only with a single, rigid hint—like reusing the previous round's gradient. Nobody knew how to safely juggle a diverse pool of $\Pi$ untrusted predictors, exploit the best one, and maintain a safety net under one-gradient feedback.

Table 1: PH-Sword in the dynamic-regret / learning-augmented OCO landscape. “1-grad” flags algorithms that query a single gradient per round (the realistic one-gradient feedback model studied in this paper); PT , VT /E∗, and FT flag whether the final dynamic regret bound improves with, respectively, small comparator path length, small gradient-variation/best-predictor-error, and small comparator loss. “Predictor class” lists the family of optimistic hints accommodated. PH-Sword is the only entry that is simultaneously anytime-adaptive to all four problem-dependent quantities while accommodating an arbitrary finite predictor class with only an additive log |Π| in regret. “static” indicates the algorithm has no path-length-adaptive worst-case dynamic regret bound; the worst-case rates suppress logarithmic factors.

Methods

To get the best of all worlds, PH-Sword stacks three online learning layers that all share the same single gradient observation at the end of each round:

  1. Layer 1: Predictor Aggregation (What's new). Instead of hard-coding a single hint, PH-Sword takes a user-supplied finite pool of predictors $\Pi$ (which always includes a "zero predictor" that just guesses $0$). It blends their advice using an exp-concave Hedge algorithm, paying only a tiny $\log |\Pi|$ penalty to track the most accurate predictor.
  2. Layer 2: A Grid of Optimistic Base Learners (Adapted standard). Since we don't know how fast the environment is drifting, PH-Sword runs a bank of $O(\log T)$ base learners in parallel, each with a different step size on a geometric grid. Rather than using a fixed hint, every base learner takes an "optimistic" projected-gradient step using Layer 1's blended prediction.
  3. Layer 3: Correction-Term Meta Learner (Adapted from Sword++). A master algorithm combines the base learners' actions. Because we only see one gradient at the blended decision (not at each base learner's individual proposal), naive aggregation suffers from high variance. PH-Sword borrows a trick from Sword++: adding a quadratic movement penalty to the meta-loss to cancel out stability errors, paired with a "prediction-error doubling" trick to tune the meta-learning rate on the fly.

Datasets

Rather than static real-world datasets, the authors evaluate PH-Sword on six controlled synthetic OCO benchmarks. These environments—featuring drifting targets, piecewise-stationary streams, noisy oracle hints, random decoy predictors, and adversarial hints pointing in the worst direction—were specifically engineered to isolate and test each mathematical term in their regret bound.

Key Insights and Ideas

  • Blindly trusting one noisy hint is worse than having no hint at all: One of the coolest empirical catches in the paper is a failure mode of standard optimistic learners. When fed a single noisy predictor without model selection, optimistic steps amplify the prediction error's variance, performing worse than plain Online Gradient Descent (OGD). Including the zero predictor in PH-Sword's pool acts as an automatic circuit breaker.
  • Three regimes, zero hyperparameter tuning: PH-Sword's regret bound seamlessly shifts gears depending on reality. If a great predictor exists, regret scales with its error ($\mathcal{E}_*$). If all predictors fail but the environment allows for low overall loss, the zero predictor triggers a "small-loss" fallback ($F_T$). If everything is terrible and adversarial, gradients are clipped and it falls back to optimal worst-case OGD rates. All of this happens deterministically using fixed theoretical constants—no hyperparameter sweeps required.

Key Results

Across all six benchmarks (run over 8 seeds), the empirical behavior tightly matched the five scaling laws predicted by Theorem 1:

  • Head-to-head performance: On a slow-drift benchmark, PH-Sword achieved 17% of standard OGD's final dynamic regret (15.2 vs. 89.3) and 54% of Ader's regret (28.2)—even though Ader queries multiple gradients per round.
  • The single-hint trap: On that same benchmark, stripping away model selection (|Π|=1 with a noisy predictor) caused regret to balloon to 58.2, nearly $4\times$ worse than full PH-Sword.
  • Cheap model selection & adversarial safety: Adding up to 129 decoy predictors increased squared dynamic regret only linearly with $\log|\Pi|$ ($r^2 = 0.89$). Under an actively adversarial predictor, regret scaled with horizon $T$ as $T^{0.638}$ ($r^2 > 0.999$), safely beating OGD ($T^{0.996}$).

Limitations and Future Work

  • Synthetic validation only: The experiments cleanly verify the math on controlled benchmarks, but PH-Sword hasn't yet been tested with real learned predictors (like neural world models) on messy, real-world non-stationary tasks or reinforcement learning rollouts.
  • Finite predictor pools: The algorithm requires a finite set of predictors $\Pi$ containing the zero predictor; extending this to continuous families of predictors remains an open problem.
  • Conservative error metric: The theoretical bound measures predictor accuracy by its worst-case error across the entire decision space, which may be overly pessimistic if a learned model is accurate on visited states but sloppy elsewhere.

Summary updated

BibTeX
@inproceedings{zhang2026problem,
  author = {Wentao Zhang},
  title = {{Problem-Dependent Dynamic Regret over a Predictor Class with One-Gradient Feedback}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=zhLmhEjDZ0},
}
Figure