Research map / Large language models / Agents, code and math
Connecting Large Language Models with Evolutionary Algorithms Yields Powerful Prompt Optimizers
Qingyan Guo, Rui Wang, Junliang Guo, Bei Li, Kaitao Song, Xu Tan, Guoqing Liu, Jiang Bian, Yujiu Yang
Tsinghua University · Microsoft · Meituan
Read the paperPlace an idea next to itCheck your own paper ↗
Proposes EvoPrompt, a framework that connects LLMs with evolutionary algorithms to automatically optimize discrete prompts.
AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.
Problem
Crafting effective prompts for LLMs requires substantial human effort, and gradient-based prompt tuning does not apply directly to discrete prompts.
Approach
Uses LLMs as the variation operators inside evolutionary algorithms (genetic and differential evolution style) so that a population of discrete prompts is evolved via LLM-generated crossover and mutation, without gradients.
On benchmark leaderboards
- SST-2 leaderboard accuracy 95.13 · rank 54 of 272 papers
- SST-5 leaderboard accuracy 49.91 · rank 44 of 61 papers
- SAMSum leaderboard ROUGE-1 39.46 · rank 35 of 35 papers
Measured effects reported in the paper
| What was changed | Where | Measured | Effect |
|---|---|---|---|
| use EVOPROMPT (DE) instead of manual instruction | MI prompt, Alpaca-7b · SAMSum | ROUGE-1: 35.92 -> 39.46 | Improved |
| use EVOPROMPT instead of APE | APE, Alpaca-7b · SAMSum | ROUGE-1: 35.44 -> 39.46 (DE), 38.46 (GA) | Improved |
| use EVOPROMPT instead of manual prompt | MI prompt, Alpaca-7b · ASSET | SARI: 43.03 -> 46.43 (GA), 46.21 (DE) | Improved |
| use EVOPROMPT (DE) instead of APE on BBH | APE · BBH (23 tasks, GPT-3.5) | accuracy: 71.85 -> 75.03 | Improved |
| use DE instead of GA evolution | EVOPROMPT (GA) · Subj | accuracy: 70.55 -> 75.55 | Improved |
| use DE instead of GA evolution | EVOPROMPT (GA) · SST-5 | accuracy: 49.91 -> 49.89 | No clear effect |
| use roulette wheel selection instead of random selection (ablation) | EVOPROMPT (GA) · SST-5 | accuracy: 48.67 -> 49.91 | Improved |
| use roulette wheel instead of tournament selection (ablation) | EVOPROMPT (GA) · SST-5 | accuracy: 49.70 -> 49.91 | Improved |
| mutate only the different parts of prompts (ablation) | EVOPROMPT (DE) · Subj | accuracy: 69.87 -> 75.55 | Improved |
| mutate only the different parts of prompts (ablation) | EVOPROMPT (DE) · ASSET | SARI: 45.73 -> 46.21 | Improved |
| use best current prompt as Prompt 3 (vs random) (ablation) | EVOPROMPT (DE) · Subj | accuracy: 69.82 -> 75.55 | Improved |
| include Prompt 3 at all (vs eliminating it) (ablation) | EVOPROMPT (DE) · Subj | accuracy: 69.07 -> 75.55 | Improved |
Open problems in LLMs for optimization and heuristics
Do LLM-driven optimization and heuristic design methods hold up beyond benchmark problems, and at what cost?
- Repeated LLM calls and candidate evaluation make search slow and costly. · 21 papers state it
- Results depend on the LLM, and the best ones use closed API models. · 19 papers state it
- Only one or two problem classes were tried, and others are untested. · 18 papers state it
Experimental setup
Builds on: evolutionary algorithms differential evolution genetic algorithm
Closest papers by meaning
- Unleashing the Potential of Large Language Models as Prompt Optimizers: Analogical Analysis with Gradient-based Model Optimizers (AAAI 2025 · similarity 0.90)
- Scaling Prompt Synthesis for Large Language Model Reasoning (ICML 2026 · similarity 0.90)
- Evolving Prompts In-Context: An Open-ended, Self-replicating Perspective (ICML 2025 · similarity 0.89)
- Large Language Models as Optimizers (ICLR 2024 · similarity 0.89)
- ReEvo: Large Language Models as Hyper-Heuristics with Reflective Evolution (NeurIPS 2024 · similarity 0.89)
- Revolve: Optimizing AI Systems by Tracking Response Evolution in Textual Optimization (ICML 2025 · similarity 0.89)
Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.