Abstract
Evolutionary Algorithms (EAs) are essential for Black-Box Optimization (BBO) but require extensive manual tuning to perform optimally. Traditional Meta-learning for BBO (MetaBBO) approaches are often limited to specific algorithm structures. We present ConfigX, a framework that leverages multitask reinforcement learning and a modular algorithm design to create a universal configuration agent. ConfigX demonstrates significant zero-shot generalization across diverse optimization problems and algorithm families, outperforming state-of-the-art Bayesian optimization tools.
Introduction: The Challenge of Universal Configuration
Evolutionary Algorithms (EAs), such as Genetic Algorithms (GA) and Differential Evolution (DE), are widely used in Black-Box Optimization where objective functions lack analytical forms. However, their effectiveness is highly sensitive to internal parameters and operator choices. While Automatic Configuration (AC) tools exist, recent MetaBBO models—which use neural networks to learn configuration policies—are typically "one-trick ponies" hard-coded for specific algorithms. This necessitates a redesign of the neural architecture for every new EA variant.
ConfigX addresses this "expertise burden" by introducing a modular agent capable of configuring a vast array of EAs through a single, unified policy.
Methodology: Modular-BBO and Transformer Policies
To achieve universality, ConfigX employs two primary innovations:
- Modular-BBO Framework: Instead of treating EAs as monolithic entities, ConfigX decomposes them into sub-modules (e.g., Initialization, Mutation, Crossover, Selection) using a hierarchical polymorphism system. This "Lego-like" approach allows for the generation of millions of unique algorithm structures by mixing and matching modular components.
- Transformer-based Configuration Policy: The sequence of modules in an EA is processed by a Transformer architecture. The input state includes "landscape features" (optimization progress) and "Module IDs" (16-bit binary identifiers). A Module-Aware Attention mechanism enables the network to learn the functional relationships between different operators within the algorithm's structure.
The agent is trained using Proximal Policy Optimization (PPO) across a massive joint space of algorithm structures and problem types, enabling it to learn generalizable configuration rules.
Experimental Evaluation
ConfigX was evaluated across several benchmarks to test its robustness and generalization:
- Synthetic Benchmarks: The CoCo BBOB suite provided a diverse set of functions for large-scale pre-training.
- Real-world Generalization: Performance was tested on Protein-docking simulations and the HPO-B suite (Hyperparameter Optimization).
- Cross-Algorithm Testing: While primarily trained on Differential Evolution (DE) variants, the model was tested on entirely different families, including Particle Swarm Optimization (PSO) and Genetic Algorithms (GA).
Key Results and Insights
ConfigX demonstrates a remarkable ability to generalize to unseen scenarios. In "in-distribution" tests, it achieved a performance metric of approximately 0.98, significantly higher than random baselines.
Key findings include:
- Zero-Shot Superiority: ConfigX consistently outperforms SMAC3, the gold standard for Bayesian optimization-based algorithm configuration, in zero-shot scenarios.
- Algorithm-Awareness: By treating the algorithm structure as an input (via Module IDs), the network learns how specific operators behave across different problem landscapes.
- Accelerated Adaptation: For radically different algorithm families where a "generalization gap" exists, fine-tuning the pre-trained ConfigX model is 2x to 3x faster than training a specialized model from scratch.
Conclusion
ConfigX represents a significant step toward a universal agent for algorithm configuration. By modularizing the search space and employing a structure-aware Transformer policy, it reduces the need for manual intervention in EA design. Future work will focus on expanding the module library and bridging the generalization gap between disparate optimization paradigms through even larger-scale multitask training.
Summary updated