在线扩散强化学习的路由策略优化
研究论文 · 2026/10/16
强化学习可以使视觉生成器与预训练目标之外的奖励信号对齐,但现有的得分函数方法通常通过扰动反向去噪轨迹引入随机性,导致昂贵的基于展开的优化。我们转而探究是否可以在生成器内部引入随机探索,同时保留其原始采样器。路由策略优化(RPO)通过将注意力路由转变为随机探索动作来回答这个问题。在少数选定的去噪层级,每个查询块保留自己的块,并根据生成器原生注意力质量采样进一步的关键块,或保持密集注意力。采样的路由扰动该过渡的速度,而围绕密集速度的高斯似然以得分函数目标对扰动进行评分。RPO进一步使用受控的双展开估计器:两次展开共享相同的提示、初始潜在变量、路由去噪层级和密集锚定层,仅在其采样的注意力路由上不同。它们的奖励差异为路由过渡提供了优势信号。由于似然对密集速度本身进行微分,学习到的更新在移除路由后仍然有效。在推理时,RPO恢复密集注意力并保留原始确定性采样器。在文本到图像和文本到视频生成上的实验表明,RPO提高了生成质量,同时实现了比Flow-GRPO风格方法近4倍的训练效率。请访问我们的项目页面 https://velox-world.com/rpo 查看视觉结果。
RPO通过将注意力路由作为随机探索动作,在保持原始采样器的同时实现了高效的在线扩散强化学习,训练效率比现有方法提升近4倍,为视觉生成器的奖励对齐提供了新思路。
Reinforcement learning can align visual generators with reward signals beyond their pretraining objectives, but existing score-function methods typically introduce stochasticity by perturbing the reverse denoising trajectory, leading to costly rollout-based optimization. We instead ask whether stochastic exploration can be introduced inside the generator while preserving its original sampler. Routing Policy Optimization (RPO) answers this question by turning attention routing into a stochastic exploration action. At a few selected denoising levels, each query block keeps its own block and samples further key blocks in proportion to the generator's native attention mass, or keeps dense attention. The sampled route perturbs the velocity of that transition, and a Gaussian likelihood around the dense velocity scores the perturbation with a score-function objective. RPO further uses a controlled two-rollout estimator: two rollouts share the same prompt, initial latent, routed denoising levels, and dense anchor layers, differing only in their sampled attention routes. Their reward difference provides an advantage signal for the routed transitions. Because the likelihood differentiates the dense velocity itself, the learned updates remain effective after routing is removed. At inference, RPO restores dense attention and retains the original deterministic sampler. Experiments on text-to-image and text-to-video generation show that RPO improves generation quality while achieving nearly 4x higher training efficiency than Flow-GRPO-style methods. Please see our project page at https://velox-world.com/rpo for visual results.