Skip to main content
QUICK REVIEW

[Paper Review] Evolution through Large Models

Joel Lehman, Jonathan Gordon|arXiv (Cornell University)|Jun 17, 2022
Evolutionary Algorithms and ApplicationsComputer Science4 citations
TL;DR

This paper introduces Evolution through Large Models (ELM), a method that uses large language models (LLMs) trained on code to act as intelligent mutation operators in genetic programming (GP), dramatically improving search efficiency. By prompting the LLM to generate human-like, functional code modifications, ELM enables GP to evolve complex, working Python programs—such as ambulating robots in the Sodarace domain—starting from a single, mediocre human-written seed, ultimately bootstrapping new conditional models for terrain-specific robot design.

ABSTRACT

This paper pursues the insight that large language models (LLMs) trained to generate code can vastly improve the effectiveness of mutation operators applied to programs in genetic programming (GP). Because such LLMs benefit from training data that includes sequential changes and modifications, they can approximate likely changes that humans would make. To highlight the breadth of implications of such evolution through large models (ELM), in the main experiment ELM combined with MAP-Elites generates hundreds of thousands of functional examples of Python programs that output working ambulating robots in the Sodarace domain, which the original LLM had never seen in pre-training. These examples then help to bootstrap training a new conditional language model that can output the right walker for a particular terrain. The ability to bootstrap new models that can output appropriate artifacts for a given context in a domain where zero training data was previously available carries implications for open-endedness, deep learning, and reinforcement learning. These implications are explored here in depth in the hope of inspiring new directions of research now opened up by ELM.

Motivation & Objective

  • To address the challenge of ineffective mutation in genetic programming (GP) when evolving programs in domains far from the LLM's training distribution.
  • To explore how LLMs can act as intelligent, human-like perturbation operators that guide evolutionary search toward functional solutions.
  • To demonstrate that LLM-generated data can bootstrap new, fine-tuned models for novel domains where no training data previously existed.
  • To investigate the role of ELM in enabling open-ended, distribution-shifting discovery by generating diverse, functional artifacts outside the LLM's original training data.
  • To enable conditional generation of domain-specific artifacts (e.g., terrain-adapted robots) through fine-tuning on ELM-generated data, advancing applications in reinforcement learning and deep learning.

Proposed method

  • Utilize a pre-trained code-generating LLM to act as a mutation operator in a genetic programming pipeline, generating plausible, functional code changes.
  • Apply the MAP-Elites algorithm to explore and preserve diverse, functional Sodarace robot designs in the Python program space, using LLM-generated mutations.
  • Generate hundreds of thousands of functional Python programs representing ambulating robots in the Sodarace domain, even though the LLM had no prior exposure to this domain.
  • Fine-tune the original LLM on the ELM-generated dataset to create a conditional language model capable of generating robots tailored to specific terrains.
  • Use reinforcement learning (RL) to further refine the conditional model, enabling it to generate appropriate robot morphologies based on terrain input.
  • Leverage the generated data to bootstrap new models in a domain with zero initial training data, demonstrating a self-improving, open-ended discovery loop.

Experimental results

Research questions

  • RQ1Can a pre-trained code-generating LLM serve as an effective, intelligent mutation operator in genetic programming for domains outside its training distribution?
  • RQ2To what extent can LLM-generated data from evolutionary search be used to train new, domain-specific models when no labeled data exists?
  • RQ3Can the combination of ELM and MAP-Elites generate diverse, functional artifacts (e.g., Sodarace robots) in a novel domain from a single human-written seed?
  • RQ4Can the ELM-generated data enable the training of a conditional language model that generates robot designs appropriate for specific terrains?
  • RQ5How does ELM contribute to open-endedness by enabling continual discovery of novel, out-of-distribution solutions?

Key findings

  • ELM successfully generated hundreds of thousands of functional Python programs representing ambulating robots in the Sodarace domain, despite the LLM having no prior exposure to this domain.
  • The ELM-generated dataset was sufficient to fine-tune a new conditional language model that could generate terrain-specific Sodarace robots, a task impossible to train from scratch.
  • Reinforcement learning was able to further enhance the conditional model, enabling it to generate appropriate robot morphologies based on terrain input.
  • The LLM-based mutation operator significantly outperformed conventional mutation in guiding evolutionary search toward functional solutions in a complex, unfamiliar domain.
  • The ELM pipeline demonstrated a self-sustaining loop of discovery: ELM-generated data enabled new model training, which in turn could generate even more diverse and targeted solutions.
  • The approach enables open-ended evolution by continuously generating novel, functional artifacts outside the original training distribution, supporting the emergence of new capabilities.

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.