Episodic Bandits with Stochastic Experts

Nihal Sharma, Soumya Basu, Karthikeyan Shanmugam, Sanjay ShakkottaiarXiv 2021 · arXiv · OpenReview

Introduction

In the standard contextual bandit framework, an agent selects actions based on observed contexts to maximize cumulative rewards. While traditional approaches often start tabula rasa, many practical applications—ranging from recommendation systems to automated trading—benefit from a library of pre-existing "expert" policies. This paper introduces a novel approach to this problem, focusing on the efficiency of learning when experts are stochastic and the environment is non-stationary.

The Efficiency Gap in Bandit Learning

Standard bandit algorithms, such as Upper Confidence Bound (UCB), typically exhibit logarithmic regret, meaning the agent continues to make sub-optimal choices at a decreasing rate indefinitely. Furthermore, real-world environments are rarely static; user preferences and context distributions often shift over time, requiring the agent to adapt to a new "best" expert across different episodes.

The authors address two primary challenges:

  1. Regret Minimization: Can we achieve regret that does not grow with the time horizon $T$?
  2. Adaptation: How can an agent efficiently track the best expert across episodes without discarding previously learned information?

Divergence-based UCB (D-UCB)

The core contribution of this work is the Divergence-based Upper Confidence Bound (D-UCB) algorithm. Unlike traditional methods that only update the value estimate of the chosen expert, D-UCB leverages the stochastic nature of the experts to perform "information leakage" via Importance Sampling (IS).

Information Leakage via Importance Sampling

Because stochastic experts provide a probability distribution over actions, an action taken by Expert A provides information about Expert B, provided their action distributions overlap. By using an IS estimator, the agent can update the reward estimates for all experts simultaneously after every interaction. To manage the high variance typically associated with IS, the authors employ a Clipped IS Estimator, which introduces a controlled bias to ensure faster convergence and numerical stability.

Scaling with D-UCB-lite

To address the computational overhead of updating a large library of experts at every time step, the authors propose D-UCB-lite. This variant updates only a random subset of experts while maintaining the theoretical performance guarantees, ensuring the approach scales to large-scale systems.

Episodic Learning: ED-UCB

In many scenarios, the internal logic of an expert policy is a "black box," or the environment shifts across distinct episodes. The authors introduce Empirical Divergence-based UCB (ED-UCB) for these settings.

In the episodic framework, the context distribution changes between episodes, causing the optimal expert to shift. ED-UCB utilizes a small amount of offline "bootstrapping" data to estimate expert distributions. The analysis shows that with $\mathcal{O}(N\log(NT^2\sqrt{E}))$ samples, the agent can achieve highly efficient regret that scales with the number of episodes $E$ and experts $N$, but remains independent of the time horizon $T$ within each episode.

Theoretical and Empirical Results

The paper provides a significant theoretical breakthrough: horizon-independent constant regret. By exploiting the information overlap between stochastic policies, D-UCB identifies the optimal expert so rapidly that it eventually stops making sub-optimal choices entirely.

Key Findings:

  • Constant Regret: In the non-episodic setting with known experts, regret is bounded by a problem-dependent constant, improving upon the standard logarithmic bounds.
  • Scaling: While the basic regret bound scales linearly with the number of experts ($N$), the authors demonstrate that under a generative model where expert gaps are uniformly distributed, regret scales as $\mathcal{O}(\log N)$.
  • Empirical Validation: The algorithms were tested on CIFAR-10 (image classification) and MovieLens 1M (recommendation). In both cases, D-UCB and ED-UCB reached a regret plateau almost immediately, whereas baselines like UCB and KL-UCB continued to accumulate regret logarithmically.

Limitations and Future Directions

While the results are promising, several constraints remain:

  • Change-Point Detection: The current episodic model assumes the agent knows when an episode ends. Future work could integrate change-point detection for gradual or unannounced shifts.
  • Action Probability Bounds: The mathematical framework requires a universal lower bound on action probabilities ($p_V > 0$). If an expert never chooses a specific action, the IS logic requires modification, which currently sacrifices the constant regret guarantee.
  • Static Experts: The experts are assumed to be fixed. A natural extension involves meta-learning, where experts are fine-tuned online in parallel with the selection process.

Summary updated

Abstract

We study a version of the contextual bandit problem where an agent can intervene through a set of stochastic expert policies. The agent interacts with the environment over episodes, with each episode having different context distributions; this results in the `best expert' changing across episodes. Our goal is to develop an agent that tracks the best expert over episodes. We introduce the Empirical Divergence-based UCB (ED-UCB) algorithm in this setting where the agent does not have any knowledge of the expert policies or changes in context distributions. With mild assumptions, we show that bootstrapping from $\mathcal{O}(N\log(NT^2\sqrt{E}))$ samples results in a regret of $\mathcal{O}(E(N+1) + \frac{N\sqrt{E}}{T^2})$ for $N$ experts over $E$ episodes, each of length $T$. If the expert policies are known to the agent a priori, then we can improve the regret to $\mathcal{O}(EN)$ without requiring any bootstrapping. Our analysis also tightens pre-existing logarithmic regret bounds to a problem-dependent constant in the non-episodic setting when expert policies are known. We finally empirically validate our findings through simulations.
BibTeX
@misc{sharma2021episodic,
  author = {Nihal Sharma and Soumya Basu and Karthikeyan Shanmugam and Sanjay Shakkottai},
  title = {{Episodic Bandits with Stochastic Experts}},
  year = {2021},
  eprint = {2107.03263},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2107.03263},
}
Figure