Flow-Based Policy for Online Reinforcement Learning

Lei Lv, Yunfei Li, Yu Luo, Fuchun Sun, Tao Kong +2 more
6/15/2025
cs.LGcs.AI

No official code found. Best implementation: bytedance/FlowRL (93 stars, Apache-2.0, last commit 2025-10-29).

Abstract

We present \textbf{FlowRL}, a novel framework for online reinforcement learning that integrates flow-based policy representation with Wasserstein-2-regularized optimization. We argue that in addition to training signals, enhancing the expressiveness of the policy class is crucial for the performance gains in RL. Flow-based generative models offer such potential, excelling at capturing complex, multimodal action distributions. However, their direct application in online RL is challenging due to a fundamental objective mismatch: standard flow training optimizes for static data imitation, while RL requires value-based policy optimization through a dynamic buffer, leading to difficult optimization landscapes. FlowRL first models policies via a state-dependent velocity field, generating actions through deterministic ODE integration from noise. We derive a constrained policy search objective that jointly maximizes Q through the flow policy while bounding the Wasserstein-2 distance to a behavior-optimal policy implicitly derived from the replay buffer. This formulation effectively aligns the flow optimization with the RL objective, enabling efficient and value-aware policy learning despite the complexity of the policy class. Empirical evaluations on DMControl and Humanoidbench demonstrate that FlowRL achieves competitive performance in online reinforcement learning benchmarks.

View on arXivView PDF

Code Implementations(1)

bytedance/FlowRLCommunity64%
Apache-2.0

Official implementation of "Flow Based Policy for Online Reinforcement Learning"

939Shell, PythonJun 20, 202511 months agoApache-2.0
research

Similar Papers

Cite this paper

@article{lv2025flowbased,
  title  = {Flow-Based Policy for Online Reinforcement Learning},
  author = {Lei Lv and Yunfei Li and Yu Luo and Fuchun Sun and Tao Kong and Jiafeng Xu and Xiao Ma},
  year   = {2025},
  eprint = {2506.12811},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2506.12811v1}
}

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/2506.12811.svg)](https://codeofpaper.com/paper/2506.12811)

Discussion