potentialpaper

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

Janis Zenkner, Tobias Sesterhenn, Tim Grams, Christian Bartelt

NeurIPS 2026

Edit this page

Or clone it with git

Run in a terminal:

Needs Git LFS. To push, use an API key from your profile as the password.

Or let your agent set it up

It checks and sets up everything: signing in, git, the clone, credentials and an SSH key.

TL;DR. We show that decomposition quality in PBE should be defined relative to the downstream solver. SAD trains decomposers via solver feedback, achieving higher synthesis accuracy and task success despite lower ground-truth alignment.

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 alone: it depends on the synthesizer that executes the subgoals, and the decomposer should be trained against it.

Are you an author? Claim this paper to see who's reading it, with views and other statistics, and to write about it here.

Claim this paper
How does this paper connect to your work? Write how you built on it, compared with it or reproduced it, or add a summary, a critique or errata.
Or make it interactive:
Start writing

edit · history

DateVersionSubmitted toPDFEvidence
1 May 2026NeurIPS 2026submittedNeurIPS 2026Accept (poster)reviews ↓[1]PDF[1]
Missing a version?

NeurIPS 2026

Accept (poster) · 3 reviews · OpenReview

Updated 25 Nov 2026, 03:45 UTC.

Program Chairs · DecisionOpenReview ↗
Decision
Accept (poster)
Read decision
Meta-review

The authors propose using a frozen solver to help find reachable subgoals for intermediate supervision of a to-be-trained solver. While there was some pre-discussion concern about lack of LM in the work (and whether the results would hold in the LM solver setting), post-discussion the reviewers agree that the work should be accepted; I also agree.

Final justification

The authors propose using a frozen solver to help find reachable subgoals for intermediate supervision of a to-be-trained solver. While there was some pre-discussion concern about lack of LM in the work (and whether the results would hold in the LM solver setting), post-discussion the reviewers agree that the work should be accepted; I also agree.

Area Chair YpGb · Meta-reviewOpenReview ↗
Read meta-review
Meta-review

The authors propose using a frozen solver to help find reachable subgoals for intermediate supervision of a to-be-trained solver. While there was some pre-discussion concern about lack of LM in the work (and whether the results would hold in the LM solver setting), post-discussion the reviewers agree that the work should be accepted; I also agree.

Final justification

The authors propose using a frozen solver to help find reachable subgoals for intermediate supervision of a to-be-trained solver. While there was some pre-discussion concern about lack of LM in the work (and whether the results would hold in the LM solver setting), post-discussion the reviewers agree that the work should be accepted; I also agree.

Reviewer gLnbOpenReview ↗
Rating
4/6
Confidence
4/5
Quality
3/4
Clarity
3/4
Significance
3/4
Originality
2/4
Contribution type
general
Ethical concerns
NO or VERY MINOR ethics concerns only
Read review
Summary

The manuscript tackles the problem of characterizing what makes a good decomposition. This problem is pervasive in computer science and AI (from robotics to programming to world modeling, etc.). This is an important problem.

The authors conduct experiments measuring two conditions. One is where the capabilities of the lower-level solver are considered, and one where they are not. They model the decomposition system with a small transformer that is trained with a REINFORCE variant and consider a fix the lower level solver to isolate the effect of intervening on the upper layer.

The results support the hypothesis that aligning to solver tractability is correlated to better synthesis performance.

Strengths and weaknesses

Strengths:

The core strengths of the manuscript are that (1) it cleanly articulates and isolates an important problem, and that (2) it shows empirically and systematically the benefits of considering the lower-level layer's capability in learning how to divide-and-conquer in the context of programming by example on a DSL; thus clarity of the work is a strength. The claims are similarly well supported.

Weaknesses:

The manuscript overstates the novelty of the work. Indeed, learning paradigms like adaptive teaching [1] explicitly adapt a teacher based on the capabilities of a student. This pattern also seen in TAMP, where prior work [2, 3] has proposed learning the feasibility of a decomposition to guide the search. Arguably, some works on automated theorem proving are another instantiation of this approach: those where the decomposition proposer and the "lower-level solver" are effectively the same in a proof tree, e.g., [5].

