NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

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

Tonghe Zhang, Chao Yu, Sichang Su, Yu Wang

Abstract

Imitation learning (IL) has enabled robots to acquire complex skills from human demonstrations but is inherently capped by the quality of the expert data. While online Reinforcement Learning (RL) allows policies to surpass expert performance, its application to flow matching models—preferred for their inference speed—has been hindered by the deterministic nature of Ordinary Differential Equations (ODEs) and the computational cost of likelihood estimation. We present ReinFlow, the first framework to successfully fine-tune flow matching policies using online RL. By converting the deterministic flow into a discrete-time Markov process through learnable noise injection, ReinFlow enables stable exploration and exact likelihood computation. Our results demonstrate that ReinFlow achieves significantly higher success rates and up to 80% faster training times compared to state-of-the-art diffusion-based RL methods.

Introduction

Recent advancements in robotic learning have leveraged imitation learning to map sensory inputs to complex actions. However, the performance of IL is fundamentally limited by the demonstration data. Online RL offers a path to exceed these limits through trial-and-error exploration. While RL has been integrated with diffusion policies, applying it to flow matching models remains challenging. Flow matching models are governed by deterministic ODEs, which restrict exploration and make the calculation of action log-probabilities—required for policy gradient methods—computationally expensive and numerically unstable.

Methodology

ReinFlow bridges the gap between flow matching and online RL through several key innovations:

  1. Noise Injection and Markovian Conversion: Instead of a purely deterministic path, ReinFlow injects learnable Gaussian noise at each denoising step. This transforms the continuous ODE into a discrete-time Markov Process. Since transitions are Gaussian, the log-probability of an action sequence becomes exact and computationally efficient, even with very few denoising steps.
  2. Learnable Exploration: A small "noise injection network" is trained alongside the main policy to learn the optimal noise magnitude for different task stages. This allows the agent to automatically balance exploration and exploitation.
  3. Policy Optimization: With a tractable likelihood, the framework employs Proximal Policy Optimization (PPO) to fine-tune the velocity field of the flow model. Post-training, the noise network is discarded, resulting in a fast, deterministic policy for deployment.

Experiments and Results

We evaluated ReinFlow on diverse benchmarks, including OpenAI Gym locomotion tasks (Hopper, Walker2d, Ant, Humanoid), multi-task manipulation in Franka Kitchen, and visual manipulation in Robomimic.

Performance and Efficiency

ReinFlow demonstrates a significant "scaling path" for performance independent of data quantity. In locomotion tasks, average episode rewards increased by 135.36% after fine-tuning. In manipulation tasks, success rates improved by an average of 40.34%.

Training efficiency comparison between ReinFlow variants, DPPO, and FQL across locomotion tasks.

Crucially, ReinFlow is remarkably efficient. It reduced training wall-clock time by 82.63% in locomotion tasks and 62.82% across all benchmarks compared to DPPO, the current state-of-the-art for diffusion RL. Furthermore, ReinFlow maintains high performance even with "shortcut models" using only one or two denoising steps, enabling high-frequency robotic control.

Discussion and Limitations

While ReinFlow represents a major step forward, several challenges remain. The current implementation relies on PPO, an on-policy algorithm; transitioning to off-policy methods like SAC could further improve sample efficiency. Additionally, the framework exhibits some sensitivity to initial noise hyperparameters. Future work will focus on real-world deployment, where safety and sample efficiency are paramount, and scaling ReinFlow to large-scale Vision-Language-Action (VLA) models.

Conclusion

ReinFlow successfully integrates online RL with flow matching policies, overcoming the limitations of deterministic ODEs. By providing a stable, efficient, and high-performance framework for fine-tuning, ReinFlow paves the way for faster and more capable robotic systems that can learn and improve beyond their initial demonstrations.

Summary updated

BibTeX
@inproceedings{zhang2025reinflow,
  author = {Tonghe Zhang and Chao Yu and Sichang Su and Yu Wang},
  title = {{ReinFlow: Fine-tuning Flow Matching Policy with Online Reinforcement Learning}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2025},
  url = {https://openreview.net/forum?id=ACagRwCCqu},
}
Figure