arXiv:2509.25123cs.AIcs.CL2025-09被引 41

强化学习让大模型通过组合旧技能,学会真正的新能力。

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

  • 用合成任务控制复杂度,验证模型可通过组合函数习得新技能
  • 在未训练过的多层函数组合上实现泛化,且可迁移到新任务
  • 强化学习改变模型推理行为,而单纯文本预测无法实现此效果

强化学习是否真正教会大模型新技能,还是仅激活已有策略?本研究通过可控的合成框架给出证据:当大模型已掌握两个基础函数f(x)和g(x)后,强化学习可使其学会未见过的复合函数h(x)=g(f(x))。该能力还能泛化到超过两层的复合函数,且在无目标任务组合训练的情况下,仅需了解目标任务的基础函数即可迁移。定性分析显示,强化学习显著改变了模型的推理方式,而相同数据下的纯文本预测训练则无此效果。结果表明,先构建具备基础技能的模型,再用强化学习激励高级通用技能,对解决复杂问题具有价值。

原文摘要 · Abstract (English)

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.

强化学习函数组合技能迁移

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。