Perhaps more importantly, prior program synthesis work has tackled this before, including on programming by example [4], by learning an upper layer NN that produces sketches that adapts to the capabilities of a lower-level enumerative solver on list and string processing tasks, a setting remarkably similar to yours. Your characterization of this particular work differs from my understanding: your core criticism is that in that work the "alignment problem is approximated rather than addressed" but the work explicitly does "[train] to assign high probability to those sketches which can be synthesized into a full program within the budget. This goes against your main claim that you are "the first to optimize decomposition structure directly for a learned, bounded synthesizer’s tractable distribution".

Overall, these works are not necessarily doing exactly what this manuscript proposes. However, the core observation that decomposition quality is not intrinsic to the task but instead related to what is expressible or solvable in practice is a known fact, and incorporating this as a signal (both explicitly and implicitly) has been done before. Furthermore, the program synthesis experimental setup (Deepcoder, Robustfill) is valid but on par with classic program synthesis work, and the methodology (a REINFORCE variant on a Transformer on a DSL) is also valid, but not groundbreaking; thus the methods are not particularly close to current practice to be directly insightful to practitioners.

Therefore, the existence of all these prior works combined with the experimental design choices, in my opinion, weakens substantially the originality and significance of the contribution.

  • [1] Inala et al, Synthesizing Programmatic Policies That Inductively Generalize, 2020
  • [2] Yang et al, Sequence-Based Plan Feasibility Prediction, 2022
  • [3] Wells et al, Learning Feasibility for Task and Motion Planning in Tabletop Environments, 2020
  • [4] Nye et al, Learning to Infer Program Sketches, 2019
  • [5] Lample et al., HyperTree Proof Search for Neural Theorem Proving, 2022

(A concrete way of showing that the manuscript is indeed overstating novelty, is the second sentence in the abstract, which reads "Current approaches train the decomposer to imitate ground-truth (GT) subgoals, implicitly treating decomposition quality as intrinsic to the task". As argued above, this is inaccurate, as many prior works have gone beyond imitating ground-truth subgoals.)

Minor issues:

  1. Paragraph 3 (line 39) presents a motivating example that is never really explained, and is not really fully self-explanatory, so it reads a bit odd so early in the manuscript. Not a deal breaker.
Questions
  1. In my opinion, the significance of the work would increase very substantially if it lead to an increase in capabilities of modern systems (e.g., LLMs) or in contemporary programming tasks (e.g., modern program synthesis benchmarks); this is because the paper would then show that a known fact (as argued above) reproduces on a modern program synthesis system, which is of interest to the community. That is, I would increase my score if results reproduce when using a pretrained LLM on a third, richer domain (e.g., multimodal or modern coding benchmarks).

  2. Would you consider addressing the literature that explicitly considers the performance of a lower level solver/system to learn how to decompose? In particular I would like to understand better your characterization on [4], and would ask that you expand the comparison to this particular work.

  3. Why use SCST to train the policy instead of a simpler (REINFORCE) or more widely known algorithm (PPO, etc)?

Limitations

yes

Final justification

My justification: Reviewers have addressed my main concerns. In my opinion, the work still lacks on originality (the points I raised on my review stand). And the evaluation is still conducted on relatively simple settings, but this does not reduce it's scientific significance now that the application of the methodology to modern stacks has been preliminarily shown (by an experiment that will not finish before the review process ends).

Formatting concerns

no concerns

3 comments
Authors · RebuttalOpenReview ↗
Rebuttal

We truly appreciate the time and effort you put into reviewing our manuscript.

Q1: Generalization Beyond Standard PBE Benchmarks and Transformer Synthesizers

Short answer: We evaluated SAD on three established PBE domains, including LambdaBeam, a recent and challenging list-function benchmark. We initially excluded LLM-based synthesizers to avoid confounding effects from unknown pretraining data. Following the reviewer's suggestion, we additionally evaluated SAD on a new PBE benchmark and with an LLM-based synthesizer.

