Flow-based policies provide expressive action distributions for continuous-control reinforcement learning. In online actor-critic learning, off-policy value estimates can be unreliable in poorly covered action regions, where expressive policies may shift probability mass toward critic-favored actions. We propose MIFLOW, which calibrates online flow-policy learning with a recency-adaptive flow-matching prior fitted to recently executed actions. Inspired by canalization as a qualitative analogy for path-dependent stabilization, we use the prior as a moving density reference for value-guided policy improvement. MIFLOW uses the approximate recent-action log-density in a dimension-normalized correction to both actor updates and critic targets. This correction increases the cost of low-density actions while keeping them available. Across six MuJoCo continuous-control tasks and five random seeds, MIFLOW achieves competitive mean return curves and higher late-training mean returns than the evaluated baselines on several tasks. In a Walker2d-v4 case study, MIFLOW shows a lower proportion of actions assigned low density by the learned reference, both overall and among high-Q actions. Prior-family and prior-buffer comparisons show task-dependent differences in returns and prior-defined diagnostics. These results support dynamic recent-behavior priors for reference calibration in the evaluated settings. The diagnostics measure how sampled actions align with the learned reference. True action support and critic extrapolation error remain unmeasured in these experiments.
Figures & tables
Fig. 1: Overview of MIFLOW. Recent executed actions are stored in a sliding prior buffer and used to train a recency-adaptive flow-matching behavior prior. The prior provides an approximate recent-action log-density that acts as a dynamic reference in path-density actor-critic updates. Low-prior-density actions remain selectable but receive an additional cost during critic-guided policy improvement. The upper panel provides a qualitative analogy for path-dependent adaptation; the algorithm itself is defined by the learned prior and reference-calibrated objectives.
Fig. 2: Main performance comparison on six MuJoCo-v4 continuous-control tasks. Curves show smoothed mean episodic return over environment steps, and shaded regions denote standard deviation across five seeds. These curves provide descriptive comparisons and do not indicate formal statistical significance.
Fig. 3: Walker2d-v4 diagnostic case study. Bars report mean ± SEM over five random seeds. SACFlow denotes the no-prior path-density flow-policy baseline, and SACFlow-GP denotes the learned Gaussian-prior variant. OOS Rate is prior-defined: it counts policy actions whose action-dimension-normalized logρϕ(a) falls below the 20th percentile of recent-buffer actions under the same learned prior. HQ/LP Cond is the fraction of top-20% clipped-double-Q policy actions that also lie in this low-prior region. MIFLOW has the lowest reported mean for both prior-defined diagnostics in this case study.
Environment
MIFLOW (×103)
SACFlow-GP (×103)
Ant
6.3 ± 0.1
-0.8 ± 0.3
HalfCheetah
11.3 ± 0.5
9.0 ± 0.7
Hopper
3.1 ± 0.2
3.0 ± 0.1
Humanoid
9.3 ± 0.3
4.2 ± 0.3
HumanoidStandup
341.8 ± 30.7
99.6 ± 14.9
Walker2d
5.3 ± 0.2
5.0 ± 0.3
TABLE I: Prior-family ablation on MuJoCo tasks. Values report the final evaluated episodic return, summarized descriptively as mean ± SEM over five seeds. SACFlow-GP denotes the learned Gaussian-prior variant.
Env
Buffer
Return (×103)
OOS (%)
HQ/LP (%)
Ant
5k
6.55 ± 0.03
30.2 ± 1.0
15.9 ± 2.5
50k
6.3 ± 0.1
32.2 ± 1.9
15.4 ± 0.4
500k
6.36 ± 0.30
33.7 ± 1.0
19.7 ± 2.3
Walker2d
5k
5.42 ± 0.41
37.6 ± 2.3
10.2 ± 0.6
50k
5.3 ± 0.2
37.9 ± 2.3
16.1 ± 4.1
500k
5.50 ± 0.45
35.4 ± 4.7
17.4 ± 6.0
TABLE II: Prior-buffer-size sensitivity on Ant-v4 and Walker2d-v4. This is a separate sensitivity suite in which only the prior-buffer size is varied. Values report mean ± SEM over five random seeds. Return is the final evaluated episodic return.
Reinforcement learning control uses reward-driven learning to make decisions in dynamic systems, from robots and vehicles to energy and infrastructure.
Flow-based policies offer an expressive representation for online reinforcement learning, but conventional flow matching requires samples drawn from the distribution to be modeled. This poses a challenge when the desired action distribution is defined only implicitly by a Q-function, since directly sampling actions from the resulting distribution is generally intractable. We propose Refinement-Based Flow Policy Optimization (RFPO), a novel framework for training a flow policy in online reinforcement learning by alternating between Q-guided sample refinement and self-target flow matching. RFPO first generates actions from Gaussian noise using the current flow policy and then uses a finite-step stochastic refinement procedure to move them toward an energy-based distribution induced by the Q-function. Each refined action is then paired with its corresponding initial noise sample and used as a fixed target for flow-matching training. By repeatedly refining its own outputs and learning from the resulting targets, RFPO incorporates Q-guidance into the policy without requiring direct samples from the target distribution, while retaining the capacity to represent multiple action modes. We further provide a theoretical analysis of the distributional dynamics induced by RFPO. Across six continuous-control tasks, RFPO matches or outperforms a standard Gaussian-policy baseline on almost every task. Experiments on six synthetic two-dimensional target distributions with diverse geometries demonstrate that RFPO captures complex multimodal structure without mode collapse.
Bumgeun Park, Hyukjun Yang, Donghwan Lee
Korea Advanced Institute of Science and Technology (KAIST)
The dataset distributions in offline reinforcement learning (RL) often exhibit complex and multi-modal distributions, necessitating expressive policies to capture such distributions beyond widely-used Gaussian policies. To handle such complex and multi-modal datasets, in this paper, we propose Flow Actor-Critic, a new actor-critic method for offline RL, based on recent flow policies. The proposed method not only uses the flow model for actor as in previous flow policies but also exploits the expressive flow model for conservative critic acquisition to prevent Q-value explosion in out-of-data regions. To this end, we propose a new form of critic regularizer based on the flow behavior proxy model obtained as a byproduct of flow-based actor design. Leveraging the flow model in this joint way, we achieve new state-of-the-art performance for test datasets of offline RL including the D4RL and recent OGBench benchmarks.
A learned critic can improve a pretrained flow-matching policy by steering sampled actions toward higher predicted value. However, even a critic that fits the behavior data well can provide misleading action gradients. Gradient components pointing away from the data-supported region are weakly constrained by behavior data and can lead guidance to exploit critic extrapolation errors. We introduce RetraQ (Retraction-based Q-guidance), which uses geometry encoded by the pretrained flow to constrain both the direction and the destination of critic guidance. A single velocity evaluation of the frozen flow defines a denoising map. RetraQ filters the critic gradient with the map's Jacobian and applies the map itself to correct the updated action. Our analysis characterizes when these operations approximate tangent filtering and retraction onto the behavior manifold. The same update guides actions at test time and provides targets for policy distillation and online reinforcement learning. In controlled studies, RetraQ improves true return while keeping refined actions close to the data-supported region, and its distillation targets remain more stable than those of raw critic ascent. In offline-to-online training on LIBERO and OGBench, RetraQ achieves higher mean final success than the evaluated critic-guidance baselines. On a real-world plug-insertion task, test-time RetraQ improves the success rate of a behavior-cloned π0.5 policy from 55.0% to 76.7%. Online training further increases success to 98.3% in only 30 minutes and 100% within one hour. Project page: https://2027ICLR.github.io/retraq/
Xuanzhuo Liu, Wu Chen, Ruixiang Wu +5
Stanford University · AGIBOT Innovation (Shanghai) Technology Co., Ltd. · The Chinese University of Hong Kong, Shenzhen +1