Efficient Batched Algorithm for Contextual Linear Bandits with Large Action Space via Soft Elimination

Osama Hanna, Lin Yang, Christina FragouliNeurIPS 2023

Overview

In the domain of multi-armed bandits, the contextual linear setting serves as a foundational framework for applications ranging from personalized recommendations to clinical trials. However, deploying these algorithms in the real world often reveals two major hurdles: the batching constraint and large action spaces. In many practical scenarios, policies cannot be updated after every single interaction; instead, data must be collected in batches. Furthermore, when action spaces are massive or infinite (e.g., continuous drug dosages or millions of products), traditional "action elimination" strategies—which explicitly track and discard suboptimal actions—become computationally intractable.

To bridge this gap, researchers have developed SoftBatch, the first computationally efficient batched algorithm for contextual linear bandits with large or infinite action spaces. By replacing traditional binary action elimination with a novel "soft elimination" approach, SoftBatch achieves near-optimal regret while requiring only a minimal number of policy updates.

Methodology: Soft Elimination and SoftBatch

The core innovation of this work is the SoftBatch algorithm, which relies on a technique termed Soft Elimination. Instead of explicitly deleting suboptimal actions, SoftBatch "shapes" the action space to naturally deprioritize them.

Key Algorithmic Components

  • Linear Optimization Oracle: Rather than scanning all possible actions, SoftBatch only requires an oracle capable of finding the best action for a given linear objective. This standard assumption ensures compatibility with large-scale, off-the-shelf optimization solvers.
  • Action Set Shaping: In each batch, SoftBatch creates a "virtual" action set. Actions are weighted inversely to their estimated "gap" (the difference between their predicted reward and the optimal reward). Consequently, actions closer to the optimum become mathematically "larger" and dominate the search space, while poor actions shrink.
  • Linear Weighted Spanner (LWS): From this virtual set, the algorithm selects a small set of "basis" actions (a barycentric spanner). Playing these basis actions yields the maximum amount of information about the unknown environment while minimizing regret.
  • Inverse Squared Gap Weighting: The algorithm pulls these basis actions a number of times inversely proportional to the square of their estimated gaps. This specific weighting scheme is critical for balancing exploration and exploitation across batches.

To handle contextual settings, the authors employ a reduction technique that transforms the contextual problem into a sequence of simpler linear bandit problems, which are then solved using the SoftBatch framework.

Key Insights and Theoretical Results

As a theoretical contribution, the paper provides rigorous mathematical proofs and complexity analyses rather than empirical evaluations on standard datasets. The theoretical guarantees of SoftBatch are highly competitive:

  • Matching the Batch Lower Bound: SoftBatch requires only $O(\log \log T)$ batches to achieve an overall regret of $\tilde{O}(d^{3/2}\sqrt{T})$, where $d$ is the dimension and $T$ is the time horizon. This matches the known theoretical lower bound for the number of batches needed, proving that this level of performance cannot be achieved with fewer policy updates.
  • Gap-Dependent Performance: When specialized to standard (non-contextual) linear bandits, the algorithm achieves a gap-dependent regret bound of $\tilde{O}(d^3/\Delta_{\min})$, where $\Delta_{\min}$ is the reward gap of the best suboptimal arm. This is achieved using the optimal $O(\log T)$ batches.
  • Computational Efficiency: Because the entire pipeline is designed around a linear optimization oracle, the runtime scales polynomially in the dimension $d$ and linearly in the total time $T$. This makes it significantly more scalable than previous elimination-based batched approaches, which often require complex, volume-sensitive sampling.

Limitations and Future Work

While SoftBatch represents a significant step forward, the authors identify a few areas for future refinement:

  • Dimensionality Factor: The current regret bound includes a $d^{3/2}$ factor, whereas the theoretical lower bound is $\Omega(d\sqrt{T})$. The additional $\sqrt{d}$ stems from the specific construction of the basis actions (the spanner). Improving this spanner construction could close the theoretical gap.
  • Contextual Gap-Dependency: The impressive $1/\Delta_{\min}$ gap-dependent bounds currently apply only to the non-contextual case. Extending this to contextual bandits is non-trivial, as a large reward gap in the original action space does not necessarily translate to a large gap in the reduced space used for the contextual-to-linear transformation.
  • Oracle Dependence: The algorithm's practical speed is inherently tied to the efficiency of the underlying linear optimization oracle. For highly complex or non-convex action sets, even a linear oracle might face computational bottlenecks.

Summary updated

BibTeX
@inproceedings{hanna2023efficient,
  author = {Osama Hanna and Lin Yang and Christina Fragouli},
  title = {{Efficient Batched Algorithm for Contextual Linear Bandits with Large Action Space via Soft Elimination}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2023},
  url = {https://openreview.net/forum?id=L7Whl9pXd0},
}
Figure