Rule et al. benchmark: We chose RobustFill, DeepCoder, and LambdaBeam because they are established PBE benchmarks. In particular, LambdaBeam is a recent and substantially more challenging list-function, and has been used in recent evaluations of LLM-based PBE systems e.g., [Li & Ellis, Is Programming by Example Solved by LLMs?, 2024]. Our objective was to study whether solver-aware decomposition improves alignment between a decomposer and its downstream solver in a controlled setting, rather than introduce additional variation from changing the solver architecture. To further evaluate whether our findings extend beyond the original benchmarks, we performed an additional experiment on the list-processing benchmark introduced by Rule et al. [Rule et al., Symbolic metaprogram search improves learning efficiency and explains rule learning in humans, 2024] and recently incorporated into BIG-bench benchmark [Srivastava, et al., Beyond the imitation game: Quantifying and extrapolating the capabilities of language models., 2023]. We evaluate our pretrained LambdaBeam models on the subset of tasks expressible by our DSLs (129 tasks). Despite the domain shift, we observe the same qualitative trend: SAD (42.25 ± 7.13%) outperforms solver-blind training (32.95 ± 3.49%).

LLM synthesizer We did not include LLM synthesizers in the original submission because our primary goal was to isolate the effect of solver-aware decomposition training, rather than evaluate the interaction with a particular solver architecture. Using a domain-trained Transformer decomposer and synthesizer allows us to control the training distribution and attribute improvements directly to the proposed objective. In contrast, experiments with LLMs introduce additional confounding factors. On that note, LLM synthesizers may amplify the mismatch between decomposer and solver because their inductive biases arise from broad pretraining rather than the target DSL. Following the reviewer's suggestion, we replaced the Transformer synthesizer with a frozen Llama-3.1-8B while keeping the decomposer unchanged. Both methods are warm-started from the same supervised decomposer checkpoint. For prompt details, we refer to our response to reviewer j4YW (Q1). The LLM-SAD experiment is still running and will not finish within the rebuttal period because retraining the complete SAD pipeline with an LLM synthesizer is substantially more computationally expensive. Intermediate results after only 25k (of the remaining 450k) training steps already reproduce the central accuracy paradox phenomenon of our paper: higher decomposition accuracy does not necessarily improve downstream synthesis.

  • Solver-blind: Decomp. Acc.: ~66%, Synthesis Acc.: ~13%
  • SAD: Decomp. Acc.: ~36%, Synthesis Acc.: ~12%

Based on our Transformer experiments, we hypothesize that with further training SAD's synthesis accuracy will continue to improve, while the solver-blind baseline will remain approximately constant. We will include the completed LLM experiment in the revised manuscript.

Q2: Characterization of Novelty Relative to Prior Work

Short answer: We agree that our original novelty claim was too broad and appreciate the reviewer for pointing us to related works outside of PBE. We will include them into related work. Our intended claim is not that we are the first to use downstream solver feedback for decomposition learning, but rather that we propose a particular online solver-aware optimization mechanism for training a decomposition policy using a frozen learned synthesizer.

The key distinction is how feedback is used and which model receives it:

  1. Is the feedback computed from the downstream solver's response to the specific prediction produced by the current policy?
  2. Does that feedback directly optimize the generative model producing those predictions? Against this framing, the cited works differ from SAD as follows.

SketchAdapt (Nye et al., 2019). The reviewer is correct that SketchAdapt goes beyond pure GT imitation. SketchAdapt selects training targets using synthesizer-inspired information: candidate sketches are derived from the GT program, and a single sketch is selected based on an analytic estimate of enumeration cost. However, this selection occurs independently of the current sketch generator policy. During training, the generator is optimized to imitate this pre-selected sketch target rather than being updated according to how its own predicted sketches perform under the synthesizer. In contrast, SAD directly optimizes the current decomposition policy using feedback from the frozen synthesizer. For each sampled decomposition, SAD performs an actual synthesizer forward pass and uses the synthesizer's cross-entropy as a dense reward signal. The policy is then updated using SCST by comparing the sampled decomposition against a greedy decomposition under the same frozen synthesizer. Thus, while SketchAdapt uses a solver-informed heuristic to define supervised targets, SAD directly optimizes the decomposer based on the downstream solver's response to the decompositions produced by the current policy. We will revise the paper to clarify this distinction: SketchAdapt aligns generation with a proxy objective derived from estimated search cost, whereas SAD performs online optimization of the decomposition policy using rewards obtained from the actual downstream synthesizer.

