FewStepRL:用强化学习微调少步扩散模型

·

研究论文 · 2026/11/10

强化学习(RL)已成为扩散模型的标准后训练方法,但大多数RL目标在每次迭代时都展开当前策略,且多步采样器的展开成本主导训练。少步模型降低了这一成本,但它们建模的是区间上的平均速度,而现有RL目标是为多步采样器的瞬时速度构建的。我们通过转换、分解和适应三个阶段系统地将RL目标适配至少步模型。转换到x空间通过一个公共策略预测来表达每个目标(默认在干净端,对于过渡或流映射目标在明确标记的层级),使得基于密度、速度或奖励的目标变得可比。分解将每个目标的梯度写成朝向参考的自回归与奖励增强之和,从而在梯度层面将方法简化为锚点和权重的选择。适应从少步模型在其传输末端或沿其切线计算每个锚点,瞬时速度从网络本身或辅助网络恢复。这在一个模块化代码库中产生了FlowGRPO、AWM、DiffusionNFT、DiffusionOPSD和ReFL的少步版本。在我们的实验中,当奖励可微且其梯度可负担时,基于奖励梯度的方法最有效;否则,DiffusionNFT风格的方法通常能在相对较少的迭代中达到高奖励,尽管每次迭代成本有时更高。额外推理步骤在我们的实验中没有显示出系统的总体收益,尽管选定的输出在采样步骤是训练时的两到四倍时明显改善。

该研究系统地将强化学习目标适配至少步扩散模型,显著降低训练成本,并提供了统一的模块化实现和实证指导,对扩散模型的高效后训练具有重要参考价值。

Reinforcement learning (RL) has become a standard post-training method for diffusion models, but most RL objectives roll out the current policy at every iteration, and with a many-step sampler these rollouts typically dominate the cost of training. Few-step models cut this cost, yet they model an average velocity over an interval, whereas existing RL objectives are built for an instantaneous velocity with a many-step sampler. We adapt RL objectives to few-step models systematically in three phases, namely a transformation, a decomposition and an adaptation. The transformation to x-space expresses each objective we consider through a common policy prediction, at the clean end by default and at an explicitly marked level for transition or flow-map objectives, so that objectives stated over densities, velocities or rewards become comparable. The decomposition writes the gradient of each of these objectives as the sum of a self-regression toward a reference and a reward augmentation, so that a method reduces, at the gradient level, to a choice of anchors and weights. The adaptation computes each anchor from a few-step model at the end of its transport or along its tangent, with the instantaneous velocity recovered from the network itself or from an auxiliary network. This yields few-step versions of FlowGRPO, AWM, DiffusionNFT, DiffusionOPSD and ReFL in one modular codebase. In our experiments, reward-gradient-based methods are the most effective when the reward is differentiable and its gradient is affordable; otherwise DiffusionNFT-style methods generally reach high rewards in relatively few iterations despite a sometimes higher per-iteration cost. Extra inference steps show no systematic aggregate benefit in our experiments, although selected outputs visibly improve with two to four times as many sampling steps as in training.

阅读原文

参与讨论