Papers
Topics
Authors
Recent
Search
2000 character limit reached

Reinforcement Learning for Flow-Matching Policies with Density Transport

Published 7 Jun 2026 in cs.LG and cs.AI | (2606.08602v1)

Abstract: We present an online reinforcement learning (RL) algorithm for fine-tuning flow-matching policies in continuous-control problems. Our key insight is to view RL-based policy improvement as a transport of action densities towards regions of high reward, which naturally aligns with the transport formulation of flow matching models. Prior methods either approximate the current or optimal policy distribution or resort to distillation, which introduces biased gradients or sacrifices multimodal modeling capacity. In contrast, our approach for RL with Density Transport, which we name \emph{RLDT}, constructs a transport field from a maximum-entropy RL objective using Stein Variational Gradient Descent (SVGD). Then, it finetunes a pretrained flow matching policy to align with this field. Training with this alignment objective is nontrivial because flow-matching policies generate actions via a multi-step process, making direct gradient-based optimization challenging. To overcome this challenge and stabilize training, we approximate policy actions from intermediate denoising steps via expected-target estimation. This allows the transport-field update to propagate into the network parameters without unstable backpropagation through time. Experimental results demonstrate that RLDT outperforms competitive baselines in reward quality and convergence speed. This performance holds across diverse continuous-control tasks, encompassing both dense and sparse rewards, as well as state- and vision-based long-horizon robot manipulation. The project webpage is \href{https://rpfey.github.io/rldt/}{https://rpfey.github.io/rldt/}.

Summary

  • The paper introduces RLDT, a reinforcement learning algorithm that redefines policy improvement as a density transport problem on the action manifold using SVGD.
  • It refines flow-matching policies by aligning pretrained models with high-reward regions through a transport-field approach that stabilizes gradient propagation across ODE steps.
  • Experimental results demonstrate faster convergence and improved reward acquisition in both dense and sparse environments when compared to established baseline methods.

Reinforcement Learning with Density Transport for Flow-Matching Policies

Overview

"Reinforcement Learning for Flow-Matching Policies with Density Transport" (2606.08602) introduces RLDT, an online RL algorithm for fine-tuning flow-matching policies in continuous-control domains. The authors present a paradigm shift in RL policy optimization by framing it as a probability density transport problem on the action manifold. RLDT leverages Stein Variational Gradient Descent (SVGD) to construct a transport field from a maximum-entropy RL objective, enabling efficient alignment of pretrained flow-matching policies with high-reward regions in action space. The work directly addresses the challenges inherent to RL for flow-matching models, particularly the intractability of action log-likelihood calculations and unstable backpropagation through multi-step denoising processes. Figure 1

Figure 1: RLDT pipeline schematic comparing adjoint-matching (QAM) and RLDT's transport-field approach for intermediate denoising step updates.

Formalization of Policy Improvement as Density Transport

RLDT posits that policy improvement in RL can be mathematically modeled as moving the action marginal density toward regions of higher expected reward. This is instantiated as a transport map T=id+ϵϕT = \mathrm{id} + \epsilon\phi, where ϕ\phi is a velocity field defined by the reward landscape. Flow-matching policies, which generate actions via integration of learned vector fields over multiple ODE steps, naturally align with this transport-centric view. The maximum-entropy RL framework is adopted for reward-based density shaping, yielding the optimal policy:

π(as)exp(Q(s,a)/κ)\pi^*(a|s) \propto \exp(Q(s,a)/\kappa)

where QQ is the soft action value and κ\kappa controls entropy regularization.

SVGD provides the transport direction as:

ϕ(x)=Exq[k(x,x)xlogp(x)+xk(x,x)]\phi^*(x) = \mathbb{E}_{x'\sim q}[k(x', x)\nabla_{x'}\log p(x') + \nabla_{x'} k(x', x)]

with kk as the kernel function. The loss is applied directly to intermediate denoising steps using expected posterior actions at,τa^\dagger_{t,\tau}, which are analytically computed and correspond to deterministic mappings along the policy's flow field. This enables propagation of learning signals across all ODE steps, circumventing gradient dilution and instability observed in prior approaches.

