Language Model Crossover: Variation through Few-Shot Prompting

This article pursues the insight that language models naturally enable an intelligent variation operator similar in spirit to evolutionary crossover. In particular, language models of sufficient scale demonstrate in-context learning, i.e., they can learn from associations between a small number of input patterns to generate outputs incorporating such associations (also called few-shot prompting). This ability can be leveraged to form a simple but powerful variation operator, i.e., to prompt a language model with a few text-based genotypes (such as code, plain-text sentences, or equations), and to parse its corresponding output as those genotypes’ offspring. The promise of such language model crossover (which is simple to implement and can leverage many different open source language models) is that it enables a simple mechanism to evolve semantically rich text representations (with few domain-specific tweaks), and naturally benefits from current progress in language models. Experiments in this article highlight the versatility of language-model crossover, through evolving binary bit-strings, sentences, equations, text-to-image prompts, and Python code. The conclusion is that language model crossover is a flexible and effective method for evolving genomes representable as text.

Authors

Institutions

Publication Details

Journal
ACM Transactions on Evolutionary Learning and Optimization
Published
2024-09-05
DOI
https://doi.org/10.1145/3694791
Citations
43
Primary Topic
Topic Modeling
Type
article
Field-Weighted Citation Impact
14.24
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Language Model Crossover: Variation through Few-Shot Prompting

Elliot Meyerson, Herbie Bradley, Joel Lehman, Amy K. Hoover et al.
43 citations
ACM Transactions on Evolutionary Learning and Optimization
Topic Modeling
14.24
article

Language Model Crossover: Variation through Few-Shot Prompting

Elliot Meyerson, Herbie Bradley, Joel Lehman, Amy K. Hoover, Adam Gaier, Mark Nelson, Arash Moradi
article en
43 citations

Abstract

This article pursues the insight that language models naturally enable an intelligent variation operator similar in spirit to evolutionary crossover. In particular, language models of sufficient scale demonstrate in-context learning, i.e., they can learn from associations between a small number of input patterns to generate outputs incorporating such associations (also called few-shot prompting). This ability can be leveraged to form a simple but powerful variation operator, i.e., to prompt a language model with a few text-based genotypes (such as code, plain-text sentences, or equations), and to parse its corresponding output as those genotypes’ offspring. The promise of such language model crossover (which is simple to implement and can leverage many different open source language models) is that it enables a simple mechanism to evolve semantically rich text representations (with few domain-specific tweaks), and naturally benefits from current progress in language models. Experiments in this article highlight the versatility of language-model crossover, through evolving binary bit-strings, sentences, equations, text-to-image prompts, and Python code. The conclusion is that language model crossover is a flexible and effective method for evolving genomes representable as text.

ACM Transactions on Evolutionary Learning and OptimizationVol. 4(4)
New Jersey Institute of Technology (US), Autodesk (United States) (US), Cognizant (United States) (US), American University (US), Providence College (US), University of Cambridge (GB), Bridge University (SS)
Openalex Percentile: Top 1%
Topic Modeling
14.24
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.