Gaussian Process (GP) bandits provide a robust framework for optimizing "black-box" functions where evaluations are expensive or noisy. However, the performance of GP-based optimization is highly sensitive to the choice of the prior—specifically the kernel and its hyperparameters. In practice, the correct prior is rarely known, and selecting an inappropriate one can lead to excessive exploration or convergence to sub-optimal regions.
The Challenge of Prior Selection
Traditional approaches often rely on Maximum Likelihood Estimation (MLE) to tune hyperparameters, but MLE lacks theoretical guarantees in sequential settings. Recent methods have turned to Upper Confidence Bound (UCB) frameworks, such as PE-GP-UCB. However, these methods suffer from "double optimism": they are optimistic about both the function values and the suitability of the prior. This bias often leads the algorithm to favor overly complex or "wiggly" kernels (e.g., Matérn-3/2) because their higher inherent uncertainty results in larger UCBs, causing persistent over-exploration.
Proposed Thompson Sampling Methods
To address these limitations, this research introduces two algorithms that leverage Thompson Sampling (TS) to balance exploration and exploitation more naturally.
- Prior-Elimination GP-TS (PE-GP-TS): This algorithm maintains a candidate set of priors and eliminates those whose predictions consistently deviate from observed data.
- HyperPrior GP-TS (HP-GP-TS): A fully Bayesian approach that maintains a "hyperposterior" distribution over the set of candidate priors. Instead of hard elimination, it samples a prior from this hyperposterior and then samples a function from that prior to determine the next action.
HP-GP-TS is particularly advantageous as it avoids permanently discarding priors that might become relevant later, allowing for a more flexible and robust adaptation to the underlying function.
Mitigating Optimism Bias and Improving Scalability
A critical finding of this work is that Thompson Sampling effectively mitigates the optimism bias inherent in UCB-based prior selection. By sampling based on likelihood rather than maximum potential, TS-based methods are less likely to be "tricked" by complex kernels with high uncertainty.
Furthermore, the theoretical analysis reveals that the regret of HP-GP-TS scales with the average maximum information gain across the prior set, rather than the worst-case information gain. This makes the Bayesian approach significantly more scalable as the number of candidate priors ($|P|$) increases, a property not shared by elimination-based methods.
Experimental Evaluation
The algorithms were evaluated against synthetic benchmarks (testing kernel, lengthscale, and subspace selection) and real-world datasets, including sensor data from the Intel Berkeley Research Lab and traffic speed data from PeMS.
Across almost all experiments, HP-GP-TS achieved lower cumulative regret than the state-of-the-art PE-GP-UCB. In kernel selection tasks, HP-GP-TS demonstrated significantly higher accuracy in identifying the true prior. On real-world data, HP-GP-TS exhibited superior stability; while UCB-based methods occasionally suffered from "runaway" regret due to poor prior choices, the Bayesian approach remained consistent.
Conclusion
By moving from optimistic bounds to posterior sampling, PE-GP-TS and HP-GP-TS offer a more efficient and theoretically grounded solution to the prior selection problem in GP bandits. While current implementations focus on finite sets of discrete priors, future work aims to extend these principles to continuous hyperparameter spaces and reduce the $O(t^3 |P|)$ computational complexity to improve scalability for long-horizon tasks.
Summary updated