atlas

Research map / Large language models / Agents, code and math

Evolution of Heuristics: Towards Efficient Automatic Algorithm Design Using Large Language Model

ICML 2024 · Large language models › Agents, code and math · approach: LLMs for optimization and heuristics · 14 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

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.

Proposes EoH, an evolutionary framework where LLMs co-evolve natural-language thoughts and Python code of heuristics via five prompt strategies, evaluated on online bin packing, TSP (GLS), and flow shop scheduling.

Problem

Automatic heuristic design is labour-intensive when done manually, and prior LLM+EC approaches like FunSearch require huge numbers of LLM queries and only evolve code.

Approach

Evolve heuristics as paired natural-language thoughts and code, using LLMs in genetic operators with five exploration/modification prompt strategies that reason over parent thoughts and codes, achieving strong results with a few thousand LLM queries.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
use EoH rather than FunSearchonline bin packing heuristics · Weibull instances across sizes and capacitiesgap to lower bound: 1.18% vs 2.23%Mixed
use EoH rather than KGLSTSP heuristics · TSPLib (29 instances)gap to best-known solution: 0.36 -> 0.28Helped
use EoH rather than ILS2FSSP heuristics · Taillard instances (average)gap to best-known solution: 0.36 -> 0.23Helped
add M1, M2, M3, and E2 prompt strategies to E1 (ablation)EoH online bin packing · Weibull instancesgap to lower bound: 4.28% -> 2.24% (1k_100); 0.97% -> 0.80% (5k_100); 5.86% -> 2.13% (1k_500)Helped
add natural-language thoughts to code-only evolution (ablation)EoH online bin packing · Weibull instancesaverage gap to lower bound: 2.57 -> 0.66Helped
make prompts output both thoughts and codes rather than thoughts only (ablation)EoH online bin packing · 5k Weibull instancesaverage gap to lower bound: 0.85 -> 0.66Helped
add an existing FunSearch heuristic to the initial populationEoH online bin packing · 5k Weibull instancesaverage gap to lower bound: 0.66 -> 0.55Helped

Surprising findings

Limitations

Experimental setup

Datasets: Weibull bin packing instances TSP100 random instances Taillard flow shop instances TSPLib

Benchmarks: Weibull online bin packing instances TSPLib TSP20/50/100 random instances Taillard flow shop instances

Metrics: gap to lower bound (%) relative distance to best-known (%) gap to Concorde (%) average relative makespan (%)

Baselines: First Fit Best Fit FunSearch Nearest insertion Farthest insertion Google OR-Tools AM POMO LEHD GUPTA CDS NEH

Builds on: FunSearch chain-of-thought genetic programming

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