atlas

Research map / Large language models / Agents, code and math

ExeDec: Execution Decomposition for Compositional Generalization in Neural Program Synthesis

ICLR 2024 · Large language models › Agents, code and math · approach: LLM-guided program synthesis · 0 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Introduces a meta-benchmark of five compositional generalization tasks for program synthesis, instantiates it on RobustFill and DeepCoder, and proposes ExeDec, a subgoal-predicting step-by-step decomposition synthesizer that outperforms Transformer baselines and improves few-shot LLM generalization.

Problem

Neural program synthesizers often fail to compositionally generalize, e.g., to longer programs or to new combinations of API concepts seen separately in training; there is no systematic benchmark for this in programming by example.

Approach

ExeDec decomposes synthesis in the execution space: a SubgoalModel predicts the next intermediate execution state for each I/O example, a SynthesizerModel generates the subprogram achieving that subgoal, and execution updates the specification in a beam search.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
decompose synthesis into steps and predict execution subgoals before synthesizing each subprogramTransformer program synthesizers · RobustFill compositional generalizationaccuracy: +44%Helped
decompose synthesis into steps and predict execution subgoals before synthesizing each subprogramTransformer program synthesizers · DeepCoder compositional generalizationaccuracy: +18%Helped
add execution subgoal prediction (ablation)no-subgoal step-by-step synthesis · RobustFill compositional generalizationaccuracy: +7%Helped
add execution subgoal prediction (ablation)no-subgoal step-by-step synthesis · DeepCoder compositional generalizationaccuracy: +5%Helped
add execution subgoal prediction (ablation)no-subgoal step-by-step synthesis · DeepCoder training distributionaccuracyHurt
add execution subgoal prediction (ablation)no-subgoal step-by-step synthesis · DeepCoder length generalizationaccuracyHurt
reduce model size to ExeDec-Small (ablation)ExeDec · RobustFill and DeepCoder generalization tasksaccuracy: 1.4% worse on average and up to 3% worse on any individual generalization taskHurt
increase beam size from 1 to 10ExeDec · RobustFill and DeepCoderaccuracyHelped
use ExeDec-style prompting with execution subgoalsPaLM 2 Unicorn · DeepCoder-Pythonic, generalization averagesolved tasksHelped
represent DeepCoder programs in Pythonic formExeDec-style prompting · DeepCoder to DeepCoder-Pythonicsolved tasksHelped

Surprising findings

Limitations

Experimental setup

Datasets: RobustFill DeepCoder

Benchmarks: RobustFill compositional generalization splits DeepCoder compositional generalization splits DeepCoder-Pythonic

Metrics: end-to-end test accuracy solved tasks out of 200 single-step accuracy

Baselines: Transformer baseline no-subgoal ablation Latent Programmer PaLM 2 Unicorn baseline prompting Ablation-style prompting

Builds on: Latent Programmer Transformer SCAN COGS Aligned Relative Attention

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy