arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2604.25011cs.CL
收藏

为什么强化学习能够泛化?对大语言模型后训练的特征层面机制研究

Why Does Reinforcement Learning Generalize? A Feature-Level Mechanistic Study of Post-Training in Large Language Models

TJUNLP Lab, School of Computer Science and Technology, Tianjin University(天津大学计算机科学与技术学院TJUNLP实验室);German Research Center for Artificial Intelligence (DFKI)(德国人工智能研究中心);Saarland University(萨尔兰大学)

Dan Shi, Zhuowen Han, Simon Ostermann, Renren Jin, Josef van Genabith, Deyi Xiong

AI总结:

研究通过对比强化学习与监督微调在大语言模型中的表现,揭示其泛化机制,发现强化学习通过持续演变的特征保持基模型表示,而监督微调引入稳定但专用的特征。

摘要:

强化学习(RL)基于的后训练通常能提升大语言模型(LLMs)在训练域外的推理性能,而监督微调(SFT)常导致通用能力遗忘。然而,这一对比背后的机制仍不清楚。为弥合这一差距,我们提出了一种特征层面的机理分析方法,通过受控实验设置,使用相同基模型和相同数据训练RL和SFT模型。利用我们的可解释性框架,我们对模型内部激活进行对齐,以共享特征空间分析后训练期间特征的变化。我们发现SFT迅速引入许多高度专业化的特征,这些特征在训练早期稳定,而RL则引发更受限制且持续演变的特征变化,从而在很大程度上保持基模型的表示。聚焦于RL成功但基模型失败的样本,我们识别出一组紧凑且任务无关的特征,这些特征直接介导跨多样任务的泛化。特征层面的干预证实了它们的因果作用:禁用这些特征会显著降低RL模型的泛化性能,而放大它们则能提升基模型的性能。代码可在https://github.com/danshi777/RL-generalization获取。

英文摘要:

Reinforcement learning (RL)-based post-training often improves the reasoning performance of large language models (LLMs) beyond the training domain, while supervised fine-tuning (SFT) frequently leads to general capabilities forgetting. However, the mechanisms underlying this contrast remain unclear. To bridge this gap, we present a feature-level mechanistic analysis methodology to probe RL generalization using a controlled experimental setup, where RL- and SFT-tuned models are trained from the same base model on identical data. Leveraging our interpretability framework, we align internal activations across models within a shared feature space and analyze how features evolve during post-training. We find that SFT rapidly introduces many highly specialized features that stabilize early in training, whereas RL induces more restrained and continually evolving feature changes that largely preserve base models' representations. Focusing on samples where RL succeeds but the base model fails, we identify a compact, task-agnostic set of features that directly mediate generalization across diverse tasks. Feature-level interventions confirm their causal role: disabling these features significantly degrades RL models' generalization performance, while amplifying them improves base models' performance. The code is available at https://github.com/danshi777/RL-generalization.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