SEAINEApr 20, 2023

Fully Autonomous Programming with Large Language Models

arXiv:2304.10423v160 citationsh-index: 36
Originality Incremental advance
AI Analysis

This addresses a specific bottleneck in automated programming for developers, but it is incremental as it builds on existing SED methods with empirical optimizations.

The paper tackles the 'near miss syndrome' in LLM-based program synthesis, where generated programs resemble correct answers but fail unit tests due to small imperfections, by proposing a Synthesize, Execute, Debug (SED) framework that outperforms conventional Codex usage and genetic programming approaches.

Current approaches to program synthesis with Large Language Models (LLMs) exhibit a "near miss syndrome": they tend to generate programs that semantically resemble the correct answer (as measured by text similarity metrics or human evaluation), but achieve a low or even zero accuracy as measured by unit tests due to small imperfections, such as the wrong input or output format. This calls for an approach known as Synthesize, Execute, Debug (SED), whereby a draft of the solution is generated first, followed by a program repair phase addressing the failed tests. To effectively apply this approach to instruction-driven LLMs, one needs to determine which prompts perform best as instructions for LLMs, as well as strike a balance between repairing unsuccessful programs and replacing them with newly generated ones. We explore these trade-offs empirically, comparing replace-focused, repair-focused, and hybrid debug strategies, as well as different template-based and model-based prompt-generation techniques. We use OpenAI Codex as the LLM and Program Synthesis Benchmark 2 as a database of problem descriptions and tests for evaluation. The resulting framework outperforms both conventional usage of Codex without the repair phase and traditional genetic programming approaches.

Foundations

The foundational work for this paper's niche, ranked by how specifically the neighbourhood builds on it — not by global fame.

Your Notes