Abstract
Traditional evolutionary algorithms (EAs) often rely on static, human-designed rules for structural transitions, such as switching between exploration and exploitation phases. This paper introduces a reinforcement learning (RL) framework using Q-learning and Deep Q-networks to adaptively control these switching times. By modeling the optimization process as a Markov Decision Process, the proposed approach achieves superior performance on standard benchmarks (CEC 2014/2018) and demonstrates significant generalization capabilities across different problem dimensions.
Introduction
Evolutionary Algorithms (EAs) are robust "black-box" optimizers used to find solutions without knowing a problem's internal mathematical structure. Many state-of-the-art EAs are sequential hybrids that transition from broad exploration to fine-tuned exploitation. A critical challenge in these hybrids is determining the optimal "switching time." If the transition occurs too early, the algorithm may miss the global optimum; if too late, computational resources are wasted. Historically, these points were set via trial-and-error or simple heuristics, which often fail to account for the unique landscapes of different optimization problems.
Methodology: RL-Based Structural Control
The authors propose a general framework where an RL agent acts as a controller for the EA. The optimization process is formalized as a Markov Decision Process (MDP), as illustrated in Figure 1.
In this MDP framework:
- State ($s_t$): Features representing current progress, such as fitness improvement rates over recent generations.
- Action ($a_t$): A binary decision to either continue the current EA phase or switch to the next one.
- Reward ($r_t$): Based on the final quality of the solution found.
Implementation Cases
The framework was applied to two specific algorithmic cases:
- Q-LSHADE: Employs a standard Q-learning table to control when the LSHADE algorithm should trigger its "Linear Population Size Reduction" (LPSR) scheme. Figure 2 illustrates how different switching points ($nfes_s$) affect the population size reduction over the course of function evaluations.
- DQ-HSES: Utilizes a Deep Q-Network (DQN) to manage the transition in the Hybrid Sampling Evolution Strategy (HSES), moving from univariate sampling to the more complex CMA-ES based on real-time performance data.
Experimental Results and Generalization
The framework was evaluated using the CEC 2014 and CEC 2018 test suites, the gold standard for evolutionary computation. RL agents were trained on a small subset of functions and then tested on the remainder to evaluate generalization.
Key Findings
- Superior Performance: RL-controlled versions consistently outperformed original, manually-tuned counterparts. DQ-HSES, in particular, surpassed the original competition-winning HSES on the majority of test functions across various dimensions (10D to 100D).
- Cross-Dimensional Generalization: Most impressively, agents trained on simple 10-dimensional problems successfully controlled algorithms running on complex 100-dimensional problems. This suggests the agents learned fundamental optimization dynamics rather than just memorizing specific function shapes.
- Computational Efficiency: While training the RL agent requires an initial investment, the "inference" (the agent making a decision during a run) is nearly instantaneous, providing performance gains with almost no extra computational overhead during actual use.
Discussion and Conclusion
This research demonstrates that RL agents can effectively capture the underlying dynamics of an optimization search. By shifting from numerical parameter tuning to structural control, the framework allows algorithms to adapt their very procedure on the fly. Future work may extend this to multi-phase or parallel hybrids and explore using RL to adaptively design algorithm components, such as selection or recombination operators, in real-time.
Summary updated