Familiar Operations, Unseen Structures: How Task Compositions Affect Task Generalization?
Anonymous authors
ICLR 2027
Abstract. Large language models are trained on data from various tasks and can generalize to unseen test tasks by reusing knowledge from training. Different training tasks demonstrate different ways to compose the knowledge pieces, and thus are central in shaping both the knowledge pieces a model acquires and the ways it learns to reuse them. Yet how different compositions in training affect generalization to unseen tasks remains elusive. We thus introduce schema-based data composition, a methodology that constructs structurally diverse tasks from a small library of reusable operations (i.e., primitives) according to predefined composition structures (i.e., schemas). A schema specifies dependencies and output assembly independently of the particular primitives and inputs; executing an instantiated schema provides its reference output. This representation allows us to study how the structural content of training data shapes generalization. Our empirical study yields three key insights. (1) Topology shapes learnability. Schemas of the same size can differ substantially in difficulty, and the tested primitive-sampling policies do not extend the observed direct-training frontier. (2) Structural complementarity enables transfer. Training on complementary forms of depth and branching enables transfer to unseen structures. It can even outperform direct training on those structures with the same prompt budget per run. (3) Source learnability matters. We observe stronger transfer when complementary training schemas continue to provide learning signals. Including intermediate schemas can also help the model begin learning from harder schemas. These findings identify computational structure as a distinct dimension of training-data design for generalization to new tasks.
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 paperedit · history
ICLR 2027
Under review · 3 reviews · OpenReview
Updated 25 Nov 2026, 10:37 UTC.
- Rating
- 2/4
- Confidence
- 3/4
- Soundness
- 3/3
- Presentation
- 2/3
- Informativeness
- 2/3
Read review
Summary
The authors study compositional generalization in the setting of an artificial task, and analyze how different compositional structures seen during training can contribute to the model’s generalization performance.
Strengths
I think the schema model is interesting, and a nice way to study compositional generalization.
Figures 5 and 9 are particularly interesting, and shed light on the out-of-distribution generalization abilities of transformers.
Weaknesses
While the schema model is interesting, understanding the notation takes more work than it should, particularly because of the mixed use of the diagrams and the G[*] notation. If possible, I would suggest reworking the notation to just use the diagrams.
I think the most interesting results in the paper are a bit buried and take too long to get to (Figures 5, 9). Most of the earlier figures serve just to validate the toy task, and could be de-emphasized.
It is still not clear to me when compositional generalization is possible, and whether it can be predicted just from schema combination. Are there graph operations on schema that would explain when generalization is possible and when it fails?
Questions for the authors
I think the authors would do well to interpret more of their results in the context of the schema model – what do these simple rules reveal about the structure of compositional generalization?
How does the schema model relate to prior models of compositional generalization?
Could the authors expand the discussion of the results presented?
2 comments
Response to Reviewer fPYL (Part 2/2)
Q2: Discussion with Prior Models of Compositional Generalization
Our two-stage setup fixes Stage-1 single-primitive training and varies only the source graph set in RL, letting us test structural transfer directly against earlier compositional setups (references below):
| Line of Work | Structure | Training Setup | Relation to Our Schema Model |
|---|---|---|---|
| Grammar & Diverse SFT | Parse trees [1] & CFQ [2] | Supervised SFT [3] | Maps graph recombination to systematicity and scaling to productivity [4]; CoT SFT scores 18.4% vs. GRPO 45.2%. |
| 1D Sequential Chains | 1D chains | 2-step [5] or chain RL [6] | Extends 1D chains to 2D and merge DAGs; our 7-chain control (3.1%) does not separate branches. |
| Expression-Tree RL | Countdown trees | Tree-subset RL [7] | Separates chaining, branching, and merge schemas across 29 grid and spine sets plus . |
Unlike semantic parsing in SCAN [1] and CFQ [2] or supervised SFT in Oren et al. [3], we train single primitives in Stage 1 first and vary under on-policy RL. In the terms of Hupkes et al. [4], combining chaining, branching, and merge schemas ( and ) tests systematicity, and scaling from to calls tests productivity. Varying primitive weights also changes primitive difficulty independently of graph structure. While Yuan et al. [5], Xu et al. [6], and Park et al. [7] study 1D chains or Countdown trees without separating depth, branching, and merging, our schema split examines all three axes.
Q3: Regime Synthesis on Controlled Schemas and Real-World Tool Planning
Our controlled and real-world results follow a clear split. Primitive difficulty drives accuracy inside the direct-training frontier, while training graph structure drives zero-shot transfer beyond it.
Across the ten inside-the-frontier schemas spanning –, sampling Unimodal rather than Barbell primitives improves accuracy by +10.2 points on average and up to +14.2 points per schema. Beyond the frontier, varying primitive weights across all seven policies shifts accuracy relative to Uniform by at most 1.2 points and brings no extra schemas above 4%.
Separating primitive slips from routing errors explains 's advantage over SFT and target-grid RL (Global Response Q1). Joint training on cuts routing errors to 13.6% (vs. 37.6%–60.1%) and reaches 86.3% of our 52.4% oracle ceiling (92.9% with warm-up), while adding lifts unseen merge DAGs to 43.8% (Global Response Q2). The same pattern holds when prompts give only a natural-language request and a flat tool list. Across eight controlled tool catalogues, gains +2.4 to +18.2 points on the nine unseen target grids. On the frozen suites in Global Response Q3, our checkpoints beat direct training on every in-domain official suite (+8.3 on FuncBG, +8.1 on NESTFUL, +6.1 on TaskB). They also raise the 8-suite mean to 32.6%–33.7%, vs. 31.5%–31.9% for direct training.
[1] B. M. Lake and M. Baroni. Generalization without Systematicity: On the Compositional Skills of Sequence-to-Sequence Recurrent Networks. ICML'18.
[2] D. Keysers et al. Measuring Compositional Generalization: A Comprehensive Method on Realistic Data. ICLR'20.
[3] I. Oren et al. Finding Needles in a Haystack: Sampling Structurally-Diverse Training Sets from Synthetic Data for Compositional Generalization. EMNLP'21.
[4] D. Hupkes et al. Compositionality Decomposed: How Do Neural Networks Generalise? JAIR'20.
[5] L. Yuan et al. From and to : LLMs Learn New Skills in RL by Composing Old Ones. ICLR'26.
[6] X. Xu et al. Composition-RL: Compose Your Verifiable Prompts for Reinforcement Learning of Large Language Models. arXiv'26.
[7] S. Park et al. How Does RL Post-Training Induce Skill Composition? A Case Study on Countdown. arXiv'25.
- Rating
- 2/4
- Confidence
- 2/4
- Soundness
- 3/3
- Presentation
- 3/3
- Informativeness
- 2/3
Read review
Summary
The paper studies which task compositions a model should be trained on to generalize to tasks with unseen structures. Tasks are built from 25 string operations arranged into parallel branches of operation chains. After learning single operations via SFT, Llama-3.1-8B is trained with GRPO on selected structures. Training jointly on chains and parallel single-operation tasks transfers to unseen structures combining depth and branching, outperforming direct training on those structures (45.2% vs. 9.5%). Results are validated on tool-planning tasks built from eight tool-use benchmarks.
Strengths
The paper asks a clear question and studies it with a well-controlled design, varying only the structure of the training data while holding everything else fixed. The finding that mixing simpler, complementary structures can outperform direct training on harder ones is practically useful, and demonstrates it with nice figures.
Weaknesses
The task structure is given explicitly to the model (the full program in the prompt), so “generalizing to unseen structures” means executing a program of a new shape. The structures are also narrow (independent chains concatenated together), and the held-out targets lie within the depth and branch ranges already seen in training. Given this, it is fairly intuitive at a high level that training on chains and parallel branches transfers to structures combining both, which makes the result less surprising from this perspective.
Even if one views the held-out structures as out-of-distribution, the paper does not explain why mixing parallel and non-parallel structures works. The controls identify which properties of the training set matter (covering both depth and branching, and sources remaining learnable), but not what the model actually learns from them, and the activation analysis only shows that training structures become learnable before held-out accuracy improves. Likewise, the learning-signal account explains why direct training on hard structures fails, but not why training on other structures yields accuracy on held-out targets that receive no training signal at all. For instance, the bottleneck may lie in tracking many intermediate results rather than in composition itself, with branching structures teaching the former and chains the latter; an error analysis on the held-out structures (e.g., which branches fail, or whether errors grow with depth or width) could distinguish such explanations. The current results therefore support a very narrow finding, and it is not clear what the general scientific lesson is.
Questions for the authors
N/A
4 comments
Response to Reviewer YTM8 (Part 1/2)
Thank you for the positive comments on our experimental design, figures, and presentation. Below we address each question.
W1: Explicit Programs vs. Implicit Structure Inference in Real-World Tool Planning
In synthetic string tasks, prompts include main_solution(x) so each node fixes one target operation. Across all eight controlled tool-planning catalogues, prompts omit executable code and graph descriptions, giving only a natural-language request and a flat tool list.
For example, suppose a user asks for the cheapest nonstop Paris-to-Berlin flight and the cheapest refundable Berlin hotel. From that request alone, the model must infer two 3-step branches, pick the right search, filter, and ranking tools, and link intermediate bindings ($v1.options through $v3.id | $v6.id) without an explicit program. Joint training on raises accuracy on unseen schemas from 0.10%–0.24% under direct training to 15.4% on FuncBenchGen and 12.9% on API-Bank, gaining +2.4 to +18.2 points across the nine unseen grids in all eight tool catalogues.
As detailed in Global Response Q3, zero-shot performance across five unmodified official suites and three external suites also beats every in-domain direct-training baseline and raises the 8-suite average to 32.6%–33.7% (vs. 31.5%–31.9% for direct training, 31.2% for atomic tool SFT, and 29.7% for string-schema RL).
W2a: Scale Extrapolation Within and Beyond the Grid
Within , training on ( calls) already tests up to extrapolation in operation count on (). As reported in Global Response Q1, reaches 83.9% local step accuracy on and 86.4% route-free execution across all nine unseen grids. Its 45.2% exact match (48.7% with warm-up) beats CoT SFT (18.4%), Direct-Answer SFT (3.8%), target-grid RL baselines (9.5%–31.4%), and our 7-chain control (3.1%).
Beyond uniform , reaches 47.6% (50.8% with CoT SFT warm-up) vs. 10.4% direct across six unseen unequal-depth schemas (, , , , , ). Unequal-depth source sets – also bring 16 to 17 of 20 uniform schemas above 4%. On the 5-branch schema , reaches 6% and spine reaches 11%, vs. 0.0% under direct training.
W2b: Non-Parallel Mid-Computation Merge Topologies
Thank you for suggesting a direct evaluation on mid-computation merge topologies, which we added to Sections 5.4–5.5 and Appendix B.6 (Table 13). All merge runs start from a shared Stage-1 checkpoint with five added binary string primitives and index from the binary merge step onward. We tested six unseen merge DAGs across Diamonds and (), Funnels and , and Cross-Linked DAGs and merging step 1 of branch into step 2 of branch (). In the Global Response Q2 table, doubles mean accuracy over direct training (19.6% vs. 8.9%). Adding the 3-node merge schema raises mean accuracy to 43.8% (46.9% with warm-up), reaching 35.1% vs. 0.0% zero-shot on 4-branch funnels .
Response to Reviewer YTM8 (Part 2/2)
W3: What Mixing Parallel and Sequential Schemas Teaches and Step-Level Error Analysis
We agree with this intuition and added a node-by-node analysis across all 16 operations of in Section 5.5 (Figures 8–9a and Table 12). Below, we report local per-step accuracy by branch and depth on in % (9-grid accuracy, route-free rates, and routing errors appear in Global Response Q1):
| Stage-2 Method | Mean | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| : Depth Axis | 88.2 | 19.4 | 6.1 | 2.3 | 34.6 | 29.8 | 27.1 | 24.5 | 29.0% |
| : Branch Axis | 30.1 | 29.4 | 28.8 | 28.1 | 91.2 | 18.4 | 5.0 | 1.8 | 29.1% |
| CoT SFT on | 74.5 | 68.2 | 59.4 | 49.1 | 88.4 | 69.2 | 54.8 | 38.8 | 62.8% |
| GRPO on , Ours | 86.4 | 84.9 | 83.1 | 81.2 | 93.6 | 87.2 | 81.5 | 73.3 | 83.9% |
The two single-axis runs fail in opposite ways. Training on alone keeps 88.2% step accuracy along branch 1 with 4.1% within-branch resets, but drops to 19.4%, 6.1%, and 2.3% on branches . Its traces carry branch 1's last value (such as t3 on ) into branch 2 instead of resetting to x, giving 64.8% cross-branch leaks. In contrast, training on alone reaches 91.2% across all four branch roots at with 5.3% cross-branch leaks, but drops to 18.4%, 5.0%, and 1.8% across as deeper calls reset to x, giving 76.4% within-branch resets.
Joint training on generalizes zero-shot because one shared policy prevents both failure modes at once. Carrying the previous branch forward fails on all three multi-branch schemas in , while resetting deeper calls to x fails on all three multi-step chains in . As a result, the policy keeps both step-to-step propagation and branch-root resetting on unseen grids (83.9% step accuracy and 86.4% route-free execution).
While the premise of this paper is promising, to be frank, the style of writing in the paper and the rebuttal is incredibly detail-oriented which makes this a bit hard to read and engage with. There are confusing details such as "oracle ceiling"; what is that and why is it relevant? One concern I have is how this work distinguish itself from existing works such as https://arxiv.org/pdf/2512.01775 https://arxiv.org/pdf/2509.25123 https://arxiv.org/pdf/2609.19465 https://arxiv.org/pdf/2505.23683.
Such clarifications and writing improvements would make this paper significantly easier to read and engage with.
Thank you for your constructive feedback! In our previous response, we aimed to provide complete experimental details to be thorough; below, we step back to highlight the high-level intuition, clarify why the oracle ceiling is necessary, and distinguish our work from the four papers you mentioned.
Q1. High-level summary of our core idea
In summary we ask a simple question: once a model already knows a set of basic operations, which training task structures best help it compose those operations in an unseen way under RL? Training directly on complex multi-branch tasks often collapses to 9.5% accuracy because sparse rewards rarely produce successful rollouts. Instead, we show that training jointly on two simple, learnable structures—pure chains (which teach carrying a value from one step to the next) and pure parallel branches enables zero-shot transfer to unseen 2D tasks combining both, reaching 45.2% accuracy under the same prompt budget.
Q2. "oracle ceiling" and why it is necessary
Each unseen 2D test task executes 4 to 16 individual string operations, and any single slip makes the final exact match wrong. Because individual operations are not 100% accurate on their own, small single-step errors naturally compound across 4 to 16 steps. The oracle ceiling measures the exact-match accuracy the model would achieve if routing between steps were 100% error-free, so even a model with perfect structural generalization caps out at 52.4%, not 100%.
This reference is necessary to separate structural composition errors from compounding single-step operation slips. Without it, 45.2% raw accuracy can look modest on its own; relative to the 52.4% ceiling, however, our model actually reaches 86.3% of the achievable upper bound (and 92.9% with a brief SFT warm-up).
This directly confirms that the model has largely mastered composing the unseen structures, and most remaining errors are single-operation slips rather than routing failures. In the final version, we will include this intuitive one-sentence explanation right where the oracle ceiling first appears, along with its exact calculation protocol in Appendix B.5.
Q3. How this work differs from the four cited papers
All four studies investigate compositional learning, whereas our paper isolates multi-dimensional task topology (depth, parallel branching, and merging) as an explicit training-data design axis under RL:
- He et al. [1] compare RL on individual atomic steps versus complete composed tasks (including branching-and-merging tasks), showing that practicing single steps transfers poorly to whole tasks while training on whole tasks transfers back to steps. We address the harder regime where training directly on the complete target task also fails under RL, and ask which combination of simpler multi-step structures enables zero-shot transfer to a different, unseen target structure.
- Park et al. [2] (we cited in Section 1 and Appendix A) study Countdown puzzles where a model searches for an arithmetic expression tree to reach a target number, and analyze which tree shapes are easier or harder to learn. We decouple task topology from domain semantics so we can systematically control which structures appear in training, diagnose the opposite routing errors caused by depth-only versus branch-only training, and validate the same structural principle on natural-language tool planning.
- Yuan et al. [3] (we cited in Sections 1 and 3) show that RL on 2-step sequential compositions generalizes to deeper 1D chains and across tasks. We build on their 25 string operations as a controlled base and move beyond 1D chains to multi-branch and merging topologies, showing that longer chains alone fail on 2D tasks unless paired with parallel branches.
- Wang et al. [4] provide a theoretical analysis of supervised gradient descent on transformers learning 1D permutation chains, proving when mixing shorter and longer examples (easy-to-hard data) makes a long chain learnable. We study RL post-training of pretrained LLMs on unseen 2D branching and merge topologies that never appear in training, and show that combining orthogonal simple structures outperforms even an easy-to-hard curriculum trained directly on the targets.
We appreciate your helpful suggestions and hope these clarifications make our contribution and positioning clear.
[1] Y. He et al. Compositional Reasoning in Language Models under Reinforcement Learning Post-Training. NeurIPS'26 (arXiv:2609.19465).
[2] S. Park et al. How Does RL Post-Training Induce Skill Composition? A Case Study on Countdown. NeurIPS'26 (arXiv:2512.01775).
[3] L. Yuan et al. From and to : LLMs Learn New Skills in RL by Composing Old Ones. ICLR'26 (arXiv:2509.25123).
[4] Z. Wang et al. Learning Compositional Functions with Transformers from Easy-to-Hard Data. COLT'25 (arXiv:2505.23683).
- Rating
- 3/4(+1)
- Confidence
- 3/4
- Soundness
- 3/3
- Presentation
- 2/3
- Informativeness
- 2/3
Read review
Summary
The paper studies how the choice of training-task structures during RL post-training affects compositional generalization in LLMs.
The authors first use SFT to teach a model individual primitive operations, then apply GRPO to train on different compositions of these operations, including sequential chains and parallel branches.
Their main finding is that jointly training on chains and branches improves generalization to unseen structures combining both, achieving 45.2% accuracy compared to 9.5% when training directly on the target structures.
They attribute this improvement partly to the sparse-reward limitations of GRPO, as simpler and complementary tasks provide more informative learning signals.
They further show that intermediate-difficulty schemas can help harder tasks become trainable. Similar trends are observed on synthetically constructed tool-use tasks derived from eight existing benchmarks.
Strengths
1. Strong empirical evidence for the benefit of complementary training structures under GRPO:
The paper shows that jointly training on chains and parallel branches during GRPO substantially improves generalization to unseen compositions (45.2% vs. 9.5% for direct GRPO training). This is interesting because the model never encounters these combined structures during training.
2. Interesting finding on the role of intermediate compositions in RL training: The authors show that including intermediate-complexity schemas can substantially improve learning on harder compositions. Their controlled comparisons suggest that the choice and progression of training structures matter for enabling effective GRPO training, providing useful insights.
Weaknesses
1. Unclear positioning and novelty of the main contributions
The paper poses an interesting research question, but I found its main message somewhat scattered and insufficiently emphasized. Several stated contributions overlap with prior work: Yuan et al. (2025) study learning compositions of known primitives through RL, Park et al. (2025) investigate topology-dependent learnability and generalization to unseen structures, and Oren et al. (2021) study how structural diversity in synthetic training data improves compositional generalization.
The main novelty appears to be showing how jointly training on chains and parallel branches during GRPO improves generalization to unseen structures. I think the authors should foreground this finding and more clearly explain what new insight it provides beyond prior work.
References
- Yuan, L., et al. (2025). From f(x) and g(x) to f(g(x)): LLMs Learn New Skills in RL by Composing Old Ones. ICLR 2026.
- Park, S., Kaur, S., & Arora, S. (2025). How Does RL Post-training Induce Skill Composition? A Case Study on Countdown. arXiv:2512.01775.
- Oren, I., Herzig, J., & Berant, J. (2021). Finding Needles in a Haystack: Sampling Structurally-diverse Training Sets from Synthetic Data for Compositional Generalization. EMNLP 2021.
2. Missing SFT baseline:
The paper studies how different training structures affect compositional generalization under GRPO, but does not compare against SFT on the same compositions. Since their framework can automatically generate ground-truth outputs, it would be natural to compare SFT on chains only, branches only, and their mixture. Without this comparison, it is unclear whether the findings reflect a general property of compositional learning or are specific to RL training.
3. Interpretation of the main generalization result:
The finding that jointly training on chains and branches improves generalization to structures requiring both is somewhat expected, since the test tasks involve both structural patterns.
The more interesting result is that this mixture outperforms direct GRPO training on the target structures. However, as the authors acknowledge, direct training suffers from sparse rewards because complex tasks rarely produce successful rollouts.
It is therefore unclear whether the improvement primarily reflects overcoming GRPO's optimization bottleneck rather than a new insight about compositional generalization. Comparisons with alternative training strategies, such as curriculum-based RL or SFT, would help clarify this distinction.
4. Limited analysis of the remaining generalization errors:
Although complementary training improves performance substantially, the mean accuracy on unseen schemas remains at 45.2%. The authors investigate primitive difficulty and topology-dependent learnability, but it remains unclear how much of the remaining error is attributable to imperfect primitive execution versus failures of structural composition.
A more direct error decomposition would help clarify how much compositional capability the model actually acquires.
After all, 45% is not really convincing enough to claim that the model has learned compositional structure.
5. Missing relevant citations:
I believe the related work discussion would benefit from including the following papers:
- Oren et al. (2021), Finding Needles in a Haystack: Sampling Structurally-diverse Training Sets from Synthetic Data for Compositional Generalization. This work directly studies how structurally diverse synthetic training examples improve generalization to unseen compositions, making it particularly relevant to the paper's main contribution.
- Abedsoltan et al. (2025), Task Generalization with Autoregressive Compositional Structure: Can Learning from D Tasks Generalize to D^T Tasks?. This work provides theoretical and empirical results on generalization from a small set of compositional tasks to a much larger task family. Although it considers a different learning setting, it is relevant to positioning the paper's contribution.
- Xu et al. (2026), Composition-RL: Compose Your Verifiable Prompts for Reinforcement Learning of Large Language Models. This work investigates compositional training problems for RL, including curriculum-based increases in composition depth, and is particularly relevant to the discussion of RL training-data design.
These works should be discussed to better distinguish the paper's contributions from existing research on structural diversity, compositional task generalization, and RL training.
Questions for the authors
Please see Critical Weaknesses.
6 comments
Response to Reviewer VZfq (Part 1/3)
We thank Reviewer VZfq for the careful review and positive comments on cross-axis transfer under GRPO and the role of intermediate schemas.
W1: Discussion with Previous Work and Summary of Core Contributions
Thank you for these pointers on recent compositional studies, which we added to Section 1.
| Study | Controlled Source Set | RL Post-Training | Multi-Branch & Merge DAGs | Cross-Axis Transfer | Zero-Variance Frontier | Implicit Tool Planning | Key Empirical Distinction |
|---|---|---|---|---|---|---|---|
| Yuan et al. [1] | Partial | Yes | -- | -- | -- | -- | Studies 2-step RL training along nested chains; no multi-branch or mid-DAG merge source sets. |
| Abedsoltan et al. [2] | Partial | No | -- | -- | -- | -- | Analyzes autoregressive generalization from tasks to length- compositions under ICL/CoT; no RL graph-axis sets. |
| Composition-RL [3] | Partial | Yes | -- | -- | Yes | -- | Chains verifiable prompts sequentially in 1D; our 7-chain control reaches 3.1% on 2D grids vs. 45.2% for . |
| Oren et al. [4] | Yes | No | Partial | -- | -- | -- | Samples structurally diverse examples for SFT; our matched-budget CoT SFT on reaches 18.4% vs. 45.2% for GRPO. |
| Park et al. [5] | Partial | Yes | Partial | -- | -- | -- | Ablates Countdown expression-tree subsets without separating depth, branching, and mid-DAG merge schemas. |
| Ours | Yes | Yes | Yes | Yes | Yes | Yes | Tests 29 grid/spine sets plus merge source , reaching 45.2% on 2D grids and 43.8% on merge DAGs, with gains across 8 tool suites. |
Our experiments show that combining chaining and branching schemas solves unseen 2D and merge DAGs where 1D sequential scaling falls short. Building on the 25 deterministic string primitives of Yuan et al. [1] keeps single-operation initialization fixed across Stage-2 grid runs (with a shared augmented checkpoint for binary merges). While Abedsoltan et al. [2] and Xu et al. [3] study autoregressive or sequential 1D chains, our count-matched 7-chain control trains up to depth 7 and reaches only 3.1% on the nine unseen 2D grids. In contrast, combining and in reaches 45.2%, and adding raises mean accuracy on six unseen merge DAGs to 43.8% vs. 8.9% under direct training (Global Response Q1–Q2).
For diverse SFT as in Oren et al. [4], our matched-budget CoT SFT on reaches 18.4%, vs. 45.2% under on-policy GRPO (48.7% with warm-up). Beyond the Countdown tree ablations in Park et al. [5], we vary 29 grid and spine source sets plus across chaining, branching, and merge operations. Across these 29 sets, Active Level Coverage tracks 9-cell interior accuracy at Spearman . Training on also raises accuracy across eight controlled tool catalogues by +2.4 to +18.2 points and across all eight frozen suites in Global Response Q3.
W2: Stage-2 SFT Baselines on Chains , Branches , and Combined Axes
Thank you for suggesting this direct comparison. We added it to Section 5.4 (Table 2). The full Stage-2 SFT vs. GRPO results under the matched 49,984-prompt per-run budget (three seeds) appear in the Global Response Q1 table. CoT SFT still benefits from axis combination on at 18.4% (vs. 1.1% on , 6.4% on , and 3.8% for Direct-Answer SFT), yet on-policy GRPO on adds +26.8 points to reach 45.2% (48.7% with CoT SFT warm-up). On , CoT SFT drops from 88.4% at to 38.8% at , while GRPO keeps step accuracy at 93.6% () and 73.3% ().
The same pattern holds on the six unseen unequal-depth schemas (Asym.) and the six merge DAGs (Merge, with for GRPO on ). Across unequal-depth schemas, GRPO reaches 47.6% (50.8% with warm-up) vs. 20.1% for CoT SFT on , 4.5% for Direct-Answer SFT, 1.2%–1.6% on , and 7.9%–10.8% on . On merge DAGs, GRPO reaches 43.8% (46.9% with warm-up) vs. 19.8% for CoT SFT on , 5.2% for Direct-Answer SFT, 1.1%–1.2% on , and 4.3%–4.8% on .
Response to Reviewer VZfq (Part 2/3)
W3: Disentangling Structural Complementarity from Target-Grid Reward Sparsity
Target-grid curricula and denser branch rewards do not close the gap to complementary 1D training. Within the same 49,984-prompt per-run budget, we tested Curriculum Target GRPO across three balanced stages from (where initial pass@16 exceeds 70%), through , to the other five grids. We also tested Partial-Credit GRPO using branch reward across all nine targets.
The full breakdown appears in the Global Response Q1 table. Curriculum Target GRPO reaches 27.9% and Partial-Credit GRPO reaches 31.4% on the nine target grids (up from 9.5% for Direct Target GRPO), yet both remain 13.8 to 17.3 points behind 1D-trained GRPO (45.2%, or 48.7% with warm-up). On the six unseen unequal-depth schemas and six merge DAGs, Curriculum Target GRPO reaches 24.3% and 24.6%, and Partial-Credit GRPO reaches 28.5% and 28.1%, vs. 47.6% for and 43.8% for (50.8% and 46.9% with warm-up). Both target-trained baselines also leave 19.2%–21.3% within-branch resets and 14.9%–17.8% cross-branch leaks, while cuts those routing errors to 6.8% and 5.1%.
W4: Routing Accuracy and Oracle-Routing Ceiling Across Unseen Grids
Because single-operation errors compound across calls, exact match mixes primitive slips with routing mistakes. As shown in Global Response Q1, checking intermediate variable bindings across the nine unseen grids gives 86.4% route-free traces under (90.5% with warm-up). Out of 's 54.8 error points, 41.2 come from valid-route traces where only primitive execution fails.
On routing itself, cuts total routing error from 92.1% on and 83.9% on down to 13.6% (9.5% after warm-up), split across 6.8% within-branch resets, 5.1% cross-branch leaks, and 1.7% assembly or format errors. Under oracle intermediate routing across calls, single-step primitive errors yield an empirical 52.4% ceiling on full . Relative to this ceiling (Global Response Q1), reaches 86.3% (92.9% with warm-up), ahead of Direct Target GRPO (18.1%), CoT SFT on (35.1%), and Curriculum or Partial-Credit Target GRPO (53.2%–59.9%).
Response to Reviewer VZfq (Part 3/3)
W5: Discussion with Additional Related Work
Thank you for pointing out these three works [2, 3, 4], which we added to Section 1 and Appendix A and compare in the W1 table (Part 1/3). In short, 1D task or prompt chaining [2, 3] does not teach branch separation on 2D and merge DAGs, and diverse teacher-forced SFT [4] remains well below on-policy GRPO under the same source set and budget (Global Response Q1–Q2).
[1] L. Yuan et al. From and to : LLMs Learn New Skills in RL by Composing Old Ones. ICLR'26.
[2] A. Abedsoltan et al. Task Generalization with Autoregressive Compositional Structure: Can Learning From Tasks Generalize to Tasks? ICML'25.
[3] X. Xu et al. Composition-RL: Compose Your Verifiable Prompts for Reinforcement Learning of Large Language Models. arXiv'26.
[4] I. Oren et al. Finding Needles in a Haystack: Sampling Structurally-Diverse Training Sets from Synthetic Data for Compositional Generalization. EMNLP'21.
[5] S. Park et al. How Does RL Post-Training Induce Skill Composition? A Case Study on Countdown. arXiv'25.
Comments on the paper
3 comments
Global Response to All Reviewers (Part 1/2)
We thank the Area Chair and Reviewers VZfq, YTM8, and fPYL for their careful reviews and helpful feedback. We are glad the reviewers noted our separation of task structure from primitive operations, our controlled setup and figures, and our core finding. Combining 1D depth and branching schemas () enables zero-shot transfer to unseen 2D compositions beyond direct training. Intermediate schemas make harder structures learnable, and these gains transfer to out-of-distribution and real-world tool planning.
We uploaded a revised manuscript with major additions in blue. (1) Section 1 summarizes our main transfer results up front and compares our setup with recent sequential RL, autoregressive composition, and diverse SFT studies. (2) Sections 3.2–5 and Appendix B.2 shorten Section 3.2 by moving the full objective equations to Appendix B.2, tighten Section 4, move schema combination into Section 5, and use inline schema diagrams after the Section 2 definition. (3) Sections 5.4–5.5, Table 2, Figures 8–9, and Appendix B.5 (Table 12) add matched-budget Stage-2 SFT and target-grid curriculum or partial-credit RL baselines, the 52.4% oracle ceiling, step-level error breakdown, and coverage analysis across all 29 source combinations. (4) Sections 5.4–5.5 and Appendix B.6 (Table 13) evaluate six unseen unequal-depth schemas and six mid-computation merge DAGs using the 3-node merge schema . (5) Section 5.6 and Appendix B.4 (Table 11) report zero-shot transfer across eight unmodified official and external tool-use suites.
Q1: Stage-2 SFT Baselines, Target-Grid RL Curricula, and Step-Level Error Breakdown
All runs start from the shared Stage-1 Llama-3.1-8B-Instruct checkpoint under the same 49,984-prompt per-run budget (10,048 warm-up + 39,936 RL prompts in CoT SFT GRPO, three seeds). We trained Stage-2 Direct-Answer SFT and step-supervised CoT SFT on 1D source demonstrations, and curriculum and branch-reward GRPO on the nine target grids.
Below we show 9-grid accuracy on , targets above 4%, accuracy normalized by the 52.4% oracle ceiling, route-free rate, and local step accuracy. The final four columns split into Prim., Depth, Branch, and Merge/Fmt (N/A means no CoT trace):
| Stage-2 Method | Source Support | Full (%) | Norm. Ceil. (%) | Route-Free (%) | Step (%) | Prim. (%) | Depth (%) | Branch (%) | Merge/Fmt (%) | |
|---|---|---|---|---|---|---|---|---|---|---|
| Direct-Answer SFT | : | 3.8 | 1/9 | 7.3 | N/A | N/A | N/A | N/A | N/A | N/A |
| CoT SFT | : | 1.1 | 0/9 | 2.1 | 8.5 | 28.4 | 7.4 | 5.8 | 63.5 | 22.2 |
| CoT SFT | : | 6.4 | 2/9 | 12.2 | 14.2 | 28.7 | 7.8 | 77.1 | 6.1 | 2.6 |
| CoT SFT | : | 18.4 | 5/9 | 35.1 | 39.9 | 62.8 | 21.5 | 31.4 | 22.8 | 5.9 |
| Direct Target GRPO | Each target, separate | 9.5 | 2/9 | 18.1 | 20.7 | 31.5 | 11.2 | 38.4 | 31.9 | 9.0 |
| Curriculum Target GRPO | 9 targets, easy hard | 27.9 | 6/9 | 53.2 | 56.5 | 68.4 | 28.6 | 21.3 | 17.8 | 4.4 |
| Partial-Credit GRPO | 9 targets, branch reward | 31.4 | 7/9 | 59.9 | 62.4 | 72.1 | 31.0 | 19.2 | 14.9 | 3.5 |
| GRPO, Depth Axis | : | 0.7 | 0/9 | 1.3 | 7.9 | 29.0 | 7.2 | 4.1 | 64.8 | 23.2 |
| GRPO, Branch Axis | : | 8.6 | 6/9 | 16.4 | 16.1 | 29.1 | 7.5 | 76.4 | 5.3 | 2.2 |
| GRPO, Combined Axes | : , Ours | 45.2 | 9/9 | 86.3 | 86.4 | 83.9 | 41.2 | 6.8 | 5.1 | 1.7 |
| CoT SFT GRPO | : , Warmup | 48.7 | 9/9 | 92.9 | 90.5 | 86.8 | 41.8 | 4.6 | 3.7 | 1.2 |
Checking intermediate variable bindings across the nine unseen grids shows 86.4% route-free outputs under and 90.5% after CoT SFT warm-up. Out of 's 54.8 error points, 41.2 come from outputs with valid routing where only primitive execution fails, leaving 13.6 points from routing mistakes. Relative to our empirical 52.4% oracle-routing ceiling on full , our 45.2% and 48.7% accuracies reach 86.3% and 92.9%.
Under the same per-run prompt budget, we also outperform both Stage-2 SFT and target-grid RL baselines. Step-supervised CoT SFT on reaches 18.4% because local binding and execution drop across deeper multi-branch steps. In contrast, splitting the 49,984 prompts into 10,048 CoT SFT warm-up prompts and 39,936 GRPO prompts reaches 48.7%. On the nine targets, Curriculum Target GRPO reaches 27.9% and Partial-Credit GRPO reaches 31.4%, staying 13.8 to 17.3 points behind 1D-trained with 19.2%–21.3% depth resets and 14.9%–17.8% cross-branch leaks.
Global Response to All Reviewers (Part 2/2)
Q2: Generalization Beyond Parallel Chains to Mid-Computation Merge DAGs
We thank reviewers for suggesting mid-computation merge topologies beyond parallel chains. All merge runs start from a shared Stage-1 checkpoint with five added binary string primitives. Indexing from the binary merge step onward, we tested six unseen merge DAGs across Diamonds , Funnels , and Cross-Linked DAGs (merging step 1 of branch into step 2 of branch for ):
| Training Source Support | 6-Target Mean | ||||||
|---|---|---|---|---|---|---|---|
| Direct Training, separate | 21.6 | 0.4 | 0.2 | 0.0 | 30.8 | 0.4 | 8.9% |
| : Depth Axis | 2.4 | 0.8 | 0.4 | 0.0 | 3.1 | 0.5 | 1.2% |
| : Branch Axis | 8.5 | 2.1 | 3.8 | 1.9 | 9.4 | 3.1 | 4.8% |
| : Combined Axes | 28.4 | 16.2 | 18.5 | 11.4 | 29.8 | 13.3 | 19.6% |
| , Ours | 58.4 | 44.2 | 46.9 | 35.1 | 48.7 | 29.5 | 43.8% |
Even without binary merge examples in Stage 2, more than doubles mean accuracy over separate direct training (19.6% vs. 8.9%). Adding one 3-node merge schema raises mean accuracy across the six unseen merge DAGs to 43.8% (46.9% with warm-up). On six unseen unequal-depth parallel schemas (, , , , , ), itself reaches 47.6% (50.8% with warm-up) vs. 10.4% under separate direct training.
Q3: Implicit Structure Inference in Real-World Tool Planning and Frozen Suites
In synthetic string tasks, prompts include main_solution(x) so each node fixes one target primitive. Across all eight controlled tool-planning catalogues and eight frozen benchmark suites, prompts give only a natural-language request and a flat tool list, with no executable code or graph description. Below, we evaluate our Axes and Spine checkpoints zero-shot across five unmodified official family suites and three external suites, with a + String-Schema RL control ( marks the in-domain test suite for each checkpoint's training family):
| Checkpoint | FuncBG | TaskB | TRAJECT | NESTFUL | BFCL | MMAU | ToolHop | MCPMark | Avg. |
|---|---|---|---|---|---|---|---|---|---|
| Base, Llama-3.1-8B | 24.1 | 59.2 | 31.7 | 8.7 | 49.8 | 33.9 | 27.6 | 1.8 | 29.6 |
| + Tool Atomic SFT | 26.4 | 61.1 | 33.3 | 10.8 | 52.2 | 34.7 | 29.0 | 2.1 | 31.2 |
| + String-Schema RL | 23.8 | 59.9 | 31.2 | 8.9 | 49.1 | 34.8 | 28.1 | 1.7 | 29.7 |
| Direct @ FuncBG | 60.8 | 33.0 | 11.2 | 51.9 | 34.9 | 29.2 | 2.2 | 31.8 | |
| Direct @ TaskB | 26.1 | 33.6 | 10.5 | 52.0 | 34.6 | 29.3 | 2.0 | 31.6 | |
| Direct @ TRAJECT | 26.0 | 61.3 | 10.6 | 52.5 | 35.0 | 29.6 | 2.4 | 31.7 | |
| Direct @ NESTFUL | 26.7 | 60.5 | 32.7 | 52.3 | 34.5 | 29.4 | 1.9 | 31.5 | |
| Direct @ BFCL | 26.2 | 61.4 | 33.1 | 10.7 | 35.1 | 29.1 | 2.6 | 31.9 | |
| Axes @ FuncBG | 61.9 | 34.1 | 12.3 | 53.0 | 35.8 | 30.1 | 2.8 | 33.7 | |
| Axes @ TaskB | 27.3 | 34.4 | 11.5 | 53.4 | 35.6 | 30.0 | 2.5 | 33.2 | |
| Axes @ TRAJECT | 27.0 | 62.0 | 11.4 | 53.1 | 35.4 | 30.4 | 2.9 | 32.6 | |
| Axes @ NESTFUL | 27.6 | 61.8 | 33.9 | 53.2 | 35.7 | 30.2 | 2.7 | 33.4 | |
| Axes @ BFCL | 26.9 | 62.2 | 34.0 | 11.6 | 36.1 | 29.8 | 3.1 | 32.9 | |
| Spine @ FuncBG | 61.6 | 33.8 | 11.9 | 52.8 | 35.2 | 29.7 | 2.3 | 33.1 | |
| Spine @ NESTFUL | 27.4 | 61.5 | 33.5 | 52.9 | 35.3 | 29.5 | 3.0 | 33.0 |
We outperform direct training on every in-domain official suite marked with , gaining +8.3 points on FuncBG, +8.1 on NESTFUL, +6.1 on TaskB, +2.8 on TRAJECT, and +2.5 on BFCL. Across all eight suites, our checkpoints raise the average to 32.6%–33.7% vs. 31.5%–31.9% under direct training.
Q4: Discussion with Prior Work, Presentation, and Coverage Analysis
We updated our paper in this revised version. We shortened Section 3.2 by moving the full objective equations to Appendix B.2, which also details the evaluation protocol. We also tightened Section 4, moved schema combination into Section 5, and replaced with inline schema diagrams throughout the main text and tables after Section 2. Across all 29 source combinations, Active Level Coverage tracks 9-cell interior grid accuracy at Spearman , and replacing intermediate with in drops 20-cell accuracy from 35.3% to 8.3%.
Summary of Discussion and Revisions
We sincerely thank Area Chair and Reviewer VZfq, Reviewer YTM8, and Reviewer fPYL for their reviews and two-round discussion. All three reviewers gave our paper the top soundness score (Soundness: 3), noting our setup, schema design, and cross-axis transfer findings. Following our revised paper and Round-2 replies, Reviewer VZfq confirmed that the trend across SFT and GRPO is clear and raised their score (Score Raised), and we directly answered all Round-2 questions from Reviewer YTM8.
Overview of Our Work and Revisions
Once a model knows basic operations, direct RL on complex multi-step tasks often fails (9.5%) due to sparse rewards. Holding primitive initialization, RL objective, and prompt budget fixed, training jointly on simple chains and parallel branches (a3) transfers zero-shot to unseen 2D tasks (45.2%, or 48.7% with warm-up), unequal-depth tasks, merge DAGs, and tool planning. Across our blue-highlighted revision and two rounds of replies, we addressed every question:
| Reviewer | Main Focus (Rounds 1 & 2) | Status |
|---|---|---|
Reviewer VZfq |
Stage-2 SFT, target curricula, error split, prior work, structure vs. GRPO | Addressed · Score Raised |
Reviewer YTM8 |
Tool planning, scale & merge DAGs, step routing, ceiling & prior work | Addressed |
Reviewer fPYL |
Inline diagrams, earlier main results, graph operations & coverage | Addressed |
Details
-
Roles of Structure vs. RL, Stage-2 SFT & Curricula (
Reviewer VZfqW2, W3 & Round-2)AddressedUnder the 49,984-prompt budget (Section 5.4,Table 2), data structure sets what composition rules can be learned, while on-policy RL sets how reliably they run across steps. BothCoT SFTandGRPOfail on single axes (0.7%–8.6%) and jump ona3(18.4%CoT SFT; 45.2%GRPO; 48.7% with warm-up), as on-policy RL penalizes mixing chain continuation with branch resetting in rollouts (93.6% to 73.3% on , vs. 88.4% to 38.8% forCoT SFT). Also, 9-target curriculum (27.9%) and partial-credit (31.4%)GRPOtraila3by 13.8–17.3 points, showing complementary 1D training does more than ease sparse rewards. -
Step-Level Error Split & Oracle Ceiling (
Reviewer VZfqW4;Reviewer YTM8W3 & Round-2;Reviewer fPYLQ1, Q3)AddressedSingle-step errors compound across 4 to 16 calls, so 100% error-free routing caps at 52.4% exact match (Section 5.4,Table 2).a3reaches 86.3% of this ceiling (92.9% with warm-up; 86.4%–90.5% route-free), showing most remaining errors are single-operation slips rather than routing failures. Diagnostics (Section 5.5,Figures 8–9,Table 12) showa1causes 64.8%Branchleaks anda2causes 76.4%Depthresets, whilea3cuts routing errors to 13.6% (9.5% with warm-up). -
Scale Extrapolation, Unequal-Depth Schemas & Merge DAGs (
Reviewer YTM8W2a, W2b;Reviewer fPYLW3)AddressedTrained on calls,a3extrapolates 4× to 16 calls and reaches 47.6% (50.8% with warm-up) vs. 10.4% direct on 6 unequal-depth schemas (Table 2,Appendix B.5). Covering chaining, branching, and merging extends transfer to non-parallel DAGs: adding one merge schema lifts accuracy across 6 unseen merge DAGs from 8.9% direct to 43.8% (46.9% with warm-up;Appendix B.6,Table 13). Intermediate schemas keep harder sources learnable (s235.3% vs.s188.3%;Section 5.3),Active Level Coveragetracks 9-cell accuracy at , and primitive sampling only shifts accuracy inside the frontier (Table 1). -
Implicit Structure Inference in Tool Planning (
Reviewer YTM8W1)AddressedIn all tool-planning tests (Section 5.6,Figure 10,Appendix B.4), prompts give only a natural-language request and flat tool list. Our structural gains hold when the model infers the task graph implicitly:a3gains +2.4 to +18.2 points across all 8 tool catalogues (Figures 11–12,Table 10) and beats direct training on every in-domain suite across 8 frozen benchmarks (+2.5 to +8.3 points; 32.6%–33.7% mean vs. 31.5%–31.9% direct;Table 11). -
Previous Work, Visual Diagrams & Readability (
Reviewer VZfqW1, W5 & Round-2;Reviewer YTM8Round-2;Reviewer fPYLW1, W2, Q2)AddressedWe replacedG[·]notation afterSection 2with inline diagrams, shortenedSections 3.2–4(Appendix B.2), and clarified how our multi-axis RL study differs from previous work on 1D chains (7-chainc1: 3.1%), diverse SFT, search trees, and whole-task RL (Section 1,Appendix A, and Round-2 replies).
We thank the Area Chair and reviewers again, the suggestions and feedback helped us to improve our submission!
Best regards,
The Authors
From OpenReview, CC BY 4.0. Authors as signed there; shown unedited.
Loading the discussion…
Response to Reviewer fPYL (Part 1/2)
We sincerely thank Reviewer fPYL for the helpful review and positive comments on our schema setup and out-of-distribution generalization results.
W1: Visual Schema Notation
We agree with this suggestion. In the revised paper, we introduce the algebraic G[D1,…,DB] notation only in the Section 2 definition, and use inline diagrams across all subsequent text and tables in the main paper so each structure is clear at a glance.
W2: Pacing and Presentation of Main Generalization Results
Thank you for this suggestion on pacing. To reach the main generalization findings sooner, we shortened the training and evaluation description in Section 3.2 and moved the full objective equations to Appendix B.2 with the detailed evaluation protocol. We also tightened Section 4, moved schema combination into Section 5, and summarized our cross-axis, merge-DAG, error-breakdown, and tool-planning results up front in Section 1.
W3: Graph Operations on Schemas and Coverage Across Combinations
Thank you for suggesting that we frame schema combinations around explicit graph operations. From the single-step graph G[1], our source sets cover three graph operations. These are sequential chaining along a branch (a1={G[1],…,G[4]}), parallel branching from shared input x with ordered assembly (a2={G[1],…,G[1,1,1,1]}), and binary merging from J[1,1;1] for diamond D, funnel F, and cross-linked X DAGs. Transfer from S improves when S covers the target's graph operations and includes intermediate schemas that keep mixed-reward activity Act(g)≥2. Below is the structural summary across operations (full baselines and ceilings appear in Global Response Q1–Q2, where
--marks a merge-only run):Both parts matter in our ablations. Omitting branching in 7-chain c1 gives only 3.1% on 2D grids, and replacing intermediate G[2,2] with G[1] in s2→s18 drops 20-cell accuracy from 35.3% to 8.3%. Across all 29 source combinations, Active Level Coverage C∈[0,1] tracks 9-cell interior grid accuracy at Spearman ρs=0.94 and Pearson r=0.91.
Q1: Interpreting Our Results in the Context of the Schema Model
In the schema model, the depth and branching axes correspond directly to step-to-step propagation and branch-root resetting on unseen grids like G[4,4,4,4]. Full 9-grid accuracy, oracle-ceiling ratios, and route-free rates for all SFT and target-grid RL baselines appear in the Global Response Q1 table.
On G[4,4,4,4], single-axis policies fail along opposite dimensions. Depth-only a1 drops across branches (b=1→4 falls 88.2, d=1→4 stays 34.6, step mean 29.0%) by carrying the previous branch forward. Branch-only a2 drops across depth (d=1→4 falls 91.2, b=1→4 stays 30.1, step mean 29.1%) by resetting to
x. On a3, CoT SFT still drops across both axes (b=1→4 falls 74.5, d=1→4 falls 88.4, step mean 62.8%). In contrast, GRPO on a3 keeps both skills (b=1→4 holds 86.4, d=1→4 holds 93.6, step mean 83.9%) because joint optimization rules out both failure modes.