Nearly Optimal Algorithms for Adversarial Kernelized Bandits

Shogo IwazakiNeurIPS 2026

TL;DR

When optimizing complex, nonlinear black-box functions—like tuning hyperparameters or running recommendation engines—standard algorithms assume the environment plays fair and stays static. What happens when malicious users or shifting market dynamics actively work against you? This paper introduces the first nearly optimal, computationally practical algorithms for "kernelized bandits" in adversarial settings, proving you don't have to sacrifice performance to survive a hostile environment.

What Problem Does This Paper Address?

Imagine trying to find the highest peak in a foggy mountain range by only testing one coordinate at a time. This is the classic kernelized bandit (or Gaussian Process bandit) problem, a go-to framework for sequential decision-making with smooth, nonlinear reward functions.

Historically, nearly all research here assumes a stochastic world: the mountain stays put, and your altimeter just has a bit of random noise. Reality is rarely so polite. In stock trading or online recommendations, competitors and malicious actors react to your choices, shifting the landscape beneath your feet.

While researchers know how to handle adversarial environments when the reward function is a flat plane (linear bandits), extending this to curvy, infinite-dimensional spaces (kernelized bandits, formally functions living in a Reproducing Kernel Hilbert Space, or RKHS) has been a major roadblock. Previous attempts either relied on unrealistic assumptions or broke down completely for standard smoothness models like the widely used $\nu$-Matérn kernel—sometimes failing to learn anything meaningful at all when the input dimension exceeded the smoothness parameter.

Methods

To tame an adversarial, nonlinear world, the author adapts Exp3—a classic adversarial bandit algorithm that maintains a probability distribution over actions, exponentially boosting the odds of picking historically good ones.

Simply plugging infinite-dimensional kernel features into Exp3 fails because standard reward estimators suffer from exploding variance, and matrix inversions become computationally impossible. The author solves this in two steps:

  1. Kernelized Exp3: Instead of a standard unbiased estimator, this algorithm uses a regularized reward estimator paired with an optimistic bonus (to counteract the bias introduced by regularization). To prevent probabilities from getting dangerously close to zero, it mixes in an exploration distribution built via Maximum Variance Reduction (MVR)—greedily pre-selecting points that would reduce uncertainty the most in a Gaussian Process.
  2. RLS-kernelized Exp3: Because Kernelized Exp3 requires inverting a massive $|\mathcal{X}| \times |\mathcal{X}|$ matrix over the discretized input space $\mathcal{X}$ every round, the author introduces a lightweight variant. Using Ridge-Leverage-Score (RLS) Nyström approximation, it projects the massive kernel matrix onto a tiny, carefully chosen subset of landmark points, drastically cutting compute time without losing theoretical guarantees.

Datasets

Not discussed in the paper. (This is a theoretical work; while the text notes that synthetic simulation experiments are included in Appendix J, no specific datasets or benchmarks are detailed in the main paper.)

Key Insights and Ideas

  • Gaussian Processes as an adversarial yardstick: Even though there are no actual Gaussian distributions or Bayesian priors in an adversarial game, the author discovers a mathematical bridge: the variance of the regularized adversarial estimator is bounded by the posterior variance of a hypothetical Gaussian Process. This lets them import Maximum Information Gain ($\gamma_T$)—a classic measure of how fast you can learn a function over $T$ rounds—directly into adversarial regret proofs.
  • Surviving an adaptive adversary: Because the theoretical analysis avoids relying on fixed, pre-determined reward structures, these are the first algorithms in kernelized bandits proven to work against an adaptive adversary—one that changes the reward function on the fly based on your past moves.
  • Closing the optimality gap: By cunningly disguising a noisy stochastic bandit problem as a bounded adversarial one, the author proves fundamental lower bounds for Squared Exponential (SE) and Matérn kernels, showing that no algorithm can beat their method by more than logarithmic factors.

Key Results

The theoretical performance is measured via regret—the gap between the algorithm's total reward over $T$ rounds and the reward of the single best fixed point in hindsight. If regret grows slower than $T$ (sublinear), the algorithm successfully learns.

Summary of regret bounds and computational costs compared to prior work.
  • Optimal Regret: Both proposed algorithms achieve $\widetilde{O}(\sqrt{T\gamma_T})$ expected regret, matching the best-known rates in benign, non-adversarial settings! For $\nu$-Matérn kernels in $d$ dimensions, this yields $\widetilde{O}(T^{\frac{\nu+d}{2\nu+d}})$ regret—rescuing the setting where prior state-of-the-art (APG-Exp3) suffered $\widetilde{O}(T^{\frac{\nu+d}{2\nu}})$, which fails to even be sublinear when $d \ge \nu$.
  • Massive Speedup: Standard Kernelized Exp3 costs $O(|\mathcal{X}|^3)$ compute per round. RLS-kernelized Exp3 slashes this to $\widetilde{O}(|\mathcal{X}|\gamma_T^2 + \gamma_T^3)$ with high probability (at least $1 - 1/T^2$), paying only a constant factor in regret. Because $\gamma_T$ is typically much smaller than $|\mathcal{X}|$, this turns an intractable algorithm into a viable one.
  • Tight Lower Bounds: Any algorithm facing an adversarial environment must suffer at least $\Omega(\sqrt{T(\log T)^{\frac{d}{2}-1}})$ regret for SE kernels and $\Omega(T^{\frac{\nu+d}{2\nu+d}}(\log T)^{-\frac{\nu}{2\nu+d}})$ for Matérn kernels, confirming near-optimality.

Limitations and Future Work

  • The Curse of Discretization: To handle continuous spaces (like $[0,1]^d$), the algorithms must chop the space into a fine grid of size $|\mathcal{X}| = O(T^{d/2})$. As the dimension $d$ grows, storing and updating probabilities over this grid becomes infeasible. Designing discretization-free continuous algorithms is a prime target for future work.
  • Known Kernels Only: Like most theoretical bandit papers, the algorithms assume you already know the exact kernel function and smoothness parameters ahead of time.
  • Logarithmic Gaps: Because the lower-bound proof relies on truncating unbounded Gaussian tails, there is a tiny polylogarithmic gap between the upper and lower bounds that could be tightened using bounded noise models.

Summary updated

Abstract

This paper studies kernelized bandits (also known as Gaussian process bandits) in an adversarial environment, where the reward functions in a known reproducing kernel Hilbert space (RKHS) may be adversarially chosen at each round. We show that the exponential-weight algorithm achieves $\tilde{O}(\sqrt{T \gamma_T})$ adversarial regret, where $T$ and $\gamma_T$ denote the number of total rounds and the maximum information gain, respectively. For $\nu$-Mat\'ern kernels, we also show algorithm-independent lower bounds that guarantee the optimality of our algorithm up to polylogarithmic factors. Furthermore, we present a computationally efficient variant of our algorithm using Nystr\"om approximation while maintaining nearly optimal regret guarantees.
BibTeX
@inproceedings{iwazaki2026nearly,
  author = {Shogo Iwazaki},
  title = {{Nearly Optimal Algorithms for Adversarial Kernelized Bandits}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=5EgNQMwp80},
}
Figure