TL;DR
When optimizing an unknown "blackbox" function using Gaussian Process (GP) bandits, algorithms usually assume you magically know the right mathematical prior—an assumption that almost never holds in the real world. This paper explores two Thompson sampling algorithms that simultaneously learn the right prior and find the optimal solution on the fly, while also fixing broken mathematical proofs in existing literature. By dialing back excessive "optimism," these methods waste far less time exploring dead ends and perform almost as well as an oracle that knew the true prior all along.
What Problem Does This Paper Address?
Imagine trying to find the highest peak in a pitch-black mountain range by taking noisy altitude measurements one step at a time. Gaussian Process (GP) bandits are a go-to framework for this kind of sequential blackbox optimization (used everywhere from hyperparameter tuning to portfolio optimization).
To work well, a GP needs a prior—an initial assumption about how smooth, jagged, or periodic the mountain range is. Theoretical research usually assumes this prior is known. In practice, engineers guess it on the fly using Maximum Likelihood Estimation (MLE), which can easily get stuck in bad assumptions and lacks theoretical safety nets.
Recent attempts to learn the prior automatically have stumbled into two traps:
- Double Optimism: Algorithms based on Upper Confidence Bounds (like PE-GP-UCB) pick the most optimistic action under the most optimistic prior. This leads to wild over-exploration—spending all night checking weird, jagged corners just in case.
- Broken Proofs: Existing Bayesian approaches using Thompson Sampling (like EGP-TS and MixTS) tried to fix this, but as the authors of this paper reveal, their underlying mathematical regret guarantees contain fundamental flaws.
Methods
Instead of relying on rigid confidence bounds, the authors turn to Thompson Sampling (TS)—randomly sampling a plausible reality from your current beliefs and acting optimally within it. Given a finite candidate set of priors $P$, they study two distinct ways to shed excess optimism:
- PE-GP-TS (Prior-Elimination GP-TS): A novel hybrid that removes one layer of optimism. At each step, it draws a random function sample from each "active" prior and optimistically picks the prior-and-action pair with the highest value. If a chosen prior's predictions stray too far from actual observed rewards over time, it gets permanently disqualified (Figure 1a).
- HP-GP-TS (HyperPrior GP-TS): A fully Bayesian, bi-level sampling scheme that removes both layers of optimism (equivalent in execution to the previously proposed EGP-TS, but newly armed with a valid proof). It maintains a probability distribution over the priors themselves—a hyperposterior. At each step, it samples one prior according to how likely it is to be true, samples a function from that prior, and picks the best action (Figure 1b).
Datasets
The authors test their algorithms across both synthetic sandboxes and static snapshots of real-world sensor networks:
- Synthetic Setups: Three distinct challenges where the true prior is hidden among candidates varying by kernel type (e.g., smooth RBF vs. jagged Matérn vs. periodic), lengthscale (how rapidly the function changes), or active subspace (finding which 4 out of 16 dimensions actually matter).
- Real-World Sensor Data: Temperature readings from Intel Berkeley, highway traffic speeds from California PeMS, and daily rainfall from Pacific Northwest (PNW) Precipitation. The first two-thirds of each dataset are bucketed to build realistic candidate priors, while the final third is used for testing (simulating real-world distribution shift).
Key Insights and Ideas
- Why Double Optimism Fails: In the kernel experiments, the doubly-optimistic baseline (PE-GP-UCB) chose the rough Matérn-3/2 kernel over 96% of the time, regardless of the true underlying function! Because rough kernels generate wide uncertainty bands outside observed data, optimistic algorithms get addicted to exploring them. Switching to posterior sampling (HP-GP-TS) completely cures this bias.
- Fixing the Literature's Math: Previous analyses of mixture Thompson Sampling failed because conditioning on "well-behaved" mathematical events subtly warps the probability distributions of the true parameters without changing the algorithm's behavior—breaking the symmetry Thompson Sampling relies on. The authors bypass this landmine using Cauchy-Schwarz inequalities and time-uniform confidence sets to establish a rock-solid sublinear regret bound.
- Weighting Information Gain: Unlike elimination methods whose theoretical bounds scale with the worst-case prior in your set, HP-GP-TS's new regret bound scales with a hyperprior-weighted information gain. If you put higher initial belief on simpler priors, your theoretical guarantees immediately tighten.
Key Results
Across the board, shedding optimism pays off.
- Lower Regret: In synthetic benchmarks (Figure 2) and real-world tasks, HP-GP-TS consistently achieves the lowest (or tied-for-lowest) cumulative regret, hugging remarkably close to an Oracle GP-TS that knows the true prior from step one. Even PE-GP-TS outperforms the Oracle UCB baseline in several setups.
- Prior Identification: In the synthetic kernel test, elimination methods guessed the true prior only ~17% of the time (eliminating at most 1 out of 6 priors on average). HP-GP-TS picked the exact right prior 63.2% of the time (and >98% for distinct kernels like Periodic and Linear), concentrating 60–99% of its belief mass onto a single prior.
- Graceful Scaling & Robustness: When scaling the subspace problem from 5 up to 16 candidate priors, elimination methods saw their regret grow roughly as $\sqrt{|P|}$, whereas HP-GP-TS's regret stayed completely flat. Furthermore, even when given a heavily misspecified initial hyperprior (>75% weight on the wrong lengthscales), HP-GP-TS quickly adapted with minimal performance loss.
Limitations and Future Work
- Computational Bottlenecks: Updating GP posteriors across $|P|$ priors takes $\mathcal{O}(t^3|P|)$ time at step $t$ (reducible to $\mathcal{O}(t^2|P|)$ with rank-one updates), which gets heavy over long horizons.
- Finite Priors: The current framework assumes a finite list of candidate priors, though the authors note HP-GP-TS could be extended to continuous prior spaces using Markov Chain Monte Carlo (MCMC) sampling.
- Theoretical Loose Ends: For PE-GP-TS, one term in the regret bound—representing the uncertainty of the optimal arm under the true prior—is left theoretically unbounded, though experiments show it behaves nicely (sublinearly) in practice. Additionally, the final term in HP-GP-TS's theoretical bound scales linearly with $|P|\sqrt{T}$, even though empirical regret doesn't budge as $|P|$ grows—suggesting room for tighter math ahead.
Summary updated