How Does Variance Shape the Regret in Contextual Bandits?

Zeyu Jia, Jian Qian, Alexander Rakhlin, Chen-Yu Wei · DOI

Abstract

In contextual bandit problems, standard minimax theory dictates that regret typically scales with the square root of the time horizon, $\sqrt{T}$. However, in many real-world scenarios, rewards exhibit low variance, suggesting that faster learning rates should be achievable. This paper investigates "second-order" regret bounds for general function approximation, exploring how reward variance ($\Lambda$) influences performance. The authors demonstrate that the complexity of the function class, specifically the eluder dimension ($d_{elu}$), serves as a fundamental bottleneck in low-noise environments. By introducing new algorithms for various adversarial settings, this work provides a comprehensive theoretical framework for understanding the interplay between variance, function complexity, and regret.

Introduction

The contextual bandit framework is a cornerstone of modern machine learning, used extensively in recommendation systems, clinical trials, and personalized advertising. A learner observes a context, chooses an action, and receives a reward. The goal is to minimize regret—the difference between the cumulative reward of the optimal policy and that of the learner.

While minimax regret bounds of $O(\sqrt{T})$ are well-established, they are often pessimistic. In "benign" environments where the noise level is low, we expect the learner to converge on the optimal strategy much faster. In linear models, researchers have successfully derived second-order bounds that scale with the total variance $\sqrt{\Lambda}$ rather than $\sqrt{T}$. This paper addresses whether such improvements are possible for non-linear, general function approximation, and identifies the structural properties of function classes that limit these gains.

The Eluder Dimension: A Fundamental Bottleneck

A central contribution of this research is the refutation of the conjecture that one can simply replace $T$ with $\Lambda$ in existing regret formulas for general function classes. The authors identify the eluder dimension ($d_{elu}$)—a measure of how many samples are required to effectively "pin down" a function within a class—as a dominant factor in low-variance regimes.

Unlike standard settings where $d_{elu}$ might appear as a lower-order term, in variance-dependent settings, it becomes a primary bottleneck. The complexity of the hypothesis space cannot be bypassed simply because the environment is quiet; the learner still needs to explore enough to distinguish between similar-looking functions that might behave differently in the long run.

Algorithmic Frameworks

The paper proposes three distinct algorithms tailored to the timing and capabilities of the adversary:

1. VarCB for Weak Adversaries

In the weak adversary setting, the variance of the rewards is determined before the learner selects an action. The VarCB (Variance-aware Contextual Bandit) algorithm employs a "discriminative action" check. If candidate functions in the current version space disagree significantly on a specific action, the learner prioritizes that action to prune the hypothesis set. If no such disagreement exists, the algorithm defaults to a variance-aware version of SquareCB (inverse gap weighting).

2. VarUCB for Strong Adversaries

Strong adversaries can choose the reward variance after observing the learner's action, allowing them to "hide" information behind high-noise responses. To counter this, VarUCB utilizes an optimism-based approach (Upper Confidence Bound) combined with weighted regression. It employs a multi-layer binning structure to balance uncertainty across different scales of variance, ensuring the learner remains robust against strategic noise injection.

3. DistVarCB for Distributional Models

When the learner can model the entire reward distribution rather than just the mean, the DistVarCB algorithm is used. By utilizing Hellinger distance to measure the disagreement between distributional models, this approach achieves superior bounds, particularly when the noise follows a known parametric form like a Gaussian distribution.

Theoretical Results

The paper establishes tight lower and upper bounds that highlight the gap between different adversarial settings:

  • Weak Adversary: The authors prove a lower bound of $\Omega(\sqrt{A\Lambda} + d_{elu})$ and provide a nearly matching upper bound of $\tilde{O}(\sqrt{A\Lambda} + d_{elu})$. This shows that when variance is revealed early, regret scales with the number of actions ($A$) and the total variance.
  • Strong Adversary: The complexity increases significantly, with a lower bound of $\Omega(\sqrt{d_{elu}\Lambda} + d_{elu})$. Here, the eluder dimension replaces the number of actions in the leading term. The VarUCB algorithm achieves an upper bound of $\tilde{O}(d_{elu}\sqrt{\Lambda} + d_{elu})$.
  • Distributional Setting: Modeling the full distribution allows for a bound of $\tilde{O}(\sqrt{A\Lambda_\infty} + d_{elu})$, demonstrating that distributional information can mitigate some of the complexities introduced by general function approximation.

Conclusion and Future Work

This work clarifies the limits of variance-dependent learning in contextual bandits. It proves that while low-variance environments offer significant performance benefits, these benefits are strictly constrained by the eluder dimension of the function class.

Several open questions remain. The current VarCB algorithm requires the variance to be revealed at the start of each round, and removing this requirement for general cases is a significant challenge. Additionally, a gap of $\sqrt{d_{elu}}$ remains between the upper and lower bounds in the strong adversary case. Future research may also focus on developing "parameter-free" algorithms that do not require prior knowledge of variance or specific hyperparameter tuning to achieve these optimal second-order bounds.

Summary updated

BibTeX
@inproceedings{jia2024how,
  author = {Zeyu Jia and Jian Qian and Alexander Rakhlin and Chen-Yu Wei},
  title = {{How Does Variance Shape the Regret in Contextual Bandits?}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2024},
  url = {https://openreview.net/forum?id=32Z3nfCnwa},
}
Figure