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.
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 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.
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.
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.
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.
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.
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.
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.