Abstract
Evolutionary Strategies (ES) have traditionally relied on hand-designed heuristics to navigate complex fitness landscapes. This paper introduces the Evolution Transformer (EvoTF), a novel causal Transformer architecture that learns to perform black-box optimization in-context. By distilling the trajectories of existing evolutionary algorithms and incorporating specific inductive biases—namely population invariance and dimension equivariance—EvoTF demonstrates the ability to generalize across diverse optimization tasks, ranging from synthetic benchmarks to high-dimensional reinforcement learning environments.
1. Introduction
Black-box optimization is essential for tasks where gradient information is unavailable or unreliable, such as reinforcement learning and neuroevolution. While established algorithms like CMA-ES and OpenAI-ES are robust, they are often constrained by "hard-coded" update rules that may not be optimal for every problem geometry.
Meta-learning presents an alternative: training a neural network to act as the optimizer itself. However, creating a "foundation model" for optimization requires overcoming challenges related to varying population sizes and high-dimensional search spaces. The Evolution Transformer (EvoTF) addresses these challenges by leveraging the sequence-modeling capabilities of Transformers to learn optimization logic directly from data.
2. The Evolution Transformer Architecture
EvoTF treats the optimization process as a sequence-to-sequence task. At each generation, the model receives a set of solution coordinates, their corresponding fitness scores, and the current search distribution statistics.
2.1 Inductive Biases
The architecture is defined by two critical symmetries:
- Population Invariance: To handle varying population sizes, EvoTF utilizes "Perceiver" modules. This ensures that the model's output remains identical regardless of the order in which individuals within a generation are presented.
- Dimension Equivariance: The model processes each search dimension using shared parameters. This design choice allows a single model to be applied to problems of arbitrary dimensionality—from low-dimensional synthetic functions to high-dimensional neural network weights—without architectural modification.
2.2 Training Methodologies
The authors propose two primary training regimes:
- Evolutionary Algorithm Distillation (EAD): The model is trained via supervised learning to predict the updates ($\Delta\mu, \Delta\sigma$) of established "teacher" algorithms, such as SNES or OpenAI-ES, using trajectories generated on synthetic tasks.
- Self-Referential Training (SR-EAD): In this bootstrapping approach, the model generates its own training data by perturbing its weights and optimizing its own performance. This allows EvoTF to potentially discover optimization strategies that surpass its initial programming.
3. Experimental Evaluation
EvoTF was primarily trained on the Black-Box Optimization Benchmarking (BBOB) suite, which includes 24 synthetic functions with diverse characteristics like multi-modality and ill-conditioning.
To test generalization, the model was evaluated on:
- Brax: A suite of eight rigid-body physics simulations (e.g., Ant, Hopper, Walker2d).
- Neuroevolution: Optimizing weights for a CNN on MNIST and a control policy for the Pendulum task.
4. Key Insights and Results
The experiments revealed several significant findings:
- In-Context Capabilities: Much like Large Language Models, EvoTF performs "in-context" optimization. It does not update its weights during an optimization run; instead, its internal attention mechanism processes the history of evaluations to navigate the fitness landscape.
- Superior Generalization: Despite being trained on simple synthetic functions, EvoTF consistently outperformed standard evolutionary baselines (SNES, DES, PGPE) across the Brax tasks. It also successfully optimized neural networks for MNIST, a task significantly different from its training data.
- Emergent Scale-Adaptation: The model learned sophisticated behaviors, such as automatically increasing mutation strength when encountering linear slopes—a hallmark of advanced, hand-tuned evolutionary strategies.
- Architectural Flexibility: EvoTF successfully mimicked multiple distinct classes of teacher algorithms, proving its versatility as a general-purpose optimizer.
5. Limitations and Future Directions
While promising, EvoTF faces certain constraints. The quadratic complexity of the Transformer's attention mechanism necessitates a "sliding window" approach, limiting the model's memory of early generations in long runs. Additionally, the self-referential training (SR-EAD) remains somewhat unstable and sensitive to local optima.
Future research may explore the use of State-Space Models (SSMs) to improve memory efficiency and scaling. Furthermore, refining the self-improvement loop through better task curricula could unlock even more powerful learned optimizers.
6. Conclusion
The Evolution Transformer represents a significant step toward foundation models for optimization. By baking fundamental symmetries into a Transformer architecture, the authors have created a system capable of distilling and extending the logic of evolution, providing a robust and flexible tool for black-box optimization across a wide array of domains.
Summary updated