Yang et al. (2022) and Wells et al. (2020). use solver feedback to train feasibility predictors for a fixed planner. SAD instead updates the decomposition generator itself using rewards from the frozen synthesizer.

Inala et al. (2020). adapt supervision through teacher-generated trajectories, but do not optimize one learned model against the predictive distribution of another frozen learned model. SAD studies this producer-consumer setting.

Lample et al. (2022). In HyperTree, the learned policy is part of the theorem prover itself: it guides proof search decisions with the goal of improving the solver's ability to find proofs. The search procedure and learned model are therefore components of a single solving system. In contrast, the synthesizer in SAD is trained independently and then frozen, while the decomposer is optimized afterward to produce intermediate representations that better match the fixed synthesizer's inductive biases. The objective is not to improve the solver's search strategy, but to adapt the representation provided to an existing downstream solver through online solver-aware feedback.

Accordingly, we will revise the paper to narrow our novelty claim. Rather than claiming the first use of solver-aware feedback, we will state that SAD contributes an online solver-aware optimization mechanism combining:

  • a frozen learned downstream synthesizer whose predictive distribution defines the reward;
  • a continuous reward derived from the synthesizer's cross-entropy rather than binary success or failure;
  • online evaluation of every decomposition sampled by the current policy; and
  • direct policy-gradient optimization of the decomposition model using that reward. To the best of our knowledge, none of the cited works combine these ingredients.

Finally, we believe our strongest contribution is empirical. Regardless of whether the underlying intuition is viewed as new, none of the cited works demonstrate, in a controlled setting:

  1. the accuracy paradox, where optimizing with downstream solver feedback decreases agreement with GT decompositions while improving synthesis and end-to-end accuracy;
  2. the oracle gap, where learned decompositions solve tasks that a GT decomposition oracle cannot solve under the identical frozen synthesizer and search procedure; or
  3. that these gains arise from generating genuinely different decomposition trajectories rather than reranking existing candidates, as verified by our beam-oracle analysis.

Q3: Why Use SCST?

Short answer: SCST provides a low-variance policy gradient without requiring additional learned components.

Why not vanilla REINFORCE or PPO?
Vanilla REINFORCE relies on raw returns, resulting in high-variance gradient estimates. This is especially problematic early in training, when decomposition quality varies substantially. SCST reduces variance by using the model's own greedy prediction as a self-baseline, without introducing an additional value model. PPO primarily targets long-horizon problems requiring credit assignment and value estimation.. Our setting involves a single decomposition decision per example, with the reward computed directly from the frozen synthesizer. Therefore, PPO's additional value network and optimization machinery do not address a central challenge in our problem and would introduce unnecessary complexity.

Why is SCST particularly appropriate here?
SCST directly compares sampled decompositions against the model's greedy decomposition under the same frozen synthesizer. The resulting advantage measures the relative synthesizability of the decomposition choice itself, which is exactly the quantity SAD aims to optimize.


We will revise the introduction to better motivate the example and explain its relevance before referring to it and hope our updates have brought clarity to the main points. We look forward to continuing the discussion if any further questions remain.

Reviewer gLnb · CommentOpenReview ↗

Thank you for showing applicability to modern settings and for narrowing the scope of the claims and the framing; I find your proposed characterization more accurate; and find that the applicability to modern synthesis stacks increases my original assessment of the significance of the work, however, I also note that this experiment will not conclude by the time the review process ends, so I only treat it as preliminary. I will raise my score to 4.

Authors · CommentOpenReview ↗

Thank you!

Thank you for your detailed review and constructive comments. We appreciate your feedback on the positioning of our work with respect to the related literature and the opportunity to improve the framing and discussion in the manuscript. We also thank you for considering our additional experiments and revised framing in your updated assessment.

