[Paper Review] Deep Contextual Multi-armed Bandits
This paper proposes Deep Contextual Multi-armed Bandits, a deep learning framework that combines Bayesian neural networks with Thompson sampling via Concrete Dropout to enable principled, adaptive exploration in non-linear contextual bandit settings. By learning the dropout rate end-to-end, the method reduces regret significantly compared to epsilon-greedy and fixed-dropout baselines on both the UCI Mushroom and Casino Parity tasks.
Contextual multi-armed bandit problems arise frequently in important industrial applications. Existing solutions model the context either linearly, which enables uncertainty driven (principled) exploration, or non-linearly, by using epsilon-greedy exploration policies. Here we present a deep learning framework for contextual multi-armed bandits that is both non-linear and enables principled exploration at the same time. We tackle the exploration vs. exploitation trade-off through Thompson sampling by exploiting the connection between inference time dropout and sampling from the posterior over the weights of a Bayesian neural network. In order to adjust the level of exploration automatically as more data is made available to the model, the dropout rate is learned rather than considered a hyperparameter. We demonstrate that our approach substantially reduces regret on two tasks (the UCI Mushroom task and the Casino Parity task) when compared to 1) non-contextual bandits, 2) epsilon-greedy deep contextual bandits, and 3) fixed dropout rate deep contextual bandits. Our approach is currently being applied to marketing optimization problems at HubSpot.
Motivation & Objective
- To address the challenge of combining non-linear context modeling with principled exploration in contextual bandits, which existing methods fail to do simultaneously.
- To overcome the limitations of linear models and epsilon-greedy exploration in deep contextual bandits by enabling uncertainty-aware exploration via Bayesian neural networks.
- To eliminate the need for manual hyperparameter tuning of dropout rates by learning them end-to-end during training.
- To empirically validate that adaptive exploration through learned dropout improves regret minimization in real-world marketing and synthetic tasks.
Proposed method
- Leverages the connection between inference-time dropout and posterior sampling in Bayesian neural networks to enable Thompson sampling for exploration.
- Applies Concrete Dropout—a continuous relaxation of Bernoulli dropout—as a differentiable, learnable dropout rate to model uncertainty and enable gradient-based optimization.
- Trains the deep neural network using standard backpropagation with Concrete Dropout, allowing the model to learn optimal exploration levels through gradient descent.
- Uses Thompson sampling at inference time: sample network weights from the approximate posterior via dropout, then select the action with highest expected reward under the sampled weights.
- Employs a variational inference objective to approximate the posterior over network weights, enabling uncertainty quantification without full Bayesian inference.
- Treats the dropout rate as a trainable parameter, allowing the model to automatically adjust exploration intensity as more data is observed.
Experimental results
Research questions
- RQ1Can a deep neural network model complex, non-linear context-action relationships in contextual bandits while enabling principled exploration?
- RQ2Does learning the dropout rate end-to-end improve regret minimization compared to fixed or manually tuned dropout rates?
- RQ3How does Thompson sampling with Concrete Dropout compare to epsilon-greedy and fixed-dropout baselines in terms of cumulative regret on non-linear contextual bandit tasks?
- RQ4Can adaptive exploration via learned dropout rates reduce the need for manual hyperparameter tuning in real-world deployment scenarios?
Key findings
- On the UCI Mushroom task, the proposed method achieved a final cumulative regret (FCR) of 252, significantly lower than Bernoulli dropout (FCR = 658) and epsilon-greedy (FCR = 1,718).
- On the Casino Parity task, the method achieved an FCR of 1,258, outperforming Bernoulli dropout (FCR = 1,536) and epsilon-greedy (FCR = 2,718).
- The model with learned dropout rates reduced final regret by more than half compared to fixed-rate dropout, indicating faster convergence and earlier cessation of exploration.
- The approach substantially outperformed a non-contextual bandit (FCR = 24,048 on Mushroom task and 25,102 on Casino Parity), demonstrating the value of context modeling.
- The model learned to reduce exploration over time, as evidenced by the discontinuities in regret curves due to exponential retraining and decreasing exploration rates.
- The method is currently being deployed at HubSpot for real-world marketing optimization tasks, indicating practical viability and scalability.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.