From f(x) and g(x) to f(g(x)): LLMs Learn New Skills in RL by Composing Old Ones
Lifan Yuan, Weize Chen, Yuchen Zhang, Ganqu Cui, Hanbin Wang, Ziming You, Ning Ding, Zhiyuan Liu, Maosong Sun, Hao Peng
Abstract
Does reinforcement learning (RL) teach large language models (LLMs) genuinely new skills, or does it merely activate existing ones? This question lies at the core of ongoing debates about the role of RL in LLM post-training. On one side, strong empirical results can be achieved with RL alone even without preceding supervised finetuning; on the other, critics argue that RL contributes little beyond reweighting existing reasoning strategies. This work provides concrete evidence that LLMs can acquire genuinely new skills during RL by composing existing ones, mirroring one of the central mechanisms by which humans acquire new cognitive skills . To mitigate data contamination and other confounding factors and to allow precise control over task complexity, we develop a synthetic framework for our investigation. Specifically, we define a skill as the ability to infer the output of a string transformation function given . Once an LLM has already learned and prior to RL, our experiments reveal that RL enables it to learn unseen compositions of them . Further, this compositional ability generalizes to more difficult problems such as compositions of functions unseen during training. Our experiments provide surprising evidence that this compositional ability, acquired on the source task, transfers to a different target task. This transfer occurs even though the model has never trained with RL on any compositional problems in the target task, as long as it has acquired the target task's atomic skills prior to RL on the source task. Our qualitative analysis shows that RL fundamentally changes the reasoning behaviors of the models. In contrast, neither of the findings is observed in next-token prediction training with the same data. Our systematic experiments provide fresh insights into the learning behaviors of widely-used post-training approaches for LLMs. They suggest the value of building base models with the necessary basic skills, followed by RL with appropriate incentivization to acquire more advanced skills that generalize better to complex and out-of-domain problems.
Ask Lune
Know this paper in minutes, not an afternoon.
Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.
17 top-tier papers have cited it since. Know what they found before your reviewers do.
Lune can draw on
the full paper · the top-tier papers that cite it · related work
Free to start. No credit card required.
Lineage
- Nudging the Boundaries of LLM Reasoning cites DAPO: An Open-Source LLM Reinforcement Learning System at Scale
- Nudging the Boundaries of LLM Reasoning cites Reinforcement Learning for Reasoning in Large Language Models with One Training Example
- Nudging the Boundaries of LLM Reasoning cites ProRL: Prolonged Reinforcement Learning Expands Reasoning Boundaries in Large Language Models
- Generative Universal Verifier as Multimodal Meta-Reasoner cites DAPO: An Open-Source LLM Reinforcement Learning System at Scale
- The Unreasonable Effectiveness of Entropy Minimization in LLM Reasoning cites Reinforcement Learning for Reasoning in Large Language Models with One Training Example
- Reinforcement Learning for Reasoning in Large Language Models with One Training Example cites DAPO: An Open-Source LLM Reinforcement Learning System at Scale
- Maximum Likelihood Reinforcement Learning cites Nudging the Boundaries of LLM Reasoning
- Maximum Likelihood Reinforcement Learning cites DAPO: An Open-Source LLM Reinforcement Learning System at Scale
- Maximum Likelihood Reinforcement Learning cites On the Interplay of Pre-Training, Mid-Training, and RL on Reasoning Language Models
- Maximum Likelihood Reinforcement Learning cites ProRL: Prolonged Reinforcement Learning Expands Reasoning Boundaries in Large Language Models
- Maximum Likelihood Reinforcement Learning cites h1: Bootstrapping LLMs to Reason over Longer Horizons via Reinforcement Learning
- On the Interplay of Pre-Training, Mid-Training, and RL on Reasoning Language Models cites ProRL: Prolonged Reinforcement Learning Expands Reasoning Boundaries in Large Language Models
- On the Interplay of Pre-Training, Mid-Training, and RL on Reasoning Language Models cites Reinforcement Learning with Verifiable Rewards Implicitly Incentivizes Correct Reasoning in Base LLMs
- h1: Bootstrapping LLMs to Reason over Longer Horizons via Reinforcement Learning cites Reinforcement Learning for Reasoning in Large Language Models with One Training Example
- h1: Bootstrapping LLMs to Reason over Longer Horizons via Reinforcement Learning cites ProRL: Prolonged Reinforcement Learning Expands Reasoning Boundaries in Large Language Models
- Reinforcement Learning with Verifiable Rewards Implicitly Incentivizes Correct Reasoning in Base LLMs cites DAPO: An Open-Source LLM Reinforcement Learning System at Scale
- Reinforcement Learning with Verifiable Rewards Implicitly Incentivizes Correct Reasoning in Base LLMs cites Reinforcement Learning for Reasoning in Large Language Models with One Training Example
- Reinforcement Learning with Verifiable Rewards Implicitly Incentivizes Correct Reasoning in Base LLMs cites ProRL: Prolonged Reinforcement Learning Expands Reasoning Boundaries in Large Language Models
Cited by top-tier papers17
- On the Interplay of Pre-Training, Mid-Training, and RL on Reasoning Language ModelsCharlie Zhang, Graham Neubig, Xiang YueICML 2026 · 58 citations
- Nudging the Boundaries of LLM ReasoningJustin Chih-Yao Chen, Xiangyu Peng, Prafulla Kumar Choubey, Kung-Hsiang Huang et al.ICLR 2026 · 25 citations
- Generative Universal Verifier as Multimodal Meta-ReasonerXinchen Zhang, Xiaoying Zhang, Youbin Wu, Yanbin Cao et al.ICLR 2026 · 20 citations
- Maximum Likelihood Reinforcement LearningFahim Tajwar, Guanning Zeng, Yueer Zhou, Yuda Song et al.ICML 2026 · 18 citations
- h1: Bootstrapping LLMs to Reason over Longer Horizons via Reinforcement LearningAlesia Ivanova, Sumeet Motwani, Jack Cai, Phil Torr et al.ICML 2026 · 11 citations
Builds on11
- DAPO: An Open-Source LLM Reinforcement Learning System at ScaleQiying Yu, Zheng Zhang, Ruofei Zhu, Yufeng Yuan et al.NeurIPS 2025 · 2,828 citations
- Reinforcement Learning for Reasoning in Large Language Models with One Training ExampleYiping Wang, Qing Yang, Zhiyuan Zeng, Liliang Ren et al.NeurIPS 2025 · 314 citations
- Reinforcement Learning with Verifiable Rewards Implicitly Incentivizes Correct Reasoning in Base LLMsXumeng Wen, Zihan Liu, Shun Zheng, Shengyu Ye et al.ICLR 2026 · 279 citations
- The Unreasonable Effectiveness of Entropy Minimization in LLM ReasoningShivam Agarwal, Zimin Zhang, Lifan Yuan, Jiawei Han et al.NeurIPS 2025 · 185 citations
- ProRL: Prolonged Reinforcement Learning Expands Reasoning Boundaries in Large Language ModelsMingjie Liu, Shizhe Diao, Ximing Lu, Jian Hu et al.NeurIPS 2025 · 181 citations
Related papers
- Unveiling the Compositional Ability Gap in Vision-Language Reasoning ModelTianle Li, Jihai Zhang, Yongming Rao, Yu ChengNeurIPS 2025 · 17 citations
- From Reasoning Traces to Reusable Modules: Understanding Compositional Generalization in Language Model ReasoningLingjing Kong, Xin Liu, Guangyi Chen, Martin Q. Ma et al.ICML 2026 · 1 citation
- Why Does Reinforcement Learning Generalize? A Feature-Level Mechanistic Study of Post-Training in Large Language ModelsDan Shi, Zhuowen Han, Simon Ostermann, Renren Jin et al.ACL 2026 · 1 citation
- Skills-in-Context: Unlocking Compositionality in Large Language ModelsJiaao Chen, Xiaoman Pan, Dian Yu, Kaiqiang Song et al.EMNLP Findings 2024 · 4 citations
- Breaking Barriers: Do Reinforcement Post Training Gains Transfer To Unseen Domains?Chuxuan Hu, Yuxuan Zhu, Antony Kellermann, Caleb Biddulph et al.ICLR 2026
