Abstract
Contextual bandits are a cornerstone of modern decision-making systems, yet a gap remains between the empirical success of ensemble-based exploration and its theoretical justification in nonlinear settings. This paper introduces the first provably efficient ensemble sampling algorithms for Generalized Linear Models (GLMs) and Neural Networks. By leveraging perturbed history exploration and the Neural Tangent Kernel (NTK) framework, the authors derive high-probability regret bounds that match state-of-the-art randomized methods. Furthermore, the introduction of "anytime" variants via the doubling trick ensures these algorithms remain robust even when the operational horizon is unknown, providing a computationally efficient bridge between theory and practice.
Introduction
Contextual bandit algorithms are the primary mechanism behind personalized recommendation engines, clinical trial designs, and automated advertising. In these scenarios, an agent must select actions (arms) based on observed features (contexts) to maximize cumulative rewards. While linear models offer a mathematically tractable foundation, they often fail to capture the complex, nonlinear dependencies inherent in real-world data.
Nonlinear architectures, such as Generalized Linear Models (GLMs) and Deep Neural Networks (DNNs), offer the necessary expressivity but introduce significant challenges for exploration. Traditional strategies like Upper Confidence Bound (UCB) or Thompson Sampling often become computationally prohibitive or require complex approximations when applied to nonlinear reward functions. Ensemble sampling—maintaining a small set of models trained on perturbed versions of historical data—has emerged as a popular heuristic due to its simplicity and efficiency. However, until now, its theoretical guarantees in nonlinear environments remained unproven.
Methodology
1. GLM-ES: Ensemble Sampling for Generalized Linear Models
The authors propose GLM-ES, which utilizes Maximum Likelihood Estimation (MLE) on a perturbed history. A critical component of this approach is a refined warm-up procedure based on G-optimal design. This ensures the agent initially selects a diverse set of actions to build a sufficiently informative model, guaranteeing the "optimism" required for effective exploration. By improving the analysis of this phase, the authors reduced the theoretical regret associated with warm-up from a factor of $d^9$ to $d^{9/2}$, a significant advancement for high-dimensional applications.
2. Neural-ES: Scaling to Deep Learning
For neural contextual bandits, the paper introduces Neural-ES. This algorithm approximates the reward function using a deep neural network. To analyze its performance, the authors employ Neural Tangent Kernel (NTK) theory. NTK allows wide neural networks to be analyzed as if they were behaving like linear models in a high-dimensional feature space, providing a path to derive formal regret bounds for deep architectures.
3. Anytime Extensions and Computational Efficiency
Most bandit algorithms require a pre-defined time horizon ($T$) to calibrate hyperparameters. To address this, the authors implement a "doubling trick"—restarting the algorithm with exponentially increasing time intervals. This creates "anytime" versions of GLM-ES and Neural-ES that maintain theoretical guarantees without prior knowledge of $T$.
Unlike Perturbed History Exploration (PHE), which requires resampling the entire noise sequence every round, Ensemble Sampling keeps the noise fixed once sampled. This ensures that per-round computation remains constant, making it significantly more scalable for production environments.
Theoretical and Empirical Results
Regret Bounds
The paper establishes that these ensemble methods achieve "sub-linear" regret, meaning the agent's performance converges to the optimal strategy over time. The derived bounds—$\tilde{O}(d^{3/2}\sqrt{T})$ for GLMs and $\tilde{O}(\tilde{d}\sqrt{T})$ for Neural Networks—match the best existing results for more complex randomized exploration algorithms. This proves that simple ensemble methods do not need to sacrifice theoretical rigor for computational speed.
Experimental Validation
The algorithms were evaluated across four synthetic environments designed to challenge different reward structures:
- Linear & Logistic Bandits: Establishing baselines for standard and probabilistic rewards.
- Distance & Quadratic Bandits: Testing complex nonlinearities where rewards depend on Euclidean distance or quadratic forms.
In these simulations, GLM-ES and Neural-ES performed on par with or better than traditional baselines like Thompson Sampling. The anytime variants (using the doubling trick) demonstrated high robustness, incurring only a small constant-factor increase in regret compared to horizon-aware versions.
Discussion and Future Work
While this work provides a strong theoretical foundation for ensemble sampling in nonlinear bandits, several areas for future exploration remain. The current theory suggests that the ensemble size ($m$) only needs to be logarithmic in $T$, but the computational cost still scales linearly with $m$. In massive-scale systems, optimizing this size is crucial. Additionally, while synthetic benchmarks confirm the theory, future research should focus on applying these anytime nonlinear ensembles to large-scale real-world datasets in industry settings. Finally, exploring parameter-sharing techniques within the ensemble could further reduce the memory overhead associated with maintaining multiple deep neural networks.
Summary updated