Gaussian Process Thompson Sampling
- Gaussian Process Thompson Sampling is a Bayesian optimization method that uses a GP surrogate and random posterior sampling to efficiently explore global optima.
- It leverages advanced strategies like rootfinding and local optimizers to overcome challenges in high-dimensional, multimodal spaces.
- The method offers strong theoretical regret bounds and scalable implementations, including sparse and distributed variations, for practical applications.
Gaussian Process Thompson Sampling (GP-TS) is a Bayesian decision-making policy for global optimization, sequential design, and bandit problems in continuous or structured action spaces. It combines Gaussian process (GP) regression—as a nonparametric Bayesian surrogate for an unknown, expensive-to-evaluate objective function—with the Thompson sampling paradigm, which stochastically explores the decision space by sampling functions from the posterior and acting greedily with respect to these samples. GP-TS is of significant interest due to its strong theoretical guarantees, conceptual simplicity, and empirical performance, especially in high-dimensional and multi-modal settings.
1. The GP-TS Framework: Prior, Posterior, and Decision Rule
The GP-TS framework begins by positing a GP prior on the unknown objective:
where is the mean function (typically $0$) and is a positive-definite kernel. After each sequential observation (), the posterior remains a GP with mean and covariance functions: At each iteration , a sample function is drawn from the GP posterior. The next evaluation point is selected as: This maximization is critical: since is a typical sample from the current posterior, globally maximizing translates the stochastic exploration of Thompson sampling into a functionally rich, spatially aware action selection strategy (Adebiyi et al., 2024).
2. Challenges and Strategies for Global Maximization
Posterior samples from a GP are generally highly non-convex and exhibit many local extrema; in high dimensions, can have a complex modal structure with strong spatial correlations. Theoretical regret guarantees for GP-TS rely on the ability to perform exact (or sufficiently accurate) global maximization of each . In practice, this step is arduous and usually dominates the computational cost.
Recent advances have addressed this challenge by exploiting the structure of GP priors, particularly for separable kernels. By representing the sampled function as a decoupled sum , where is a separable prior sample and is a smooth data-dependent "correction" (via Matheron's rule), all critical points of can be cheaply identified via univariate rootfinding in each input dimension. The Cartesian product of these critical points forms an exploration set that covers the local optima of the prior sample. One then initializes a local optimizer (e.g., L-BFGS) from each point in as well as from data points (exploitation set ), refining toward the global maximizer of the perturbed function (Adebiyi et al., 2024).
The core algorithm is as follows:
- Fit GP posterior .
- Draw by pathwise or Mercer/Bochner expansion.
- Solve in every coordinate to obtain all roots per dimension.
- Form from Cartesian products corresponding to prior maxima/minima.
- Union .
- From each , run a gradient ascent on to a local maximizer.
- Select .
- Sample , update data.
Benchmarks show this method accelerates and improves global maximization compared to random multi-start or evolutionary optimizers, especially as dimension grows (Adebiyi et al., 2024).
3. Theoretical Regret, Concentration, and Rates
Regret bounds for GP-TS are typically of the form:
where is the maximum information gain of the GP kernel. Recent frequentist analyses have refined this picture by using fractional (tempered) posteriors (variance inflation by , ), yielding kernel-agnostic regret bounds in terms of and a posterior contraction rate : For squared-exponential kernels, the rate is ; for Matérn- kernels, ; both match minimax lower bounds up to polylogarithmic factors (Roy et al., 16 Feb 2026). Strict exponential concentration of the iterates around the global maximizer can also be established under regularity and sharpness conditions: Here, captures the steepness of the function near the optimum; adaptive rates follow from its magnitude (Basu et al., 2017).
4. Extensions: Adaptive Priors, Sparse GPs, and Distributed GP-TS
Practical deployment often requires adaptation to unknown or misspecified priors. Recent work introduces prior selection strategies for GP-TS: Prior-Elimination GP-TS (PE-GP-TS) eliminates bad priors using predictive error tests, while HyperPrior GP-TS (HP-GP-TS) maintains a hyperposterior distribution over the prior set, sampling from both prior and function posteriors. These methods achieve cumulative regret matching UCB-style elimination in (Sandberg et al., 3 Feb 2025).
GP-TS’s cubic scaling in traditional GP inference and sampling can be circumvented by using sparse approximations such as SVGP or finite-feature decompositions. Scalable TS (STS) leverages inducing points and finite spectral expansions to drive per-iteration costs to , maintaining regret guarantees equivalent to the standard GP-TS for appropriate spectral decay and error budgets (Vakili et al., 2020).
In distributed and decentralized optimization, multi-agent GP-TS over a communication network exploits local GPs and partial data fusion. Regret bounds accelerate with the graph's clique number (fully-connected yields a speed-up), and performance is sensitive to connectivity (Zerefa et al., 2024).
5. Algorithmic Variants and Alternative Inference Techniques
Alternative techniques for implementing GP-TS arise when exact global maximization is infeasible. Sequential Monte Carlo (SMC) methods approximate the distribution of the maximizer directly, using particles and importance weighting rather than challenging inner-loop optimization of function samples. The resulting SMC-TS algorithm samples maximizer candidates, challenges them via posterior draws, and uses systematic resampling to focus computation. This paradigm avoids acquisition function optimization entirely, yielding competitive regret with low overhead, especially in moderate dimensions (Bijl et al., 2016).
Further, adaptive grid-based TS algorithms efficiently target parameter–trajectory pairs in high-noise or stochastic simulation settings by coupling GP surrogates over (input, seed) and refining candidate sets using surrogate-informed filtering and MCMC densification. These techniques substantively accelerate trajectory discovery versus summary-statistics-based BO methods (Fadikar et al., 20 Oct 2025).
6. Applications and Empirical Insights
Empirical evaluations across high-dimensional deterministic and stochastic test functions demonstrate that appropriately initialized and globally optimized GP-TS (notably, rootfinding-based variants) achieve or surpass the performance of widely used competitors such as GP-UCB and Expected Improvement (EI). On problems like 2D Schwefel and 10D Lévy, rootfinding GP-TS finds near-global optima rapidly, reduces simple regret faster, and balances exploration/exploitation more effectively than random Fourier features or genetic algorithm (GA) starts. In adaptive trajectory-based simulation contexts, grid-based GP-TS with common random numbers identifies high-likelihood single-realization trajectories more efficiently (Adebiyi et al., 2024, Fadikar et al., 20 Oct 2025).
7. Open Problems and Ongoing Directions
Despite impressive advances, practical challenges persist: (i) ensuring truly global maximization for high-dimensional non-separable GPs; (ii) balancing computational resources between surrogate modeling and sample optimization; (iii) advancing theoretical regret guarantees for approximate or sparse GP-TS; and (iv) understanding optimal tradeoffs between exploration and exploitation under severe model misspecification or complex, structured priors (Adebiyi et al., 2024, Vakili et al., 2020, Sandberg et al., 3 Feb 2025). Recent progress in regret analysis without discretization (Roy et al., 16 Feb 2026) and in data-driven, structure-exploiting initializations (Adebiyi et al., 2024) points toward more robust and scalable future variants of Gaussian Process Thompson Sampling.