Small flow-matching error controls the inference gap.
When the learned velocity approximates the reference flow well, SDE and ODE inference induce close terminal distributions. Here ε is the square root of the integrated squared velocity error.
Stochastic training. Deterministic deployment.
1 Northwestern University 2 National Taiwan University
* Equal contribution
Manuscript updated November 18, 2026
Explore the recorded results
Switch between three base models to see how training-time SDE rewards compare with ODE deployment.
Same architecture. Different pretraining checkpoints.
Move the cursor to inspect a recorded update.
The curves use the nine original CIFAR-10 histories included with the paper code.
Means and one-standard-deviation bands over seeds 42, 43, and 44. The violation rate is computed from consecutive changes after seed averaging.
The framework
A unified view connects generative-model fine-tuning and flow-policy optimization through the inner MDP induced by SDE inference.
Each stochastic inference transition is an action in an inner MDP. A terminal reward guides policy-gradient updates, including GRPO, without an external environment.
The inner inference MDP is composed with the environment MDP. An entire denoising chain produces the action chunk executed in the environment.
Our instantiation
ChainPPO combines a clipped surrogate for the complete inference chain with an auxiliary clipped surrogate for individual inference steps. Log-ratios are normalized by the action-chunk dimension.
The experiments use α = 0.25, a chain clip of 0.02, a step clip of 0.01, and noise schedule λt = a(1 − t). The normalized ratios are tempered surrogates, as explained in Section 3.3.
| Method | Setting | Surrogate | Noise level λt |
|---|---|---|---|
| Flow-GRPO | Generative fine-tuning | GRPO | a(1 − t)/t |
| DanceGRPO | Generative fine-tuning | GRPO | Constant |
| ReinFlow | Policy optimization | PPO | Learnable |
| Flow-SDE | Policy optimization | PPO | a(1 − t)/t |
| FMPO-CPPO | Policy optimization | ChainPPO | a(1 − t) |
Theoretical foundations
The analysis separates the inference mismatch from the reward improvement achieved by RL.
When the learned velocity approximates the reference flow well, SDE and ODE inference induce close terminal distributions. Here ε is the square root of the integrated squared velocity error.
For a bounded terminal reward, deployment improves when the SDE reward gain exceeds the distributional mismatch penalties at the old and new parameters.
These guarantees hold under the approximation and regularity assumptions in the paper, with early stopping time T < 1. Better pretraining and controlled fine-tuning help keep the mismatch small.
Experimental studies
Gaussian bridges make the reference velocity available analytically. Varying pretraining quality reveals the SDE–ODE distribution gap and the reliability of one-step reward transfer.

On Ant, Humanoid, and Walker2d, FMPO-CPPO achieves higher evaluation reward than ReinFlow and Flow-SDE, with comparable performance on Hopper. Curves show the mean and one standard deviation across five seeds.

Weak, Medium, and Strong class-conditional flow models are fine-tuned with SDE GRPO for 80 updates. Better-pretrained models show closer SDE and ODE reward trajectories; bands show one standard deviation over three seeds.

ODE reward-decrease rate conditioned on SDE improvement
Computed on seed-averaged reward trajectories before taking consecutive-update differences, as in the paper.
Removing the step-wise auxiliary term retains similar performance on Ant, Hopper, and Humanoid; the full method performs better on Walker2d.

We develop a unified framework for flow-based reinforcement learning (RL) grounded in diffusion–flow duality and establish its theoretical foundations. The framework enables RL for deterministic flow matching inference by introducing diffusion stochastic inference dynamics that supports exploration while admitting deterministic deployment. We show that our framework subsumes several existing flow-based RL methods as special cases and inspire effective new methods. Then we provide theoretical foundations for the frameworks by establishing the correctness and performance transfer guarantee. Specifically, we prove that the policies optimized under stochastic dynamics close to deterministic dynamics at deployment when the pretrained model is well-trained. Moreover, we show that the policy improvement achieved under training-time SDE inference transfers to deployment-time ODE inference. Experiments on synthetic and continuous-control tasks validate the theory and demonstrate the proposed algorithms’ effectiveness.
Research resources
The paper and code include the framework, proofs, training entry points, and the available experiment records.
@misc{su2026flowmatchingrl,
title = {Flow Matching Reinforcement Learning via SDE Inference},
author = {Su, Maojiang and Lin, Tsung-En and Hu, Jerry Yao-Chieh and Ye, Guo and Lu, Haoran and Wu, Shang and Wang, Zhaoran and Liu, Han},
year = {2026},
note = {Manuscript updated November 18, 2026}
}