Introduction
Bayesian Optimization (BO) is the gold standard for black-box optimization in fields like drug discovery and materials science, where researchers seek to optimize a property (e.g., chemical yield) without knowing the underlying function. However, traditional BO is computationally expensive, often requiring significant "thinking time" between experimental steps. This paper introduces FIBO (Fully In-Context Bayesian Optimization), a foundation model approach that bypasses traditional bottlenecks to achieve a 35x speedup while maintaining state-of-the-art performance.
The Bottlenecks of Traditional BO
Standard BO processes are slowed down by two primary "time sinks":
- Surrogate Modeling: Every new data point requires re-fitting a probabilistic model (usually a Gaussian Process) to estimate the objective function.
- Acquisition Optimization: Researchers must then search through this model to identify the next best point to sample, a difficult sub-optimization problem that often requires complex tuning.
As datasets grow or when researchers need to suggest many points simultaneously (batching), these steps become prohibitively slow. FIBO aims to make BO "zero-shot" by performing the entire loop instantly using in-context learning.
FIBO: Fully In-Context Bayesian Optimization
FIBO treats optimization as a generative task, utilizing a Transformer encoder to process experimental data (the "context") and a Normalizing Flow generative head. Unlike previous "in-context" methods that only replace the surrogate model, FIBO is "fully" in-context because it also eliminates the need for an acquisition function.
Instead of predicting function values, the model is trained to output the probability distribution of the global optimum ($x^*$). The authors provide theoretical grounding showing that directly sampling from this posterior is mathematically equivalent to Thompson Sampling, a principled strategy for balancing exploration and exploitation.
Experimental Evaluation
The model was pre-trained on 70,000 synthetic datasets generated from Gaussian Process priors. It was then evaluated across:
- Synthetic Benchmarks: Standard stress tests like the Ackley, Levy, and Rosenbrock functions.
- Real-World Chemistry: The Olympus toolkit, featuring emulators for Suzuki coupling yield optimization and solar cell degradation studies.
Key Results
FIBO demonstrates massive efficiency gains without sacrificing accuracy. Because it relies on a single neural network forward pass, its computation time remains constant regardless of search space complexity.
- Massive Speedups: FIBO is over 35x faster than standard Gaussian Process methods. In batch settings, it can be up to 1000x faster than other recent in-context models.
- Competitive Accuracy: Despite the speed, FIBO matches the optimization quality (measured by the GAP metric) of traditional, computationally expensive methods across both synthetic and real-world tasks.
- Batching for Free: Generating a batch of 50 points is essentially as fast as generating one, as the model simply draws multiple samples from the predicted distribution.
Conclusion and Future Work
FIBO represents a significant step toward real-time, high-throughput Bayesian Optimization. While currently focused on lower-dimensional problems (up to 4D), the approach follows the "scaling laws" of foundation models. Future work will involve scaling FIBO to higher dimensions and larger model sizes. It is most impactful in scenarios where the computational overhead of BO was previously the primary delay in the experimental cycle.
Summary updated