Is One Layer Enough? Training A Single Transformer Layer Can Match Full-Parameter RL Training

AK's Picks LLM RLHF ML RL TAVR
2026年07月01日
强化学习(RL)已成为大语言模型(LLM)后训练阶段的核心组成部分,然而,我们对RL适配过程在Transformer各层之间如何分布仍知之甚少。现有方法通常以统一方式更新全部模型参数,隐含地假设每一层对RL后训练所取得的性能提升贡献大致相同。本文通过系统性地开展逐层RL训练研究,对这一假设提出质疑。令人意外的是,我们发现:仅训练单个Transformer层,即可复现全参数RL训练所获得的大部分性能提升;在某些情况下,甚至能超越全参数训练的效果。为量化这一现象,我们提出了“层贡献度”(layer contribution)这一指标,用于衡量单独训练某一层所能恢复的、相对于全参数RL训练整体性能提升的比例。我们在涵盖两大模型系列(Qwen3与Qwen2.5)、共七种模型,三种RL算法(GRPO、GiGPO、Dr. GRPO),以及数学推理、代码生成和智能体决策等多个任务领域的实验中,均观察到一种极为稳定的规律:RL带来的性能增益高度集中于少数几层——在许多情况下,甚至仅集中于单一层。更引人注目的是,这种结构模式始终如一地呈现:高贡献度的层普遍位于Transformer堆叠结构的中部区域,而靠近输入端和输出端的层则贡献显著更低。最终得出的各层贡献度排序,在不同数据集、不同任务、不同模型系列及不同RL算法之间均保持高度相关性。
Reinforcement learning (RL) has become a central component of post-training large language models (LLMs), yet little is understood about how RL adaptation is distributed across transformer layers. Existing approaches typically update all model parameters uniformly, implicitly assuming that every layer contributes similarly to the gains obtained during RL post-training. In this work, we challenge this assumption through a systematic layer-wise study of RL training. Surprisingly, we find that training a single transformer layer can recover most of the gains achieved by full-parameter RL training, and in some cases even surpass it. To quantify this phenomenon, we introduce the quantity layer contribution, which measures the fraction of full RL improvement recovered by training a layer in isolation. Across seven models spanning two model families (Qwen3, Qwen2.5), three RL algorithms (GRPO, GiGPO, Dr. GRPO), and multiple task domains including mathematical reasoning, code generation, and agentic decision-making, we observe a remarkably stable pattern: RL gains are highly concentrated in a small subset of, and in many cases even a single, transformer layers. More strikingly, the same structural pattern consistently emerges: high-contribution layers concentrate in the middle of the transformer stack, while layers near the input and output ends contribute substantially less. The resulting layer rankings remain strongly correlated across datasets, tasks, model families, and RL algorithms.
许愿