Randomized Exploration in Generalized Linear Bandits

Branislav Kveton, Manzil Zaheer, Csaba Szepesvari, Lihong Li, Mohammad Ghavamzadeh, Craig Boutilier

TL;DR

This paper introduces two randomized algorithms for generalized linear bandits: GLM-TSL, which uses a Laplace approximation for posterior sampling, and GLM-FPL, which fits models to randomly perturbed reward histories. The authors provide strong theoretical regret bounds for both and demonstrate that GLM-FPL is a highly flexible "Swiss Army Knife" that easily scales to complex models like neural networks, outperforming traditional approaches in practice.

What Problem Does This Paper Address?

In the world of online learning, the multi-armed bandit problem is a classic: an agent must choose between different "arms" (actions) to maximize rewards. The core challenge is the exploration-exploitation dilemma—should you pull the arm that has performed best so far (exploit), or try a less-known arm to see if it’s even better (explore)?

Standard linear bandits assume rewards are a linear function of features. However, many real-world scenarios are non-linear. For example, in a clinical trial or ad-serving system, the probability of success is often modeled via a Generalized Linear Model (GLM), like a sigmoid function in logistic regression.

While Upper Confidence Bound (UCB) algorithms are common for GLMs, randomized methods like Thompson Sampling often perform better in practice. The catch? For non-linear GLMs, the "true" posterior distribution is mathematically messy and hard to sample from. This paper seeks to provide efficient, randomized exploration strategies for GLMs with both theoretical guarantees and practical scalability.

Methods

The authors propose and analyze two distinct randomized strategies:

  1. GLM-TSL (Thompson Sampling Laplace): Since the exact posterior for a GLM is difficult to compute, this algorithm uses a Laplace approximation. It treats the posterior as a Gaussian distribution centered at the Maximum Likelihood Estimate (MLE), with a covariance matrix derived from the Hessian of the log-likelihood.
  2. GLM-FPL (Follow-the-Perturbed-Leader): This is a more frequentist approach to randomization. Instead of approximating a posterior, it adds Gaussian noise directly to the history of observed rewards and then re-fits the GLM.

A key highlight of GLM-FPL is its simplicity. Because it only requires adding noise to data and re-running an optimizer, it can be applied to almost any model—including deep neural networks—without needing complex Bayesian derivations.

Datasets

The researchers evaluated their algorithms using two main setups:

  • Logistic Bandits: Synthetic datasets where rewards are generated via a sigmoid function. They varied the number of features ($d$) from 5 to 20 to test scalability.
  • Deep Bandits (MNIST & Fashion MNIST): To test the "DeepFPL" variant, they used these classic image datasets. In each round, the agent is shown 10 random images (arms). One specific class (e.g., the digit "3") provides a high reward, while others provide low rewards. The agent must learn to recognize the high-reward class using a neural network.

Key Insights and Ideas

  • Randomization Beyond Posterior Sampling: The success of GLM-FPL shows that you don't need a formal Bayesian posterior to explore effectively. Simply "shaking" your data with noise before fitting a model is a powerful exploration heuristic.
  • The Power of Simplicity: GLM-FPL is arguably more attractive for practitioners because it generalizes straightforwardly. If you have a training pipeline for a complex model, you can turn it into a bandit algorithm just by perturbing the target labels.
  • Interleaved Learning is Better: In the neural network experiments, the authors found that "DeepFPL" (which explores and learns representations simultaneously) outperformed "repGLM-FPL" (which learns a representation first through random exploration and then switches to a bandit algorithm). This highlights the benefit of continuous, adaptive exploration.

Key Results

The authors proved that both algorithms achieve an $n$-round regret of $\tilde{O}(d \sqrt{n \log K})$, where $d$ is the number of features and $K$ is the number of arms.

Empirically, the results were striking:

  • Logistic Performance: Both GLM-TSL and GLM-FPL showed state-of-the-art performance, significantly outperforming theoretical UCB-based baselines. As seen in the logistic bandit plots, the randomized methods maintain much lower regret as the number of rounds increases.
Evaluation of GLM-TSL and GLM-FPL in logistic bandits across different feature dimensions.
  • Deep Learning Success: In the MNIST and Fashion MNIST tasks, DeepFPL achieved average rewards very close to the theoretical optimum, proving that the FPL principle remains robust even when the underlying model is a non-linear neural network.
Performance of DeepFPL on MNIST and Fashion MNIST contextual bandit problems.

Limitations and Future Work

While the empirical results for GLM-FPL are excellent, the theoretical regret bound for it currently relies on a restrictive assumption: that feature vectors have at most one non-zero entry. The authors acknowledge this is a technical hurdle in the proof related to how rotations affect the sign of the gradient, and they suggest that eliminating this assumption is a key area for future work.

Additionally, while DeepFPL works well, it currently lacks the formal frequentist regret guarantees provided for the simpler GLM case. Extending these proofs to deep architectures remains an open and exciting challenge for the community.

Summary updated

BibTeX
@inproceedings{kveton2020randomized,
  author = {Branislav Kveton and Manzil Zaheer and Csaba Szepesvari and Lihong Li and Mohammad Ghavamzadeh and Craig Boutilier},
  title = {{Randomized Exploration in Generalized Linear Bandits}},
  booktitle = {International Conference on Artificial Intelligence and Statistics},
  year = {2020},
  url = {https://openreview.net/forum?id=HnNWIActuxq},
}
Figure