arXiv:2507.17107cs.LGcs.AI2025-07被引 2

强化学习微调只改变大模型中5%-30%的少量参数,其余基本不变。

Reinforcement Learning Fine-Tunes a Sparse Subnetwork in Large Language Models

  • 强化学习仅激活模型中5%-30%的权重,形成稳定子网络。
  • 仅微调该稀疏子网络即可恢复全模型性能。
  • 发现结果支持彩票理论,适合追求高效微调的研究者。

强化学习(RL)是使大语言模型(LLMs)适配复杂任务和人类偏好关键的后预训练步骤。尽管普遍认为RL微调需更新大部分参数,我们发现一个意外现象:RL微调通常仅改变少量子网络(约5%-30%权重),其余参数基本不变。这一现象称为RL诱导的参数更新稀疏性,无需任何稀疏约束或参数高效微调技术即自然出现,且在多种算法(如PPO、DPO、SimPO、PRIME)和模型家族(如OpenAI、Meta及开源模型)中均成立。此外,不同种子、数据集和算法下更新的子网络具有显著重叠,远超随机水平,表明预训练模型中存在部分可迁移结构。仅对这一稀疏子网络进行微调即可恢复全模型性能,且参数与完整微调几乎一致。分析表明,这种稀疏性源于RL在模型原始分布附近运行,仅需局部调整。KL惩罚、梯度裁剪和在线策略动态对稀疏模式影响有限。这些发现揭示了RL适应模型的本质:并非全局调整权重,而是聚焦于一个稳定更新的子网络。这为更高效的RL方法提供了思路,并从彩票理论视角重新理解稀疏性。

原文摘要 · Abstract (English)

Reinforcement learning (RL) is a key post-pretraining step for aligning large language models (LLMs) with complex tasks and human preferences. While it is often assumed that RL fine-tuning requires updating most of a model's parameters, we challenge this assumption with a surprising finding: RL fine-tuning consistently modifies only a small subnetwork (typically 5-30% of weights), leaving most parameters unchanged. We call this phenomenon RL-induced parameter update sparsity. It arises naturally, without any sparsity constraints or parameter-efficient tuning, and appears across multiple RL algorithms (e.g., PPO, DPO, SimPO, PRIME) and model families (e.g., OpenAI, Meta, and open-source LLMs). Moreover, the subnetworks updated by RL show substantial overlap across different seeds, datasets, and algorithms-far exceeding chance-suggesting a partially transferable structure in the pretrained model. We show that fine-tuning only this sparse subnetwork recovers full model performance and yields parameters nearly identical to the fully fine-tuned model. Our analysis suggests this sparsity emerges because RL operates near the model's original distribution, requiring only targeted changes. KL penalties, gradient clipping, and on-policy dynamics have limited effect on the sparsity pattern. These findings shed new light on how RL adapts models: not by shifting all weights, but by focusing training on a small, consistently updated subnetwork. This insight enables more efficient RL methods and reframes sparsity through the lens of the lottery ticket hypothesis.

强化学习稀疏微调大模型彩票理论

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