TL;DR
The authors introduce BBO-Pile, the first large-scale, fully open-source dataset for pre-training foundation models for black-box optimization, containing over 500,000 optimization trajectories. Using this dataset, they train a family of decoder-only transformer models (ranging from 2M to 80M parameters) and demonstrate that these models can successfully inherit and execute the strategies of diverse, state-of-the-art optimization algorithms.
What Problem Does This Paper Address?
Black-box optimization (BBO) is crucial in fields where evaluating an objective function is expensive and its internal structure or gradients are unknown—such as hyperparameter tuning, neural architecture search, and chemical design. Traditional BBO algorithms (like Bayesian Optimization or evolutionary algorithms) are often brittle, requiring extensive manual tuning and failing to generalize across different problem domains.
Recently, researchers have looked toward "foundation models for optimization" (like Google's OptFormer) that treat optimization trajectories as sequences and learn general optimization principles from data. However, progress has been severely bottlenecked because previous models were trained on proprietary, non-public datasets. This paper addresses this reproducibility crisis by releasing a massive, open-source pre-training dataset alongside a systematic study of how these models scale with compute.
Methods
The authors frame black-box optimization as a standard causal language modeling problem:
- Encoding and Tokenization: Optimization trajectories—consisting of input configurations ($x$) and their corresponding objective values ($y$)—are converted into strings. Continuous values are min-max scaled and discretized into 1,000 bins. Crucially, metadata specifying the optimizer name and search space structure is prepended to the sequence.
- Architecture: Unlike the encoder-decoder setup of OptFormer, this work utilizes a modern decoder-only transformer architecture based on Qwen3, incorporating Rotary Position Embeddings (RoPE) and Grouped Query Attention (GQA).
- Inference via Constrained Decoding: To use the model as an optimizer, the history of the current optimization run is fed as a prompt. The model then auto-regressively predicts the next configuration. To ensure the model only generates valid hyperparameter values, the authors implement grammar-constrained decoding deployed via the high-performance vLLM framework.
Datasets
The core contribution is BBO-Pile, a dataset consisting of 557,100 unique optimization trajectories across 3,095 black-box tasks and 102 distinct search spaces, totaling roughly 2.5 billion tokens.
The dataset was generated by running 6 different optimizers (Random Search, BORE, CQR, HEBO, TPE, and Regularized Evolution) for 100 iterations each across 30 random seeds. It aggregates data from seven popular benchmark families:
- HPO/NAS Benchmarks: HPO-B, LC-Bench, PD1, TabRepo, FC-Net, and NAS-Bench-201.
- Synthetic Benchmarks: 28 classical global optimization problems.
To boost diversity and prevent overfitting, the authors applied data augmentation techniques, including hyperparameter masking and permuting the order of the hyperparameters in the text representation.
Key Insights and Ideas
- Predictable Scaling Laws: The performance of BBO foundation models follows a power-law relationship with respect to compute (FLOPs), similar to large language models. However, the fitted scaling exponent (0.0157) is shallower than that of text-based LLMs, indicating that performance gains from simply throwing more compute at the problem are modest but highly predictable.
- Prompt-Driven Multi-Policy Imitation: A single trained transformer can switch its optimization behavior (e.g., behaving like a purely exploratory Random Search vs. an exploitative Bayesian Optimization variant) simply by changing the optimizer name in the prompt metadata.
- Generalization to the Unseen: The pre-trained models don't just memorize trajectories; they successfully transfer optimization strategies to entirely unseen tasks and entirely novel search spaces.
Key Results
- Successful Imitation: The trained models closely match the performance trajectories of complex target algorithms like Conformalized Quantile Regression (CQR).
- Scale Matters: Smaller models (2M parameters) or those trained on small token budgets (<800M tokens) fail to fully capture the nuances of complex sampling distributions. However, scaling up to an 80M parameter model trained on 1B+ tokens yields an almost perfect match to the target optimizers.
- Production-Ready Runtime: By leveraging vLLM for inference, the computational overhead of generating the next optimization candidate remains flat and competitive with simple random search, overcoming a major bottleneck of traditional Gaussian Process-based Bayesian Optimization.
Limitations and Future Work
Despite its scale, the authors note several limitations of the current work:
- AutoML Bias: The dataset is heavily skewed toward hyperparameter optimization and neural architecture search, meaning it might not generalize perfectly to physical science domains like fluid dynamics or molecular design.
- Short Horizons: The models are currently trained on trajectories of up to 100 trials, making them unsuitable for cheap-to-evaluate problems that require thousands of iterations.
- Lack of Synthetic Generative Data: Unlike foundation models in tabular data (e.g., TabPFN), BBO-Pile relies entirely on real-world benchmarks rather than infinitely generated synthetic functions.
Future work will focus on expanding the dataset to include broader algorithm classes (like CMA-ES) and exploring test-time scaling/reasoning approaches to overcome the short-horizon limitations.
Summary updated