journal article·2025-08-07Open access

A Memetic and Reflective Evolution Framework for Automatic Heuristic Design Using Large Language Models

Fubo Qi, Tianyu Wang, Ruixiang Zheng, Mian Li

Applied Sciences· Volume 15· Issue 15

Abstract

The increasing complexity of real-world engineering problems, ranging from manufacturing scheduling to resource optimization in smart grids, has driven demand for adaptive and high-performing heuristic methods. Automatic Heuristic Design (AHD) and neural-enhanced metaheuristics have shown promise in automating strategy development, but often suffer from limited flexibility and scalability due to static operator libraries or high retraining costs. Recently, Large Language Models (LLMs) have emerged as a powerful alternative for exploring and evolving heuristics through natural language and program synthesis. This paper proposes a novel LLM-based memetic framework that synergizes LLM-driven exploration with domain-specific local refinement and memory-aware reflection, enabling a dynamic balance between heuristic creativity and effectiveness. In the experiments, the developed framework outperforms other LLM-based state-of-the-art approaches across the designed AGV-drone scheduling scenario and two benchmark combinatorial problems. The findings suggest that LLMs can serve not only as general-purpose optimizers but also as interpretable heuristic generators that adapt efficiently to complex and heterogeneous domains.
Source: crossref · Quality: baseline

Research context

OpenAlex topics: Metaheuristic Optimization Algorithms Research · Vehicle Routing Optimization Methods · Advanced Multi-Objective Optimization Algorithms

SciVX discovery tags are terminology-based. OpenAlex topics are source-provided classifications.

Affiliations

UM-SJTU Joint Institute, Shanghai Jiao Tong University, Shanghai 200240, China

Global Institute of Future Technology, Shanghai Jiao Tong University, Shanghai 200240, China

Key Laboratory of Urban Complex Risk Control and Resilience Governance, Shanghai Jiao Tong University, Shanghai 200240, China

References (24)

Show source-provided references
1. Meta-heuristic optimization algorithms for solving real-world mechanical engineering design problems: A comprehensive survey, applications, comparative analysis, and results10.1007/s00521-021-06747-4 ↗
2. Black-winged kite algorithm: A nature-inspired meta-heuristic for solving benchmark functions and engineering problems10.1007/s10462-024-10723-4 ↗
3. Genetic Programming and Reinforcement Learning on Learning Heuristics for Dynamic Scheduling: A Preliminary Comparison10.1109/MCI.2024.3363970 ↗
4. Automated design of state transition rules in ant colony optimization by genetic programming: A comprehensive investigation10.1007/s12293-025-00435-9 ↗
5. DeepACO: Neural-enhanced Ant Systems for Combinatorial Optimization
6. Zhao, Q., Duan, Q., Yan, B., Cheng, S., and Shi, Y. (2023). Automated design of metaheuristic algorithms: A survey. arXiv.
7. Mathematical discoveries from program search with large language models10.1038/s41586-023-06924-6 ↗
8. Chen, Z., Zhou, Z., Lu, Y., Xu, R., Pan, L., and Lan, Z. (2024). UBER: Uncertainty-Based Evolution with Large Language Models for Automatic Heuristic Design. arXiv.
9. Liu, F., Xialiang, T., Yuan, M., Lin, X., Luo, F., Wang, Z., Lu, Z., and Zhang, Q. (2024, January 21–27). Evolution of Heuristics: Towards Efficient Automatic Algorithm Design Using Large Language Model. Proceedings of the 41st International Conference on Machine Learning, Vienna, Austria.
10. ReEvo: Large Language Models as Hyper-Heuristics with Reflective Evolution
11. Dat, P.V.T., Doan, L., and Binh, H.T.T. (March, January 25). Hsevo: Elevating automatic heuristic design with diversity-driven harmony search and genetic algorithm using llms. Proceedings of the AAAI Conference on Artificial Intelligence, Philadelphia, PA, USA.
12. Memetic algorithms and memetic computing optimization: A literature review10.1016/j.swevo.2011.11.003 ↗
13. Surprisingly Popular-Based Adaptive Memetic Algorithm for Energy-Efficient Distributed Flexible Job Shop Scheduling10.1109/TCYB.2023.3280175 ↗
14. Automatic design of hyper-heuristic based on reinforcement learning10.1016/j.ins.2018.01.005 ↗
15. Survey on Genetic Programming and Machine Learning Techniques for Heuristic Design in Job Shop Scheduling10.1109/TEVC.2023.3255246 ↗
16. Considering environmental impacts in flexible assembly job shop scheduling: Non-dominated sorting memetic algorithm10.1007/s10696-024-09553-x ↗
17. A modified memetic algorithm with multi-operation precise joint movement neighbourhood structure for the assembly job shop scheduling problem10.1080/00207543.2024.2313087 ↗
18. A dynamic decision-driven memetic algorithm for fuzzy distributed hybrid flow shop rescheduling considering quality control10.1016/j.eswa.2024.125002 ↗
19. A reinforcement learning enhanced memetic algorithm for multi-objective flexible job shop scheduling toward Industry 5.010.1080/00207543.2024.2357740 ↗
20. A knowledge-driven memetic algorithm for the energy-efficient distributed homogeneous flow shop scheduling problem10.1016/j.swevo.2024.101625 ↗
21. Memory backtracking strategy: An evolutionary updating mechanism for meta-heuristic algorithms10.1016/j.swevo.2023.101456 ↗
22. Xu, W., Mei, K., Gao, H., Tan, J., Liang, Z., and Zhang, Y. (2025). A-mem: Agentic memory for llm agents. arXiv.
23. Zhang, W., Tang, K., Wu, H., Wang, M., Shen, Y., Hou, G., Tan, Z., Li, P., Zhuang, Y., and Lu, W. (2024, January 11–16). Agent-Pro: Learning to Evolve via Policy-Level Reflection and Optimization. Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), Bangkok, Thailand.10.18653/v1/2024.acl-long.292 ↗
24. Renze, M., and Guven, E. (2024). Self-reflection in llm agents: Effects on problem-solving performance. arXiv.10.1109/FLLM63129.2024.10852426 ↗