MCP
arXivarXiv
Preprint
Published: August 4, 2026
cs.AI
v3
NeurIPS 2026 · Poster

Solver-Aware Decompositions for Programming-by-Example: When Dividing Requires Knowing How to Conquer

Abstract
Decomposition-based Programming-by-Example splits a task into subtasks: a decomposer predicts intermediate subgoals, and a learned synthesizer generates a program for each subgoal. Execution-decomposition approaches train the decomposer to imitate ground-truth (GT) subgoals and thereby treat decomposition quality as a property of the task alone. A learned synthesizer, however, has its own inductive biases, and GT subgoals reflect how the annotator factorized the task, not what this synthesizer can solve. A decomposer that imitates them can therefore propose subgoals that are logically valid but intractable for the synthesizer. Motivated by this observation, we propose Solver-Aware Decompositions (SAD), which keeps supervised training on GT subgoals as a structural scaffold and additionally trains the decomposer online with self-critical policy gradients against a frozen synthesizer. Each sampled subgoal is rewarded with the negative cross-entropy of the synthesizer on the target program, a continuous signal of how difficult the subtask is for this synthesizer. Our experiments show an accuracy paradox: with the synthesizer fixed, a GT-supervised decomposer agrees more often with the GT subgoals, yet its subgoals lead to lower synthesis accuracy, although the synthesizer was trained on the same GT data. On two list-processing domains, SAD improves synthesis and task accuracy over the GT-supervised decomposer, both in-distribution and under length generalization; the same holds under zero-shot transfer to an external benchmark and for a fine-tuned language model. Even an oracle that receives the GT subgoals at inference time, with the same synthesizer and search, fails on tasks that SAD solves, and fewer than 2% of SAD's solutions to these tasks match the GT program. Decomposition quality is therefore not a property of the task: it depends on the synthesizer that executes the subgoals.
0
AI overview
Reviews
Citation graph
References · 37
Structured
This preview uses paper v1; the current paper is v3
Generated from v1 · the paper is now at v3

Overview

Addressing the problem that conventional solver-blind training in decomposition-based Programming by Example (PBE) overfits the annotator-provided ground-truth subgoals and thereby reduces synthesis success rates, this paper proposes the Solver-Aware Decomposition (SAD) training framework, which optimizes the decomposer via feedback signals from a frozen synthesizer, and demonstrates across multiple PBE domains that decomposition quality is a property relative to the solver rather than the task itself.

The Task Paradigm and Background of Decomposition-Based PBE

Decomposition-based Programming by Example (PBE) extends performance by splitting a task into subtasks that are solved by a learned synthesizer. Its core pipeline works as follows: a decomposer predicts intermediate subgoals, and the synthesizer generates corresponding programs conditioned on these subgoals.

The prevailing practice in the field is to train the decomposer to imitate ground-truth (GT) subgoals. The implicit default assumption of this paradigm is that decomposition quality is an intrinsic property of the task itself, independent of the characteristics of the subsequent solving stage.

Two published baseline methods, Exedec and TIIPS, established the foundational design of this class of decomposition architecture: both adopt the structure of a learned decomposer proposing intermediate subgoals and a learned synthesizer generating subprograms based on those subgoals. During training, the decomposer is fitted entirely via supervised learning to the annotated ground-truth decompositions, treating the similarity between the decomposition structure and the annotated subgoals as a sufficient proxy for decomposition quality, and the decomposer training process never incorporates any feedback from the synthesizer.

The Solver-Blind Decomposition Training Paradigm and the Accuracy Paradox Gap

The paper observes a counterintuitive empirical phenomenon, defined as the accuracy paradox: with a fixed synthesizer, this standard solver-blind supervised training achieves higher decomposition accuracy, yet fails to translate that advantage in decomposition accuracy into final synthesis success probabilities.

Core Contribution: the Solver-Aware Decomposition (SAD) Training Framework

The paper proposes the Solver-Aware Decomposition (SAD) training framework for decomposition-based program synthesis tasks. The framework retains supervised training against ground-truth subgoals as structural support, while introducing a Self-Critical Sequence Training (SCST) procedure that additionally optimizes the decomposer using feedback signals from the output of a fixed, frozen synthesizer.

The reward signal in this framework is the cross-entropy loss of the synthesizer on the corresponding ground-truth program; even in scenarios where the decomposition predictions are only partially correct, this signal provides informative subtask difficulty indications. The contrastive mechanism of Self-Critical Sequence Training evaluates, under the same frozen synthesizer, both a sampled decomposition and a greedily generated decomposition, and the resulting advantage term captures the relative tractability differences between decomposition alternatives, automatically identifying the subgoal structure on which the synthesizer's distribution naturally peaks.

The Operating Mechanism and Design Logic of the SAD Framework

