Differentiable Linear Bandit Algorithm

Kaige Yang, Laura ToniarXiv 2020

Introduction

In the field of online decision-making, the Multi-Arm Bandit (MAB) problem serves as a fundamental model for balancing exploration and exploitation. In the linear contextual variant, each choice (arm) is represented by a feature vector, and the reward is modeled as a linear combination of these features. The standard approach to this problem is the Upper Confidence Bound (UCB) algorithm, which follows the principle of "Optimism in the Face of Uncertainty." It selects arms based on an index that combines the estimated mean reward with a confidence bound representing uncertainty.

However, traditional UCB algorithms rely on theoretical confidence bounds derived from concentration inequalities. These bounds are often overly conservative, designed for worst-case scenarios that rarely manifest in real-world applications. This conservatism leads to excessive exploration of suboptimal arms, hindering overall performance. In "Differentiable Linear Bandit Algorithm," researchers Kaige Yang and Laura Toni propose SoftUCB, a framework that transforms the discrete selection process into a differentiable one, allowing the confidence bound to be learned directly from data.

The Challenge of Confidence Bounds

The performance of any UCB-style algorithm is highly sensitive to the confidence bound parameter, $\beta$. A large $\beta$ leads to over-exploration, while a small $\beta$ risks premature convergence to a suboptimal arm. Standard theoretical bounds for $\beta$ are often "too safe," resulting in wide intervals that slow down learning.

Furthermore, the standard UCB selection process utilizes an argmax function, which is non-differentiable. This prevents the use of gradient-based optimization to tune $\beta$ dynamically. SoftUCB addresses this by smoothing the selection process, making the expected reward a differentiable function of the confidence bound.

SoftUCB: A Differentiable Approach

SoftUCB introduces several key innovations to enable gradient-based learning of exploration parameters:

  1. Novel Indexing: The authors design a new index, $S_{i,t}$, specifically optimized to differentiate between suboptimal and non-suboptimal arms.
  2. Softmax Selection: By replacing the argmax selection with a softmax function, the algorithm generates a probability distribution over arms. This "soft" selection makes the objective function (expected reward) differentiable with respect to $\beta$.
  3. Gradient-Based Optimization: With a differentiable objective, the agent can employ gradient ascent to iteratively update $\beta$. The framework supports both offline training (learning across multiple trajectories) and online adaptation (updating within a single run).

Experimental Evaluation

The researchers evaluated SoftUCB against standard baselines, including LinUCB and Thompson Sampling (LinTS), using synthetic data and real-world datasets like Jester (joke recommendations) and MovieLens (movie recommendations).

Comparison of learned bounds vs. theoretical bounds and training progress.

As shown in Table 1 and the associated training curves, the learned confidence bounds ($\hat{\beta}$) are significantly tighter than the theoretical bounds ($\tilde{\beta}$). For instance, at $d=10, T=2^{10}$, the theoretical bound is 3.25, while the learned bound is approximately 1.1. This reduction in the exploration parameter allows the agent to focus more quickly on high-performing arms, reducing cumulative regret.

Cumulative regret comparison on the MovieLens dataset.

In real-world benchmarks like MovieLens, SoftUCB consistently outperforms traditional methods. Both the online and offline versions of SoftUCB achieve lower cumulative regret than LinUCB and LinTS. The "soft-elimination" property of the algorithm effectively ignores clearly suboptimal arms while maintaining sufficient exploration for competitive candidates.

Conclusion

SoftUCB represents a significant step toward more efficient online learning by bridging the gap between traditional bandit theory and gradient-based optimization. By learning confidence bounds from data rather than relying on conservative theoretical estimates, the algorithm achieves superior performance in both synthetic and real-world environments. Future work may involve integrating this approach with meta-learning to generalize learned bounds across diverse tasks or extending the differentiable framework to more complex reinforcement learning settings.

Summary updated

BibTeX
@misc{yang2020differentiable,
  author = {Kaige Yang and Laura Toni},
  title = {{Differentiable Linear Bandit Algorithm}},
  year = {2020},
  eprint = {2006.03000},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2006.03000},
}
Figure