[Paper Review] B2Opt: Learning to Optimize Black-box Optimization with Little Budget
B2Opt proposes a learnable optimization framework that leverages a Transformer-based, genetic algorithm-inspired architecture to automatically learn efficient black-box optimization strategies with minimal function evaluations. By using a self-attention crossover, feed-forward mutation, and residual selection modules within stacked blocks, B2Opt achieves multiple orders-of-magnitude performance gains over SOTA baselines, even when trained on low-fidelity surrogate functions.
The core challenge of high-dimensional and expensive black-box optimization (BBO) is how to obtain better performance faster with little function evaluation cost. The essence of the problem is how to design an efficient optimization strategy tailored to the target task. This paper designs a powerful optimization framework to automatically learn the optimization strategies from the target or cheap surrogate task without human intervention. However, current methods are weak for this due to poor representation of optimization strategy. To achieve this, 1) drawing on the mechanism of genetic algorithm, we propose a deep neural network framework called B2Opt, which has a stronger representation of optimization strategies based on survival of the fittest; 2) B2Opt can utilize the cheap surrogate functions of the target task to guide the design of the efficient optimization strategies. Compared to the state-of-the-art BBO baselines, B2Opt can achieve multiple orders of magnitude performance improvement with less function evaluation cost. We validate our proposal on high-dimensional synthetic functions and two real-world applications. We also find that deep B2Opt performs better than shallow ones.
Motivation & Objective
- To address the challenge of high-dimensional, expensive black-box optimization with limited function evaluations.
- To design an automated optimization strategy learning framework that reduces reliance on hand-engineered hyperparameters.
- To improve representation of optimization strategies beyond fixed or shallow models.
- To reduce training cost on expensive black-box functions by leveraging cheap surrogate functions.
- To enable strong generalization to unseen optimization tasks through transfer learning from surrogate tasks.
Proposed method
- B2Opt employs a novel B2Opt Block (OB) composed of three core modules: a self-attention-based crossover (SAC), a feed-forward network-based mutation (FM), and a residual and selection module (RSSM).
- The SAC module uses multi-head self-attention to dynamically assign crossover weights based on individual fitness, enabling adaptive recombination.
- The FM module applies learned, non-uniform mutation operations that guide populations toward promising regions, improving convergence speed.
- RSSM performs pairwise fitness comparison to select the fittest individuals, emulating survival-of-the fittest in evolutionary strategies.
- Multiple OBs are stacked to simulate iterative optimization, forming a deep, end-to-end trainable optimization policy.
- B2Opt is trained using a set of cheap, differentiable surrogate functions that mimic the target task’s properties, enabling gradient-based optimization without querying expensive objectives.

Experimental results
Research questions
- RQ1Can a deep, learnable optimization framework outperform hand-designed and existing learning-to-optimize methods in high-dimensional black-box optimization with minimal function evaluations?
- RQ2How effective is a Transformer-based architecture in representing complex, adaptive optimization strategies compared to traditional evolutionary algorithms?
- RQ3To what extent can B2Opt generalize to unseen black-box optimization tasks when trained on low-fidelity surrogate functions?
- RQ4How do the individual components of B2Opt (SAC, FM, RSSM) contribute to overall performance, and what is their relative importance?
- RQ5Does increasing model depth (number of OBs) and using weight sharing improve optimization performance and generalization?
Key findings
- B2Opt achieves multiple orders of magnitude improvement in performance over SOTA baselines, including evolutionary algorithms, Bayesian optimization, and L2O methods, using significantly fewer function evaluations.
- On high-dimensional synthetic functions (F1–F9) with dimension d=100, B2Opt reduced the final objective value to 3.03±5.82 on F4, outperforming Not FM (23.3±6.68) and Not RSSM (271±346).
- The ablation study showed that removing any core module (SAC, FM, RSSM, or RC) degraded performance, with FM having a slightly weaker impact than the others, indicating all components are essential.
- Visualization revealed that B2Opt’s mutation strategy concentrates solutions in high-potential regions near the optimum, while maintaining diversity, unlike polynomial mutation which spreads solutions more uniformly.
- The model’s performance improved with larger training datasets, confirming that similarity between surrogate and target functions critically affects generalization.
- Deeper B2Opt models (e.g., 5 OBs with weight sharing) outperformed shallower ones, demonstrating the benefit of increased representational capacity.

Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.