Introduction
Bayesian Optimization (BO) has become the standard approach for optimizing expensive-to-evaluate "black-box" functions, ranging from hyperparameter tuning in deep learning to experimental design in materials science. Traditionally, BO relies on Gaussian Processes (GPs) as surrogate models. GPs are favored because they offer analytical tractability, allowing for closed-form expressions of acquisition functions—the logic used to determine the next point to sample.
However, the simplicity of GPs is often a limitation. Real-world systems frequently exhibit complex noise patterns, discrete states (such as simulation timeouts), or known structural properties (like the U-shaped curve of validation error) that GPs struggle to model accurately. While Probabilistic Programming Languages (PPLs) like Stan, Pyro, or Edward are designed to handle such complexity, they typically rely on approximate inference rather than closed-form math. This creates a technical gap: we have flexible models but lack a general framework to integrate them into the BO loop. ProBO addresses this by treating any PPL as a surrogate model through a unified sampling-based interface.
The ProBO Framework
ProBO introduces a framework that abstracts any PPL into three core operations:
inf(Inference): Updating the model's posterior distribution given new observed data.post(Posterior Sampling): Drawing samples of the model's latent variables from the posterior.gen(Generative Sampling): Drawing samples of predicted outputs for a given input, conditioned on the latent variables.
By utilizing these primitives, the authors derive Monte Carlo (MC) versions of standard acquisition functions, including Expected Improvement (EI), Probability of Improvement (PI), Upper Confidence Bound (UCB), and Thompson Sampling (TS). This approach allows the optimization process to benefit from the rich structural priors encoded in PPL models without requiring analytical solutions.
Acquisition Functions and Approximation
Because ProBO relies on sampling, the quality of the acquisition function approximation depends on the number of samples $M$. As shown in the visualizations below, a small $M$ (e.g., $M=50$) can result in a "noisy" acquisition surface, while a larger $M$ (e.g., $M=500$) provides a smoother and more accurate representation of the underlying utility.
To balance computational cost with optimization precision, the authors introduce aMF (Multi-fidelity Acquisition). This strategy uses a bootstrap-based lower confidence bound to dynamically adjust the number of samples. It allocates fewer samples to regions that are clearly suboptimal and more samples to promising areas, reducing the total number of PPL model calls by approximately a factor of three without degrading performance.
Experimental Evaluation
The effectiveness of ProBO was tested across several challenging scenarios where standard GP-based BO typically fails:
- Handling Timeouts: In a neural network hyperparameter search using the Pima Indians Diabetes dataset, some configurations failed to complete. ProBO’s ability to use a "Switching Model" allowed it to outperform GPs, which were confused by the non-smooth jumps caused by failures.
- Robustness to Outliers: In "Contaminated BO" benchmarks where a third of the data points were outliers, ProBO’s denoising models successfully converged to the true optimum, whereas standard BO failed.
- Incorporating Prior Knowledge: Using a "Basin Model" to capture the expected U-shape of validation error on the Wisconsin Breast Cancer dataset allowed ProBO to find optimal architecture widths significantly faster than a generic GP.
Conclusion and Future Work
ProBO demonstrates that the structural knowledge encoded in PPLs can significantly improve optimization efficiency in complex domains. While the framework is PPL-agnostic and versatile, it does introduce higher computational overhead compared to GPs due to the requirements of MCMC or Variational Inference. Future research directions include "warm-starting" inference between BO iterations and leveraging gradients from differentiable PPLs (like Pyro) to further accelerate the optimization of the acquisition function.
Summary updated