Rather than directly removing the ground-truth supervision signal and optimizing the decomposer with reinforcement learning alone, the SAD framework combines the ground-truth supervision scaffold with feedback signals from the frozen synthesizer; the two signals are not in competition. Removing the ground-truth supervision loss alone causes decomposition accuracy to plummet to 2%~9%, making it impossible to produce usable decompositions. Please refer to the flowchart that follows to understand the full pipeline of how two distinct subgoal generation paths pass advantage values through the SCST update, relaying the synthesizer's feedback back to the decomposer.

Fig. 1: Diagram of the solver-aware training loop, where the decomposer is trained using feedback from a frozen synthesizer.

For a bounded synthesizer, subgoals that perfectly match the ground-truth structure may instead exceed the boundaries of its search capability, whereas subgoals that partially deviate from the ground truth can guide the synthesizer into a search region where solving is easier. Through multiple empirical results—including the accuracy paradox, task-level oracle inversions, and the Robustfill null result—the study verifies that this phenomenon is not a theoretical extreme edge case but a real, measurable effect that can be addressed through a targeted training framework.

Multi-Domain Controlled Experiments and Validation of Core Conclusions

The paper selects three standard PBE domains with distinct structural properties for controlled experiments: Deepcoder, Lambdabeam, and Robustfill, which differ clearly in program structure, state-update semantics, and the degree of ambiguity of valid decompositions. The Deepcoder domain uses a DSL with first-order and higher-order functions to operate on integer lists; programs are built sequentially, intermediate outputs are retained as named variables for use by later steps, and a single task may admit multiple valid programs and corresponding decompositions. The Lambdabeam domain extends Deepcoder with dynamically constructed lambda functions and conditional operations, introducing branching program structure with a larger search space and fewer constraints, so performance losses from mismatches between the solver and decomposition results are further amplified. Both domains contain a large ambiguity space of valid decompositions, whereas the Robustfill domain's structural constraints almost completely eliminate decomposition ambiguity, and it is used as a purpose-built falsification check.

Across all test domains and all evaluation settings, SAD consistently outperforms the solver-blind training baselines; all performance differences between SAD and the solver-blind baselines are verified as statistically significant via paired t-tests, and SAD also outperforms the Exedec baseline on the two core domains. Under the length generalization setting, SAD's performance advantage over the solver-blind baseline is markedly larger than in the in-distribution setting, with relative improvements of 22.2% versus 10.7% on the Deepcoder domain and 14.0% versus 10.9% on the Lambdabeam domain.

The experimental results directly confirm the existence of the accuracy paradox: the solver-blind baseline achieves 2 to 3 times the decomposition accuracy of SAD across all domains and all evaluation settings, fitting the annotator-provided ground-truth subgoal structure far more closely than SAD, yet this structural advantage does not translate into final synthesis success rates at all—SAD achieves higher synthesis accuracy than the solver-blind baseline in all settings, and this inversion still holds in the length generalization scenario. This result directly demonstrates that high structural fidelity to ground-truth subgoals is not equivalent to better synthesis performance, and that decomposition quality is not an intrinsic property of the task. You can refer to the comparison bar charts that follow to visually observe the performance differences between the two training methods along the two dimensions of decomposition accuracy and subprogram accuracy.

Fig. 2: Similarity of subgoals to the ground truth is not a good proxy for solver utility; the two sets of bar charts compare the differing performance of the two training paradigms.

The paper further verifies that the performance gap between SAD and the solver-blind baseline is not a ranking artifact. The core problem of the solver-blind model is its fundamental inability to generate valid decompositions that the solver can process; simply reranking its output candidate beams cannot recover valid decompositions that were never generated. A beam upper-bound experiment separates the two independent variables of candidate coverage and candidate ranking; the results show that the gains of both methods' upper-bound performance over their original performance on the two list domains are no more than 2%, indicating that insufficient coverage is the core reason for the solver-blind baseline's limited performance.

Applicability Boundaries of the Method and Final Core Conclusions

SAD's performance gains have clear triggering conditions: solver-aware training yields observable performance improvements only when the task scenario contains meaningful decomposition ambiguity and the solver's preference over that ambiguity significantly affects the final synthesis result. When no such ambiguity exists, SAD performs almost identically to the solver-blind baseline; on Robustfill's test distribution and length generalization setting, the performance difference between the two is nearly negligible, in which case SAD naturally degrades into standard supervised learning without introducing additional training instability.

The current SAD framework has two explicit known limitations. First, SAD optimizes the decomposer for a specific frozen synthesizer; this isolation design ensures the cleanliness of the causal conclusions in the experiments, but it also means that once the synthesizer changes, the decomposer must undergo fresh adaptation training. Second, SAD's single-step training constraint fixes the decomposition granularity, so the decomposer and synthesizer cannot dynamically negotiate the depth of subtasks.

Links
arXiv
arXiv
↗
PDF
↗
OpenReview
OpenReview version on PaperPulse
›
Rating
No ratings yet
Rate
Community rating
—
/ 5
No ratings yet
Rating
—
Soundness
—
Presentation
—
Contribution
—
Confidence
—
Discussion
Top
Newest
Questions
Replication
Author
No comments yet — be the first