scimeatlas

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

ICLR 2024Large language models › Agents, code and mathapproach: LLMs for optimization and heuristicsopen problems in this approach

Tsinghua University · Microsoft · Meituan

Read the paperPlace an idea next to itCheck your own paper ↗

15measured effects
12improved
2no clear effect
1hurt
In one sentence

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

Measured effects reported in the paper

What was changedWhereMeasuredEffect
use EVOPROMPT (DE) instead of manual instructionMI prompt, Alpaca-7b · SAMSumROUGE-1: 35.92 -> 39.46Improved
use EVOPROMPT instead of APEAPE, Alpaca-7b · SAMSumROUGE-1: 35.44 -> 39.46 (DE), 38.46 (GA)Improved
use EVOPROMPT instead of manual promptMI prompt, Alpaca-7b · ASSETSARI: 43.03 -> 46.43 (GA), 46.21 (DE)Improved
use EVOPROMPT (DE) instead of APE on BBHAPE · BBH (23 tasks, GPT-3.5)accuracy: 71.85 -> 75.03Improved
use DE instead of GA evolutionEVOPROMPT (GA) · Subjaccuracy: 70.55 -> 75.55Improved
use DE instead of GA evolutionEVOPROMPT (GA) · SST-5accuracy: 49.91 -> 49.89No clear effect
use roulette wheel selection instead of random selection (ablation)EVOPROMPT (GA) · SST-5accuracy: 48.67 -> 49.91Improved
use roulette wheel instead of tournament selection (ablation)EVOPROMPT (GA) · SST-5accuracy: 49.70 -> 49.91Improved
mutate only the different parts of prompts (ablation)EVOPROMPT (DE) · Subjaccuracy: 69.87 -> 75.55Improved
mutate only the different parts of prompts (ablation)EVOPROMPT (DE) · ASSETSARI: 45.73 -> 46.21Improved
use best current prompt as Prompt 3 (vs random) (ablation)EVOPROMPT (DE) · Subjaccuracy: 69.82 -> 75.55Improved
include Prompt 3 at all (vs eliminating it) (ablation)EVOPROMPT (DE) · Subjaccuracy: 69.07 -> 75.55Improved

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?

All 5 open problems and what was already tried →

Experimental setup

Builds on: evolutionary algorithms differential evolution genetic algorithm

Closest papers by meaning

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.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy