arXiv(opens in a new tab)cs.ROOct 2026Cited by 1 paper on PaperVantage

Manuscript Offprint

arXiv:2610.17667

PrT-Flow: Probability-Tractable Flow Matching for Reinforcement Learning

Congzhong Sun, Ning Tan

Abstract

Diffusion models and Flow Matching can represent flexible distributions over robot actions, but many reinforcement learning algorithms also require the probability of each action. We introduce PrT-Flow (Probability-Tractable Flow Matching), which computes probability density while retaining multimodal, multi-step action generation. Its Jacobian-Tractable Transformer (JTT) makes each sampling step invertible and enables efficient computation of its Jacobian determinant. We train these finite steps with Conditional Euler-step Training (CET), which supervises their displacement over one step during sampling rather than their instantaneous velocity. We prove that, under certain assumptions, CET has the same minimizers as fitting the Euler-solver updates of Flow Matching. PrT-Flow achieves 96% success on Robomimic Lift after 300 epochs of imitation learning, matching the diffusion policy reference, and 96% success on OGBench Cube-Triple after 600k online steps. These results demonstrate that invertible networks with tractable probability densities can learn effective robot policies and support SAC-style actor-critic training. Our code is available at https://github.com/Sunlight-zero/PrT-Flow.

1 Introduction

Learning robot manipulation from demonstrations requires a policy that maps observations, such as camera images or robot states, to actions. For a given observation, several motions may accomplish the same task, yet their average may not correspond to any valid motion. Therefore, the policy should represent a distribution over actions. With action chunking, it predicts a sequence of actions from the current observation and replans from a new observation after executing a specified number of actions.

Given an observation c, a stochastic policy treats an action chunk A as a random vector following the conditional distribution π(⋅∣c)\pi(\cdot \mid c). Diffusion Policy learns this distribution from robot demonstrations using a conditional diffusion model (Chi et al., 2023). Flow Matching offers a related approach to probability transport, learning to move noise toward demonstration actions along a prescribed probability path (Lipman et al., 2023; Liu et al., 2023). PointFlowMatch uses this formulation in place of diffusion to learn robot manipulation policies (Chisari et al., 2024). Both approaches use flexible generative models to capture the multiple valid behaviors that a robot may exhibit.

Imitation learning (IL) and reinforcement learning (RL) provide complementary ways to learn robot policies: IL trains a policy to reproduce demonstrations, while RL uses task rewards to improve behavior through interaction. In the actor–critic framework widely used for continuous control, the actor represents the policy and the critic estimates state or action values. Many RL algorithms also require policy probabilities. Soft Actor-Critic (SAC) uses the log probability of a sampled action in its entropy objective (Haarnoja et al.,

∗^{*}Email: sunczh3@mail2.sysu.edu.cn.

†^{\dagger}Corresponding author. Email: tann5@mail.sysu.edu.cn.

(a) JTT sampling

Conditioned on the observation

Update shared JTT

(c) Execution and SAC

Figure

(b) Volume determinant

K JTT steps shared network

Same scale; same tracked cell

Jacobian

determinant

(b) Volume

Volume

× 1.35

Volume

× 1.33

V0V_{0}

Base

V1V_{1}

VK−1V_{K-1}

VKV_{K}

Compute probability density using D

Probability

density

0.149

÷ 1.35

Probability

density

0.110

Probability

density

0.089

÷ 1.33

Probability

density

0.067

D: absolute Jacobian determinant of one JTT step

2D cells illustrate high-dimensional volume

Figure 1: The overview of PrT-Flow. (a) Conditioned on an observation, the Jacobian-Tractable Transformer (JTT) transforms standard Gaussian noise through K invertible steps of size h=1/Kh = 1/K. Each step returns both the updated sample and the Jacobian determinant D, without constructing a dense Jacobian matrix. (b) The deformed grid illustrates how the probability density of a sample evolves under these steps. At each step, JTT computes the absolute Jacobian determinant D. The local volume is scaled by D and the corresponding density is divided by D, allowing us to track the probability density of a sample. (c) A final tanh transformation maps the generated sample to a bounded action chunk a with its probability density p(a)p(a). SAC-style actor–critic training then uses sampled actions, their log-densities, and learned Q-values to update the FM policy.

2018), while Proximal Policy Optimization (PPO) uses the probability ratio for an action under the updated and previous policies (Schulman et al., 2017). Therefore, a generative policy must provide both action samples and their probabilities to support these algorithms.

Flow Matching provides a sampling procedure, but computing the probability density of its actions requires additional work. Continuous normalizing flows track density changes by integrating the divergence of the velocity field (Chen et al., 2018). However, a robot policy generates actions through finitely many numerical steps, whose endpoint distribution may differ from that of the continuous flow. We seek to compute the density of each action chunk under this finite sampling procedure as the chunk is generated.

We introduce PrT-Flow (Probability-Tractable Flow Matching; Figure 1), which parameterizes each sampling step with an invertible network whose Jacobian determinant is analytically tractable. The Jacobian-Tractable Transformer (JTT) combines causal conditioning with monotone scalar transformations. Each forward pass returns an updated sample and the corresponding determinant, allowing the policy to compute the probability of denoised actions using the change-of-variables formula. We train these steps with Conditional Euler-step Training (CET), which supervises their displacement over one sampling step. Each training example supervises a single step along an interpolation path between noise and a demonstration endpoint; at deployment, the policy composes the steps to generate an action chunk. PrT-Flow thus combines the computable probabilities of normalizing flows with local regression along Flow Matching paths, supporting multimodal, multi-step action generation while providing the action log probabilities used by SAC.

The causal and invertibility constraints in JTT may affect its ability to represent effective behavior. We therefore evaluate PrT-Flow in both imitation learning and offline-to-online reinforcement learning on several benchmarks. PrT-Flow achieves high task success in these settings.

We summarize our contributions as follows.

  1. We propose PrT-Flow and its JTT architecture, which compute the probability density of an action during multi-step generation using tractable per-step Jacobian determinants.

  2. We introduce CET, a training objective whose minimizers coincide with those of marginal Flow Matching over the same family of finite maps. We also show its equivalence to regression against Euler-solver updates of the marginal velocity field.

  3. Our experiments on Lift and Cube-Triple show that the invertible architecture supports high success rates in both imitation learning and SAC-style online control.

Our code is available at https://github.com/Sunlight-zero/PrT-Flow.

References (34)