Probabilistic Guarantees for Adversarial Linear Contextual Bandits

Guyon Phoelich, Julia Olkhovskaya, Tim van ErvenNeurIPS 2026

TL;DR

In sequential decision-making, knowing your algorithm performs well on average is cold comfort if a single unlucky run causes catastrophic failure. This paper resolves a standing open problem in adversarial linear contextual bandits by delivering the first computationally efficient algorithm guaranteed to perform well with high probability, not just in expectation. Better yet, the authors show their method still works even when the environment’s contexts drift over time or depend on the past.

What Problem Does This Paper Address?

Imagine building a personalized news recommender or an adaptive clinical trial. In each round $t$ (out of $T$), you observe a "context" (like user features, represented here as a set of up to $K$ available action vectors of dimension $d$), pick an action, and suffer a loss. Your goal is to minimize regret—the gap between your total loss and the loss of the best possible strategy in hindsight.

In the adversarial linear contextual bandit setting, contexts arrive randomly, while the loss vectors are chosen by an "oblivious adversary" (meaning losses can shift arbitrarily or strategically, fixed before the game starts). Until now, researchers only knew how to bound regret in expectation—meaning across parallel universes, the average run is good, though any single real-world run could still fail badly. Finding a computationally efficient, simulator-free algorithm with high-probability guarantees (succeeding with probability at least $1 - \delta$) has been a prominent open question since 2020.

Furthermore, standard theory assumes contexts are independent and identically distributed (i.i.d.). If both contexts and losses are fully adversarial, learning is mathematically impossible. The authors ask: how much can we relax the rigid i.i.d. context assumption before learning breaks?

Methods

Instead of inventing a contextual algorithm from scratch, the authors build an elegant stack of reductions and wrappers:

  • Reduction to Non-Contextual Bandits (Standard + Twist): They use a recent reduction by Van Erven et al. (2025) that translates contextual policies into average action vectors, turning the problem into a simpler non-contextual linear bandit. Because the true context distribution is unknown, the algorithm estimates it using historical contexts (collected via a doubling-epoch trick). The estimation error acts as "misspecification" (or corruption). What's new: They plug in a corruption-robust linear bandit subroutine (Liu et al., 2024) that handles total cumulative corruption rather than per-round corruption.
  • Interleaving for Memory: To handle dependent contexts (like a Markov chain), they run $\kappa$ independent copies of the subroutine in round-robin fashion. Each copy only sees every $\kappa$-th step, spacing out observations until they look nearly independent.
  • CORRAL+ for Unknowns (Novel Analysis): The optimal interleaving stride $\kappa$ and corruption budget $\bar{C}$ depend on unknown properties of nature. The authors wrap a grid of base learners inside CORRAL+, a new high-probability adaptation of the classic CORRAL meta-algorithm, which dynamically routes control to the best hyperparameter configuration on the fly.

Datasets

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

Key Insights and Ideas

  • Concentrated drift requires cumulative robustness: When context distributions drift over time, estimation errors might spike massively in a few rounds rather than spreading out evenly. Swapping in a subroutine tolerant to total misspecification across all rounds is the key unlock for non-stationary environments.
  • Linear policies Approximate Non-Linear Optima: When context distributions drift, the true optimal policy actually becomes non-linear! Surprisingly, the authors prove that a simple fixed linear policy still closely approximates this moving target, losing at most $2V$ in cumulative loss (where $V$ is the total distributional drift).
  • Upgrading CORRAL: Classic hyperparameter-tuning bandit wrappers only work in expectation. Proving that CORRAL can operate with high-probability guarantees—and under weaker assumptions on its base learners—provides a reusable tool for the broader bandit community.

Key Results

