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

Deep Reinforcement Learning for Dynamic Algorithm Selection: A Proof-of-Principle Study on Differential Evolution

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

TL;DR

RL-DAS is a framework that uses Deep Reinforcement Learning to dynamically switch between different evolutionary algorithms during a single optimization run. By learning to read the "topography" of a problem's landscape, the system schedules the most effective algorithm for each stage of the search, outperforming state-of-the-art winners of major optimization competitions.

What Problem Does This Paper Address?

In the world of Black-Box Optimization (BBO), the "No-Free-Lunch" theorem is a fundamental hurdle: no single algorithm can dominate all possible problems. An algorithm that excels at exploring a vast, rugged landscape might be terrible at fine-tuning a solution once it nears the global optimum.

While researchers have tried "Algorithm Selection" (picking one at the start) or "Algorithm Portfolios" (running many in parallel), these approaches are often too rigid or computationally expensive. The authors tackle the challenge of Dynamic Algorithm Selection (DAS)—how to intelligently and automatically switch between specialized algorithms on-the-fly as the optimization progress evolves.

Methods

The authors propose RL-DAS, which models the optimization process as a Markov Decision Process (MDP) and solves it using Proximal Policy Optimization (PPO), a robust Deep Reinforcement Learning (DRL) algorithm.

Key technical innovations include:

  • Hybrid State Representation: The RL agent makes decisions based on two types of data:
  • Landscape Analysis (LA): 9 scalar features (e.g., fitness distance correlation, dispersion) that describe the "shape" of the current problem.
  • Algorithm History (AH): Tracking how previous algorithm choices shifted the population, providing context on what has worked so far.
  • Context Restoration Mechanism: This is a critical "warm-start" feature. Many modern algorithms maintain internal memories of successful parameters. RL-DAS saves this "context" when switching an algorithm out and restores it when switching it back in, ensuring a smooth transition rather than a total reset.
  • Speed-Aware Reward: The reward function doesn't just look at cost reduction; it incorporates an "optimization speed" factor to encourage the agent to find solutions using the fewest function evaluations possible.

Datasets

The framework was evaluated using the CEC2021 Competition Benchmark, which includes unimodal, basic, hybrid, and composition problems.

To test generalization, the authors created an Augmented CEC2021 dataset. Instead of just a few fixed problems, they generated 2,048 instances for each problem class by applying random shifting vectors and rotation matrices. They tested across both 10-dimensional (10D) and 20-dimensional (20D) scenarios.

Key Insights and Ideas

  • The Value of Complementarity: Interestingly, even a random switching strategy (Rand-DAS) often outperformed single, hand-crafted competition winners. This proves that the "complementary strengths" of different algorithms are a powerful resource if they can be combined.
  • Learning Topography, Not Problems: The RL agent demonstrated impressive zero-shot generalization. A model trained on one class of problems (like "Bent Cigar") could successfully optimize entirely different, unseen problem classes. This suggests the agent learned to recognize universal landscape characteristics rather than just memorizing specific functions.
  • Phase-Based Strategy: Analysis showed the agent naturally learned a "strategy": starting with fast-searching algorithms (like NL-SHADE-RSP), switching to exploitation-heavy ones (JDE21) to refine solutions, and using exploratory variants (MadDE) to escape local optima mid-run.

Key Results

  • Outperforming the "Backbones": RL-DAS significantly outperformed its three candidate algorithms (JDE21, MadDE, and NL-SHADE-RSP) on almost all test cases in both 10D and 20D.
  • Beating the Theoretical Limit: RL-DAS outperformed a theoretical "Optimal Static Selection" (AS)—a hypothetical model that always picks the single best algorithm for a problem at the start. This confirms that switching during* a run is superior to picking one "best" algorithm.
  • Acceptable Overhead: While the DRL model adds a small computational cost for neural network inference (e.g., 1.43s vs 0.75s for a standard run), the authors argue this is a worthwhile trade-off for the significant gains in optimization accuracy and efficiency.

Limitations and Future Work

The authors acknowledge a few areas for growth:

  • Manual Feature Engineering: The 9 landscape features were hand-selected by experts. Future versions could use "automatic state representation" to learn features directly from the raw population data.
  • Scaling the Pool: This study focused on Differential Evolution (DE) variants. Expanding the "algorithm pool" to include Genetic Algorithms (GA) or Particle Swarm Optimization (PSO) would further test the framework's generality.
  • Integration Complexity: Currently, adding a new algorithm to the pool requires manually defining its "context" for the restoration mechanism, which could be automated in future iterations.

Summary updated

BibTeX
@article{guo2024deep,
  author = {Hongshu Guo and Yining Ma and Zeyuan Ma and Jiacheng Chen and Xinglin Zhang and Zhiguang Cao and Jun Zhang and Yue-Jiao Gong},
  title = {{Deep Reinforcement Learning for Dynamic Algorithm Selection: A Proof-of-Principle Study on Differential Evolution}},
  journal = {IEEE Trans. Syst. Man Cybern. Syst.},
  year = {2024},
  url = {https://openreview.net/forum?id=tsWQvg2fwp},
}
Figure