ReinFlow: Fine-tuning Flow Matching Policy with Online Reinforcement Learning

Tong-He Zhang, Chao Yu, Sichang Su, Yu Wang
5/1/2025
diffusion-flowrl

No confident code implementation found for this paper.

Abstract

We propose ReinFlow, a simple yet effective online reinforcement learning (RL) framework that fine-tunes a family of flow matching policies for continuous robotic control. Derived from rigorous RL theory, ReinFlow injects learnable noise into a flow policy's deterministic path, converting the flow into a discrete-time Markov Process for exact and straightforward likelihood computation.

Show full abstract

This conversion facilitates exploration and ensures training stability, enabling ReinFlow to fine-tune diverse flow model variants, including Rectified Flow [35] and Shortcut Models [19], particularly at very few or even one denoising step. We benchmark ReinFlow in representative locomotion and manipulation tasks, including long-horizon planning with visual input and sparse reward. The episode reward of Rectified Flow policies obtained an average net growth of 135.36% after fine-tuning in challenging legged locomotion tasks while saving denoising steps and 82.63% of wall time compared to state-of-the-art diffusion RL fine-tuning method DPPO [43]. The success rate of the Shortcut Model policies in state and visual manipulation tasks achieved an average net increase of 40.34% after fine-tuning with ReinFlow at four or even one denoising step, whose performance is comparable to fine-tuned DDIM policies while saving computation time for an average of 23.20%. Project webpage: https://reinflow.github.io/

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{zhang2025reinflow,
  title  = {ReinFlow: Fine-tuning Flow Matching Policy with Online Reinforcement Learning},
  author = {Tong-He Zhang and Chao Yu and Sichang Su and Yu Wang},
  year   = {2025},
  eprint = {2505.22094},
  archivePrefix = {arXiv},
  doi    = {10.48550/arXiv.2505.22094},
  url    = {https://doi.org/10.48550/arXiv.2505.22094},
  journal = {Neural Information Processing Systems}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2505.22094.svg)](https://codeofpaper.com/paper/2505.22094)

Discussion