Comparing PushGP and GPT-4o on Program Synthesis with only Input-Output Examples

Genetic programming (GP) and large language models (LLMs) have both achieved notable success in program synthesis. However, the methods for specifying the desired program behavior (i.e., user intent) differ: GP relies on input-output examples, whereas LLMs use text descriptions. In this work, we compare the capabilities of a GP system, PushGP, and an LLM model, GPT-4o, in synthesizing programs where the user intent is specified through input-output examples. Using tasks from the PSB2 program synthesis benchmark, we found that PushGP solved more tasks than GPT-4o. While some tasks were successfully solved by both synthesizers, others were uniquely solved by only one of them, highlighting their complementary strengths. In addition to the prompt with just input-output examples (data-only), we tested GPT-4o with another prompt containing only a textual description of the task (text-only). Both prompt variants successfully solved the same 7 tasks (with different success rates), with the data-only prompt solving an additional task. Ultimately, each synthesizer is successful in distinct ways, highlighting differences in their underlying methodologies.

Authors

Institutions

Publication Details

Journal
Proceedings of the Genetic and Evolutionary Computation Conference Companion
Published
2025-07-14
DOI
https://doi.org/10.1145/3712255.3726700
Primary Topic
Parallel Computing and Optimization Techniques
Type
article
Field-Weighted Citation Impact
0.00

Funders

Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Comparing PushGP and GPT-4o on Program Synthesis with only Input-Output Examples

Jason H. Moore, Jose Guadalupe Hernandez, Anil Kumar Saini, Gabriel Ketron
Proceedings of the Genetic and Evolutionary Computation Conference Companion
Parallel Computing and Optimization Techniques
article

Comparing PushGP and GPT-4o on Program Synthesis with only Input-Output Examples

Jason H. Moore, Jose Guadalupe Hernandez, Anil Kumar Saini, Gabriel Ketron
article en

Abstract

Genetic programming (GP) and large language models (LLMs) have both achieved notable success in program synthesis. However, the methods for specifying the desired program behavior (i.e., user intent) differ: GP relies on input-output examples, whereas LLMs use text descriptions. In this work, we compare the capabilities of a GP system, PushGP, and an LLM model, GPT-4o, in synthesizing programs where the user intent is specified through input-output examples. Using tasks from the PSB2 program synthesis benchmark, we found that PushGP solved more tasks than GPT-4o. While some tasks were successfully solved by both synthesizers, others were uniquely solved by only one of them, highlighting their complementary strengths. In addition to the prompt with just input-output examples (data-only), we tested GPT-4o with another prompt containing only a textual description of the task (text-only). Both prompt variants successfully solved the same 7 tasks (with different success rates), with the data-only prompt solving an additional task. Ultimately, each synthesizer is successful in distinct ways, highlighting differences in their underlying methodologies.

Proceedings of the Genetic and Evolutionary Computation Conference Companion
Cedars-Sinai Medical Center (US)
National Institutes of Health
Openalex Percentile: Top 53%
Parallel Computing and Optimization Techniques
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.