Introduction
Black-box optimization (BBO) is the backbone of modern scientific discovery, from finding the right DNA sequence for a vaccine to designing the morphology of a robot. The primary challenge is that evaluating these functions is incredibly expensive, often requiring slow simulations or actual "wet lab" experiments.
In the offline BBO (or Model-Based Optimization) setting, continuous querying of the function is not possible. Instead, we rely on a fixed dataset of past evaluations to find a new point $x$ that maximizes the function $f(x)$.
Current approaches typically fall into two traps:
- Forward Models: These attempt to learn a surrogate function $f(x) \approx y$. However, optimizers often exploit these models, finding "adversarial" points where the model incorrectly predicts a high score.
- Inverse Models: These try to learn a mapping from a high score back to an input ($y \to x$). This is notoriously difficult because many different inputs can produce the same score due to multi-modality.
To address these issues, this paper introduces BONET (Black-box Optimization NETworks). BONET reframes offline black-box optimization as a generative sequence modeling problem. Instead of modeling the function itself, it models the behavior of an optimizer. By training a Transformer on synthesized "improvement trajectories" derived from static datasets, the model learns to "hallucinate" the path toward optimal solutions.
Methodology
The authors introduce a three-phase framework for BONET:
- Phase 1: Trajectory Construction (SORT-SAMPLE): Since offline data is not inherently sequential, the authors create synthetic "optimization runs." They take points from the dataset, bin them by value, and sort them from low to high fidelity. This mimics the trajectory of an online optimizer (like Bayesian Optimization) that improves over time.
- Phase 2: Autoregressive Training: A GPT-style Transformer is trained on these synthesized trajectories. Crucially, each point is augmented with a Regret Budget ($R_t$)—the cumulative difference between the current point and the estimated optimum. The model learns to predict the next point in a sequence given the history and the remaining regret.
- Phase 3: Evaluation Rollout: To find new optima, the model is fed a "prefix" of points from the offline data and set with a low Regret Budget. This signals the Transformer that it is close to the goal, prompting it to "roll out" new candidate points that extrapolate beyond the training data.
Experiments and Results
The model was evaluated on standard 2D toy functions (like Branin) for visualization and ablation studies, as well as Design-Bench, a comprehensive suite of 7 real-world offline BBO tasks. These include discrete tasks (DNA binding, drug design, Neural Architecture Search) and continuous tasks (robot morphology, chemical formula optimization).
Key Insights
- Optimization as Language Modeling: The core insight is that optimization can be treated as a sequence completion task. If a model sees enough examples of "getting better," it can learn the underlying logic of improvement.
- The Regret Knob: By conditioning on a "Regret Budget," the authors provide a steering mechanism. During testing, asking for a "zero-regret" sequence forces the model to extrapolate beyond the best points seen in the training data.
- Stitching: Transformers excel at "stitching"—taking a good segment from one sub-optimal trajectory and a better segment from another to create a "super-trajectory" that outperforms anything in the original dataset.
Performance Highlights
- State-of-the-Art Performance: Across the 7 Design-Bench tasks, BONET achieved an average rank of 2.4, significantly outperforming the next best baseline.
- Generalization: On the Branin task, where the best point in the offline dataset was -6.119, BONET successfully "hallucinated" points reaching -1.79, demonstrating true extrapolation rather than mere memorization.
- Robustness: BONET exhibited much lower variance across different runs compared to methods like CMA-ES, suggesting it is less sensitive to the initial "seed" or starting points.
Limitations and Future Work
- Oracle Dependency: To calculate the "Regret Budget" during training, the model requires an estimate of the maximum possible function value ($y_{max}$). While the model is fairly robust to errors in this estimate, it remains a necessary input.
- Purely Offline: The current iteration is designed strictly for the offline setting. Extending BONET to an active setting—where it can iteratively query the function and update its own trajectories—is a promising direction for future research.
- Domain Specificity: While BONET dominates in robotics and biology tasks, it placed second in the Superconductor task, indicating that certain function landscapes might still favor traditional evolutionary strategies.
Summary updated