Reviewer j4YWOpenReview ↗
Rating
5/6
Confidence
5/5
Quality
3/4
Clarity
3/4
Significance
3/4
Originality
3/4
Contribution type
general
Ethical concerns
NO or VERY MINOR ethics concerns only
Read review
Summary

Previous work uses a divide-and-conquer strategy to solve programming-by-example problems. This paper argues that although the decomposer can decompose input-output pairs into a subgoal, the synthesizer may fail to generate a program to achieve this subgoal. The paper proposed a solver-aware decomposition (SAD) that first trains the synthesizer on the curated subgoal dataset. Then, the decomposer is trained using the ground-truth subgoal and self-critic sequence training, adapting to the fixed synthesizer. In the DeepCoder and Lambdabeam environments, the SAD outperforms the existing baseline, ExeDec.

Strengths and weaknesses

Strength

  1. It is intuitive for a decomposer to generate solvable pieces for the synthesizer.
  2. The author effectively combines the RL to train the decomposer.
  3. The results show that the correct prediction of the ground truth subgoal is not highly related to correct program synthesis. The paper conducts an experiment to show the intuitive result.

Weaknesses

  1. The figures are hard to read, and the colors look too similar.
  2. The LLM baselines are excluded, but your method is model agnostic. You can use LLM to train on the decomposition objective to align the distribution shift.
Questions
  1. Although LLM may not know the DSL, some of the SOTA are using LLM in their training. To strengthen your work, it is better to compare it with these baselines. Using LLM to train on a decompositional learning objective may be necessary.
  2. What is the difference between solver-blind and ExeDec?
  3. What is the effectiveness of the decomposer with other off-the-shelf solvers? For example, can the decomposer learn from the traditional search-based solver and show improvement on the search-based solver?
Limitations

Yes

Final justification

The main concern before the rebuttal section is the lack of state-of-the-art LLM-related baselines [1]. The authors do an additional experiment to show the performance of the LLM-based method, including three LLM variants. The results show the LLM-based method performs worse on the dataset. My primary concern has been addressed; I will adjust the rating from 4 to 5.

[1] Li et al. Is programming by example solved by LLMs? 2024

Formatting concerns

No

3 comments
Authors · RebuttalOpenReview ↗
Rebuttal

We thank the reviewer for their constructive feedback and insightful suggestions.

Q1. Why Were LLM-Based Baselines Not Included?

Short answer: Our original submission focuses on isolating the effect of solver-aware decomposition learning rather than comparing synthesizer architectures. In response to the reviewer's suggestion, we additionally evaluated LLM-based synthesizers and an LLM-based solver-blind decomposition baseline.

Why were LLM baselines not included originally?
We agree that LLM-based approaches are an important and rapidly developing direction for program synthesis. Our work, however, studies a different question: should a decomposer imitate GT decomposition trajectories, or should it adapt to the preferences of the downstream solver? To answer this question, we intentionally use a controlled setting where both the decomposer and synthesizer are trained on the same DSL and data distribution, allowing us to isolate the effect of solver-aware decomposition. Evaluating with frontier LLMs is also challenging because their pretraining data is unknown, making it difficult to rigorously control for contamination and extrapolation. This is especially crucial for OOD categories like length generalization.

Additional experiments.
Following the reviewer's suggestion, we conducted additional experiments using three open-weight, off-the-shelf LLMs (Llama-3.1-8B, Qwen2.5-14B-Instruct, Qwen2.5-Code-14B-Instruct). In addition to direct synthesis (no-decomposition baseline), we evaluated an LLM-version of the solver-blind/ExeDec baseline that uses decomposition with the same LLM synthesizer.

Following ExeDec, we evaluated on the 200 DeepCoder LLM benchmark, which is substantially easier than the original 1,000-task benchmark used in our Transformer experiments. Due to computational constraints and lack of control over the pre-training data distribution, we evaluate strictly within the training distribution and leave length generalization out of scope. Each LLM receives:

  • the I/O specification,
  • the list of DSL primitives, and
  • four few-shot demonstrations.

