TL;DR
Does reinforcement learning (RL) actually teach LLMs new skills, or does it just surface existing ones? This paper provides concrete evidence that RL enables LLMs to learn genuinely new, complex skills by composing previously learned atomic skills. Crucially, this compositional ability generalizes to harder, unseen problem complexities and even transfers across entirely different task domains as a structural meta-skill.
What Problem Does This Paper Address?
A fierce debate currently divides the AI post-training community. One side points to the massive success of RL in reasoning models like OpenAI's o1 and DeepSeek-R1. The other side argues that RL doesn't teach anything new, but merely acts as a "reranker" or "reweighter" of cognitive strategies the base model already picked up during next-token pre-training.
Proving either side is difficult due to data contamination and the mixed difficulty of standard benchmarks. To cut through the noise, the authors design a highly controlled, decontaminated synthetic environment to answer a fundamental question: Can RL incentivize an LLM to systematically combine basic ("atomic") skills to solve complex, multi-step problems it has never seen before?
Methods
The researchers developed a clean, two-stage training protocol using Llama-3.1-8B-Instruct:
- Stage 1 (Atomic Skill Acquisition): The model learns a set of basic string transformation functions (e.g., reversing a string, removing vowels). To prevent the model from using pre-trained shortcuts, the functions are given meaningless identifiers (like
func_16). The model learns these individual behaviors via Rejection Fine-Tuning (RFT). - Stage 2 (Compositional Skill Training): The function definitions are completely hidden. The model is prompted to solve nested compositions of these functions (e.g.,
func_15(func_16(x))).
The authors compare two primary approaches in Stage 2: Offline RFT (supervised next-token prediction on correct composition trajectories) and Online RL (using Group Relative Preference Optimization, or GRPO, driven purely by binary correctness rewards).
Datasets
- String Transformation Prediction Task: A newly introduced synthetic benchmark featuring 25 unique string manipulation functions spanning character filtering, reordering, case alternation, and structural modifications. Training happens on Level 1 (atomic) and Level 2 (two-function composition) problems, while evaluation tests generalization up to Level 8.
- Countdown Task: A math puzzle task where models must combine a set of numbers using basic arithmetic to reach a target value. This dataset is used exclusively to test whether compositional skills transfer to an entirely different domain.
Key Insights and Ideas
- The "Reranking Illusion" Debunked: Critics often claim RL doesn't expand an LLM's capabilities because the performance gap between the base model and the RL model narrows when you sample many times ($pass@k$ for large $k$). The authors show this is an artifact of easy tasks. On genuinely difficult compositional tasks where the base model's success rate is near zero, the performance gap between the RL model and the base model actually widens as $k$ increases. RL is expanding the model's performance limits, not just reranking.
- RL is Essential for Composition: Simply exposing the model to compositional data via supervised learning (RFT) is not enough. The trial-and-error nature of online RL with outcome rewards is what forces the model to internalize the structural logic of composition.
- Composition as a Transferable Meta-Skill: Remarkably, a model trained to compose functions in the string transformation domain successfully transfers that compositional ability to the math domain (Countdown). This implies RL teaches a domain-agnostic "meta-skill" of procedural planning and execution, provided the target domain's atomic skills are already known.
Key Results
- Easy-to-Hard Generalization: When trained via RL only on Level 2 compositions, the model's performance on unseen Level 3 tasks jumped from near-zero to 30%, and reached 15% on Level 4. The RFT baseline completely failed to generalize, staying below 2.6% on Level 3.
- Cross-Task Transfer: In the Countdown math task (Level 3), the model that underwent compositional RL on string tasks achieved 35% accuracy, outperforming the atomic-only baseline by more than 18%, despite never seeing a math composition during RL.
- Behavioral Shift: Qualitative analysis revealed that RL fundamentally changes how models fail. Instead of ignoring the nested structure or misinterpreting function relationships (which accounted for over 85% of errors in the base and RFT models), the RL-trained model correctly parsed the composition plan and failed primarily on low-level execution errors.
Limitations and Future Work
While the synthetic framework provides pristine experimental control, the tasks are inherently structured and deterministic. Real-world reasoning (like software engineering or creative writing) involves much fuzzier skill boundaries and more varied compositional structures.
Additionally, the authors explicitly scaffolded the learning process by separating atomic training from compositional training. A major open question for future research is whether LLMs can scale to learn both basic atomic skills and complex compositional meta-skills simultaneously under a single, unified RL framework.
Summary updated