Large language model assisted meta-evolution for automated constrained optimization evolutionary algorithm design

Xu Yang, Rui Wang, Kaiwen Li, Wenhua Li, Weixiong Huang, Wei Liu

TL;DR

This paper introduces a novel framework, AwesomeDE, that leverages Large Language Models (LLMs) to automatically design update rules for evolutionary algorithms (EAs) that solve complex constrained optimization problems (COPs). By treating LLMs as meta-optimizers within a Meta-black-box optimization (MetaBBO) framework, AwesomeDE eliminates human intervention in algorithm design, leading to more adaptive and efficient solutions.

What Problem Does This Paper Address?

Traditional evolutionary algorithms (EAs) often struggle with constrained optimization problems (COPs). These problems involve not only minimizing an objective function but also satisfying a set of constraints, which can create complex, discontinuous, or very small feasible regions. Designing EAs that can effectively navigate these challenges typically requires significant human expertise to craft specialized strategies and constraint-handling techniques. While recent advances in LLMs have shown promise in various optimization tasks, their application to constrained evolutionary optimization (CEO) remains largely underexplored. This gap highlights the need for automated methods that can generate effective CEO strategies without relying on human experts, especially for complex, real-world engineering problems.

Methods

The core of this work is the AwesomeDE framework, which employs LLMs as meta-optimizers within a Meta-black-box optimization (MetaBBO) paradigm. Here's a breakdown of the key components:

  • LLM as Meta-Optimizer: Instead of using LLMs to directly solve optimization problems, AwesomeDE uses them to design the optimization algorithms themselves. The LLM's task is to generate effective "update rules" for a constrained evolutionary algorithm (CEA).
  • MetaBBO Framework: This is a bi-level optimization approach.
  • Outer Loop (Meta-Optimization): The LLM iteratively generates candidate update rules. This process is guided by historical performance data of previously generated rules and their effectiveness on various COPs.
  • Inner Loop (Algorithm Execution): The generated update rules are then used to run a CEA on sampled COPs. The performance of these CEAs (e.g., solution quality, feasibility) is measured and fed back to the outer loop to refine the LLM's rule generation.
  • RTO2H Framework (Standardized Prompt Design): A crucial aspect is how the LLM is prompted. The authors introduce a structured prompt design that includes:
  • Role Definition: Clearly defines the LLM's persona (e.g., an optimization expert).
  • Task Description: Provides details about the COP, including decision variables, objective values, and constraint violations.
  • Operating Requirement: Specifies the steps the LLM should follow to generate rules and the desired output format.
  • History Feedback: Includes past performance data to guide future generations.
  • Output Format: Ensures the LLM's output is parsable (e.g., MATLAB code for update rules).
  • AwesomeDE: This is the specific CEA generated by the LLM. It uses the LLM-designed update rule to generate offspring solutions. The population is then updated using environmental selection to maintain feasibility and diversity.

Datasets

The proposed method was evaluated on the CEC2010 benchmark suite for constrained real-parameter optimization. This suite consists of 18 problems with diverse characteristics, including:

  • Separable/non-separable objectives.
  • Inequality/equality constraints.
  • Rotated constraint geometries.
  • Varying feasibility ratios.
  • Hybrid constraint types.

The problems were tested with dimensionality of 10 and 30, and maximum function evaluations (MaxFE) of 2x10⁵ and 6x10⁵, respectively.

Key Insights and Ideas

  • LLMs as Algorithm Designers: The most significant insight is that LLMs can be effectively trained not just to solve problems, but to design the algorithms that solve them, particularly for complex domains like CEO.
  • Automated Constraint Handling: AwesomeDE demonstrates that LLMs can learn to generate update rules that inherently respect problem constraints, bypassing the need for manual constraint-handling mechanisms.
  • Interpretable Algorithm Design: By generating explicit update rules (often in MATLAB code), the LLM-designed algorithms offer a degree of interpretability, allowing researchers to understand how the algorithm is evolving.
  • Generalization Across Domains: The framework shows promise in generalizing well across different problem domains within the CEC2010 suite, suggesting its potential for broader applicability.

Key Results

  • Superior Performance: AwesomeDE achieved the best performance on six benchmark functions (C02, C09, C14-C18), including high-dimensional problems where other algorithms failed to find feasible solutions.
  • Improved Feasibility: The algorithm successfully found feasible solutions for 66.7% of test functions, significantly outperforming competitors (33.3%-50%).
  • Competitive Efficiency: Despite its advanced capabilities, AwesomeDE maintained competitive computational efficiency, requiring only 12.8%-34.7% additional computation time compared to baseline DE. For high-dimensional problems, it was notably more efficient than other advanced methods.
  • Robustness: The algorithm demonstrated stable convergence patterns, with standard deviations significantly reduced compared to other methods.

Limitations and Future Work

The authors acknowledge two primary limitations:

  • LLM Input Length Constraints: The current LLM input length limits the applicability of AwesomeDE to very large-scale COPs with extremely high-dimensional search spaces or complex constraint sets.
  • Meta-Optimization Framework: The current EA-based meta-learning approach might limit generalization capabilities.

Future work directions include:

  • Scalability Improvements: Exploring sparse attention mechanisms and dynamic context pruning to overcome LLM input limitations.
  • Enhanced Generalization: Incorporating transfer learning and improving meta-training diversity to enhance cross-domain generalization.
  • Extensibility: Investigating the framework's applicability to multi-objective and dynamic COPs.

Summary updated

BibTeX
@inproceedings{yang2026large,
  author = {Xu Yang and Rui Wang and Kaiwen Li and Wenhua Li and Weixiong Huang and Wei Liu},
  title = {{Large language model assisted meta-evolution for automated constrained optimization evolutionary algorithm design}},
  booktitle = {Expert},
  year = {2026},
  doi = {10.1016/j.eswa.2026.131756},
}
Figure