Skip to main content
QUICK REVIEW

[Paper Review] ReEvo: Large Language Models as Hyper-Heuristics with Reflective Evolution

Haoran Ye, Jiarui Wang|arXiv (Cornell University)|Feb 2, 2024
Topic ModelingComputer Science10 citations
TL;DR

The paper proposes Language Hyper-Heuristics (LHHs) and a Reflective Evolution framework (ReEvo) that uses LLMs to generate and reflect on heuristics for a broad set of combinatorial optimization problems, achieving state-of-the-art results including on black-box COPs.

ABSTRACT

The omnipresence of NP-hard combinatorial optimization problems (COPs) compels domain experts to engage in trial-and-error heuristic design. The long-standing endeavor of design automation has gained new momentum with the rise of large language models (LLMs). This paper introduces Language Hyper-Heuristics (LHHs), an emerging variant of Hyper-Heuristics that leverages LLMs for heuristic generation, featuring minimal manual intervention and open-ended heuristic spaces. To empower LHHs, we present Reflective Evolution (ReEvo), a novel integration of evolutionary search for efficiently exploring the heuristic space, and LLM reflections to provide verbal gradients within the space. Across five heterogeneous algorithmic types, six different COPs, and both white-box and black-box views of COPs, ReEvo yields state-of-the-art and competitive meta-heuristics, evolutionary algorithms, heuristics, and neural solvers, while being more sample-efficient than prior LHHs.

Motivation & Objective

  • Motivate the use of LLMs to automate heuristic design in NP-hard COPs and reduce manual engineering effort.
  • Propose Language Hyper-Heuristics (LHHs) as an open-ended heuristic space driven by LLMs.
  • Introduce Reflective Evolution (ReEvo) that combines short/long-term verbal reflections with evolutionary search to guide heuristic generation.
  • Demonstrate robustness of LHHs and ReEvo across multiple COPs, including white-box and black-box settings.
  • Provide black-box prompting methodology and comprehensive empirical evaluations to establish reliability and generalizability.

Proposed method

  • Define Language Hyper-Heuristic (LHH) as an HH whose heuristics are generated by LLMs.
  • Describe ReEvo’s population-based evolutionary loop with five steps: selection, short-term reflection, crossover, long-term reflection, elitist mutation.
  • Use two LLM roles (generator and reflector) to produce and critique heuristics encoded as code snippets.
  • Incorporate short- and long-term verbal reflections to guide offspring generation and elite mutation.
  • Evaluate heuristics via an objective F, estimated by average performance over a dataset, with validation and test phases.
  • Promote black-box prompting to test robustness and prevent data leakage.

Experimental results

Research questions

  • RQ1Can LLMs generate effective heuristics for a wide range of COPs beyond well-studied problems?
  • RQ2Do reflective prompts (short-term and long-term) improve the search landscape and solution quality?
  • RQ3Are LHHs robust when policies are given in black-box COP settings without problem-specific details?
  • RQ4How does ReEvo compare with expert-designed heuristics and neural combinatorial optimization approaches in terms of efficiency and generalization?
  • RQ5What is the computational efficiency and practicality of evolving heuristics with LLMs?

Key findings

  • ReEvo delivers state-of-the-art solvers across 12 COP settings and three heuristic variants.
  • Inclusion of reflections yields smoother fitness landscapes and better search performance.
  • LHHs generated by ReEvo can outperform expert-designed heuristics and neural solvers within minutes.
  • ReEvo demonstrates strong performance on black-box COPs, enabling robust algorithm design automation.
  • Constructive heuristics for TSP constructed by ReEvo outperform baseline constructive heuristics and GHPP in multiple sizes.
  • Ablation studies show all components (reflections, crossover, mutation) contribute positively to performance.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.