Introduction
Contextual bandits are the backbone of modern recommendation systems, clinical trials, and personalized medicine. However, their real-world performance is notoriously sensitive to hyperparameters, particularly the exploration rate ($\alpha$), which balances trying new actions against exploiting known winners. Traditionally, these parameters are either set to conservative theoretical values or tuned via offline grid search. In live environments, however, decisions must be made in real-time, and pausing for cross-validation is not an option.
Existing online tuning methods typically rely on a pre-defined, discrete set of candidate values. This approach creates a dilemma: a coarse grid misses the optimal setting, while a fine grid wastes time exploring redundant options. This paper introduces Continuous Dynamic Tuning (CDT), the first framework designed to find optimal hyperparameter configurations on the fly within a continuous range.
The Continuous Dynamic Tuning (CDT) Framework
The authors propose a two-layer "Bandit-over-Bandit" (BOB) framework. In this architecture, the Bottom Layer is the primary contextual bandit algorithm (e.g., LinUCB) interacting with the environment. The Top Layer treats the hyperparameter space itself as a non-stationary, continuum-armed bandit, where the "reward" is the performance of the bottom-layer algorithm.
Zooming Thompson Sampling with Restarts
To power the top layer, the researchers developed a novel Zooming Thompson Sampling (TS) algorithm with Restarts. This approach features three key components:
- Zooming: Instead of exhaustive searching, the algorithm adaptively partitions the hyperparameter space, "zooming in" on promising regions by creating smaller, more precise "balls" around high-performing values.
- Thompson Sampling: A Bayesian approach is used to sample configurations, providing more robust exploration than standard UCB-based methods.
- Restarts: Recognizing that the optimal hyperparameter may change as the model learns (non-stationarity), the algorithm periodically resets its search to avoid stagnation in early-stage optimal configurations.
Theoretical and Empirical Results
The core theoretical contribution is the proof that CDT achieves a sublinear regret bound of $O(\tilde{T}^{(p+2)/(p+3)})$ for $p$ hyperparameters. This ensures that the algorithm's mistakes grow slower than time, eventually converging on near-optimal settings. The framework relies on the assumption of Lipschitz Smoothness, meaning similar hyperparameters yield similar rewards.
Empirically, CDT was evaluated against synthetic simulations and large-scale datasets like MovieLens 100K and Yahoo News (R6A). Key findings include:
- Continuous Superiority: Unlike discrete methods, where adding more candidates can actually hurt performance due to redundant exploration, CDT's adaptive refinement consistently finds better settings.
- Performance: Across seven state-of-the-art bandit algorithms, CDT outperformed both theoretical defaults and existing discrete tuning baselines.
- Efficiency: The computational overhead of "zooming" into a continuous space was minimal, adding only seconds to the total runtime, making it highly practical for real-time systems.
Conclusion
CDT represents a significant advancement in making contextual bandits more robust and self-tuning. By treating hyperparameter optimization as a continuous, non-stationary bandit problem, it removes the need for manual grid selection. Future work may extend this framework to full model selection, allowing systems to decide online whether to use linear models, neural networks, or forest-based bandits.
Summary updated