Enhancing Zero-Shot Black-Box Optimization via Pretrained Models with Efficient Population Modeling, Interaction, and Stable Gradient Approximation

Muqi Han, Xiaobin Li, Kai Wu, Xiaoyu Zhang, Handing WangNeurIPS 2025

TL;DR: Black-box optimization usually requires heavy, task-specific algorithm tuning, but Pre-trained Optimization Models (POMs) aim to solve new problems "zero-shot" by learning general search strategies offline. This paper introduces EPOM, which upgrades POMs with cross-attention tokenizers, deformable attention for mutation, and a fully differentiable crossover mechanism. The result is a more stable, scalable, and highly effective zero-shot optimizer that dominates existing baselines on high-dimensional benchmarks.

The Challenge of Black-Box Optimization

Black-box optimization (BBO) is everywhere in machine learning and engineering—from hyperparameter tuning to neural architecture search. In BBO, you can evaluate a function to get a score, but you don't have access to gradients to tell you which way to move.

Traditionally, solving these problems requires expert-designed algorithms (like CMA-ES or Differential Evolution) that must be heavily tweaked for every new task. Recently, researchers have developed Pre-trained Optimization Models (POMs). These are neural networks trained on a variety of optimization tasks so they can be deployed "zero-shot" on unseen problems without any manual tuning.

However, current POMs have three major flaws:

  1. Weak feature representation: They only look at the fitness scores and rankings of candidate solutions, ignoring their actual spatial distribution.
  2. Rigid strategies: During the "mutation" phase, every candidate solution interacts with every other candidate, which homogenizes the population and kills diversity.
  3. Unstable training: To make discrete evolutionary steps (like crossover) differentiable for neural network training, they rely on noisy approximations (like the Gumbel-softmax trick), leading to unstable gradient flow.

The EPOM Framework

To address these limitations, the authors propose EPOM (Enhanced Pretrained Optimization Model), which systematically fixes the flaws of previous POMs using three key innovations:

Architecture of the Enhanced Pretrained Optimization Model (EPOM).
  • LMutM/LCrM Tokenizer (Cross-Attention): Instead of just feeding fitness and rank into the model, EPOM uses a cross-attention mechanism to encode the actual decision variables of the population into fixed-length tokens. This gives the model a "spatial" understanding of the optimization landscape, regardless of the problem's original dimensionality.
  • Efficient LMutM (Learned Mutation Module): EPOM replaces standard global self-attention with deformable attention and top-$p$ sampling. Instead of an individual looking at the entire population to generate a mutation, it adaptively selects a relevant subset of peers to learn from.
  • Differentiable LCrM (Learned Crossover Module): The authors ditch the unstable Gumbel-softmax trick. Instead, they use a smooth, differentiable weighted-sum approach to combine parent and mutant individuals. This makes the training process much more stable.

Experimental Setup

  • Training: A custom suite of 5 mathematical functions (TF1-TF5) with randomized landscape offsets to force the model to learn robust strategies.
  • Evaluation (Benchmarks): The standard BBOB (Black-Box Optimization Benchmarking) suite, consisting of 24 diverse continuous functions. These were tested at dimensions $d=30$ and $d=100$.
  • Evaluation (Real-World): The Bipedal Walker environment from OpenAI Gym, which involves optimizing a neural network controller with 874 parameters.

Key Insights

  • Less is more for population interaction: Forcing every candidate solution to interact with the entire population during mutation hurts search efficiency. Allowing individuals to selectively attend to a subset preserves population diversity and improves exploration.
  • Spatial awareness matters: Previous models ignored the actual coordinates of the candidate solutions. Tokenizing the decision variables themselves gives the model a crucial understanding of how the population is distributed across the fitness landscape.
  • Gradients need smooth paths: Approximating discrete evolutionary steps with Gumbel-softmax introduces too much noise. A simple weighted sum provides a cleaner gradient signal, drastically stabilizing the meta-training phase and leading to a better final model.

Key Results

EPOM demonstrates significant improvements over both traditional heuristics and prior POMs across various benchmarks.

Convergence plots for EPOM versus baseline methods on selected BBOB functions (d=30).
  • Benchmark Dominance: EPOM outperformed the previous state-of-the-art POM on 32 out of 48 BBOB test cases across $d=30$ and $d=100$ (a 66.7% win rate). It also consistently beat traditional heuristic baselines like CMA-ES, DE, and L-SHADE.
  • High-Dimensional Scaling: EPOM showed significantly better precision and convergence on 100-dimensional problems, where the original POM often struggled to zero in on exact optima.
  • Real-World Applicability: In the Bipedal Walker reinforcement learning task ($d=874$ parameters), EPOM achieved rapid, high-quality convergence. In contrast, traditional algorithms like CMA-ES and DE suffered from premature convergence and failed to solve the task effectively.

Limitations and Future Work

The authors note that EPOM's performance in heterogeneous search spaces remains underexplored. Currently, the model is designed for continuous numerical optimization. Applying it to tasks with diverse, mixed data types (e.g., strings, images, or categorical variables) is identified as the primary avenue for future work.

Summary updated

BibTeX
@inproceedings{han2025enhancing,
  author = {Muqi Han and Xiaobin Li and Kai Wu and Xiaoyu Zhang and Handing Wang},
  title = {{Enhancing Zero-Shot Black-Box Optimization via Pretrained Models with Efficient Population Modeling, Interaction, and Stable Gradient Approximation}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2025},
  url = {https://openreview.net/forum?id=vLLYlSK6qJ},
}
Figure