Algorithmic Contributions and Regularization

The RLDT loss integrates three components:

  1. RL alignment loss: Matches the policy's flow field to the target SVGD transport direction.
  2. Consistency loss: Regularizes trajectory alignment to preserve optimal transport properties.
  3. Constraint loss: Enforces proximity to the pretrained policy using Fisher divergence.

The complete actor loss is:

Lactor=LRL+λ1Lconsist+λ2Lconstraint\mathcal{L}_{\mathrm{actor}} = \mathcal{L}_{\mathrm{RL}} + \lambda_1 \mathcal{L}_{\mathrm{consist}} + \lambda_2\mathcal{L}_{\mathrm{constraint}}

Training utilizes ensembles of SVGD particles per state, allowing for robust estimation of transport directions and scalable optimization within simulation environments.

Experimental Evaluation

RLDT was empirically validated across three domains: OpenAI Gym (dense reward), FurnitureBench (long-horizon, sparse reward), and Robomimic (vision-based, sparse reward manipulation). Compared against DPPO, ReinFlow, FPO++, and QAM, RLDT demonstrated higher reward acquisition and faster convergence across all environments. Figure 2

Figure 2: RLDT yields superior reward trajectories in dense-reward continuous-control tasks compared to baselines.

Figure 3

Figure 3: RLDT achieves higher or comparable success rates on sparse-reward vision and state-based benchmarks.

Importantly, RLDT's learning signal remains balanced across ODE denoising steps, providing stable optimization dynamics and avoiding the vanishing gradients seen in adjoint-matching methods. Gradient norm analysis confirms this effect: Figure 4

Figure 4: RLDT produces consistent parameter gradient norms across ODE timesteps before and after training, unlike QAM.

Ablation studies on kernel function choice emphasized the impact of SVGD's repulsive term. The RBF kernel promotes exploration and reduces instability in sparse-reward settings, while the delta kernel collapses to pure critic-gradient following, resulting in performance degradation. Figure 5

Figure 5: RLDT-RBF kernel outperforms RLDT-Delta kernel in sparse reward tasks, demonstrating robustness and stability.

Further analysis demonstrated robustness of RLDT to temperature and particle count hyperparameters, supporting its practicality in a range of policy architectures. Figure 6

Figure 6: RLDT performance is stable across a range of temperature parameters κ0\kappa_0 in Gym tasks.

Figure 7

Figure 7: RLDT is not sensitive to ensemble size ϕ\phi0, achieving strong results with few SVGD particles.

Additional statistics confirmed the kernel-induced stability: Figure 8

Figure 8: Training statistics for delta vs. RBF kernels highlighting constraint loss and transport velocity norms.

Theoretical and Practical Implications

RLDT advances the theoretical understanding of RL for generative policies by demonstrating that density transport via SVGD is effective for fine-tuning flow models without explicit density estimation or constraining policy structure. Its balanced multi-step signals and sample-based optimization circumvent the main limitations of previous log-likelihood and adjoint-based approaches. Practically, RLDT enables large-scale fine-tuning of foundation flow policies in continuous, high-dimensional, long-horizon robotics settings.

The requirement for multiple parallel SVGD particles introduces computational overhead, but ablations indicate that only four particles suffice, making simulation-to-real applications viable. The density transport perspective may further influence future RL algorithm design, particularly for expressive policy classes where multi-step generation and standard policy gradients are limiting.

Conclusion

RLDT presents a formally principled and empirically validated algorithm for RL-based fine-tuning of flow-matching policies by recasting policy improvement as density transport aligned with reward gradients. It addresses critical challenges in flow policy optimization, including gradient stability and density tractability, and demonstrates strong performance across dense and sparse continuous-control tasks. The approach opens new avenues for RL with generative policies and is anticipated to accelerate development in robotics, vision-language-action adaptation, and simulation-to-real transfer in high-dimensional control systems.

Paper to Video (Beta)

No one has generated a video about this paper yet.

Whiteboard

No one has generated a whiteboard explanation for this paper yet.

Open Problems

We haven't generated a list of open problems mentioned in this paper yet.

Collections

Sign up for free to add this paper to one or more collections.