First- and Second-Order Bounds for Adversarial Linear Contextual Bandits

Julia Olkhovskaya, Jack Mayo, Tim van Erven, Gergely Neu, Chen-Yu Wei

Introduction

In the contextual bandit framework, a learner iteratively selects actions (arms) based on observed $d$-dimensional contexts, such as user demographics or historical behavior. The objective is to minimize regret: the difference between the learner's cumulative loss and the loss of the best fixed policy in hindsight. While traditional research focuses on "worst-case" regret—typically scaling with the square root of the time horizon ($\\sqrt{T}$)—this approach is often overly pessimistic. In many real-world scenarios, environments are not purely adversarial; they may be "benign," featuring low-loss optimal policies or low-variance feedback.

This paper introduces CONTEXTEW (Continuous Exponential Weights for Contextual Bandits), the first computationally efficient algorithm for adversarial linear contextual bandits that achieves adaptive, data-dependent regret bounds. By assuming context distributions are log-concave, the authors provide bounds that scale with the actual difficulty of the environment rather than the time horizon alone.

The Quest for Adaptive Bounds

Researchers distinguish between two primary types of adaptive bounds:

  1. First-order bounds: Regret scales with the total loss of the best possible policy ($L^*_T$). If a near-perfect policy exists, the learner's regret should be significantly lower than $\\sqrt{T}$.
  2. Second-order bounds: Regret scales with the cumulative variance of the learner's losses ($V_T$). In stable environments where losses do not fluctuate wildly, the learner should converge more quickly.

While these bounds have been established for simpler bandit settings, achieving them in the adversarial linear contextual setting—where losses are linear functions of context but can change arbitrarily—has remained a significant challenge for computationally efficient algorithms. Previous approaches either failed to provide these adaptive guarantees or relied on "brute-force" expert-based methods that were computationally intractable.

Methodology: The CONTEXTEW Algorithm

CONTEXTEW bridges the gap between efficiency and adaptivity through several innovative design choices:

Continuous Exponential Weights

Rather than maintaining a discrete set of experts, CONTEXTEW maintains a probability distribution over the entire simplex of possible policies. It employs a continuous version of the Exponential Weights algorithm to update this distribution as new loss information is received.

Log-Concavity as a Geometric Bridge

A central innovation of the paper is the assumption that context distributions possess a log-concave density (e.g., Gaussian or Uniform distributions). This assumption is the "secret sauce" of the proof; log-concave distributions behave predictably under linear transformations, allowing the authors to apply powerful concentration inequalities from convex geometry. This ensures that the resulting distribution over policies remains log-concave, which is essential for both the mathematical analysis and efficient sampling.

Truncation and Rejection Sampling

To manage the variance of loss estimators, the algorithm incorporates a truncation step via rejection sampling. If a sampled policy is predicted to yield a high-variance estimate, the algorithm rejects it and resamples. This mechanism prevents the learner from making erratic updates based on noisy or extreme feedback.

Key Theoretical Results

The paper establishes two major new bounds for expected regret ($R_T$):

  • Second-Order Bound: $R_T = \\tilde{O}(K\\sqrt{dV_T})$
  • First-Order Bound: $R_T = \\tilde{O}(K\\sqrt{dL^*_T})$

In these expressions, $K$ represents the number of arms and $d$ the dimensionality of the context. These results demonstrate that in environments where the optimal policy is highly effective ($L^*_T \\ll T$) or the variance is low ($V_T \\ll T$), CONTEXTEW achieves significantly tighter regret than the standard $\\tilde{O}(\\sqrt{KdT})$ worst-case rate. While there is a slight penalty in the dependence on $K$ compared to some non-adaptive algorithms, this is the necessary trade-off for achieving computational feasibility alongside adaptivity.

Discussion and Future Directions

CONTEXTEW represents a significant step forward in making contextual bandit algorithms more practical for varying environments. However, several avenues for future research remain:

  • The Log-Concave Assumption: While log-concavity enables the current proof, the authors conjecture that these bounds might be achievable under broader context distributions.
  • Computational Complexity: Although more efficient than expert-based methods, the algorithm's $O(K^5)$ complexity—driven by high-dimensional sampling and covariance matrix computations—remains a bottleneck for very large action spaces.
  • Distribution Knowledge: The current model assumes the learner knows the context distribution beforehand. Future work could explore settings where the distribution must be estimated online.
  • High-Probability Guarantees: These results apply to expected regret. Deriving similar first- and second-order bounds that hold with high probability for every individual run remains an open theoretical challenge.

Summary updated

BibTeX
@inproceedings{olkhovskaya2023first,
  author = {Julia Olkhovskaya and Jack Mayo and Tim van Erven and Gergely Neu and Chen-Yu Wei},
  title = {{First- and Second-Order Bounds for Adversarial Linear Contextual Bandits}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2023},
  url = {https://openreview.net/forum?id=NTSbj2otOA},
}
Figure