To make the task as favorable as possible for the LLMs, we use ExeDec's Pythonic DeepCoder DSL, where DSL primitives are translated into equivalent Python one-liners (except Scanl1). For example: x0 = INPUT | x1 = Map (*2) x0 becomes def program(x0): x1 = [x * 2 for x in x0] return x1

Method Llama-3.1-8B Qwen2.5-14B-Instruct Qwen2.5-Code-14B-Instruct
Direct LLM synthesis 5/200 14/200 15/200
LLM-ExeDec (solver-blind) 15/200 12/200 20/200

These results show that off-the-shelf LLM synthesizers perform substantially worse than the Transformer models used in our main experiments, despite being evaluated in the more LLM-friendly Pythonic DSL representation. Consistent with prior decomposition work, supervised decomposition generally improves performance over direct synthesis, as evidenced by the gains of LLM-ExeDec over the no-decomposition baseline.

More broadly, we believe the motivation for solver-aware decomposition becomes even stronger in the LLM setting. In our controlled experiments, both the decomposer and synthesizer are trained on the same DSL and domain, yet we already observe a mismatch between GT decompositions and the decompositions preferred by the synthesizer. This mismatch is likely to be even larger for LLM-based synthesizers, whose inductive biases are shaped by large-scale pretraining on broad, diverse corpora rather than the target DSL or application domain. Consequently, a decomposer trained only to imitate GT decompositions is even less likely to produce intermediate representations aligned with such a synthesizer. Solver-aware training provides a principled mechanism for adapting decomposition policies to the actual downstream solver, regardless of how those solver preferences were acquired.

We are currently running a full LLM-SAD experiment (see our response to reviewer gLnb). Retraining the complete SAD pipeline with LLM synthesizers is substantially more computationally demanding than our Transformer setting, and SAD additionally requires two synthesizer forward passes (greedy and sampled) per training step to compute the SCST reward. As a result, we cannot complete a rigorous LLM-SAD study within the rebuttal period, but we believe this is a highly promising direction for future work.

Q2. What Is the Difference Between Solver-Blind and ExeDec?

Short answer: The solver-blind baseline and ExeDec differ only in the synthesizer they use. Both methods train the decomposer using standard supervised GT decomposition objectives.

How do the synthesizers differ?
ExeDec uses a synthesizer trained to predict the next subprogram given a GT subtask, and therefore learns to implement a decomposition step that has already been specified. In contrast, the synthesizer used by SAD (and the solver-blind baseline) is trained to predict the next subprogram given the full task specification, requiring it to learn both which subtask should be executed next and how to implement it.

We use the full-task-conditioned synthesizer in SAD because solver-aware training requires evaluating decompositions that may deviate from the GT trajectory. A synthesizer conditioned only on GT subtasks would not be able to provide meaningful feedback on such alternative decompositions.

Why introduce the solver-blind baseline?
The solver-blind baseline accounts for this synthesizer difference by using the same full-task-conditioned synthesizer as SAD while training the decomposer only with standard supervised GT decomposition objectives. Consequently, the comparison between SAD and the solver-blind baseline isolates the effect of the proposed solver-aware decomposition training while controlling for the synthesizer.

Q3. Can SAD Learn from Traditional Search-Based Solvers?

Short answer: Yes, but this would constitute a different solver-aware training setup and would overlap with prior approaches such as SketchAdapt.

If the learned synthesizer in SAD were replaced with a traditional search-based solver and search success/failure were used as the reward, the resulting framework would become closely related to prior work such as SketchAdapt. This highlights an important distinction: SAD is not simply about using any downstream solver as a black-box evaluator; its contribution is the use of a frozen learned synthesizer's predictive distribution as a dense reward for directly optimizing the decomposition policy.

A traditional search-based solver could provide alternative reward signals, such as synthesis success, timeout, or search cost. However, these signals are substantially sparser than the token- or program-level likelihood provided by a learned synthesizer. Consequently, they cannot distinguish between decompositions that all eventually succeed but differ in how naturally they align with the solver's learned distribution.

