Abstract
Thompson sampling (TS) is a simple, effective stochastic policy in Bayesian decision making. It samples the posterior belief about the reward profile and optimizes the sample to obtain a candidate decision. In continuous optimization, the posterior of the objective function is often a Gaussian process (GP), whose sample paths have numerous local optima, making their global optimization challenging. In this work, we introduce an efficient global optimization strategy for GP-TS that carefully selects starting points for gradient-based multi-start optimizers. It identifies all local optima of the prior sample via univariate global rootfinding, and optimizes the posterior sample using a differentiable, decoupled representation. We demonstrate remarkable improvement in the global optimization of GP posterior samples, especially in high dimensions. This leads to dramatic improvements in the overall performance of Bayesian optimization using GP-TS acquisition functions, surprisingly outperforming alternatives like GP-UCB and EI.
Introduction
Bayesian Optimization (BO) is a standard framework for optimizing expensive, black-box functions. It relies on a probabilistic surrogate model, typically a Gaussian Process (GP), to guide the search for the global optimum via an acquisition function. Thompson Sampling (TS) is a theoretically elegant acquisition strategy that involves drawing a random sample from the GP posterior and finding its global minimum.
However, TS is notoriously difficult to implement in practice. GP posterior samples are highly non-convex and "wiggly," containing numerous local optima. If the inner-loop optimization fails to find the true global minimum of the sample, the entire BO process can stall. This paper addresses this challenge by exploiting the mathematical structure of GP priors to provide a robust global optimization strategy for TS.
The Rootfinding Strategy
The proposed method, GP-TS via Rootfinding, leverages three key mathematical insights to simplify the optimization of the posterior sample:
- Decoupled Representation: Using Matheron’s Rule, the posterior sample is decomposed into a prior sample and a data-dependent adjustment term: $\tilde{f}(x) = f(x) + b(x)$.
- Kernel Separability: By employing separable covariance functions (e.g., Squared Exponential), the multivariate prior sample becomes a product of independent univariate functions.
- Global Rootfinding: The critical points of the prior sample can be found by solving a series of 1D rootfinding problems for each dimension. These points serve as high-quality starting locations for gradient-based optimizers.
As shown in Figure 1, the strategy identifies two sets of starting points: an Exploitation Set (existing data points) and an Exploration Set (local minima of the prior). This dual approach ensures the optimizer explores the complex landscape effectively without getting trapped in suboptimal regions.
Experimental Results
The method was evaluated on standard benchmarks, including the 2D Schwefel and 10D Levy functions. The results demonstrate that the rootfinding-based approach significantly improves the accuracy of the inner-loop optimization compared to random multi-start or genetic algorithms.
More importantly, this improved optimization translates directly to superior Bayesian Optimization performance. When the TS acquisition function is optimized correctly using the proposed rootfinding strategy, it consistently outperforms established methods like Expected Improvement (EI) and Lower Confidence Bound (LCB).
As illustrated in Figure 4, the proposed method exhibits a faster and deeper convergence rate. It is particularly effective in the later stages of optimization, where it successfully identifies deeper minima that other acquisition functions tend to miss.
Conclusion
This work demonstrates that the perceived limitations of Thompson Sampling in continuous domains are largely due to optimization failures rather than inherent flaws in the policy. By utilizing the structure of the GP prior through univariate rootfinding, we can efficiently find the global optima of posterior samples. This makes GP-TS a highly competitive, and often superior, alternative to traditional acquisition functions in Bayesian Optimization.
Summary updated