A Framework for Integrating Large Language Models into Memetic Algorithms
Source abstract
Abstract
Memetic algorithms achieve strong optimization performance by combining population-based global search with local refinement operators, yet their effectiveness critically depends on the design and management of memes. Local search strategies are typically handcrafted, problem-specific, and fixed prior to execution. This paper proposes a fourth-generation memetic framework in which Large Language Models (LLMs) are embedded directly into the optimization loop as adaptive generators of local search operators. At each triggering point, the LLM receives a structured state vector encoding the current search dynamics and generates a candidate meme in the form of an executable Python function. Generated operators are subject to a two-stage validation procedure combining semantic similarity assessment and implementation-level comparison, ensuring that only sufficiently novel and syntactically correct operators are admitted to a dynamically growing meme library. A cooldown-regulated triggering mechanism balances periodic and stagnation-based generation, while a probability-weighted selection policy prioritizes newly generated memes without discarding previously validated ones. The proposed framework is evaluated on the CEC 2017 benchmark suite for continuous black-box optimization and compared against classical memetic algorithms. Experimental results demonstrate that the LLM-driven approach consistently outperforms non-LLM memetic baselines, confirming the viability of generative language models as adaptive heuristic components within population-based optimization.
Source: crossref · Quality: baseline
Research context
OpenAlex topics: Metaheuristic Optimization Algorithms Research · Artificial Intelligence in Games · Evolutionary Algorithms and Applications
SciVX discovery tags are terminology-based. OpenAlex topics are source-provided classifications.
Affiliations
Independent Researcher, Moscow 107143, Russia
References (42)
Show source-provided references
1. Danilchenko, V.I., Danilchenko, Y.V., and Kureichik, V.M. (2020, January 4–7). Bio-inspired approach to microwave circuit design. Proceedings of the 2020 IEEE East-West Design & Test Symposium (EWDTS), Varna, Bulgaria.10.1109/EWDTS50664.2020.9224737 ↗
2. Evolutionary optimization with hierarchical surrogates10.1016/j.swevo.2019.03.005 ↗
3. Sakharov, M., Koledina, K., and Gubaydullin, I. (2024). Optimal Control of Hydrocarbons’ Hydrogenation with Catalysts. Mathematics, 12.10.3390/math12223570 ↗
4. Understanding the problem space in single-objective numerical optimization using exploratory landscape analysis10.1016/j.asoc.2020.106138 ↗
5. Genetic algorithms for lens design: A review10.1007/s12596-018-0497-3 ↗
6. Sakharov, M., Houllier, T., and Lépine, T. (2023). Optimal Design of Conventional and Freeform Optical Systems with Memetic Mind Evolutionary Computation Algorithm. Proceedings of the Sixth International Scientific Conference “Intelligent Information Technologies for Industry”, Springer. Lecture Notes in Networks and Systems.10.1007/978-3-031-19620-1_47 ↗
7. Intellectualization Methods of Population Algorithms of Global Optimization
8. A hybrid optimizer based on firefly algorithm and particle swarm optimization algorithm10.1016/j.jocs.2017.07.009 ↗
9. Hybridizing sine–cosine algorithm with harmony search strategy for optimization design problems10.1007/s00500-021-05841-y ↗
10. Economic load dispatch using memetic sine cosine algorithm10.1007/s12652-022-03731-1 ↗
11. Altay ELİ, F., Altay, O., and Özçevik, Y. (2024). A comparative study of metaheuristic optimization algorithms for solving real-world engineering design problems. CMES-Comput. Model. Eng. Sci., 139.10.32604/cmes.2023.029404 ↗
12. Gendreau, M., and Potvin, J.-Y. (2010). A modern introduction to memetic algorithms. Handbook of Metaheuristics, Springer.10.1007/978-1-4419-1665-5 ↗
13. Dawkins, R. (1976). The Selfish Gene, Oxford University Press.
14. An adaptive clustering routing protocol for wireless sensor networks based on a novel memetic algorithm10.1109/JSEN.2025.3526831 ↗
15. Parallel memetic algorithm for optimal control of multi-stage catalytic reactions10.1007/s11590-023-01971-4 ↗
16. A reinforcement learning enhanced memetic algorithm for multi-objective flexible job shop scheduling toward Industry 5.010.1080/00207543.2024.2357740 ↗
17. Neri, F., Cotta, C., and Moscato, P. (2011). Handbook of Memetic Algorithms, Springer.10.1007/978-3-642-23247-3 ↗
18. Sakharov, M. (2024). Introducing the Fourth Generation of Memetic Algorithms. Proceedings of the Eighth International Scientific Conference “Intelligent Information Technologies for Industry” (IITI’24), Volume 2, IITI 2024, Springer. Lecture Notes in Networks and Systems.10.1007/978-3-031-77411-9_32 ↗
19. Kennedy, J., and Eberhart, R. (December, January 27). Particle swarm optimization. Proceedings of the IEEE International Conference on Neural Networks (ICNN ‘95), Perth, WA, Australia.
20. The whale optimization algorithm10.1016/j.advengsoft.2016.01.008 ↗
21. Moth-flame optimization algorithm: A novel nature-inspired heuristic paradigm10.1016/j.knosys.2015.07.006 ↗
22. Carlos, C., Mathieson, L., and Moscato, P. (2025). Memetic algorithms. Handbook of Heuristics, Springer Nature.
23. A proposition on memes and meta-memes in computing for higher-order learning10.1007/s12293-009-0011-1 ↗
24. Klimenko, A., and Elmekeev, M. (2025). Lamarckian Evolution Based Algorithm for Multi-Robot Path Planning Problem. International Conference on Interactive Collaborative Robotics, Springer Nature.10.1007/978-3-032-11903-2_25 ↗
25. A Systematic Survey on Large Language Models for Algorithm Design
26. Yepes, A.J., and Barnard, P. (2025). Evolutionary thoughts: Integration of large language models and evolutionary algorithms. arXiv.
27. Qi, F., Wang, T., Zheng, R., and Li, M. (2025). A Memetic and Reflective Evolution Framework for Automatic Heuristic Design Using Large Language Models. Appl. Sci., 15.10.3390/app15158735 ↗
28. LLM-Assisted Automatic Memetic Algorithm for Lot-Streaming Hybrid Job Shop Scheduling with Variable Sublots
29. Liu, S., Chen, C., Qu, X., Tang, K., and Ong, Y.S. (July, January 30). Large Language Models as Evolutionary Optimizers. Proceedings of the 2024 IEEE Congress on Evolutionary Computation (CEC), Yokohama, Japan.10.1109/CEC60901.2024.10611913 ↗
30. An LLM-Empowered Adaptive Evolutionary Algorithm for Multi-Component Deep Learning Systems
31. Llamea: A Large Language Model Evolutionary Algorithm for Automatically Generating Metaheuristics
32. Pluhacek, M., Kovac, J., Viktorin, A., Janku, P., Kadavy, T., and Senkerik, R. (2024). Using LLM for Automatic Evolvement of Metaheuristics from Swarm Algorithm SOMA. Proceedings of the Genetic and Evolutionary Computation Conference Companion (GECCO ‘24 Companion), Association for Computing Machinery.10.1145/3638530.3664181 ↗
33. When Large Language Models Meet Evolutionary Algorithms: Potential Enhancements and Challenges10.34133/research.0646 ↗
34. Yu, H., and Liu, J. (2024). Deep insights into automated optimization with large language models and evolutionary algorithms. arXiv.
35. A review on hill climbing optimization methodology
36. Sakharov, M. (2026). A New Assessment Framework for LLM-Generated Optimization Methods. Proceedings of the Ninth International Scientific Conference “Intelligent Information Technologies for Industry”, Volume 2; IITI 2025, Springer. Lecture Notes in Networks and Systems.10.1007/978-3-032-13612-1_50 ↗
37. Guo, D., Ren, S., Lu, S., Feng, Z., Tang, D., Liu, S., Zhou, L., Duan, N., Svyatkovskiy, A., and Fu, S. (2020). Graphcodebert: Pre-training code representations with data flow. arXiv.
38. An efficient recommendation generation using relevant Jaccard similarity10.1016/j.ins.2019.01.023 ↗
39. Wu, G., Mallipeddi, R., and Suganthan, P.N. (2017). Problem Definitions and Evaluation Criteria for the CEC 2017 Competition on Constrained Real-Parameter Optimization, Nanyang Technological University. Technical Report.
40. A simplex method for function minimization10.1093/comjnl/7.4.308 ↗
41. The role of random walk-based techniques in enhancing metaheuristic optimization algorithms—A systematic and comprehensive review10.1109/ACCESS.2024.3466170 ↗
42. Choice of benchmark optimization problems does matter10.1016/j.swevo.2023.101378 ↗