Skip to main content
QUICK REVIEW

[Paper Review] Large Language Models as Evolutionary Optimizers

Shengcai Liu, Caishun Chen|arXiv (Cornell University)|Oct 29, 2023
Metaheuristic Optimization Algorithms ResearchComputer Science11 citations
TL;DR

This paper introduces LLM-driven EA (LMEA), a zero-shot evolutionary optimization framework that uses large language models to perform selection, crossover, and mutation, with a self-adaptive temperature to balance exploration and exploitation, evaluated on TSP instances up to 20 nodes.

ABSTRACT

Evolutionary algorithms (EAs) have achieved remarkable success in tackling complex combinatorial optimization problems. However, EAs often demand carefully-designed operators with the aid of domain expertise to achieve satisfactory performance. In this work, we present the first study on large language models (LLMs) as evolutionary combinatorial optimizers. The main advantage is that it requires minimal domain knowledge and human efforts, as well as no additional training of the model. This approach is referred to as LLM-driven EA (LMEA). Specifically, in each generation of the evolutionary search, LMEA instructs the LLM to select parent solutions from current population, and perform crossover and mutation to generate offspring solutions. Then, LMEA evaluates these new solutions and include them into the population for the next generation. LMEA is equipped with a self-adaptation mechanism that controls the temperature of the LLM. This enables it to balance between exploration and exploitation and prevents the search from getting stuck in local optima. We investigate the power of LMEA on the classical traveling salesman problems (TSPs) widely used in combinatorial optimization research. Notably, the results show that LMEA performs competitively to traditional heuristics in finding high-quality solutions on TSP instances with up to 20 nodes. Additionally, we also study the effectiveness of LLM-driven crossover/mutation and the self-adaptation mechanism in evolutionary search. In summary, our results reveal the great potentials of LLMs as evolutionary optimizers for solving combinatorial problems. We hope our research shall inspire future explorations on LLM-driven EAs for complex optimization challenges.

Motivation & Objective

  • Motivate and explore whether large language models can serve as evolutionary operators to solve combinatorial optimization with minimal domain expertise.
  • Propose LMEA, a zero-shot framework where an LLM performs parent selection, crossover, and mutation within an EA loop.
  • Demonstrate a self-adaptive mechanism that adjusts the LLM temperature to balance exploration and exploitation during search.

Proposed method

  • Construct a prompt-based framework where the LLM selects parents, and performs crossover and mutation to generate offspring in each EA generation.
  • Describe problem-specific prompt components: problem description with solution properties, in-context examples from the current population, and explicit task instructions.
  • Implement a self-adaptation rule that increases the LLM temperature by alpha if no improvement is found for K consecutive generations (alpha=0.1, K=20).
  • Evaluate LMEA on EUC-2D TSP instances with n in {10,15,20,25} and compare to NN, FI/NI/RI insertion heuristics and an OPRO baseline (LLM-driven but without genetic operators).
  • Use a fixed population size N=16 and generations G=250; report optimality gaps and generation counts to optimal solutions.

Experimental results

Research questions

  • RQ1Can an LLM, used in a zero-shot manner, effectively perform evolutionary operators (selection, crossover, mutation) to solve combinatorial optimization problems?
  • RQ2How does LMEA's performance compare to traditional heuristics and to a baseline that uses LLMs without LLM-driven genetic operators on TSP instances?
  • RQ3Does a self-adaptive LLM temperature improve convergence and solution quality in LMEA?
  • RQ4What are the scalability limits of LMEA for increasing problem size in TSP?

Key findings

  • LMEA achieves competitive optimality gaps on small TSPs (n=10,15), and consistently finds optimal solutions on 10- and 15-node instances in many cases.
  • On rue-10, rue-15, and clu-10 test sets, LMEA outperforms traditional heuristics in several configurations and finds optimal solutions in a majority of cases (e.g., optimal on 19/20 rue/clu-10/15 instances).
  • For larger TSPs (n=20,25), LMEA’s performance degrades relative to hand-designed heuristics, highlighting scalability limitations.
  • Compared to OPRO (LLM without LLM-driven operators), LMEA generally yields better solutions and faster convergence across tested instances.
  • Self-adaptation of the LLM temperature (LMEA) significantly improves performance over a non-adaptive variant (LMEA*).
  • LLMs can serve as both the operator and coordinator in an EA framework, enabling a minimal-domain-knowledge approach to combinatorial optimization.

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.