Composition-RL: Compose Your Verifiable Prompts for Reinforcement Learning of Large Language Models
Listen
Radio episode about this paper
Transcript
Introduction to the show: ident: AI Radio. Generated commentary on the latest Artificial Intelligence papers.
Tom: Today's paper: "Composition-RL: Compose Your Verifiable Prompts for Reinforcement Learning of Large Language Models".
Jane: The gist The authors propose Composition-RL, an approach that automatically composes multiple problems into a new verifiable question and uses these compositional prompts for RL training,
Tom: First, who's behind it and why it matters.
Paper summary: Tom: So, to conclude on Composition-RL: it consistently outperforms RL on the original prompts and shows the potential of composing prompts from different topics >
Jane: The title of the paper, Composition-RL: Compose Your Verifiable Prompts for Reinforcement Learning of Large Language Models, really captures what they did here >
Lu: It’s about taking a dataset that has too many easy examples and using a clever composition method to generate more challenging training material for the AI >
Meng: It suggests that instead of just throwing more raw data at the model, we can structure that data so it actively helps the model learn better intermediate steps >
Tom: Yeah, so Composition-RL provides this implicit process supervision by encouraging correct intermediate steps, and they’re releasing their codes and datasets to support future research on RL >
Conclusion: Jane: So, to wrap up this part, Composition-RL is basically about taking existing questions and stitching them together into bigger, more complex prompts for the AI to learn from >
Tom: Yeah, they’re using this technique to fix a problem where the training data gets too easy or redundant when you're doing Reinforcement Learning with Verifiable Rewards >
Jane: And it seems like the authors are calling this specific method Sequential Prompt Composition, or SPC, which is just a fancy way of describing how they build these new questions step by step using the answers from the old ones >
Lu: From my side, I see this as a way to inject structured dependency into the training signal. It’s not just giving the AI one question; it’s giving it a chain of reasoning where each link depends on what came before >
Meng: But for me, what matters is that they're doing this offline augmentation. They generate these composed datasets once and then use them for the RL training, which means you don't have to worry about running complex composition logic during the actual training loop >
Tom: I liked seeing how they showed that composing these prompts actually improves reasoning capability over just using the original dataset, even across different model sizes >
Jane: It makes sense because if you're forcing the AI to bridge a gap between two related concepts, it has to learn a new skill about how those pieces fit together >
Lu: I think the real power they’re showing is in cross-domain RL. They take prompts from one area, like physics, and combine them with prompts from another, like math or law >
Meng: That opens up possibilities for training AI on things it hasn't seen much of directly, which is what we really need for real-world deployment >
Tom: It really highlights that the quality of the prompt data is a huge lever for RL performance when you're dealing with these large models >
Jane: So, even though they show some impressive results on MATH and physics, I wonder how robust this compositional structure is when we move to completely different types of knowledge >
University of Science and Technology of China
cs.CL
Submitted: 2026-02-12
Updated: 2026-10-15
Comments: NeurIPS 2026 camera-ready version. 33 pages
Code: https://github.com/XinXUUSTC/Composition-RL
License: http://arxiv.org/licenses/nonexclusive-distrib/1.0/
Importance score: 92/100
The gist: The gist The authors propose Composition-RL, an approach that automatically composes multiple problems into a new verifiable question and uses these compositional prompts for RL training, which
Key concepts
- Composition-RL
- An offline data-augmentation technique that combines multiple existing verifiable prompts into a single, new complex prompt. This is done before the Reinforcement Learning training begins to create more challenging training examples.
- Sequential Prompt Composition (SPC)
- A procedure to build a new prompt by sequentially modifying existing ones. It involves using the ground-truth answer of one prompt to modify another, introducing natural language definitions and relations between variables. This is generalized recursively for many prompts.
- Curriculum RL
- A variant of Composition-RL where the level of compositional complexity gradually increases during the training process. The model starts with simpler compositions and then moves to deeper compositions as performance stabilizes, leading to further gains.
- Cross-Domain Composition
- Using Composition-RL to create training data by combining prompts from different knowledge domains, such as math and physics. Training on this cross-domain dataset improves the model's reasoning not just in the original subjects but also in unrelated fields.
Terminology
Summary
The gist The authors propose Composition-RL, an approach that automatically composes multiple problems into a new verifiable question and uses these compositional prompts for RL training, which consistently improves reasoning capability over RL trained on the original dataset.
Composition-RL Overview
Composition-RL is a simple yet useful approach for better utilizing limited verifiable prompts targeting pass-rate-1 prompts by automatically composing multiple problems into a new verifiable question and using these compositional prompts for RL training The authors introduce a procedure for composing K existing prompts into new prompts (Section 3.1) and empirically show that prompt composition can, to some extent, mitigate the growing number of “too-easy” prompts (Section 3.2) They then formalize Composition-RL as RL training on compositional prompts (Section 3.3) As shown in Figure 1, CompositionRL outperforms RL training on the original prompts
Sequential Prompt Composition (SPC)
Sequential Prompt Composition (SPC) is defined as a procedure where one prompt is modified using the ground-truth answer of another prompt, and this process is generalized to composing K prompts into one prompt Composing two prompts involves three steps: Modify q1 with gt1, which involves extracting a numeric value v1 from gt1 and introducing a natural-language definition d1 that names this value in terms of (q1, gt1), and forming q¯1 = q1 ⊕ d1. Modify q2 by replacing its numeric values with new variables, yielding q¯2 = q2(v2), for example, replacing the constant 1 with a variable name Y Connect q1 and q2 by computing v1 − v2 and expressing the resulting relation between the two variables as a naturallanguage statement r, such as “Y is 6 less than X” The composed prompt is then q1:2 = ¯q1 ⊕ r ⊕ q¯2, and its ground-truth answer is gt1:2 = gt2 More generally, SPC applies Compose recursively for K − 1 steps to compose K prompts into one prompt, where K is the Compositional Depth
Effect on Training Data Quality
Meta-experiments show that the increasing prevalence of solve all prompts is another major impediment to effective RL training SPC can make easy prompts harder and reduce the ratio of solve all prompts Switching to compositional prompts reduces avg@8 by 19.7% for OpenMath-Reasoning-1.5B and by 15.4% for JustRL-1.5B, and the solve all rate also drops substantially This suggests that SPC can effectively reduce solve all prompts, potentially turn part of the original uninformative prompts useful again Furthermore, even SPC with K = 2 can almost double the training set size in principle (from D to D · (D − 1))
Curriculum RL for Higher Compositional Depth
A curriculum variant of Composition-RL gradually increases compositional depth over training, starting by training on MATH12K and then switching to Composition-RL with Depth 2 once performance saturates This transition causes the solve all ratio to drop sharply and enables further performance gains Continuing RL with Depth 3 data after Depth 1 (i.e., the original MATH12K) yields substantial gains over the Depth 1 checkpoint, improving by +9.7% on AIME24 and +5.9% on MMLU-Pro
Cross-Domain Composition
Composition-RL enables more effective cross-domain RL by composing prompts drawn from different domains When sampling q1 from the physics subset and q2 from MATH12K, yielding a cross-domain compositional dataset, Physics-MATH-Composition-141K, RL training on Physics-MATH-Composition-141K consistently delivers the best results on both in-domain subjects (math and physics) and OOD subjects (law, engineering, and chemistry) This highlights the great potential of Composition-RL for RL of multiple topics
Analysis of Success Factors
Composition-RL works through two main mechanisms: Compositional Generalization, where training on composed prompts can elicit new reasoning skills, and Implicit Process Supervision, where the structured dependency nudges the model toward a correct intermediate step The error analysis shows that after applying Composition-RL, all three error types—linkage error, q1 error, and q2 error—are reduced Specifically, linkage errors are the dominant failure mode for the original model but are reduced substantially by Composition-RL
Conclusion and Future Work
Composition-RL consistently outperforms RL on the original prompts across various model sizes and benchmarks The authors plan to release two compositional datasets, MATH-Composition-199K and Physics-MATH-Composition-141K, which they expect to be useful resources for future work on RL for LLMs Promising future directions include extending beyond MATH12K by composing more challenging math training set like Polaris-53K and expanding composition to cover more domains
Ablation Results
The ablation study on candidate sets Dk shows that Configuration B, where D1 is the full set D and D2 is a small randomly sampled subset, achieves the best performance, improving overall accuracy by +3.4% over variant A and by +2.2% over variant B This suggests that increasing the diversity of D2 is beneficial because it exposes the model to verification over the full set D2 = D, yielding a substantially more diverse set of answers to be verified
Evaluation Details
Evaluation benchmarks include in-domain math reasoning tasks like AIME24 and IMOBench, as well as out-of-domain multi-task reasoning benchmarks such as GPQA-Diamond and MMLU-Pro The authors report pass@1 accuracy using 32 samples per problem for AIME24 and AIME25, avg@8 for BeyondAIME, avg@4 for IMOBench, and pass@1 using 8 samples per problem for GPQA-Diamond The evaluation scripts are adapted from the DeepscaleR codebase
Error Analysis Summary
Table 5 shows that linkage error is the dominant failure mode for the original model, accounting for 22 out of 40 cases, compared with 7 q1 errors and 11 q2 errors After applying Composition-RL, all three error types are reduced, with the largest reduction observed in linkage errors (from 22 to 7) Linkage errors often arise from incorrect intermediate computation, unproductive self-verification loops, or selecting an incorrect linkage value despite otherwise correct reasoning
Response Length
Table 7 shows that Composition-RL does not significantly increase response length across all model scales The average response length for Composition-RL is similar to the baseline, indicating that the method does not substantially increase output length
Final Conclusion
Composition-RL consistently outperforms RL on the original prompts and demonstrates the potential of composing prompts from different topics The authors believe that compositional prompts can provide implicit process supervision by encouraging correct intermediate steps They will release their codes, compositional datasets, and trained models to support future RL research
References
Albalak et al.
Improvements for AI systems
- Bold header: Composition-RL for better utilization of limited verifiable prompts
This system can automatically composes multiple problems into a new verifiable question and uses these compositional prompts for RL training,
which is proposed to mitigate the growing number of “too-easy” prompts.
- Bold header: Curriculum variant for progressive difficulty scaling
The system can implement a curriculum variant of Composition-RL that gradually increases compositional depth over training,
allowing the model to continue RL training with Depth 2 data after Depth 1
to achieve substantial performance gains.
- Bold header: Cross-domain RL through prompt composition
The system enables more effective cross-domain RL by composing prompts drawn from different domains,
such as composing prompts from physics and math, which can induce broad improvements across the corresponding topics.
Sources
- Big-Math: A Large-Scale, High-Quality Math Dataset for Reinforcement Learning in Language Models
- On Predictability of Reinforcement Learning Dynamics for Large Language Models
- MiniMax-M1: Scaling Test-Time Compute Efficiently with Lightning Attention
- Nudging the Boundaries of LLM Reasoning
- MegaScience: Pushing the Frontiers of Post-Training Datasets for Science Reasoning
- DeepSeek-R1: Incentivizing Reasoning Capability in LLMs via Reinforcement Learning
- JustRL: Scaling a 1.5B LLM with a Simple RL Recipe
- DeepMath-103K: A Large-Scale, Challenging, Decontaminated, and Verifiable Mathematical Dataset for Advancing Reasoning
- Measuring Mathematical Problem Solving With the MATH Dataset
- Open-Reasoner-Zero: An Open Source Approach to Scaling Up Reinforcement Learning on the Base Model
- OpenAI o1 System Card
- Measuring Compositional Generalization: A Comprehensive Method on Realistic Data
- No Prompt Left Behind: Exploiting Zero-Variance Prompts in LLM Reinforcement Learning via Entropy-Guided Advantage Shaping
- QuestA: Expanding Reasoning Capacity in LLMs via Question Augmentation
- InternBootcamp: Boosting LLM Reasoning with Verifiable Task Scaling
- Knapsack RL: Unlocking Exploration of LLMs via Optimizing Budget Allocation
- DeepSeek-V3.2: Pushing the Frontier of Open Large Language Models
- ProRL: Prolonged Reinforcement Learning Expands Reasoning Boundaries in Large Language Models
- SAND-Math: Using LLMs to Generate Novel, Difficult and Useful Mathematics Questions and Answers
- MM-Eureka: Exploring the Frontiers of Multimodal Reasoning with Rule-based Reinforcement Learning
Related papers
- Exploring Solution Divergence and Its Effect on Large Language Model Problem Solving
- Ishigaki-IDS-Bench: A Benchmark for Generating Information Delivery Specification from BIM Information Requirements
- Subliminal Steering: Stronger Encoding of Hidden Signals
- MedStruct-S: A Benchmark for Key Discovery, Key-Conditioned QA and Semi-Structured Extraction from OCR Clinical Reports
- The End of Transformers? On Challenging Attention and the Rise of Sub-Quadratic Architectures
- Untangling the Mechanisms of Misleading Context in Medical Question Answering