Experience-Guided Reflective Co-Evolution of Prompts and Heuristics for Automatic Algorithm Design

Yihong Liu, Junyi Li, Wayne Xin Zhao, Hongyu Lu, Ji-Rong Wen
9/29/2025
cs.AIcs.CL

No confident code implementation found for this paper.

Abstract

Combinatorial optimization problems are traditionally tackled with handcrafted heuristic algorithms, which demand extensive domain expertise and significant implementation effort. Recent progress has highlighted the potential of automatic heuristics design powered by large language models (LLMs), enabling the automatic generation and refinement of heuristics.

Show full abstract

These approaches typically maintain a population of heuristics and employ LLMs as mutation operators to evolve them across generations. While effective, such methods often risk stagnating in local optima. To address this issue, we propose the Experience-Guided Reflective Co-Evolution of Prompt and Heuristics (EvoPH) for automatic algorithm design, a novel framework that integrates the island migration model with the elites selection algorithm to simulate diverse heuristics populations. In EvoPH, prompts are co-evolved with heuristic algorithms, guided by performance feedback. We evaluate our framework on two problems, i.e., Traveling Salesman Problem and Bin Packing Problem. Experimental results demonstrate that EvoPH achieves the lowest relative error against optimal solutions across both datasets, advancing the field of automatic algorithm design with LLMs.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{liu2025experienceguided,
  title  = {Experience-Guided Reflective Co-Evolution of Prompts and Heuristics for Automatic Algorithm Design},
  author = {Yihong Liu and Junyi Li and Wayne Xin Zhao and Hongyu Lu and Ji-Rong Wen},
  year   = {2025},
  eprint = {2509.24509},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2509.24509v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2509.24509.svg)](https://codeofpaper.com/paper/2509.24509)

Discussion