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

*Janis Zenkner, Tobias Sesterhenn, Tim Grams, Christian Bartelt*

[NeurIPS page](https://neurips.cc/virtual/2026/poster/152502) · [Open on the map](../papers.html#p152502)

Category: [LLM Agents, Evals & Benchmarks](../pcat/17.md) › [Tool-Integrated Reasoning](../pgroup/257.md) · Type: new method · Keywords: Programming-by-Example, Decomposition, Solver-Aware, Program Synthesis, Subgoal Optimization

## Summary
Solver-Aware Decomposition (SAD) is a training framework that aligns decomposition with a frozen synthesizer’s feedback to produce subgoals that are tractable for bounded solvers, improving synthesis accuracy.

## Explained to a 5-year-old
In programming, a computer program can be built by breaking a big task into smaller steps. Usually people tell the computer what those steps should be, but sometimes those steps are too hard for the computer to finish. The new idea is to teach the step-picker to look at how well the computer can solve each step and choose easier ones. By picking steps that the computer can actually handle, the whole program gets finished more often. This helps the computer solve problems that were previously impossible even when the steps looked correct.

## Explained to a 5-year-old, longer
Imagine you want to draw a picture of a house using a computer program. The program can be split into many small actions, like drawing walls, a roof, and a door. Usually someone tells the program which actions to do, based on what they think is best. But sometimes those actions are too complicated for the computer to finish in a reasonable time. The computer has its own way of trying things, and it works better with some actions than others. The new idea is to teach the person who decides the actions to also look at how the computer feels about each action. By checking the computer's difficulty, the actions can be chosen so they are easier for the computer to solve. This makes the whole process smoother because the computer doesn't get stuck on hard steps. As a result, more houses (or other tasks) can be completed successfully. The method also helps solve problems that were previously impossible even when the steps seemed correct. It shows that the best way to break a problem depends on the tool you are using. Overall, this approach makes programming tools smarter and more reliable.

## For a technical reader
The paper addresses a limitation in decomposition-based program synthesis where decomposers are trained to mimic human-annotated subgoals. These subgoals may be logically correct but too difficult for the bounded solver to explore efficiently. The authors introduce a training scheme that keeps the supervised signal on subgoals while adding a feedback loop from a frozen synthesizer, rewarding subgoals that reduce the synthesizer’s loss. This solver-aware training leads to decompositions that trade off exact alignment with human subgoals for practical solvability, improving end-to-end synthesis accuracy. Empirically, the approach consistently outperforms baseline decomposers across two domains and solves cases where a ground-truth subgoal oracle fails.

## Problem
Decomposition-based Programming-by-Example often trains decomposers to imitate ground-truth subgoals, but these subgoals may be intractable for the solver due to its inductive biases, leading to poor synthesis performance despite high agreement with ground truth.

## Method
The approach retains supervised training on ground-truth subgoals as a structural scaffold while additionally optimizing the decomposer using direct feedback from a frozen synthesizer; subgoals are rewarded based on the synthesizer’s loss on the target program, encouraging decompositions that are tractable for the solver.

## Results
The approach shows consistent gains in synthesis and end-to-end task accuracy across two PBE domains and solves tasks that a ground-truth decomposition oracle cannot, demonstrating that decomposition quality is solver-relative.

## Contributions
The paper identifies the limitation of ground-truth subgoal decomposition for bounded solvers and proposes a training framework that incorporates synthesizer feedback to learn solver-aware decompositions, showing that this yields better synthesis performance and reveals the solver-relative nature of decomposition quality.

This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. [Suggest a correction](../feedback/?on=p/152502)
