A conversion theorem and minimax optimality for continuum contextual bandits

Arya Akhavan, Karim Lounici, Massimiliano Pontil, Alexandre B. Tsybakov · DOI

Abstract

We study the contextual continuum bandits problem, where the learner sequentially receives a side information vector and has to choose an action in a convex set, minimizing a function associated with the context. The goal is to minimize all the underlying functions for the received contexts, leading to the contextual notion of regret, which is stronger than the standard static regret. Assuming that the objective functions are $\gamma$-Hölder with respect to the contexts, $0 < \gamma \le 1$, we demonstrate that any algorithm achieving a sub-linear static regret can be extended to achieve a sub-linear contextual regret. We prove a static-to-contextual regret conversion theorem that provides an upper bound for the contextual regret of the output algorithm as a function of the static regret of the input algorithm. We further study the implications of this general result for three fundamental cases of dependency of the objective function on the action variable: (a) Lipschitz bandits, (b) convex bandits, (c) strongly convex and smooth bandits. For Lipschitz bandits and $\gamma=1$, combining our results with the lower bound of Slivkins (2014), we prove that the minimax optimal contextual regret for the noise-free adversarial setting is achieved. Then, we prove that in the presence of noise, the contextual regret rate as a function of the number of queries is the same for convex bandits as it is for strongly convex and smooth bandits. Lastly, we present a minimax lower bound, implying two key facts. First, obtaining a sub-linear contextual regret may be impossible over functions that are not continuous with respect to the context. Second, for convex bandits and strongly convex and smooth bandits, the algorithms that we propose achieve, up to a logarithmic factor, the minimax optimal rate of contextual regret as a function of the number of queries.

Introduction

In the realm of sequential decision-making, the continuum contextual bandit problem presents a significant challenge. Here, a learner observes a context $c$ (e.g., a user profile), selects an action $z$ from a continuous convex set (e.g., a price or dosage), and incurs a loss $f(z, c)$. The objective is to minimize contextual regret, defined as the difference between the learner's cumulative loss and the loss of an oracle that selects the optimal action for every specific context encountered.

Contextual regret is a much more stringent metric than "static regret," which only compares performance against a single best fixed action for all contexts combined. Historically, achieving sub-linear contextual regret required restrictive assumptions, such as knowing exact Lipschitz constants or assuming the optimal action varies smoothly with context. Moreover, many existing bounds suffered from the "curse of dimensionality," scaling exponentially with the context's dimension. This paper addresses these gaps by providing a general conversion framework and establishing minimax optimal rates.

The Static-to-Contextual Conversion Framework

The core contribution of this work is a static-to-contextual regret conversion theorem. The authors propose a meta-algorithm that transforms any standard static continuum bandit algorithm into a contextual one through a structured discretization strategy:

  1. Context Partitioning: The context space is partitioned into a grid of small hypercubes (cells).
  2. Local Learning: The meta-algorithm maintains a separate, independent instance of a "base" static bandit algorithm (the input algorithm $\pi$) for each cell.
  3. Regret Conversion: The theorem proves that if the base algorithm $\pi$ achieves sub-linear static regret and the loss function is $\gamma$-Hölder continuous with respect to the context, the resulting contextual regret is also sub-linear.

This framework is applied to three primary settings: Lipschitz bandits (smooth in both action and context), convex bandits (convex in the action variable), and strongly convex and smooth bandits (functions with a clear "bowl" shape). For convex scenarios, the authors utilize a modified Bandit Convex Optimization (BCO) algorithm capable of handling noisy evaluations as the base learner.

Key Insights and Minimax Optimality

The paper provides several theoretical breakthroughs regarding the limits of learning in continuous spaces:

The Necessity of Continuity

A critical finding is the minimax lower bound (Theorem 11), which demonstrates that if the loss function is not continuous with respect to the context, achieving sub-linear contextual regret is mathematically impossible. This highlights that some level of regularity in how the environment responds to context is mandatory for learning.

Rate Equivalence in Noisy Settings

The authors uncover a surprising result: in the presence of noise, the optimal regret rate for convex bandits is identical to that of strongly convex bandits. Both scale as $T^{(p+\gamma)/(p+2\gamma)}$, where $p$ is the context dimension and $\gamma$ is the Hölder exponent. This suggests that the additional structure of strong convexity does not provide a faster rate in the noisy contextual setting.

Optimal Regret Rates

The paper establishes minimax optimal rates for several key scenarios:

  • Noise-free Lipschitz Bandits: A regret rate of $T^{(p+d+1)/(p+d+2)}$ is achieved (where $d$ is the action dimension), matching known lower bounds.
  • Noisy Convex/Strongly Convex Bandits: A rate of $T^{(p+\gamma)/(p+2\gamma)}$ is established.
  • Optimality: By providing matching lower bounds, the authors prove their proposed algorithms are as efficient as theoretically possible, up to logarithmic factors.

Discussion and Limitations

While the paper sets a new theoretical benchmark, several practical considerations remain. To reach optimal rates, the meta-algorithm requires knowledge of the Hölder constant $L$ and exponent $\gamma$ to calibrate the grid size. While the grid size $K$ can be somewhat decoupled from $L$, the dependence on $\gamma$ makes fully parameter-free learning a remaining challenge.

Furthermore, although the regret rates are optimal, the number of required cells grows exponentially with the context dimension $p$. This is a fundamental characteristic of non-parametric learning, implying that in high-dimensional spaces, a very large number of samples $T$ may be needed before sub-linear regret is observed. Future research could investigate adaptive partitioning techniques, such as tree-based methods, to refine the grid only in regions of the context space that are frequently visited or highly variable.

Summary updated

BibTeX
@misc{akhavan2024conversion,
  author = {Arya Akhavan and Karim Lounici and Massimiliano Pontil and Alexandre B. Tsybakov},
  title = {{A conversion theorem and minimax optimality for continuum contextual bandits}},
  year = {2024},
  eprint = {2406.05714},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2406.05714},
}
Figure