The contribution of SAD is therefore the producer-consumer optimization mechanism, where a frozen learned synthesizer provides a continuous reward that directly trains the decomposition model to generate intermediate representations aligned with the synthesizer's inductive biases. Extending this framework to other solver types is an interesting direction for future work.

Minor Issues: Figure Readability

We will revise the figures in the camera-ready version by increasing the contrast between colors, improving readability, and ensuring that all plots remain distinguishable in both color and grayscale.


We trust our responses have addressed your primary concerns, and we remain fully available to answer any remaining questions during the discussion period.

Reviewer j4YW · CommentOpenReview ↗

The LLM baselines

Thanks for your hard work on the additional baselines. The results of the three new LLMs have addressed my concerns. I will increase my score from 4 to 5.

Authors · CommentOpenReview ↗

Thank you!

Thank you for your review and your constructive feedback. We appreciate your suggestion to include additional LLM baselines, which helped strengthen the empirical evaluation of the paper. We are grateful that you took the time to review the additional results and reconsider your assessment.

Reviewer xSGKOpenReview ↗
Rating
4/6
Confidence
2/5
Quality
3/4
Clarity
3/4
Significance
3/4
Originality
3/4
Contribution type
general
Ethical concerns
NO or VERY MINOR ethics concerns only
Read review
Summary

This paper targets the Programming-by-example field, where typical methods break down the solution process as a multi-step application of a "DecompositionModel," and a "Synthesizer." The DecompositionModel produces the next sub-goal target and Synthesizer synthesizes a sub-program to achieve that sub-goal, given then inputs and current program state.

This paper's hypothesis: Current DecompositionModels are trained to produce the next ground-truth subtask. This can be improved if they, instead, are also trained to produce subtasks that are more robustly synthesizable by the Synthesizer.

To this end, this paper introduces a new SCST-inspired loss-term that penalizes/encourages the DecompositionModel to produce sub-goals that are more robustly synthesized into sub-programs by a Synthesizer. This gives the whole system a "Synthesizer/solver aware."

Strengths and weaknesses

Strengths:

  • S1. The paper does a good job of setting up the problem and hypothesis.
  • S2. The RobustFill ablation to show that the extra loss term does not effect final performance when only one program trajectory is allowed is a strong ablation and shows that the method does not hurt in some trivial situations.
  • S3. Presence of statistical significance tests.
  • S4. Section D presents quite insightful expositions.

Weaknesses:

  • See questions.
Questions
  • App C.1 reveals that the synthesizers are trained differently between ExeDec and SAD. ExeDec's synthesizer is conditioned on GT subtask during training, while the synthesizer in SAD/Solver-Agnostic is conditioned on full task specification. I'm unsure if Section 6 has accounted for this discrepancy in the instantiation of these methods.

  • Since one of the hypothesis of the paper is that we should allow program trajectories that are different from GT program trajectories, but where our synthesizers operate better/more robustly (I hope I am putting this correctly.). However, the "Advantage" term AA introduced in this paper, already has the component of the GT subprogram (p*_t) in it. Isn't the L_RL term then somewhat also going to push the DecompositionModel to produce the GT subtask, since that would be the one that corresponds top p*_t? Although section D.3 shows that the RL loss term is not sufficient to push program trajectories towards GT, the presence if the p*_t terms in L_RL remains mysterious to me.

Limitations

Yes

Formatting concerns

None

3 comments
Authors · RebuttalOpenReview ↗
Rebuttal

We thank the reviewer for the thoughtful feedback and suggestions.

Q1. Does Section 6 Control for the Different Synthesizers?

Short answer: Yes. Section 6 explicitly accounts for this discrepancy. The difference in synthesizer training between ExeDec and SAD is intentional, and our main conclusions are drawn from a controlled comparison that removes this confound.

Why do ExeDec and SAD use different synthesizers?
SAD differs from the original ExeDec in two ways:

  1. It uses a synthesizer trained on the full task specification rather than GT subtasks.
  2. It trains the decomposer using solver-aware SCST instead of GT supervision alone. The synthesizer is changed because, during solver-aware training, it must evaluate decompositions that may deviate substantially from the GT trajectory. A synthesizer conditioned only on GT subtasks would not be able to provide meaningful feedback on such alternative decompositions.

