Sequential Batch Learning in Finite-Action Linear Contextual Bandits

Yanjun Han, Zhengqing Zhou, Zhengyuan Zhou, Jose H. Blanchet, Peter W. Glynn, Yinyu YearXiv 2020

Abstract

In many real-world decision-making scenarios, such as clinical trials or large-scale marketing campaigns, feedback is not received instantaneously. Instead, data is collected in batches, and strategies are updated only after a batch is completed. This paper provides a rigorous mathematical characterization of the trade-offs between the number of batches and the cumulative regret in linear contextual bandits. We demonstrate that while adversarial environments require a polynomial number of batches ($O(\sqrt{T})$) to achieve optimal performance, stochastic environments are remarkably efficient, requiring only $O(\log \log T)$ batches to match the performance of fully online systems.

Introduction

Machine learning typically distinguishes between two extremes: online learning, where models are updated after every data point, and offline learning, where a model is trained once on a static dataset. However, practical constraints often necessitate a middle ground: Sequential Batch Learning. In this setting, a decision-maker must pre-partition $T$ total observations into $M$ discrete batches. The rewards for actions taken within a batch are only revealed at the end of that batch, preventing the learner from adapting their strategy mid-batch.

This paper investigates the "batch complexity" of linear contextual bandits—specifically, how many batches $M$ are required to achieve the same regret bounds as a fully online learner ($M=T$).

Problem Formulation

The authors consider a linear contextual bandit problem with $K$ actions. In each round $t$:

  1. The learner observes a context $x_t$.
  2. The learner chooses an action $a_t \in \{1, \dots, K\}$.
  3. The learner receives a reward $y_t = \langle x_t, \theta_{a_t} \rangle + \epsilon_t$, where $\theta$ represents the unknown parameters and $\epsilon$ is noise.

Under the batch constraint, the learner must decide on a batching schedule $(T_1, T_2, \dots, T_M)$ such that $\sum T_i = T$. The rewards for batch $i$ are only observed after all $T_i$ actions have been selected. The objective is to minimize regret, the difference between the rewards obtained and those of an optimal oracle with knowledge of $\theta$.

Methodological Approaches

The paper analyzes two distinct environmental settings, proposing specific algorithms and batching strategies for each:

1. Adversarial Contexts

In the adversarial setting, contexts are chosen to maximize the learner's regret. To address this, the authors propose Sequential Batch UCB (SBUCB). This algorithm utilizes Upper Confidence Bounds to balance exploration and exploitation. Because the confidence intervals can only be updated between batches, the algorithm must be robust enough to handle the lack of information during the execution of a batch. The authors show that to match the optimal online regret of $\tilde{O}(\sqrt{dT})$, the number of batches must scale as $M \approx \sqrt{T}$.

2. Stochastic Contexts

When contexts are drawn from a stable distribution (specifically a $d$-dimensional Gaussian), the dynamics change significantly. The authors propose a Pure-Exploitation algorithm. In this setting, the natural diversity of the Gaussian contexts provides "free exploration." Because the contexts are well-conditioned, the learner naturally encounters enough variety to estimate the underlying linear model without needing explicit exploration mechanisms like UCB.

A critical innovation here is the doubly exponential batching grid. Instead of equal-sized batches, the authors design a schedule where each subsequent batch is significantly larger than the previous one, allowing the learner to exploit its rapidly improving model estimates.

Key Theoretical Results

The paper's primary contribution lies in the derivation of tight regret bounds for both settings:

  • Adversarial Regret: The regret is bounded by $\tilde{O}(\sqrt{dT} + dT/M)$. This implies that batching is relatively "expensive" in adversarial settings; without a sufficient number of batches, the adversary can exploit the learner's static strategy within a batch.
  • Stochastic Regret: The regret scales as $\tilde{O}(\sqrt{dT} \cdot (T/d^2)^{1/[2(2^M-1)]})$. This "doubly exponential" decay indicates that regret drops precipitously as $M$ increases.
  • The Log-Log Efficiency: A major takeaway is that in stochastic environments, $M = \Theta(\log \log T)$ batches are sufficient to achieve the fully online regret rate. For a horizon of $T=1,000,000$, as few as 5 updates can yield near-optimal performance.

Discussion and Insights

The disparity between adversarial and stochastic results highlights the power of environmental randomness. In the stochastic case, the learner does not need to worry about an opponent "hiding" the best action in an unexplored direction of the feature space. The Gaussian nature of the contexts ensures that every action is tested against a diverse enough set of features to make greedy exploitation viable.

However, the authors note several limitations to these findings:

  1. Distributional Assumptions: The stochastic results rely heavily on the well-conditioned nature of Gaussian distributions. It remains to be seen if these bounds hold for heavy-tailed or non-continuous distributions.
  2. Linearity: The model assumes a strictly linear relationship between contexts and rewards. Extending these batching guarantees to non-linear models (e.g., Neural Bandits) is a significant open challenge.
  3. Action Space: The analysis is limited to a finite set of $K$ actions. Continuous action spaces would likely require more sophisticated exploration strategies, even in the stochastic setting.

Conclusion

This work provides a foundational understanding of sequential batch learning. By proving that stochastic contexts allow for extremely infrequent updates (the $\log \log T$ result), the authors provide a theoretical justification for the batch-processing strategies commonly used in industry, while also cautioning that adversarial environments demand much more frequent adaptation.

Summary updated

BibTeX
@misc{han2020sequential,
  author = {Yanjun Han and Zhengqing Zhou and Zhengyuan Zhou and Jose H. Blanchet and Peter W. Glynn and Yinyu Ye},
  title = {{Sequential Batch Learning in Finite-Action Linear Contextual Bandits}},
  year = {2020},
  eprint = {2004.06321},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2004.06321},
}
Figure