atlas

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

HSEvo: Elevating Automatic Heuristic Design with Diversity-Driven Harmony Search and Genetic Algorithm Using LLMs

AAAI 2025 · Large language models › Agents, code and math · approach: LLMs for optimization and heuristics · 20 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 two entropy-based diversity indices (SWDI, CDI) for LLM-based evolutionary program search, analyzes FunSearch/EoH/ReEvo through them, and introduces HSEvo, which adds harmony-search parameter tuning and flash reflection to balance diversity and objective score.

Problem

LLM-based evolutionary program search for automatic heuristic design lacks understanding of heuristic search-space diversity and struggles to balance exploration and exploitation, leading to unstable objective scores.

Approach

Measure population diversity of LLM-generated heuristic code via code-embedding clustering (Shannon-Wiener index) and an MST-based entropy (CDI), then build HSEvo, which combines a genetic algorithm with harmony search over extracted heuristic parameters, persona-diverse initialization, and a cheaper flash reflection step.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
use HSEvo instead of FunSearchLLM-EPS · BPOObj.: 2.05 \pm 2.01 -> \mathbf{1.07 \pm 1.11}Helped
use HSEvo instead of ReEvoLLM-EPS · BPOCDI: 4.91 \pm 0.53 -> 5.68 \pm 0.35Helped
use HSEvo instead of ReEvoLLM-EPS · TSPObj.: 0.05 \pm 0.06 -> \mathbf{0.02 \pm 0.03}Helped
use HSEvo instead of ReEvoLLM-EPS · TSPCDI: 5.15 \pm 0.19 -> 5.41 \pm 0.21Helped
use HSEvo instead of ReEvoLLM-EPS · OPObj.: -14.54 \pm 0.21 -> \mathbf{-14.62 \pm 0.12}Helped
add harmony search to ReEvo (ablation)ReEvo · OPCDI: 5.02 \pm 0.13 -> 5.11 \pm 0.27Helped
add harmony search to ReEvo (ablation)ReEvo · OPObj.: -14.54 \pm 0.21 -> -14.58 \pm 0.38Helped
replace ReEvo reflection with flash reflection; use 150K tokens (ablation)ReEvo · OPObj.: -13.84 \pm 1.13 -> \mathbf{-14.36 \pm 0.19}Helped
replace ReEvo reflection with flash reflection; use 150K tokens (ablation)ReEvo · OPCDI: 4.43 \pm 0.23 -> 4.63 \pm 0.37Helped
replace ReEvo reflection with flash reflection; use 150K tokens (ablation)ReEvo · OPObj.Helped

Surprising findings

Limitations

Experimental setup

Datasets: Weibull bin packing instances (5k items, C=100) TSP100 instances OP50 instances (DeepACO generation)

Benchmarks: BPO TSP100 with GLS OP50 with ACO

Metrics: objective score Cumulative Diversity Index Shannon-Wiener Diversity Index

Baselines: FunSearch EoH ReEvo

Builds on: FunSearch EoH ReEvo harmony search

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