How do we control for this difference?
To isolate the contribution of solver-aware decomposition training, we introduce the solver-blind baseline, which uses the same synthesizer as SAD (conditioned on the full task specification) but trains the decomposer using only standard GT supervision. Consequently, the solver-blind baseline is ExeDec with the same synthesizer used in SAD and thus differs only in the decomposer training objective from SAD, allowing us to isolate the effect of solver-aware SCST while controlling for the synthesizer.

We additionally report results for the original ExeDec configuration for completeness and to relate our setting back to prior work, but the conclusions in Section 6 are based primarily on the controlled comparison between SAD and the solver-blind baseline. We will clarify this rationale in Section 5.

Q2. Does Using the GT Program in the Reward Encourage GT Decompositions?

Short answer: No. Using the GT program p∗p^* does not encourage the decomposer to imitate the GT decomposition. Our hypothesis is about learning better decomposition trajectories, not about optimizing for alternative programs.

Hypothesis vs. empirical finding.
Our hypothesis is that the GT decomposition trajectory should not be the sole optimization target. Instead, the decomposer should discover decompositions that are easier for the synthesizer to solve, even if they differ from the GT decomposition trajectory. Importantly, a decomposition that deviates from the GT trajectory can still lead the synthesizer to recover the same GT semantics--the reward favors such decompositions whenever they are easier for the synthesizer to solve. An empirical consequence of this optimization is that SAD naturally discovers and executes more non-GT programs than the solver-blind baseline. This is a finding of the method rather than the objective we optimize. As discussed in the conclusion, explicitly exploiting alternative programs as supervision is an interesting direction for future work, but is beyond the scope of the current paper.

Why is the reward computed against the GT program?
During training, we require a unique and verifiable target for evaluating the synthesizer's prediction. The GT program p∗p^* provides this target by specifying the correct semantics to be realized. While canonical alternative programs may exist, identifying them during training would require determining semantic equivalence between arbitrary programs, which is computationally infeasible in our setting. Consequently, the GT program provides the only practical supervision target.

Why doesn't this bias the decomposer toward GT trajectories?
The reward asks: given a proposed decomposition, how well can the frozen synthesizer recover the correct program? Thus, p∗p^* specifies what should be synthesized, while the decomposition determines how easy synthesis is for the solver model.

SCST optimizes the advantage A=Lgreedy−LsampledA=L_{\text{greedy}}-L_{\text{sampled}} rather than the absolute loss. When both decompositions lead to the same synthesized program, the common target p∗p^* does not distinguish them semantically; the advantage is primarily determined by how confidently the synthesizer can recover that program under each decomposition. The target only becomes influential when the greedy and sampled decompositions induce different synthesized programs.

Empirical evidence.
If the dependence on p∗p^* were primarily driving the policy toward GT decomposition trajectories, we would expect SAD to increase decomposition accuracy. Instead, we observe the opposite: SAD consistently reduces decomposition accuracy while improving synthesis and end-to-end accuracy (the accuracy paradox). Furthermore, Appendix D.5 shows that SAD learns a qualitatively different primitive usage distribution from both the GT decomposition oracle and the solver-blind baseline. These findings indicate that the dominant optimization signal is the synthesizer's preference for more synthesizable decompositions rather than imitation of GT trajectories.

We will expand the discussion in Appendix D.5 to clarify this intuition.


We hope our responses have clarified the main points, and we would be happy to address any remaining questions or provide further clarification during the remainder of the discussion period.

Reviewer xSGK · CommentOpenReview ↗

I thank the authors for their clear response! I will maintain my score at 4.

Authors · CommentOpenReview ↗

Thank you!

Thank you for your review and for your thoughtful questions. We appreciate the time you took to carefully evaluate our work and the opportunity to clarify several methodological aspects in the rebuttal.

From OpenReview, CC BY 4.0. Authors as signed there; shown unedited.

Missing a submission?

Loading the discussion…