Differentiable Meta-Learning of Bandit Policies

Craig Boutilier, Chih-Wei Hsu, Branislav Kveton, Martin Mladenov, Csaba Szepesvári, Manzil Zaheer

Overview

Instead of manually designing bandit algorithms like Upper Confidence Bound (UCB) or Thompson Sampling (TS), this paper proposes GradBand: a framework to learn optimal bandit policies using gradient-based meta-learning. By parameterizing policies in a differentiable way—including Recurrent Neural Networks (RNNs) and a novel algorithm called SoftElim—the authors demonstrate how to automate the discovery of exploration strategies that outperform classic benchmarks on specific problem distributions.

What Problem Does This Paper Address?

In online learning, the "multi-armed bandit" problem is the classic test of the exploration-exploitation trade-off: do you stick with the best-performing option you've found so far (exploit), or try something new to see if it’s even better (explore)?

Traditionally, researchers design algorithms to have "low regret," meaning they won't perform much worse than the best possible arm in the long run. However, these algorithms are often "one-size-fits-all." They are designed for worst-case scenarios and don't necessarily exploit the specific structure of the problems a practitioner might actually face.

If you have a history of similar bandit problems (a "prior distribution"), shouldn't you be able to learn a policy that is specifically tuned for that distribution? This paper tackles the challenge of meta-learning these policies: learning how to explore by optimizing over many sampled bandit instances.

Methods

The authors introduce GradBand, an algorithm that treats the bandit policy as a differentiable function with parameters $w$.

1. The Meta-Learning Loop

GradBand works by sampling a "batch" of bandit problem instances from a prior distribution. It runs the current policy on these instances, calculates the total reward, and then uses policy gradients (a technique from Reinforcement Learning) to update the policy parameters to increase the expected reward.

2. Differentiable Policies

To make this work, the policy must be differentiable. The authors explore three types:

  • Exp3: A classic adversarial bandit algorithm adapted to be differentiable.
  • SoftElim (New): A novel "soft" elimination algorithm. Instead of hard-cutting arms that look bad, it assigns them a probability of being pulled that decays based on their estimated suboptimality. The authors prove that SoftElim maintains theoretical "sublinear regret" guarantees, making it a safe and effective starting point.
  • Neural Networks (RNNs): They use an LSTM to process the history of pulls and rewards, essentially letting the network "learn" the sufficient statistics for exploration on its own.

3. Variance Reduction

Policy gradients are notoriously "noisy." In bandits, the "state" is the entire history of actions and rewards, which grows over time. To fix this, the authors propose specialized baselines (mathematical offsets) to stabilize the gradient, including a "Self-Baseline" where the policy is compared against an independent run of itself.

Impact of baselines on learning

As shown above, using the Self-Baseline drastically accelerates the learning process and achieves much lower Bayes regret compared to using no baseline at all.

Datasets

The paper evaluates the approach on several synthetic but representative bandit environments:

  • Bernoulli Bandits: Arms return 0 or 1 with specific probabilities.
  • Gaussian Bandits: Rewards follow a normal distribution.
  • Distractor Problems: A specific setup where many arms are "distractors" (useless), testing if the policy can learn to ignore them based on the problem's structure.
  • Beta Priors: Standard Bayesian setups where arm means are drawn from Beta distributions.

Key Insights and Ideas

  • Automated Design: We no longer need to manually derive complex "index functions" for every new problem type. If you have data (or a simulator), you can "bake" your prior knowledge into the policy via optimization.
  • SoftElim is a "Best of Both Worlds": It provides the mathematical safety of traditional algorithms (regret bounds) while being easy to optimize with gradients.
  • RNNs Learn Implicit Biases: In the "distractor" experiment, the RNN learned to ignore certain arms entirely because it "realized" (through meta-learning) that those arms were never the optimal choice in that specific distribution of problems. A standard algorithm like UCB would have wasted time exploring them.
  • Curriculum Learning Matters: For long-horizon problems, the authors found it helpful to train the policy on short horizons first and gradually increase the difficulty—a classic trick in deep learning applied here to bandits.

Key Results

  • Performance: Tuned SoftElim outperformed strong baselines like UCB1 and was highly competitive with Thompson Sampling.
Comparison of learned policies to baselines
  • Approaching the "Gold Standard": As GradBand iterates, SoftElim's regret drops significantly, approaching the performance of the theoretically optimal (but computationally heavy) Gittins Index and Thompson Sampling (TS).
  • Efficiency: While computing a Gittins Index for a horizon of 200 rounds took nearly two days, tuning a SoftElim policy with GradBand took only about 20 seconds.

Limitations and Future Work

  • Gradient Variance: Even with the new baselines, training RNNs for very long horizons remains difficult due to high variance in the reward signal.
  • Concavity Guarantees: The authors proved that the reward is "concave" (easy to optimize) for a simple 2-armed case, but we don't yet know if this holds for more complex, multi-armed neural policies.
  • Scaling to Contextual Bandits: The current work focuses on "multi-armed" bandits (no side information). Extending this to "contextual" bandits (where you have user features, like in ad-tech) is a logical and necessary next step.

Summary updated

BibTeX
@inproceedings{boutilier2020differentiable,
  author = {Craig Boutilier and Chih-Wei Hsu and Branislav Kveton and Martin Mladenov and Csaba Szepesvári and Manzil Zaheer},
  title = {{Differentiable Meta-Learning of Bandit Policies}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2020},
  url = {https://openreview.net/forum?id=mOU-t9SV83g},
}
Figure