English

Provable Anytime Ensemble Sampling Algorithms in Nonlinear Contextual Bandits

Machine Learning 2026-05-12 v2 Artificial Intelligence Machine Learning

Abstract

We provide a unified algorithmic framework for ensemble sampling in nonlinear contextual bandits and develop corresponding regret bounds for two most common nonlinear contextual bandit settings: Generalized Linear Ensemble Sampling (GLM-ES) for generalized linear bandits and Neural Ensemble Sampling (Neural-ES) for neural contextual bandits. Both methods maintain multiple estimators for the reward model parameters via maximum likelihood estimation on randomly perturbed data. We prove high-probability frequentist regret bounds of O~(d3/2T+d4)\widetilde{O}(d^{3/2} \sqrt{T} + d^{4}) for GLM-ES and O~(d~3/2T)\widetilde{{O}}(\widetilde{d}^{3/2} \sqrt{T}) for Neural-ES, where dd is the dimension of feature vectors, d~\widetilde{d} is the effective dimension of a neural tangent kernel (NTK) matrix and TT is the number of rounds. The regret bound of GLM-ES matches the state-of-the-art result of randomized exploration algorithms in generalized linear bandit setting. In the theoretical analysis, we introduce techniques that address challenges specific to nonlinear models. Practically, we remove fixed-time horizon assumption by developing anytime versions of our algorithms, suitable when TT is unknown. Finally, we empirically evaluate GLM-ES, Neural-ES and their anytime variants, demonstrating strong performance. Overall, our results establish ensemble sampling as a provable and practical randomized exploration approach for nonlinear contextual bandits.

Keywords

Cite

@article{arxiv.2510.10730,
  title  = {Provable Anytime Ensemble Sampling Algorithms in Nonlinear Contextual Bandits},
  author = {Jiazheng Sun and Weixin Wang and Pan Xu},
  journal= {arXiv preprint arXiv:2510.10730},
  year   = {2026}
}

Comments

58 pages, 5 figures, 1 table

R2 v1 2026-07-01T06:32:31.874Z