Skip to main content
QUICK REVIEW

[论文解读] Evolution of Heuristics: Towards Efficient Automatic Algorithm Design Using Large Language Model

Fei Liu, Xialiang Tong|arXiv (Cornell University)|Jan 4, 2024
Multimodal Machine Learning ApplicationsComputer Science被引用 12
一句话总结

本论文提出 AEL,一种自动化算法设计框架,通过将进化计算与大型语言模型相结合,进化出用于 TSP 的引导局部搜索 GLS 算法,在小规模实例上实现近乎完美的 gap,在较大实例上表现强劲且无需人类干预。

ABSTRACT

Heuristics are widely used for dealing with complex search and optimization problems. However, manual design of heuristics can be often very labour extensive and requires rich working experience and knowledge. This paper proposes Evolution of Heuristic (EoH), a novel evolutionary paradigm that leverages both Large Language Models (LLMs) and Evolutionary Computation (EC) methods for Automatic Heuristic Design (AHD). EoH represents the ideas of heuristics in natural language, termed thoughts. They are then translated into executable codes by LLMs. The evolution of both thoughts and codes in an evolutionary search framework makes it very effective and efficient for generating high-performance heuristics. Experiments on three widely studied combinatorial optimization benchmark problems demonstrate that EoH outperforms commonly used handcrafted heuristics and other recent AHD methods including FunSearch. Particularly, the heuristic produced by EoH with a low computational budget (in terms of the number of queries to LLMs) significantly outperforms widely-used human hand-crafted baseline algorithms for the online bin packing problem.

研究动机与目标

  • Motivate the need for automatic algorithm design to reduce reliance on human-crafted heuristics.
  • Demonstrate AEL as a framework that couples evolutionary computation with large language models to design algorithms at the code-level.
  • Show that an AEL-designed GLS outperforms human-designed GLS across multiple TSP benchmarks.
  • Highlight the potential for rapid, human-free development of competitive metaheuristics.

提出的方法

  • Propose and implement AEL, which evolves algorithms via LLM-assisted creation, crossover, and mutation within an evolutionary framework.
  • Represent each algorithm as: (i) natural-language description, (ii) a Python function update_edge_distance, (iii) a fitness value against a baseline.
  • Use greedy initialization and 1,000-iteration evaluation to assess fitness against Concorde.
  • Update the guide distance matrix in GLS via the evolved algorithm during perturbation steps.
  • Utilize prompt engineering to guide the LLM in initialization, crossover, and mutation to generate diverse, high-quality algorithms.
  • Run the whole process on TSP100 instances with 64 random instances for fitness evaluation (average gap).

实验结果

研究问题

  • RQ1Can an LLM-assisted evolutionary framework automatically design competitive GLS variants for TSP?
  • RQ2Does AEL achieve superior performance and generalization compared to human-designed GLS and neural solvers across multiple TSP distributions?
  • RQ3What is the impact of prompting strategy and mutation/crossover design on the quality and diversity of evolved algorithms?

主要发现

  • AEL evolves elite GLS algorithms in about two days with no human intervention or model training.
  • The evolved AEL-GLS achieves a 0% gap on TSP20 and TSP50, and a 0.032% gap on TSP100 within 1,000 iterations.
  • AEL-GLS outperforms state-of-the-art human-designed GLS variants and several neural solvers in average gap and running time.
  • On TSPLib instances, AEL-GLS outperforms neural solvers and GLS algorithms, with significant gap reductions.
  • The approach demonstrates a new paradigm where LLMs guide the evolution of optimization algorithms rather than serving as standalone solvers.
  • Generalization across problem sizes is strong, with the TSP100-evolved algorithm achieving 0% gap on smaller sizes (TSP20, TSP50).

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。