Using a single unified algorithm, the authors prove high-probability regret bounds (holding with probability at least $1 - \delta$) across three regimes, all running in polynomial time without needing a context simulator:

  1. Standard i.i.d. Contexts: Regret is at most $O\big(d^3 \sqrt{T \log K} \, \mathrm{polylog}(T/\delta)\big)$. This resolves the open problem, matching the optimal $\sqrt{T}$ time dependence.
  2. Non-Stationary, Independent Contexts: When per-round distributions drift by a cumulative total variation distance $V$ from a reference distribution, regret is $O\big(d^3 \sqrt{T \log K} \, \mathrm{polylog}(T/\delta) + d^{5/2} V \, \mathrm{polylog}(T/\delta)\big)$. As long as drift is sublinear ($V = o(T)$), the learner achieves sublinear regret.
  3. Stationary, Exponentially Mixing Contexts: For dependent sequences like uniformly ergodic Markov chains, regret scales as $O\big(C_{\mathrm{mix}}^2 d^3 \sqrt{T \log K} \, \mathrm{polylog}(T/\delta)\big)$, where $C_{\mathrm{mix}}$ captures how fast the process forgets its past.

Limitations and Future Work

The main trade-off for computational efficiency and high-probability safety is dimension dependence: the bounds scale with $d^3$, which is worse than the $d^{3/2}$ (or $d^2$) rates known for expected regret. This $d^3$ factor stems directly from the chosen corruption-robust linear bandit subroutine. For future work, the authors suggest swapping in alternative linear bandit algorithms with tighter dimension dependence—especially for the i.i.d. and mixing settings, where misspecification is well-behaved per round rather than concentrated in sudden spikes.

Summary updated

Abstract

We study the adversarial linear contextual bandit problem, in which an oblivious adversary fixes a sequence of loss vectors while the per-round context (action set) is generated stochastically. In the standard setting where contexts are drawn i.i.d. from a fixed distribution, near-optimal regret bounds are known, but only in expectation. We prove the first such bound that holds with high probability, resolving an open problem stated by Neu and Olkhovskaya [2020], Olkhovskaya et al. [2023] and Dai et al. [2024]. Specifically, the regret is at most $O\big( d^3\sqrt{\log(K)T}\mathrm{polylog}(T/\delta) \big)$ with probability at least $1-\delta$ over $T$ rounds, where $K$ is the number of actions and $d$ is the dimension of the actions. We then ask whether high-probability guarantees can be extended beyond i.i.d. contexts. Although fully adversarial contexts make sublinear regret impossible in this setting, we show that two natural relaxations remain tractable: (i) non-stationary but independent contexts, whose per-round distributions do not deviate too much from a fixed reference distribution, for which we obtain a high-probability regret bound of $O\big(d^3 \sqrt{\log(K)T}\mathrm{polylog}(T/\delta) + d^{5/2}V\mathrm{polylog}(T/\delta)\big)$, where $V$ is the cumulative total variation distance of the per-round distributions from the reference; and (ii) stationary but dependent exponentially mixing contexts, like, for instance, uniformly ergodic Markov chains started from their stationary distribution, for which we obtain a high-probability bound of $O\big(C^2_\textrm{mix} d^3 \sqrt{\log(K)T}\mathrm{polylog}(T/\delta) \big)$, where $C_\textrm{mix}$ is a constant that depends on the mixing process. Technically, our results build on the recent reduction from adversarial linear contextual bandits to misspecified linear bandits by Van Erven et al. [2025]. All three results are obtained from a single base algorithm under different hyperparameter choices, some of which are functions of data-dependent quantities that are unknown in advance. We resolve this by automatically tuning the hyperparameters using the Corral algorithm of Agarwal et al. [2017]. For this purpose, we use a high-probability analysis of Corral, since the original version only has guarantees in expectation.
BibTeX
@inproceedings{phoelich2026probabilistic,
  author = {Guyon Phoelich and Julia Olkhovskaya and Tim van Erven},
  title = {{Probabilistic Guarantees for Adversarial Linear Contextual Bandits}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=epfMK9vZOu},
}
Figure