A General Genetic Algorithm Using Natural Language Evolutionary Operators
By employing large language models (LLMs) we build a general genetic algorithm, i.e., a genetic algorithm (GA) that can solve various domains without any changes to its algorithmic components. Our approach requires only a problem description in natural language and a black-box fitness function and can then handle any type of data via natural-language-based evolutionary operators that call an LLM to compute their application. The relevant prompts for the operators can be human-designed or self-optimized with similar performance results. Compared to the only other generalist GA approach, i.e., asking an LLM to write a new specific GA, our natural-language-based genetic algorithm (NaLaGA) offers not only a better class of safety (since no LLM-generated code is executed by NaLaGA) but also greatly improved results in the two example domains "Schwefel" and "grid world maze".
Authors
- Michael Kölle (ORCID: https://orcid.org/0000-0002-8472-9944)
- Thomas Gabor (ORCID: https://orcid.org/0000-0003-2048-8667)
- Gerhard Stenzel (ORCID: https://orcid.org/0009-0009-0280-4911)
- Maximilian Zorn (ORCID: https://orcid.org/0009-0006-2750-7495)
- Sarah Gerner (ORCID: https://orcid.org/0009-0006-4734-3176)
Institutions
- LMU Klinikum (DE)
- Ludwig-Maximilians-Universität München (DE)
Publication Details
- Journal
- Proceedings of the Genetic and Evolutionary Computation Conference Companion
- Published
- 2025-07-14
- DOI
- https://doi.org/10.1145/3712255.3726695
- Primary Topic
- Metaheuristic Optimization Algorithms Research
- Type
- article
- Field-Weighted Citation Impact
- 0.00