Velox World/Research/RPOPreprint · arXiv

RPO

Routing Policy Optimization for online diffusion reinforcement learning.

1 National University of Singapore  ·  2 ByteDance

Reinforcement learning can align visual generators with rewards beyond pretraining, but score-function methods usually inject noise into the reverse trajectory and pay for it with large groups of complete rollouts. RPO moves exploration inside the generator: attention routing, drawn from the generator's own attention mass, becomes the stochastic action, and inference returns to dense attention with the original sampler.

Wan2.2-TI2V-5B · same prompt, same noise · drag to wipe
Base · Wan2.2 + RPO
Base and RPO · matched prompt and starting noise Replacement clips · no attached score data
24.1GPU-h

To train on Wan2.2

H100 GPU-hours. Flow-GRPO took 75.4 and DanceGRPO 102.3; the runs are not compute-matched.

3.1–4.2×

Less training compute

Than Flow-GRPO and DanceGRPO respectively, with the same HPSv3 reward.

25/ 50

Steps to pass Flow-GRPO

On SD3.5, the dense reward at step 25 already exceeds Flow-GRPO's step-50 value; it ends 1.1 points higher (one seed).

2

Rollouts per group

A matched pair, against G = 8 for DanceGRPO. Both share prompt and noise; 64 pairs per step.

01 · The idea

Put the randomness inside attention, not on the sampler's path.

Sampler-space RL such as Flow-GRPO and DanceGRPO explores by perturbing the reverse process, then estimates an advantage from a group of complete stochastic rollouts.

RPO keeps the deterministic sampler. At a few selected denoising levels, each query block either stays dense or keeps its own block plus key blocks drawn in proportion to the generator's native attention mass. The sampled route perturbs that step's velocity, and a Gaussian likelihood around the dense velocity scores it.

Sampler-space RLRPO
ExplorationNoise injected into the reverse trajectoryRoutes drawn from the generator's own attention mass
Per updateGroups of complete rollouts, G = 8 in DanceGRPOMatched pairs, G = 2, 64 pairs per step
LikelihoodGaussian transition of an SDE stepGaussian around the dense velocity
AdvantageGroup statistics over the rolloutsReward difference of the pair
SamplerStochastic during trainingOriginal, deterministic, throughout

Two rollouts share the prompt, the initial latent, the routed levels and the anchor layers. They differ only in their routing seeds, so their reward difference measures the effect of the two routes. Below, each row is a query block. Change the temperature and the keep ratio, and watch the two routes agree or diverge.

Route lab · rows are query blocks, columns are key blocks
a₁Rollout 1

Dense rows —

a₂Rollout 2

Dense rows —

ΔWhere they differ

Differ on — of cells

Own block, always kept Kept candidate Dense row: sees every block Dropped (shade = attention mass) Δ: kept only in a₁ Δ: kept only in a₂

01

Score with dense attention

At a routed level, a no-gradient pass measures how much attention each query block puts on each key block.

02

Draw two routes

Each block stays dense or keeps its own block plus candidates, drawn in proportion to that attention mass.

03

Step with the routed velocity

Same prompt, latent, levels and anchor layers (which stay dense). Only the routing seeds differ.

04

Score the difference

The reward difference of the pair is the advantage, with opposite signs for the two members.

05

Update the dense velocity

A Gaussian likelihood around the dense velocity is replayed with gradient, so the update lands on the field the sampler uses.

Nothing changes at inference. All masks are removed: dense attention and the original deterministic sampler. The gains transfer because the loss differentiates the dense velocity that the sampler evaluates.

02 · Results

Faster to learn, and the gain survives dense inference.

Training rewards are scored on routed or SDE rollouts, so the comparison that matters is the dense model that ships: same prompts, same noise, same sampler.

Dense validation reward · SD3.5-Medium, HPSv3
10864 01020304050 training step 8.90 at step 25 10.20 RPO 9.91 Flow-GRPO 8.81
Markers are values stated in the paper's text; lines between them are schematic. Raw HPSv3 of the dense model on 64 fixed validation prompts, 28-step sampler, one training seed.

RPO passes Flow-GRPO's final reward in half the steps. The dense model scores 8.90 at step 25, above Flow-GRPO's step-50 score of 8.81.

It keeps climbing. RPO peaks at 10.20 at step 40 and ends at 9.91, a gain of +5.97 over its step-zero score, against +4.86 for Flow-GRPO, which ends 1.1 points lower.

It is not ahead everywhere. Flow-GRPO starts slightly faster at step 5, and RPO leads from step 10 onward. Both curves come from a single training seed.

Both methods train the same LoRA adapters with the same HPSv3 reward and 10-step sampler. RPO collects 64 matched pairs per step; on Wan2.2, DanceGRPO uses groups of G = 8 and updates the full model.

Training cost on Wan2.2

GPU-hours on H100. The runs are not compute-matched.

RPO
24.1
Flow-GRPO
75.4
DanceGRPO
102.3

VBench transfer

6,220 videos from shared prompts and initial noise. Scores in percent, best per row in bold.

DimensionWan2.2
base
RPODance-
GRPO
Flow-
GRPO
Aesthetic quality61.9162.6461.7460.09
Imaging quality67.7168.6567.6967.43
Subject consistency98.3798.6998.3897.59
Motion smoothness98.7699.0698.7597.88
Object class81.0185.4180.8179.10
Multiple objects59.1561.3059.3459.98
Human action79.4084.2080.0081.80
Scene37.4140.8436.9536.73
Overall score81.6182.0081.4681.19
Training GPU-hours (H100)—24.1102.375.4

The paper's table lists the eight VBench dimensions where RPO exceeds both RL baselines, plus the overall score. Other dimensions show trade-offs, described alongside.

RPO is the only trained checkpoint above the base model overall (82.00 against 81.61; DanceGRPO 81.46, Flow-GRPO 81.19). Differences from the base are largest on semantic dimensions: human action +4.80, object class +4.40, scene +3.43 and multiple objects +2.15, and smaller on quality and consistency dimensions.

There are trade-offs. RPO lowers color and appearance style relative to the base model, although it still leads the trained baselines there. The four Wan2.2 overall scores span only 0.81 points on one seed set, so the aggregate ranking is directional.

SD3.5-Medium · DrawBench, no CFG

ImageReward−0.54 → −0.18
UnifiedReward2.10 → 2.32
DeQA-Score3.35 → 3.56

1,000 images from 200 prompts and 5 seeds. None of these metrics is the training reward.

04 · Release

The preprint is public.

Cite the arXiv version below. Code and results will be linked here when they are released.

01

Preprint

The paper, with implementation settings and evaluation protocols in the appendix.

arXiv · 2610.22282
02

Code and results

Training code for the routing policy and the evaluation outputs.

Planned
03

MiniMax-H3 gallery

A third comparison page, next to Wan2.2 and SD3.5.

Planned
@article{shen2026rpo,
  title   = {Routing Policy Optimization for Online Diffusion Reinforcement Learning},
  author  = {Shen, Qiuhong and Yang, Yiding and Zhang, Yuxin and Huang, Xinwei and Lin, Minxuan and Liu, Bo and Kang, Hao and Yang, Haotian and Wang, Yizhi and Ma, Chongyang and Wang, Xinchao},
  journal = {arXiv preprint arXiv:2610.22282},
  year    = {2026}
}