2025-09-30 · 专家 · 自然语言处理 · 机器学习

From f(x) and g(x) to f(g(x)): LLMs Learn New Skills in RL by Composing Old Ones

该论文通过构建一个合成框架,证明了通过组合现有技能,强化学习可以使大型语言模型(LLMs)获得真正的新的技能,并展示了这些技能的可迁移性和跨任务泛化能力。

更新于 2025-09-30。作者:Lifan Yuan、Weize Chen、Yuchen Zhang、Ganqu Cui、Hanbin Wang、Ziming You、Ning Ding、Zhiyuan Liu、Maosong Sun、Hao Peng。

中文摘要

强化学习真的教会了大型语言模型新的技能,还是仅仅激活了已有的技能?这个问题是关于强化学习在大型语言模型后训练中作用持续争论的核心。一方面,即使没有先前的监督微调,使用强化学习也能取得强大的实证结果;另一方面,批评者认为强化学习对现有推理策略的重加权贡献甚微。这项工作提供了具体的证据,表明LLMs可以通过组合现有的技能来在学习强化学习过程中获得真正的新技能,这与人类获取新认知技能的一种核心机制相呼应。为了减轻数据污染和其他混杂因素,并允许精确控制任务复杂度,我们开发了一个用于调查的合成框架。具体来说,我们将技能定义为在给定x的情况下推断字符串变换函数f(x)的输出的能力。当LLM在强化学习之前已经学习了f和g,我们的实验显示强化学习使它能够学习这些函数未见过的组合h(x)=g(f(x))。此外,这种组合能力推广到更困难的问题,如RL训练期间未见过的超过2个函数的组合。令人惊讶的是,我们的实验表明,在源任务上获得的组合技能可以转移到不同的目标任务上。这种转移即使在目标上没有进行组合训练的情况下也会发生,只需要对目标的基本技能有先前的知识。我们的定性分析表明,强化学习从根本上改变了模型的推理行为。相比之下,使用相同数据进行下一token的训练却没有得出这些发现。我们的系统性实验为LLM的学习提供了新的见解,表明首先构建具有基本技能的基础模型,然后使用强化学习来激励复杂问题的先进、可推广的技能的价值。

英文摘要

Does RL teach 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 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 f(x) given x. When an LLM has already learned f and g prior to RL, our experiments reveal that RL enables it to learn unseen compositions of them h(x)=g(f(x)). Further, this compositional ability generalizes to more difficult problems such as compositions of >2 functions unseen during RL training. Surprisingly, our experiments show that compositional skill acquired on a source task transfers to a different target task. This transfer happens even without compositional training on the target, requiring only prior knowledge of the target's atomic skills. Our qualitative analysis shows that RL fundamentally changes the reasoning behaviors of the models. In contrast, next-token training with the same data yields none of these findings. Our systematic experiments provide fresh insights into LLM learning, suggesting the value of first building base models with basic skills, then using RL to incentivize advanced, generalizable skills for complex problems.

解读

一句话总结

该论文通过构建一个合成框架,证明了通过组合现有技能,强化学习可以使大型语言模型(LLMs)获得真正的新的技能,并展示了这些技能的可迁移性和跨任务泛化能力。

问题1:这篇论文想要解决什么具体问题?

问题2:论文的核心创新点是什么?

问题3:实验结果如何验证了方法的有效性?

问题4:这个研究的实际应用价值是什么?

来源