Controllable Flow Matching for Online Reinforcement Learning
Bin Wang, Boxiang Tao, Haifeng Jing, Hongbo Dou, Zijian Wang
TL;DR
CtrlFlow introduces trajectory-level data synthesis for online reinforcement learning by leveraging Conditional Flow Matching (CFM) to generate whole trajectories without explicitly modeling environment dynamics. A non-linear Controllability Gramian Matrix $N(u)$ is used to minimize control energy during sampling, ensuring global controllability and robustness to noise. The framework further augments data with a value-guided energy vector field, biasing trajectories toward high-return regions and improving policy learning. Empirical results on MuJoCo benchmarks show superior sample efficiency and competitive or superior asymptotic performance compared to model-based and model-free baselines, with ablations validating the roles of trajectory length, control, and value guidance.
Abstract
Model-based reinforcement learning (MBRL) typically relies on modeling environment dynamics for data efficiency. However, due to the accumulation of model errors over long-horizon rollouts, such methods often face challenges in maintaining modeling stability. To address this, we propose CtrlFlow, a trajectory-level synthetic method using conditional flow matching (CFM), which directly modeling the distribution of trajectories from initial states to high-return terminal states without explicitly modeling the environment transition function. Our method ensures optimal trajectory sampling by minimizing the control energy governed by the non-linear Controllability Gramian Matrix, while the generated diverse trajectory data significantly enhances the robustness and cross-task generalization of policy learning. In online settings, CtrlFlow demonstrates the better performance on common MuJoCo benchmark tasks than dynamics models and achieves superior sample efficiency compared to standard MBRL methods.
