Online Continuous Hyperparameter Optimization for Generalized Linear Contextual Bandits
Yue Kang, Cho-Jui Hsieh, Thomas C. M. Lee
TL;DR
This work tackles the practical challenge of tuning hyperparameters in generalized linear contextual bandits in real time, where offline methods like cross-validation are infeasible. It introduces Continuous Dynamic Tuning (CDT), a two-layer framework where the top layer treats hyperparameter configurations as arms in a non-stationary Lipschitz continuum-armed bandit and the bottom layer runs a contextual bandit using those hyperparameters. The top layer employs Zooming TS with Restarts within a Bandit-over-Bandit scheme to adaptively zoom into promising regions while handling piecewise stationarity, achieving sublinear dynamic regret under switching environments; in stationary settings, it attains near-optimal rates. Empirically, CDT outperforms existing hyperparameter tuning approaches across multiple GLB algorithms on synthetic data and real datasets (Movielens and Yahoo), with stable running times, demonstrating its practicality for online decision-making systems. Overall, the paper provides both theoretical guarantees and strong empirical evidence for online continuous hyperparameter optimization in contextual bandits, advancing the field toward scalable model selection in online learning.
Abstract
In stochastic contextual bandits, an agent sequentially makes actions from a time-dependent action set based on past experience to minimize the cumulative regret. Like many other machine learning algorithms, the performance of bandits heavily depends on the values of hyperparameters, and theoretically derived parameter values may lead to unsatisfactory results in practice. Moreover, it is infeasible to use offline tuning methods like cross-validation to choose hyperparameters under the bandit environment, as the decisions should be made in real-time. To address this challenge, we propose the first online continuous hyperparameter tuning framework for contextual bandits to learn the optimal parameter configuration in practice within a search space on the fly. Specifically, we use a double-layer bandit framework named CDT (Continuous Dynamic Tuning) and formulate the hyperparameter optimization as a non-stationary continuum-armed bandit, where each arm represents a combination of hyperparameters, and the corresponding reward is the algorithmic result. For the top layer, we propose the Zooming TS algorithm that utilizes Thompson Sampling (TS) for exploration and a restart technique to get around the \textit{switching} environment. The proposed CDT framework can be easily utilized to tune contextual bandit algorithms without any pre-specified candidate set for multiple hyperparameters. We further show that it could achieve a sublinear regret in theory and performs consistently better than all existing methods on both synthetic and real datasets.
