Solver-Aware Decompositions for Programming-by-Example: When Dividing Requires Knowing how to Conquer
cs.AI
Submitted: 2026-08-04
Updated: 2026-10-08
Comments: Accepted at NeurIPS 2026
Code: https://github.com/jzenkner/SAD
License: http://creativecommons.org/licenses/by/4.0/
The gist: Decomposition-based Programming-by-example (PBE) scales performance by splitting tasks into subtasks that a learned synthesizer solves: a decomposer predicts intermediate subgoals, and a synthesizer
Terminology
Abstract
Decomposition-based Programming-by-example (PBE) scales performance by splitting tasks into subtasks that a learned synthesizer solves: a decomposer predicts intermediate subgoals, and a synthesizer generates programs conditioned on them. Execution-decomposition approaches such as ExeDec train the decomposer to imitate ground-truth (GT) subgoals, implicitly treating decomposition quality as intrinsic to the task. We challenge this assumption: for bounded solvers with fixed inductive biases, GT decompositions reflect the annotator's factorization choices - not the solver's search dynamics. A decomposer trained to match GT decompositions may therefore propose subgoals that are logically valid yet intractable for the solver. We propose Solver-Aware Decomposition (SAD), a training framework that retains supervised training on GT subgoals as a structural scaffold, while additionally optimizing the decomposer online with policy gradients against a frozen learned synthesizer. Each sampled subgoal is rewarded by the synthesizer's cross-entropy loss on the target program - a continuous signal of subtask difficulty that encourages decompositions the solver can act on. Our experiments reveal an accuracy paradox: higher agreement with GT decompositions does not improve synthesis success - even though the synthesizer was trained on the very same GT data the decomposer is optimized to mimic. SAD instead learns decompositions that trade GT alignment for solver tractability, yielding consistent gains in synthesis and end-to-end task accuracy across two PBE domains and under zero-shot transfer to an external list-processing benchmark. Moreover, SAD solves tasks that a GT decomposition oracle fails - empirical evidence, under an identical synthesizer and search procedure, that GT decompositions are not universally optimal for bounded solvers.
Sources
- DeepCoder: Learning to Write Programs
- HIPO: Instruction Hierarchy via Constrained Reinforcement Learning
- Generating Planning Feedback for Open-Ended Programming Exercises with LLMs
- The Llama 3 Herd of Models
- Qwen2.5-Coder Technical Report
- Compositional Program Generation for Few-Shot Systematic Generalization
- Is Programming by Example solved by LLMs?
- Neural Sketch Learning for Conditional Program Generation
- Is Self-Repair a Silver Bullet for Code Generation?
- Automatic Curriculum Learning For Deep RL: A Short Survey
- ADaPT: As-Needed Decomposition and Planning with Language Models
- Phenomenal Yet Puzzling: Testing Inductive Reasoning Capabilities of Language Models with Hypothesis Refinement
- Qwen2.5 Technical Report
- Sequence Level Training with Recurrent Neural Networks
- ExeDec: Execution Decomposition for Compositional Generalization in Neural Program Synthesis
- Synthetic Datasets for Neural Program Synthesis
- A Divide-Align-Conquer Strategy for Program Synthesis
- Sequence-Based Plan Feasibility Prediction for Efficient Task and Motion Planning
- A Syntactic Neural Model for General-Purpose Code Generation
- Planning with Large Language Models for Code Generation
Related papers
- MAVEN-T: Reinforced Heterogeneous Distillation for Real-Time Multi-Agent Trajectory Prediction
- Model Discovery Agent: LLM-assisted Bayesian experiment design for data-efficient discovery of mechanistic world models
- Agents' Last Exam
- The Clinician's Veto: Navigating Trust, Liability, and Uncertainty in Autonomous AI Prescribing
- MindHelper: Closed-Loop Embodied Mental-State Reasoning for Precision Intervention
- Incumbent Advantage: Brand Bias and Cognitive Manipulation Dynamics in LLM Recommendation Systems