NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

ConfigX: Modular Configuration for Evolutionary Algorithms via Multitask Reinforcement Learning

Hongshu Guo, Zeyuan Ma, Jiacheng Chen, Yining Ma, Zhiguang Cao, Xinglin Zhang, Yue-Jiao Gong

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.

Comparison of traditional configuration approaches versus ConfigX.

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:

  1. 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.
  2. 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.

Performance of ConfigX against baselines across in-distribution and out-of-distribution tasks.

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

BibTeX
@inproceedings{guo2025configx,
  author = {Hongshu Guo and Zeyuan Ma and Jiacheng Chen and Yining Ma and Zhiguang Cao and Xinglin Zhang and Yue-Jiao Gong},
  title = {{ConfigX: Modular Configuration for Evolutionary Algorithms via Multitask Reinforcement Learning}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2025},
  doi = {10.1609/aaai.v39i25.34904},
}
Figure