betaFeedback

WorksComputer Science

From Suboptimal to Optimal: One-Step Latent Flow Policies for Offline Reinforcement Learning

Abstract

Offline reinforcement learning aims to learn effective policies from fixed datasets without environment interaction. Although generative models such as diffusion and flow matching enhance policy expressiveness, they typically start from uninformative Gaussian noise and generate actions through multi-step iteration, leading to high computational costs and failing to effectively leverage suboptimal trajectories in datasets. We propose MeanFlow2Better (MF2B), which reformulates offline RL as generative decision chunk optimization from current performance status to better performance status in a high-level latent decision space. MF2B maps trajectory chunks to high-level latent decision representations through an encoder, placing generation starting points within a structured decision space sculpted by behavioral data. The model learns a shared conditional mean velocity field in this space, constructing two flow mappings: from Gaussian-Induced Decision Sources toward positive behavioral decision regions, and from suboptimal decisions toward high-value decision regions. Both flow mappings complete decision refinement through one-step ODE integration over the unit time interval Δt=1Δt=1, requiring neither multi-step iterative sampling nor backpropagation through time. Furthermore, we propose hierarchical chunk-level advantage to guide the flow direction toward high-return regions, where the high-level decisions cover multiple low-level actions, leading to sequence length compression from TT to K≈T/HK \approx T/H and significantly lower computational overhead. On the D4RL Gym-MuJoCo benchmark, MF2B achieves an average score of 90.91, matching or surpassing strong baselines.

Introduction

Reinforcement learning (RL) has achieved remarkable progress across diverse domains, including robotics [1, 2], games [3, 4], and fundamental science [5, 6]. In many real-world settings such as robotics [1, 7], healthcare [8], and autonomous driving [9], however, online interaction is expensive, unsafe, or infeasible. Offline RL addresses this by learning solely from pre-collected datasets [10], but faces two persistent challenges: limited policy expressiveness as behavioral distributions grow complex and multimodal [11], and the underutilization of suboptimal trajectories that constitute the majority of practical datasets.

Generative policies based on diffusion [12] and flow matching [13] improve expressiveness, yet share two structural limitations. First, they generate behaviors through multi-step denoising or ODE integration, incurring high inference costs. Second, they model policies directly in raw action space, treating trajectories of different qualities as homogeneous samples [14, 15] and offering no mechanism to lift suboptimal behaviors toward high-value regions.

We argue that suboptimal trajectories are not pure noise but starting points for improvement. Drawing on the neural null-space mechanism in motor cortex [16], we design Gaussian-Induced Decision Sources as a semantic and value null-space origin from which structured flow learning sculpts task-relevant decision representations. Hierarchical behavior theory [17, 18] motivates our chunk-level latent decision representation, and value correction principles [19] inspire the hierarchical chunk-level advantage-guided flow mapping toward high-value regions.

We propose MF2B (MeanFlow2Better, MF2B), which reformulates offline RL as generative decision chunk optimization from current performance status to better performance status in a high-level latent decision space. A Chunk-Level Latent Decision Encoder compresses trajectory chunks into high-level latent representations, reducing sequence length from TT to K≈T/HK \approx T / H. A shared conditional mean velocity field learns across two branches: one transporting Gaussian-Induced Decision Sources toward positive behavioral regions, another transporting suboptimal decisions toward high-value regions. Hierarchical chunk-level advantage estimation guides both branches toward high-return areas. Unlike multi-step diffusion or flow models, MF2B predicts the conditional mean velocity over the unit interval Δt=1\Delta t = 1 and completes refinement in a single Euler step. Evaluation on the D4RL Gym-MuJoCo benchmark[20] demonstrates an average score of 90.91, surpassing all one-step flow policy baselines.

Our main contributions are:

  • We propose MF2B, which reformulates offline RL as generative decision chunk optimization from suboptimal to high-value in a high-level latent decision space, realized through a dual-branch conditional mean velocity field with hierarchical chunk-level advantage guidance.

  • We propose a one-step decision refinement mechanism based on conditional mean velocity fields, replacing multi-step ODE integration with a single Euler step over the unit interval Δt=1\Delta t = 1.

  • Evaluations on 9 D4RL Gym-MuJoCo tasks demonstrate an average score of 90.91, establishing state-of-the-art performance among one-step flow policies.

Related Work

Offline Reinforcement Learning. Reinforcement learning is inherently an online paradigm[21], and its online learning characteristics present limitations in scenarios where online data collection and learning cannot occur simultaneously, such as autonomous driving. Offline reinforcement learning enables agents to learn from pre-collected fixed datasets without collecting new data during the learning process[22, 23, 24, 25, 26, 27].

Diffusion Policies in Offline RL. Offline RL aims to learn effective policies from fixed datasets without environment interaction [28], with early methods addressing distributional shift via conservative objectives such as CQL [23], TD3+BC [14], and IQL [15]. However, these approaches often rely on unimodal Gaussian policies, which struggle to model complex, multi-modal action distributions. To address this, recent approaches have adopted diffusion models [29, 30] for offline RL. Diffusion Q-learning (DQL) [12] replaces Gaussian policies with diffusion models, modeling complex multimodal action distributions through multi-step denoising. IDQL [31] and EDP [11] improve upon DQL but still share the critical limitation of high sampling costs from multi-step denoising.

Flow Matching and Flow Policies. Flow matching is a generative modeling approach that learns time-varying velocity fields through regressing target vector fields, which define probability paths transporting samples from simple prior distributions to target data distributions, characterized by simple training and fast inference[32] (see § 3 for details). Recently, flow matching has attracted attention in reinforcement learning due to its strong expressiveness and faster inference. FQL [13] uses flow matching policies to approximate behavior policies and distills flow policies for efficient policy learning and inference. FlowQ [33] learns a conditional velocity field for flow policies by modeling energy-guided probability paths as Gaussian trajectories. However, these methods typically rely on simple Gaussian priors and multi-step sampling from flow policies, limiting representation richness and bringing additional computational overhead. To address computational bottlenecks from multi-step generative policies, MeanFlowQL [34] reformulates MeanFlow [35] as a residual mapping that directly transforms noise into actions. SSCP [36] uses enhanced flow matching objective functions to predict direct completion vectors from intermediate samples, achieving one-shot action generation.

Unlike the above methods, this paper introduces MF2B, achieving paradigm shifts in three dimensions. First, at the representation space level, existing flow policies operate directly in raw action space[13, 33], requiring learning highly nonlinear mappings from Gaussian noise to complex action distributions. MF2B compresses trajectory chunks into high-level latent decision representations through an encoder, reformulating flow matching as short-range approximately linear flow mappings within decision space, thereby establishing foundations for one-step generation. Second, at the generation mechanism level, FQL[13] and FlowQ[33] learn marginal velocity fields requiring multi-step ODE integration, while MF2B learns mean velocity fields [35] directly predicting residual directions from starting points to endpoints, achieving one-step high-fidelity generation. Third, at the optimization objective level, existing methods indiscriminately fit dataset behavior frequencies, while MF2B introduces a dual-branch flow architecture: the Source-to-Positive Alignment Mean-Flow Branch establishes baseline mappings from Gaussian-Induced Decision Sources to dataset decisions, and the Quality-Uplift Mean-Flow Branch achieves value-guided flow mapping from suboptimal decisions to high-value decisions through hierarchical chunk-level advantage weighting, with both branches sharing the same conditional mean velocity field parameters. This design enables the model to extract flow mapping patterns leading from suboptimal trajectories to optimal policies, breaking through dataset quality ceilings. To our knowledge, this is the first offline reinforcement learning method combining mean flow matching with value-guided dual-branch flow mapping in high-level latent decision space to exploit suboptimal-to-optimal data capabilities, achieving unity of expressiveness and computational efficiency.

Preliminaries

Offline Reinforcement Learning

Reinforcement learning (RL) is typically formalized as a Markov Decision Process (MDP), defined by M=(S,A,P,R,γ)\mathcal{M} = (\mathcal{S}, \mathcal{A}, P, R, \gamma). Here, S\mathcal{S} and A\mathcal{A} denote the state and action spaces, P(s′∣s,a)P(s' \mid s, a) denotes the transition probability of moving from ss to s′s' given action aa, and R(s,a)R(s, a) denotes the reward function. The discount factor γ∈[0,1)\gamma\in[0, 1) governs the trade-off between immediate and future rewards. In RL, the objective is to learn a policy πθ(a∣s)\pi_\theta(a \mid s), parameterized by θ\theta, that maximizes the expected discounted return

Eπ[∑h=0∞γhR(sh,ah)].(1)\mathbb{E}_{\pi}\left[\sum_{h=0}^{\infty} \gamma^h R(s_h, a_h)\right]. \tag*{(1)}

To support policy learning, the action-value (Q) function is defined:

Qπ(s,a)=Eπ[∑h=0∞γhR(sh,ah)∣s0=s,a0=a],(2)Q^\pi(s, a) = \mathbb{E}_{\pi}\left[\sum_{h=0}^{\infty} \gamma^h R(s_h, a_h) \mid s_0 = s, a_0 = a\right], \tag*{(2)}

which measures the expected cumulative return starting from state ss and action aa under policy π\pi.

Offline RL is a setting of RL where the agent does not interact with the environment but instead learns from a fixed dataset of transitions D={(sh,ah,sh+1,rh)}\mathcal{D} = \{(s_h, a_h, s_{h+1}, r_h)\}. The challenge lies in learning an optimal policy solely from this static dataset that often contains suboptimal behavior, without any further exploration.

Implicit Q-Learning

Implicit Q-Learning (IQL) [15] is an offline reinforcement learning method that learns upper-bound estimates of value functions through expectile regression, thereby avoiding out-of-distribution action evaluation. Unlike traditional Q-learning that directly fits Q-value means, IQL’s core innovation lies in using asymmetric expectile loss functions to train the state-value network V(s)V(s).

IQL maintains two Q-networks Qω1(s,a)Q_{\omega_1}(s, a) and Qω2(s,a)Q_{\omega_2}(s, a), a state-value network Vψ(s)V_\psi(s), and corresponding target Q-networks. The value network is learned through expectile regression:

LV=E[∣τexp−I(δ<0)∣δ2],(3)\mathcal{L}_V = \mathbb{E}\left[\left|\tau_{\mathrm{exp}} - \mathbb{I}(\delta< 0)\right|\delta^2\right], \tag*{(3)}

where δ=min⁡(Qω‾1(s,a),Qω‾2(s,a))−Vψ(s)\delta= \min(Q_{\overline{\omega}_1}(s, a), Q_{\overline{\omega}_2}(s, a)) - V_\psi(s), and τexp∈(0.5,1)\tau_{\mathrm{exp}} \in(0.5, 1) is the expectile parameter (typically 0.7). This asymmetric loss makes Vψ(s)V_\psi(s) learn as a high expectile of the behavior value distribution rather than a simple average, thereby providing more conservative value estimates.

Based on this value baseline, an advantage function can be defined:

A(s,a)=min⁡(Qω1(s,a),Qω2(s,a))−Vψ(s).(4)A(s, a) = \min(Q_{\omega_1}(s, a), Q_{\omega_2}(s, a)) - V_\psi(s). \tag*{(4)}

This advantage function can identify relatively high-value state-action pairs in the dataset, providing value guidance signals for policy learning without explicit policy improvement steps.

Flow Matching

Flow matching is a generative modeling approach that adopts simple and intuitive training objectives by regressing target vector fields, which define desired probability paths[32]. Flow matching learns a time-varying vector field by defining an ordinary differential equation (ODE), whose solution transports samples from a simple prior distribution to the target data distribution.

Given a data distribution p(x)p(x), the goal is to learn a time-varying velocity field vθ(xt,t):Rd×[0,1]→Rdv_\theta(x_t,t):\mathbb{R}^d \times[0,1] \to\mathbb{R}^d parameterized by θ\theta, where xt∈Rdx_t \in\mathbb{R}^d denotes a dd-dimensional data sample and t∈[0,1]t \in[0,1] denotes time. This velocity field defines a continuous flow that transports samples from a simple prior distribution (e.g., unit Gaussian) at t=0t=0 to the target data distribution p(x)p(x) at t=1t=1.

Flow Path Construction and Velocity Field. Flow paths can be constructed as xt=αtx0+βtϵx_t = \alpha_t x_0 + \beta_t \epsilon [13, 32], where αt\alpha_t and βt\beta_t are predefined time-varying functions (common choice: αt=1−t\alpha_t = 1-t, βt=t\beta_t=t), x0∼p(x)x_0 \sim p(x) is a data sample, and ϵ∼N(0,I)\epsilon\sim\mathcal{N}(0,I) is noise. The corresponding conditional velocity is given by

vt(xt∣x0)=ddtxt=αt′x0+βt′ϵ,v_t(x_t \mid x_0) = \frac{d}{dt}x_t = \alpha'_t x_0 + \beta'_t \epsilon,

where ′' denotes the time derivative with respect to tt.

Standard flow matching learns the marginal velocity field v(xt,t)≜Ept(x0∣xt)[vt(xt∣x0)]v(x_t,t) \triangleq\mathbb{E}_{p_t(x_0\mid x_t)}[v_t(x_t\mid x_0)] via the Conditional Flow Matching (CFM) loss [32], which requires multi-step ODE integration during generation. In contrast, the mean velocity field[37] directly models the average velocity between two timesteps, defined as:

u(xt,r,t)≜1t−r∫rtv(xτ,τ)dτ,(5)u(x_t,r,t) \triangleq\frac{1}{t-r}\int_r^t v(x_\tau,\tau)d\tau, \tag*{(5)}

where uu denotes the average velocity from time rr to time tt, and vv denotes the marginal velocity. As r→tr \to t, uu converges to vv. The advantage of the mean velocity field is that it can directly predict residual directions from starting points to endpoints, achieving one-step high-fidelity generation without iterative ODE integration. By learning the mean velocity field uθ(xt,r,t)u_\theta(x_t,r,t), samples can be directly generated through a one-step update x1=x0+uθ(x0,0,1)x_1 = x_0 + u_\theta(x_0,0,1) over the unit time interval Δt=1\Delta t = 1.

Training Objective for Mean Velocity Field. The mean velocity field uθu_\theta is optimized through the mean flow identity. Defining the average velocity as u(xt,r,t)=1t−r∫rtv(xτ,τ)dτu(x_t,r,t) = \frac{1}{t-r}\int_r^t v(x_\tau,\tau)d\tau, by taking the time derivative and applying the chain rule, the mean flow identity can be obtained[37]:

u(xt,r,t)=v(xt,t)−(t−r)(v(xt,t)⋅∂xtu+∂tu),(6)u(x_t,r,t) = v(x_t,t) - (t-r)\left(v(x_t,t)\cdot\partial_{x_t}u+\partial_tu\right), \tag*{(6)}

where ∂xtu\partial_{x_t}u and ∂tu\partial_tu denote partial derivatives of uu with respect to xtx_t and tt respectively. This identity relates the marginal velocity vv to the mean velocity uu, enabling construction of supervision targets for mean velocity through the known conditional velocity vt(xt∣x1)=x1−ϵv_t(x_t\mid x_1)=x_1-\epsilon. Training minimizes:

LMF(θ)=E0≤r<t≤1,ϵ∼N(0,I),x1∼p(x)[∥uθ(xt,r,t)−u∗(xt,r,t∣x1)∥22],(7)\mathcal{L}_{\mathrm{MF}}(\theta) = \mathbb{E}_{\substack{0\le r<t\le1,\\ \epsilon\sim\mathcal{N}(0,I),\\ x_1\sim p(x)}}\left[\left\|u_\theta(x_t,r,t)-u^*(x_t,r,t\mid x_1)\right\|_2^2\right], \tag*{(7)}

where u∗(xt,r,t∣x1)u^*(x_t,r,t\mid x_1) is computed from the conditional velocity through Equation (6).

Sampling and Generation with Mean Velocity Field. Given the mean velocity field uθ(xt,r,t)u_\theta(x_t,r,t), samples can be directly generated through a one-step update:

x1=x0+uθ(x0,0,1),(8)x_1 = x_0 + u_\theta(x_0,0,1), \tag*{(8)}

where x0=ϵ∼N(0,I)x_0 = \epsilon\sim\mathcal{N}(0,I) is prior noise. The mean velocity field directly predicts residual directions from starting points to endpoints, achieving one-step high-fidelity generation without iterative ODE integration, significantly reducing inference costs.

MeanFlow2Better Method

MF2B reformulates offline reinforcement learning as a quality improvement problem in high-level latent decision space. Trajectory chunks are compressed into high-level latent decision representations through a Chunk-Level Latent Decision Encoder qϕq_\phi, a shared Conditional Latent Decision Mean-Flow Field vθv_\theta learns conditional mean velocities across two supervisory branches, and a Hierarchical Action Decoder pψp_\psi recovers continuous action sequences from refined decisions. A hierarchical Chunk-Level Advantage Critic CηC_\eta provides value guidance during training only. Throughout this section, we fix t0=0t_0=0 and t1=1t_1=1 as the start and end of the unit flow interval. Algorithm 1 summarizes the complete pipeline.

Chunk-Level High-Level Latent Decision Representation

Given an offline dataset D={τi}i=1N\mathcal{D} = \{\tau_i\}_{i=1}^{N}, each trajectory τi=(s0,a0,r0,…,sT−1,aT−1,rT−1)\tau_i = (s_0, a_0, r_0, \ldots, s_{T-1}, a_{T-1}, r_{T-1}) is segmented into consecutive chunks of length HH:

τk=(sk,0:H−1,ak,0:H−1),(9)\tau_k = (s_{k,0:H-1}, a_{k,0:H-1}), \tag*{(9)}

yielding K≈T/HK \approx T/H chunks per trajectory. The encoder qϕq_\phi maps each chunk to a distribution over high-level latent decisions:

qϕ(τk)=[μk,log⁡σk2]∈R2dz,(10)q_\phi(\tau_k) = [\mu_k, \log\sigma_k^2] \in\mathbb{R}^{2d_z}, \tag*{(10)}

and the full decision sequence is Z=[z1,…,zK]∈RK×2dzZ = [z_1, \ldots, z_K] \in\mathbb{R}^{K \times2d_z}. The mean-flow field operates on the concatenated [μ,log⁡σ2][\mu, \log\sigma^2] representation directly. The decoder samples via reparameterization, zk=μk+exp⁡(12log⁡σk2)⊙ϵkz_k = \mu_k + \exp(\frac{1}{2}\log\sigma_k^2) \odot\epsilon_k, and generates actions as a^k,0:H−1=pψ(sk,0:H−1,zk)\hat{a}_{k,0:H-1} = p_\psi(s_{k,0:H-1}, z_k). This separation of high-level behavioral intention from low-level action execution allows the flow model to perform behavioral improvement in a compact, stable decision space rather than over raw action sequences.

High-Level Decision Source Construction

Gaussian-Induced Decision Source

A Gaussian pseudo-trajectory τG−∼N(0,I)\tau_G^- \sim\mathcal{N}(0, I) is drawn with the same temporal shape as real trajectories. Inspired by the neural null-space mechanism [16], we explicitly set its reward, RTG, chunk-level RTG, and trajectory return to zero, placing Gaussian-Induced Decision Sources at the zero point of the value dimension. After encoding:

Zneg=qϕ(τG−).(11)Z_{\mathrm{neg}} = q_\phi(\tau_G^-). \tag*{(11)}

The Source-to-Positive Alignment Mean-Flow Branch transports ZnegZ_{\mathrm{neg}} toward positive behavioral decision regions, establishing task-relevant structure from a value-neutral baseline unconstrained by any specific return interval in the dataset.

Suboptimal-to-High-Value Trajectory Pairing

Trajectories are partitioned into a high-value pool Itop\mathcal{I}_{\mathrm{top}} and a suboptimal pool Ilow\mathcal{I}_{\mathrm{low}} by sorting on complete return Ri=∑tri,tR_i = \sum_t r_{i,t}. The high-value timestep coverage ratio ρtraj∈(0,1]\rho_{\mathrm{traj}} \in(0, 1] controls the timestep budget of Itop\mathcal{I}_{\mathrm{top}}. Suboptimal and high-value latent decisions are then obtained by encoding trajectories sampled from each pool:

Zlow=qϕ(τlow),Ztop=qϕ(τtop).(12)Z_{\mathrm{low}} = q_\phi(\tau_{\mathrm{low}}), \qquad Z_{\mathrm{top}} = q_\phi(\tau_{\mathrm{top}}). \tag*{(12)}

The Quality-Uplift Mean-Flow Branch learns to transport ZlowZ_{\mathrm{low}} toward ZtopZ_{\mathrm{top}}, distilling high-value decision structure from existing suboptimal experiences.

Dual-Branch Conditional Latent Decision Mean Flow Mapping

Both branches share the Conditional Latent Decision Mean-Flow Field vθ(Z,t0,t1,c)v_\theta(Z, t_0, t_1, c) but differ in source, target, and condition. Return-sorted pairing ensures the model learns mean velocities aligned with return improvement rather than arbitrary intra-distribution variation.

Each branch receives chunk-level and global conditions. The local condition for the kk-th chunk is the target trajectory’s return-to-go:

cchunk(b,k)=∑t=kHT−1rtop,t(b),(13)c_{\mathrm{chunk}}^{(b,k)} = \sum_{t=kH}^{T-1} r_{\mathrm{top},t}^{(b)}, \tag*{(13)}

and the global condition is the return gap:

cglobal(b)=Rtop(b)−Rlow(b).(14)c_{\mathrm{global}}^{(b)} = R_{\mathrm{top}}^{(b)} - R_{\mathrm{low}}^{(b)}. \tag*{(14)}

For the Source-to-Positive Alignment branch, the pair is (τneg,τpos)(\tau_{\mathrm{neg}}, \tau_{\mathrm{pos}}) with Rneg=0R_{\mathrm{neg}} = 0, so cglobal=Rpos(b)c_{\mathrm{global}} = R_{\mathrm{pos}}^{(b)}. Both conditions are independently projected and injected into chunk tokens and a global condition token.

Source-to-Positive Alignment Mean-Flow Branch

The branch predicts the mean velocity transporting ZnegZ_{\mathrm{neg}} to ZposZ_{\mathrm{pos}} over the unit interval [t0,t1][t_0, t_1]:

U^flow(b)=vθ(Zneg(b),t0,t1,cflow(b)),Uflow∗(b)=Zpos(b)−Zneg(b)t1−t0.(15)\widehat{U}_{\mathrm{flow}}^{(b)} = v_\theta\left(Z_{\mathrm{neg}}^{(b)}, t_0, t_1, c_{\mathrm{flow}}^{(b)}\right), \qquad U_{\mathrm{flow}}^{*(b)} = \frac{Z_{\mathrm{pos}}^{(b)} - Z_{\mathrm{neg}}^{(b)}}{t_1 - t_0}. \tag*{(15)}

Quality-Uplift Mean-Flow Branch

The branch predicts the mean velocity transporting ZlowZ_{\mathrm{low}} to ZtopZ_{\mathrm{top}} over the unit interval [t0,t1][t_0,t_1]:

U^main(b)=vθ(Zlow(b),t0,t1,cmain(b)),Umain∗(b)=Ztop(b)−Zlow(b)t1−t0.(16)\widehat{U}_{\mathrm{main}}^{(b)} = v_{\theta}\left(Z_{\mathrm{low}}^{(b)}, t_0, t_1, c_{\mathrm{main}}^{(b)}\right), \qquad U_{\mathrm{main}}^{*(b)} = \frac{Z_{\mathrm{top}}^{(b)} - Z_{\mathrm{low}}^{(b)}}{t_1-t_0}. \tag*{(16)}

Refined high-level decisions are obtained by one-step integration over [t0,t1][t_0,t_1]:

Zplus(b)=Zlow(b)+(t1−t0)U^main(b),(17)Z_{\mathrm{plus}}^{(b)} = Z_{\mathrm{low}}^{(b)} + (t_1-t_0)\widehat{U}_{\mathrm{main}}^{(b)}, \tag*{(17)}

which are decoded to reconstruct action sequences for the target high-value trajectory. This branch directly instantiates the core hypothesis: learnable improvement directions exist between suboptimal and high-value behaviors in high-level decision space.

High-Level Decision Transformer Architecture

The mean-flow field vθv_{\theta} is a Transformer with bidirectional multi-head self-attention over the chunk sequence, taking Z∈RK×2dzZ \in\mathbb{R}^{K \times2d_z} as input tokens. Unlike the causal encoder and decoder, the flow field uses full attention so every chunk token can attend to the complete high-level decision sequence, enabling globally coherent mean velocity prediction. The attention sequence length K≈T/HK \approx T/H compresses the original TT-step horizon into KK decision units.

Hierarchical Chunk-Level Latent Decision Value Estimation and Advantage Guidance

To avoid indiscriminate fitting to dataset behavior frequency, a hierarchical chunk-level advantage critic provides value guidance. Following IQL [15] (see § 3), the critic operates on chunk-level transitions (sb,k,zb,k,rb,kchunk,sb,k+1)(s_{b,k}, z_{b,k}, r_{b,k}^{\mathrm{chunk}}, s_{b,k+1}) rather than primitive actions or full trajectories, and is used only during training.

The Bellman target is:

yb,k=rb,kchunk+γbootVν(sb,k+1),(18)y_{b,k} = r_{b,k}^{\mathrm{chunk}} + \gamma_{\mathrm{boot}} V_{\nu}(s_{b,k+1}), \tag*{(18)}

with γboot=0.99\gamma_{\mathrm{boot}} = 0.99 and target networks maintained via Polyak averaging. The expectile value loss learns Vν(s)V_{\nu}(s) as a high-expectile baseline of the behavioral decision value distribution. Chunk-level advantage is:

Ab,k=min⁡(Qωˉ,1(sb,k,zb,k),Qωˉ,2(sb,k,zb,k))−Vν(sb,k).(19)A_{b,k} = \min\left(Q_{\bar{\omega},1}(s_{b,k},z_{b,k}), Q_{\bar{\omega},2}(s_{b,k},z_{b,k})\right) - V_{\nu}(s_{b,k}). \tag*{(19)}

Advantages are converted to exponential weights:

wb,k∝exp⁡(βAb,k).(20)w_{b,k} \propto\exp(\beta A_{b,k}). \tag*{(20)}

The Quality-Uplift branch uses a weight interpolated between wb,kw_{b,k} and uniform to prevent extreme chunks from dominating flow supervision while preserving quality preference. The Source-to-Positive branch uses uniform weighting. Low-value chunks remain as source endpoints for the Quality-Uplift branch. The critic adjusts their training contribution rather than discarding them.

Joint Training Objective

The total loss is:

L=λactLact+λmainLmain+λflowLflow.(21)\mathcal{L} = \lambda_{\mathrm{act}}\mathcal{L}_{\mathrm{act}} + \lambda_{\mathrm{main}}\mathcal{L}_{\mathrm{main}} + \lambda_{\mathrm{flow}}\mathcal{L}_{\mathrm{flow}}. \tag*{(21)}

The action reconstruction loss reweights samples by hierarchical chunk-level advantage:

Lact=Eb,k,t[wb,k∥a^bkt−abkttop∥22].(22)\mathcal{L}_{\mathrm{act}} = \mathbb{E}_{b,k,t}\left[w_{b,k}\left\lVert\hat{a}_{bkt} - a_{bkt}^{\mathrm{top}}\right\rVert_2^2\right]. \tag*{(22)}

To prevent flow supervision targets from drifting jointly with encoder parameters, stop-gradient is applied to both endpoints when constructing mean velocity targets. Let sg⁡(⋅)\operatorname{sg}(\cdot) denote the stop-gradient operator:

Umain∗=sg⁡(Ztop)−sg⁡(Zlow)t1−t0,Uflow∗=sg⁡(Zpos)−sg⁡(Zneg)t1−t0.(23)U_{\mathrm{main}}^{*} = \frac{\operatorname{sg}(Z_{\mathrm{top}})-\operatorname{sg}(Z_{\mathrm{low}})}{t_1-t_0}, \qquad U_{\mathrm{flow}}^{*} = \frac{\operatorname{sg}(Z_{\mathrm{pos}})-\operatorname{sg}(Z_{\mathrm{neg}})}{t_1-t_0}. \tag*{(23)}

This ensures Lmain\mathcal{L}_{\mathrm{main}} and Lflow\mathcal{L}_{\mathrm{flow}} update vθv_{\theta} only through the predicted velocity branch and do not backpropagate into the encoder via the target construction path. The encoder receives end-to-end gradients through Lact\mathcal{L}_{\mathrm{act}} and the decoding path from ZplusZ_{\mathrm{plus}}.

Algorithm 1 MF2B Training and Inference

  1. Input: Offline dataset D\mathcal{D}, coverage ratio ρtraj\rho_{\mathrm{traj}}; fix t0=0t_0 = 0, t1=1t_1 = 1

  2. Initialize: qϕq_{\phi}, vθv_{\theta}, pψp_{\psi}, Qω,1Q_{\omega,1}, Qω,2Q_{\omega,2}, VνV_{\nu}

  3. Sort by return; partition Itop\mathcal{I}_{\mathrm{top}} and Ilow\mathcal{I}_{\mathrm{low}}

  4. while not converged do

  5. Sample τlow∼Ilow\tau_{\mathrm{low}} \sim\mathcal{I}_{\mathrm{low}}, τtop∼Itop\tau_{\mathrm{top}} \sim\mathcal{I}_{\mathrm{top}}, τneg∼N(0,I)\tau_{\mathrm{neg}} \sim\mathcal{N}(0, I), τpos∼D\tau_{\mathrm{pos}} \sim\mathcal{D}

  6. Encode: Zlow,Ztop,Zneg,Zpos←qϕ(⋅)Z_{\mathrm{low}}, Z_{\mathrm{top}}, Z_{\mathrm{neg}}, Z_{\mathrm{pos}} \leftarrow q_{\phi}(\cdot)

  7. Compute Ab,kA_{b,k}, wb,kw_{b,k} via hierarchical chunk-level IQL critic

  8. U^flow←vθ(Zneg,t0,t1,cflow)\widehat{U}_{\mathrm{flow}} \leftarrow v_{\theta}(Z_{\mathrm{neg}}, t_0, t_1, c_{\mathrm{flow}}); Uflow∗←(sg⁡(Zpos)−sg⁡(Zneg))/(t1−t0)U_{\mathrm{flow}}^{*} \leftarrow\bigl(\operatorname{sg}(Z_{\mathrm{pos}}) - \operatorname{sg}(Z_{\mathrm{neg}})\bigr)/(t_1 - t_0)

  9. U^main←vθ(Zlow,t0,t1,cmain)\widehat{U}_{\mathrm{main}} \leftarrow v_{\theta}(Z_{\mathrm{low}}, t_0, t_1, c_{\mathrm{main}}); Umain∗←(sg⁡(Ztop)−sg⁡(Zlow))/(t1−t0)U_{\mathrm{main}}^{*} \leftarrow\bigl(\operatorname{sg}(Z_{\mathrm{top}}) - \operatorname{sg}(Z_{\mathrm{low}})\bigr)/(t_1 - t_0)

  10. Zplus←Zlow+(t1−t0)U^mainZ_{\mathrm{plus}} \leftarrow Z_{\mathrm{low}} + (t_1 - t_0)\widehat{U}_{\mathrm{main}}; A^top←pψ(Stop,Zplus)\widehat{A}_{\mathrm{top}} \leftarrow p_{\psi}(S_{\mathrm{top}}, Z_{\mathrm{plus}})

  11. Update θ\theta, ϕ\phi, ψ\psi: minimize λactLact+λmainLmain+λflowLflow\lambda_{\mathrm{act}}\mathcal{L}_{\mathrm{act}} + \lambda_{\mathrm{main}}\mathcal{L}_{\mathrm{main}} + \lambda_{\mathrm{flow}}\mathcal{L}_{\mathrm{flow}}

  12. Update Qω,1Q_{\omega,1}, Qω,2Q_{\omega,2}, VνV_{\nu}; Polyak-update target networks

  13. end while

  14. // Inference: Online Decision Execution

  15. Input: Trained qϕq_{\phi}, vθv_{\theta}, pψp_{\psi}; target return condition cc

  16. for each episode do

  17. Reset environment; initialize observation buffer B←{s0}\mathcal{B} \leftarrow\{s_0\}

  18. while episode not done do

  19. Construct source chunk τsource←(st−H+1:t,at−H+1:t−1)\tau_{\mathrm{source}} \leftarrow(s_{t-H+1:t}, a_{t-H+1:t-1}) from buffer B\mathcal{B}

  20. Zt0←qϕ(τsource)Z_{t_0} \leftarrow q_{\phi}(\tau_{\mathrm{source}}) {encode to high-level latent decision}

  21. Zt1←Zt0+(t1−t0)vθ(Zt0,t0,t1,c)Z_{t_1} \leftarrow Z_{t_0} + (t_1 - t_0)v_{\theta}(Z_{t_0}, t_0, t_1, c) {one-step mean-flow refinement}

  22. a^0:H−1←pψ(st−H+1:t,Zt1)\widehat{a}_{0:H-1} \leftarrow p_{\psi}(s_{t-H+1:t}, Z_{t_1}) {decode HH actions}

  23. for h=0h = 0 to H−1H - 1 do

  24. Execute a^h\widehat{a}_h in environment; observe st+h+1s_{t+h+1}, rt+hr_{t+h}

  25. end for

  26. Update buffer B\mathcal{B} with new states st+1:t+Hs_{t+1:t+H}; t←t+Ht \leftarrow t + H

  27. end while

  28. end for

The flow losses are normalized by the target velocity scale:

Lmain=Eb,k[wb,kmain∥U^main−Umain∗∥22]E[∥Umain∗∥22],Lflow=Eb,k[∥U^flow−Uflow∗∥22]E[∥Uflow∗∥22].(24)\mathcal{L}_{\mathrm{main}} = \frac{\mathbb{E}_{b,k}\left[w_{b,k}^{\mathrm{main}}\left\|\widehat{U}_{\mathrm{main}} - U_{\mathrm{main}}^{*}\right\|_2^2\right]} {\mathbb{E}\left[\left\|U_{\mathrm{main}}^{*}\right\|_2^2\right]}, \qquad \mathcal{L}_{\mathrm{flow}} = \frac{\mathbb{E}_{b,k}\left[\left\|\widehat{U}_{\mathrm{flow}} - U_{\mathrm{flow}}^{*}\right\|_2^2\right]} {\mathbb{E}\left[\left\|U_{\mathrm{flow}}^{*}\right\|_2^2\right]}. \tag*{(24)}

One-Step High-Level Decision Refinement and Inference

Given a source trajectory at test time, inference reduces to:

Zt0=qϕ(τsource),(25)Z_{t_0} = q_{\phi}(\tau_{\mathrm{source}}), \tag*{(25)}
Zt1=Zt0+(t1−t0)vθ(Zt0,t0,t1,c),(26)Z_{t_1} = Z_{t_0} + (t_1 - t_0)v_{\theta}(Z_{t_0}, t_0, t_1, c), \tag*{(26)}
a^0:T−1=pψ(Zt1,s0:T−1).(27)\widehat{a}_{0:T-1} = p_{\psi}(Z_{t_1}, s_{0:T-1}). \tag*{(27)}

The mean-flow field performs a single forward pass to predict the full mean velocity over [t0,t1][t_0, t_1], so no iterative ODE integration is required. The core of the method is not generating trajectories from scratch, but learning directional transport from existing suboptimal behaviors toward high-value behavioral regions in structured high-level decision space.

Experiments

Environmental Setup

We evaluate MF2B on 9 Gym-MuJoCo locomotion tasks from the D4RL benchmark [20], covering HalfCheetah, Hopper, and Walker2d under medium, medium-replay, and medium-expert dataset conditions.

Evaluation Metrics

We report D4RL normalized scores: Normalized Score =100×score−random scoreexpert score−random score= 100 \times\frac{\text{score}-\text{random score}}{\text{expert score}-\text{random score}}, where 0 corresponds to a uniform random policy and 100 to a domain-specific expert. For evaluation, we report the average normalized return over 5 training seeds, with each model evaluated for 50 episodes per task.

Baseline Models

We compare MF2B with representative baselines across three categories: regression-based policies (BC, TD3-BC [14], IQL [15], CQL [23], MOReL [38], ReBRAC [39], SRPO [40], CAC [41], FAMAC, FERAC), diffusion policies (Diffuser [42], DD [43], EDP [11], IDQL [31], DQL [12], TCD [44]), and flow policies (FQL [13], IFQL, FlowQ [33], LaMPO [45], SSCP [36], Value Flows [46], FAN [47]).

Experimental Results

Main Performance Comparison

Gym-MuJoCo Locomotion Task Comprehensive Comparison

Table 1 presents the comprehensive comparison of MF2B with existing offline RL methods on 9 Gym-MuJoCo tasks. We categorize baseline models into three classes: regression-based policies, diffusion policies, and one-step flow policies. MF2B achieves an average score of 90.91 and total score of 818.22 on Gym9 tasks, performing particularly well on medium-replay datasets, which contain suboptimal and noisy trajectories posing challenges for standard policy learning. It achieves competitive performance among one-step flow policies.

DatasetBCTD3-BCIQLCQLMOReLCACDiffuserDDEDPIDQLDQLTCDFQLFlowQSSCPMF2B
HalfCheetah ME55.290.786.791.653.384.390.3±0.188.9±1.995.8±0.191.3±0.696.8±0.392.7±3.499.8±0.189.6±2.398.1±0.995.47±0.31
Hopper ME52.598.091.5105.4108.7100.4107.2±0.9110.4±0.6110.8±0.4110.1±0.7111.1±1.3112.6±1.086.2±1.3103.5±7.0110.9±0.9119.74±1.24
Walker2d ME107.5110.1109.6108.895.6110.4107.4±0.1108.4±0.1110.4±0.0110.6±0.0110.1±0.3111.3±0.7100.5±0.1109.1±0.2111.1±0.1117.78±0.95
HalfCheetah M42.648.347.444.042.169.143.8±0.145.3±0.350.8±0.051.5±0.151.1±0.547.2±0.760.1±0.156.8±0.852.3±0.546.69±0.38
Hopper M52.959.366.358.595.480.789.5±0.798.2±0.172.6±0.270.1±2.090.5±4.699.4±0.674.5±0.288.9±6.4102.4±0.2100.93±0.89
Walker2d M75.383.778.372.577.883.179.4±1.079.6±0.986.5±0.288.1±0.487.0±0.982.1±1.872.7±0.884.9±0.484.2±0.993.20±1.44
HalfCheetah MR36.644.644.245.540.258.736.0±0.742.9±0.144.9±0.446.5±0.347.8±0.340.6±1.451.1±0.150.3±0.944.4±1.043.81±0.30
Hopper MR18.160.994.795.093.699.791.8±0.599.2±0.283.0±1.799.4±0.1101.3±0.697.2±2.485.4±0.599.2±1.4101.4±0.4104.36±2.12
Walker2d MR26.081.873.977.249.879.558.3±1.875.6±0.687.0±2.689.1±2.495.5±1.588.0±1.982.1±1.288.5±2.985.9±13.496.24±1.02
Total (Gym9)466.7677.4692.6698.5656.5765.9703.7748.5741.8756.7791.2771.1712.3770.8788.3818.22
Average (Gym9)51.975.377.077.672.985.178.283.282.484.187.985.779.285.687.990.91

Table 1. D4RL Gym-MuJoCo Benchmark Comprehensive Comparison.

From Table 1, MF2B achieves an average score of 90.91 on Gym9, surpassing all flow policies (FQL 79.2, FlowQ 85.6, SSCP 87.9) and most diffusion policies (DQL 87.9, TCD 85.7), demonstrating the efficiency of one-step conditional mean velocity field flow mapping on continuous control tasks.

Ablation Studies

Module Ablation Experiments

Module ablations are conducted on 9 Gym-MuJoCo tasks. Each variant removes or replaces exactly one mechanism while keeping all other settings identical to the complete model.

Direct High-Level Latent Decision Mapping (MF2B-DLM) Replaces conditional mean velocity transport with a direct mapping Z^top=fDLM(Zlow,cchunk,cglobal)\hat{Z}_{\mathrm{top}} = f_{\mathrm{DLM}}(Z_{\mathrm{low}}, c_{\mathrm{chunk}}, c_{\mathrm{global}}), testing whether the mean velocity flow formulation is necessary.

No Value Guidance (MF2B-NVG) Removes hierarchical chunk-level IQL advantage estimation and reweighting, testing whether value guidance is required to steer high-level latent decisions toward high-value regions.

Return-Ordered Uniform Pairing (MF2B-UP) Draws trajectory pairs uniformly from the full dataset while preserving return direction (Rtop≥RlowR_{\mathrm{top}} \ge R_{\mathrm{low}}), removing the explicit high-value and suboptimal trajectory pools. Tests whether directional pool-based pairing provides supervision beyond simple return-ordered pairs.

No Source-to-Positive Alignment Mean-Flow Branch (MF2B-NAF) Sets the Source-to-Positive Alignment branch loss weight to zero, removing auxiliary supervision from Gaussian-Induced Decision Sources (ZnegZ_{\mathrm{neg}}) to positive behavioral decisions (ZposZ_{\mathrm{pos}}) while retaining the Quality-Uplift Mean-Flow Branch. Tests whether the structure-forming branch is necessary for establishing task-relevant behavioral structure in the high-level latent decision space.

Module Ablation Experiment Results

Table 2 presents results on Gym-MuJoCo9. The complete MF2B (average 90.91) outperforms all variants. Key findings: (1) MF2B-DLM (−4.47) confirms the necessity of conditional mean velocity transport over direct target mapping. (2) MF2B-NVG (−4.07) shows chunk-level value guidance is critical for directing latent decisions toward high-value regions. (3) MF2B-UP (−5.71) demonstrates that explicit directional pool-based pairing provides stronger supervision than uniform return-ordered pairs. (4) MF2B-NAF (−5.28) validates that the Source-to-Positive Alignment Mean-Flow Branch—analogous to the neural null-space mechanism [16]—establishes task-relevant topological structures and value gradient baselines that support subsequent quality-uplift transport.

DatasetMF2B-DLMMF2B-NVGMF2B-UPMF2B-NAFMF2B
HalfCheetah Medium45.12 ± 0.2546.09 ± 0.6545.61 ± 0.3844.99 ± 0.1346.69 ± 0.38
HalfCheetah Medium-Replay43.11 ± 0.4242.33 ± 0.1942.97 ± 0.2642.37 ± 0.1243.81 ± 0.30
HalfCheetah Medium-Expert94.01 ± 0.2294.25 ± 0.1794.34 ± 0.3194.74 ± 0.4995.47 ± 0.31
Hopper Medium81.57 ± 2.2390.91 ± 3.8392.74 ± 7.1477.46 ± 1.17100.93 ± 0.89
Hopper Medium-Replay99.97 ± 3.3793.10 ± 1.8083.00 ± 13.6997.28 ± 2.30104.36 ± 2.12
Hopper Medium-Expert117.75 ± 1.39116.92 ± 0.72116.71 ± 0.39115.13 ± 0.51119.74 ± 1.24
Walker2d Medium88.37 ± 0.8788.16 ± 0.4386.15 ± 0.6887.10 ± 0.3593.20 ± 1.44
Walker2d Medium-Replay89.94 ± 0.3292.10 ± 0.6690.76 ± 4.3991.92 ± 1.4296.24 ± 1.02
Walker2d Medium-Expert114.74 ± 1.27114.26 ± 1.37111.12 ± 0.60111.30 ± 0.20117.78 ± 0.95
Total (Gym9)774.58778.12763.40767.29818.22
Average (Gym9)86.0686.4684.8285.2590.91

Table 2. Module Ablation Experiment Results (Gym-MuJoCo 9 Tasks)

High-Level Latent Decision Space Distribution Analysis

To understand the geometric structure of the learned high-level latent decision space, we analyze four types of representations: low-return behavioral latent decisions (ZlowZ_{\mathrm{low}}), high-return behavioral latent decisions (ZtopZ_{\mathrm{top}}), Gaussian source negative endpoints (ZnegZ_{\mathrm{neg}}), and source-to-positive positive endpoints (ZposZ_{\mathrm{pos}}). Note that all analyses operate on the model’s high-level latent representations, not the original action space.

Figure 1a shows t-SNE visualizations of the four distributions. ZposZ_{\mathrm{pos}} closely overlaps with ZtopZ_{\mathrm{top}}, confirming that the Source-to-Positive Alignment branch targets align with high-value behavioral regions. ZnegZ_{\mathrm{neg}} forms a clearly separated cluster, demonstrating that Gaussian-Induced Decision Sources provide non-trivial structure-forming training signals rather than copying the behavioral distribution. ZlowZ_{\mathrm{low}} and ZtopZ_{\mathrm{top}} maintain partial neighborhood continuity, supporting the shared high-level latent decision space hypothesis and confirming that the Quality-Uplift branch performs directional improvement within a common representation space rather than cross-domain generation. KDE analyses in Figure 1b quantitatively corroborate these findings across the first three latent dimensions.

High-level latent decision space analysis

Figure 1. High-level latent decision space analysis. Left: t-SNE visualization of ZtopZ_{\mathrm{top}} (green), ZlowZ_{\mathrm{low}} (blue), ZposZ_{\mathrm{pos}} (yellow), and ZnegZ_{\mathrm{neg}} (red). Right: KDE plots of the first three latent dimensions comparing the four distributions.

The KDE plots in Figure 1b reveal three quantitative patterns across the first three latent dimensions. First, ZposZ_{\mathrm{pos}} and ZtopZ_{\mathrm{top}} exhibit nearly identical density curves in all three dimensions—their peaks, scales, and tail shapes closely coincide—confirming that the Source-to-Positive Alignment branch successfully transports Gaussian sources into the high-value behavioral region. Second, ZnegZ_{\mathrm{neg}} deviates significantly from ZtopZ_{\mathrm{top}} in location, scale, and shape, with particularly pronounced differences in dimensions 1 and 3 where ZnegZ_{\mathrm{neg}} extends further in the negative direction with heavier tails, validating that Gaussian-Induced Decision Sources occupy a semantically neutral region distinct from task-relevant behaviors. Third, ZlowZ_{\mathrm{low}} retains substantial density overlap with ZtopZ_{\mathrm{top}} in the major probability mass regions of all three dimensions, confirming that low-return and high-return behaviors share a common high-level latent decision space—the geometric premise that makes directional quality-uplift transport feasible.

Together, these results establish three conclusions: (1) the Source-to-Positive Alignment branch constructs a non-trivial structure-forming flow from a zero-value baseline to high-value behavioral regions, (2) low-return and highreturn behaviors share a common high-level latent decision space, providing the geometric premise for directional quality uplift, and (3) the dual-branch design achieves complementary roles—structure formation and directional improvement—within this shared space.

Hyperparameter Sensitivity Analysis

Sensitivity experiments are conducted on three medium-replay tasks (HalfCheetah, Hopper, Walker2d) to study high-level time scale and trajectory coverage ratio independently of data distribution changes.

Chunk Length and High-Level Context

Table 3 compares (H,Kmax⁡)∈{(5,200),(10,100),(20,50)}(H, K_{\max}) \in\{(5, 200), (10, 100), (20, 50)\} at approximately equal total primitive-step coverage. The configuration H=10H=10, Kmax⁡=100K_{\max}=100 achieves the best balance. Both finer (H=5H=5) and coarser (H=20H=20) granularities slightly reduce performance, indicating that moderate temporal abstraction is most suitable for high-level latent decision flow mapping.

DatasetH=5H=5, Kmax⁡=200K_{\max}=200H=10H=10, Kmax⁡=100K_{\max}=100H=20H=20, Kmax⁡=50K_{\max}=50
HalfCheetah MR43.03 ± 0.3543.81 ± 0.3042.95 ± 0.70
Hopper MR100.03 ± 1.39104.36 ± 2.1299.41 ± 2.62
Walker2d MR91.73 ± 1.2396.24 ± 1.0293.28 ± 1.85

Table 3. Results for Different Chunk Lengths and Maximum High-Level Chunk Counts

Table 4 fixes H=10H=10 and varies Kmax⁡∈{25,50,100}K_{\max} \in\{25, 50, 100\}. Performance degrades sharply at Kmax⁡=25K_{\max}=25 and Kmax⁡=50K_{\max}=50, confirming that the model requires sufficient high-level context to capture cross-stage task structure. Kmax⁡=100K_{\max}=100 covers the full 1000-step trajectory horizon.

DatasetKmax⁡=25K_{\max}=25Kmax⁡=50K_{\max}=50Kmax⁡=100K_{\max}=100
HalfCheetah MR11.74 ± 0.1422.07 ± 0.2243.81 ± 0.30
Hopper MR25.69 ± 0.4352.02 ± 0.45104.36 ± 2.12
Walker2d MR21.13 ± 0.8642.58 ± 0.2996.24 ± 1.02

Table 4. Results for Different Kmax⁡K_{\max} with Fixed H=10H = 10

Trajectory Coverage Ratio

Table 5 compares ρtraj∈{0.1,0.2,0.5,0.8}\rho_{\mathrm{traj}} \in\{0.1, 0.2, 0.5, 0.8\}. Ratios of 0.1 and 0.5 both achieve performance close to the default ρtraj=0.2\rho_{\mathrm{traj}}=0.2, showing that MF2B can learn stable suboptimal-to-high-value flow mapping directions from small high-value timestep budgets. However, ρtraj=0.8\rho_{\mathrm{traj}}=0.8 causes sharp drops on Hopper and Walker2d, as an excessively large high-value pool reduces the directional contrast in suboptimal-to-high-value pairing.

Datasetρ=0.1\rho=0.1ρ=0.2\rho=0.2ρ=0.5\rho=0.5ρ=0.8\rho=0.8
HalfCheetah MR42.32 ± 0.3643.81 ± 0.3043.00 ± 0.5142.66 ± 0.30
Hopper MR101.45 ± 2.33104.36 ± 2.1299.49 ± 3.4866.24 ± 5.75
Walker2d MR96.77 ± 2.3496.24 ± 1.0295.70 ± 2.1785.92 ± 8.10

Table 5. Results for Different High-Value Timestep Coverage Ratios

Conclusion

This paper proposes MF2B, a one-step policy optimization method for offline reinforcement learning in high-level latent decision space. MF2B reformulates offline RL as a generative policy optimization problem from suboptimal to optimal, mapping trajectory chunks to high-level decision representations through a Chunk-Level Latent Decision Encoder, and learning a shared conditional mean velocity field in this space. The method completes decision refinement through a dual-branch flow mapping mechanism: the first branch transports Gaussian-Induced Decision Sources toward positive behavioral decision regions, establishing task-relevant decision structures. The second branch transports suboptimal decisions toward high-value decision regions, distilling superior behavioral patterns from existing experiences. Hierarchical chunk-level advantage estimation further guides the flow mapping toward high-return regions. Unlike multi-step denoising diffusion policies and flow matching policies requiring multi-step ODE integration, MF2B directly predicts conditional mean velocity over the unit time interval Δt=1\Delta t = 1 and completes decision refinement through one-step Euler integration, requiring neither iterative sampling nor backpropagation through time.

On 9 Gym-MuJoCo tasks from the D4RL benchmark, MF2B achieves an average score of 90.91, surpassing FlowQ (85.6) and SSCP (87.9), and significantly outperforming FQL (79.2). The high-level latent decision representation compresses sequence length from original action steps TT to K≈T/HK \approx T/H, significantly reducing computational overhead in long-horizon tasks. The suboptimal-to-high-value transport mechanism effectively utilizes low-quality trajectories for policy improvement, making MF2B particularly effective in long-horizon continuous control tasks. Future research can extend MF2B to goal-conditioned RL and multi-task RL scenarios, learning conditional mean velocity fields to support diverse goal-oriented behaviors and further advancing the applicability of offline RL in real-world domains. Nevertheless, the high-level latent decision representations of MF2B are constrained by the diversity of the offline dataset, and excessively narrow behavioral support may limit the quality of the learned decision space. Addressing this through meta-learning initialization, data augmentation, or VLM-grounded latent priors remains an open direction, as does extending the framework to goal-conditioned RL and multi-task RL settings to support diverse goal-oriented behaviors.

References

  1. [1]Zhuangdi Zhu, Kaixiang Lin, Anil K Jain, and Jiayu Zhou. Transfer learning in deep reinforcement learning: A survey. IEEE Transactions on Pattern Analysis and Machine Intelligence, 45(11):13344–13362, 2023.DOI
  2. [2]Jemin Hwangbo, Joonho Lee, Alexey Dosovitskiy, Dario Bellicoso, Vassilios Tsounis, Vladlen Koltun, and Marco Hutter. Learning agile and dynamic motor skills for legged robots. Science Robotics, 4(26):eaau5872, 2019.
  3. [3]Julian Schrittwieser, Ioannis Antonoglou, Thomas Hubert, Karen Simonyan, Laurent Sifre, Simon Schmitt, Arthur Guez, Edward Lockhart, Demis Hassabis, Thore Graepel, et al. Mastering atari, go, chess and shogi by planning with a learned model. Nature, 588(7839):604–609, 2020.
  4. [4]Julien Perolat, Bart De Vylder, Daniel Hennes, Eugene Tarassov, Florian Strub, Vincent de Boer, Paul Muller, Jerome T Connor, Neil Burch, Thomas Anthony, et al. Mastering the game of stratego with model-free multiagent reinforcement learning. Science, 378(6623):990–996, 2022.DOI
  5. [5]John Jumper, Richard Evans, Alexander Pritzel, Tim Green, Michael Figurnov, Olaf Ronneberger, Kathryn Tunyasuvunakool, Russ Bates, Augustin Žídek, Anna Potapenko, et al. Highly accurate protein structure prediction with alphafold. Nature, 596(7873):583–589, 2021.DOI
  6. [6]Fang Ren, Logan Ward, Travis Williams, Kevin J Laws, Christopher Wolverton, Jason Hattrick-Simpers, and Apurva Mehta. Accelerated discovery of metallic glasses through iteration of machine learning and high-throughput experiments. Science Advances, 4(4):eaaq1566, 2018.DOI
  7. [7]Hao Ma, Zhihan Luo, Tuan V Vo, Kaiwen Sima, and Tze-Yun Leong. Centralized reward agent for knowledge sharing and transfer in multi-task reinforcement learning. Advances in Neural Information Processing Systems, 38: 163080–163103, 2026.arxiv.org/abs/2408.10858
  8. [8]Chao Yu, Jiming Liu, Shamim Nemati, and Guosheng Yin. Reinforcement learning in healthcare: A survey. ACM Computing Surveys (CSUR), 55(1):1–36, 2021a.arxiv.org/abs/1908.08796
  9. [9]Quanyi Li, Zhenghao Peng, Lan Feng, Qihang Zhang, Zhenghai Xue, and Bolei Zhou. Metadrive: Composing diverse driving scenarios for generalizable reinforcement learning. IEEE Transactions on Pattern Analysis and Machine Intelligence, 45(3):3461–3475, 2023.DOI
  10. [10]Lili Huang, Baopu Dong, and Weinan Zhang. Efficient offline reinforcement learning with relaxed conservatism. IEEE Transactions on Pattern Analysis and Machine Intelligence, 46(8):5260–5272, 2024.DOI
  11. [11]Bingyi Kang, Xiao Ma, Chao Du, Tianyu Pang, and Shuicheng Yan. Efficient diffusion policies for offline reinforcement learning. In Advances in Neural Information Processing Systems, volume 36, pages 67195–67212, 2023.arxiv.org/abs/2305.20081
  12. [12]Zhendong Wang, Jonathan J Hunt, and Mingyuan Zhou. Diffusion policies as an expressive policy class for offline reinforcement learning. arXiv preprint arXiv:2208.06193, 2022.arxiv.org/abs/2208.06193
  13. [13]Seohong Park, Qiyang Li, and Sergey Levine. Flow q-learning. In Proceedings of International Conference on Machine Learning, 2025.arxiv.org/abs/2502.02538
  14. [14]Scott Fujimoto and Shixiang Shane Gu. A minimalist approach to offline reinforcement learning. Advances in neural information processing systems, 34:20132–20145, 2021.arxiv.org/abs/2106.06860
  15. [15]Ilya Kostrikov, Ashvin Nair, and Sergey Levine. Offline reinforcement learning with implicit q-learning. arXiv preprint arXiv:2110.06169, 2021.arxiv.org/abs/2110.06169
  16. [16]Sergey D. Stavisky, Jonathan C. Kao, Stephen I. Ryu, and Krishna V. Shenoy. Motor cortical visuomotor feedback activity is initially isolated from downstream targets in output-null neural state space dimensions. Neuron, 95(1):195–208.e9, 2017. ISSN 0896-6273. doi: 10.1016/j.neuron.2017.05.023. URL https://www.sciencedirect.com/science/article/pii/S0896627317304610.DOI
  17. [17]Richard S Sutton, Doina Precup, and Satinder Singh. Between mdps and semi-mdps: A framework for temporal abstraction in reinforcement learning. Artificial intelligence, 112(1-2):181–211, 1999a.DOI
  18. [18]Matthew M. Botvinick, Yael Niv, and Andrew G. Barto. Hierarchically organized behavior and its neural foundations: A reinforcement learning perspective. Cognition, 113(3):262–280, 2009. ISSN 0010-0277. doi: 10.1016/j.cognition.2008.08.011.DOI
  19. [19]Richard S. Sutton and Andrew G. Barto. Reinforcement Learning: An Introduction. A Bradford Book, Cambridge, MA, USA, 2018. ISBN 0262039249.
  20. [20]Justin Fu, Aviral Kumar, Ofir Nachum, George Tucker, and Sergey Levine. D4rl: Datasets for deep data-driven reinforcement learning. arXiv preprint arXiv:2004.07219, 2020.arxiv.org/abs/2004.07219
  21. [21]Richard S Sutton, David McAllester, Satinder Singh, and Yishay Mansour. Policy gradient methods for reinforcement learning with function approximation. Advances in Neural Information Processing Systems, 12, 1999b.
  22. [22]Scott Fujimoto, David Meger, and Doina Precup. Off-policy deep reinforcement learning without exploration. In International Conference on Machine Learning, pages 2052–2062. PMLR, 2019.arxiv.org/abs/1812.02900
  23. [23]Aviral Kumar, Aurick Zhou, George Tucker, and Sergey Levine. Conservative q-learning for offline reinforcement learning. Advances in neural information processing systems, 33:1179–1191, 2020.arxiv.org/abs/2006.04779
  24. [24]Tianhe Yu, Aviral Kumar, Rafael Rafailov, Arvind Rajeswaran, Sergey Levine, and Chelsea Finn. Combo: Conservative offline model-based policy optimization. Advances in Neural Information Processing Systems, 34:28954–28967, 2021b.arxiv.org/abs/2102.08363
  25. [25]Aviral Kumar, Justin Fu, Matthew Soh, George Tucker, and Sergey Levine. Stabilizing off-policy q-learning via bootstrapping error reduction. In Advances in Neural Information Processing Systems, volume 32, 2019.arxiv.org/abs/1906.00949
  26. [26]Yihao Hu, Haoran Wang, Xiangyu Zhan, Zhuoran Wang, Michael I Jordan, and Yang Yu. Policy regularization with dataset constraint for offline reinforcement learning. IEEE Transactions on Neural Networks and Learning Systems, 2022.
  27. [27]Yihao Hu, Nathan Kallus, and Xiaojie Mao. Stochastic multi-armed bandits in constant space. Journal of Machine Learning Research, 24:1–33, 2023.
  28. [28]Sergey Levine, Aviral Kumar, George Tucker, and Justin Fu. Offline reinforcement learning: Tutorial, review, and perspectives on open problems. arXiv preprint arXiv:2005.01643, 2020.arxiv.org/abs/2005.01643
  29. [29]Jonathan Ho, Ajay Jain, and Pieter Abbeel. Denoising diffusion probabilistic models. Advances in neural information processing systems, 33:6840–6851, 2020.arxiv.org/abs/2006.11239
  30. [30]Yang Song, Jascha Sohl-Dickstein, Diederik P Kingma, Abhishek Kumar, Stefano Ermon, and Ben Poole. Score-based generative modeling through stochastic differential equations. arXiv preprint arXiv:2011.13456, 2020.arxiv.org/abs/2011.13456
  31. [31]Philippe Hansen-Estruch, Ilya Kostrikov, Michael Janner, Jakub Grudzien Kuba, and Sergey Levine. Idql: Implicit q-learning as an actor-critic method with diffusion policies. arXiv preprint arXiv:2304.10573, 2023.
  32. [32]Yaron Lipman, Ricky T Q Chen, Heli Ben-Hamu, Maximilian Nickel, and Matt Le. Flow matching for generative modeling. In Proceedings of International Conference on Learning Representations, 2023.arxiv.org/abs/2210.02747
  33. [33]Moritz Alles, Nianchen Chen, Patrick van der Smagt, and Botond Cske. Flowq: Energy-guided flow policies for offline reinforcement learning. arXiv preprint arXiv:2505.14139, 2025.arxiv.org/abs/2505.14139
  34. [34]Zihan Wang, Donglin Li, Yixuan Chen, Yiming Shi, Lei Bai, Tianhe Yu, and Yang Fu. One-step generative policies with q-learning: A reformulation of meanflow. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 40, pages 26751–26759, 2026.
  35. [35]Zhijie Geng, Minglei Deng, Xiang Bai, J Zico Kolter, and Kaiming He. Mean flows for one-step generative modeling. In Advances in Neural Information Processing Systems, 2025a.arxiv.org/abs/2505.13447
  36. [36]Pratyush Koirala and Cody Fleming. Flow-based single-step completion for efficient and expressive policy learning. In Proceedings of International Conference on Learning Representations, 2026.arxiv.org/abs/2506.21427
  37. [37]Zhengyang Geng, Mingyang Deng, Xingjian Bai, J Zico Kolter, and Kaiming He. Mean flows for one-step generative modeling. arXiv preprint arXiv:2505.13447, 2025b.arxiv.org/abs/2505.13447
  38. [38]Rahul Kidambi, Aravind Rajeswaran, Praneeth Netrapalli, and Thorsten Joachims. Morel: Model-based offline reinforcement learning. Advances in Neural Information Processing Systems, 33:21810–21823, 2020.arxiv.org/abs/2005.05951
  39. [39]Denis Tarasov, Vladislav Kurenkov, Alexander Nikulin, and Sergey Kolesnikov. Revisiting the minimalist approach to offline reinforcement learning. In Advances in Neural Information Processing Systems, 2023.arxiv.org/abs/2305.09836
  40. [40]Huayu Chen, Cheng Lu, Zhengyi Wang, Hang Su, and Jun Zhu. Score regularized policy optimization through diffusion behavior. In Proceedings of International Conference on Learning Representations, 2024.arxiv.org/abs/2310.07297
  41. [41]Shangding Zhang, Yunpeng Jiang, Yu Pan, Weipeng Chen, Bosen Zhang, Mingchuan Zhang, and Jianye Hao. Cautious actor-critic. arXiv preprint arXiv:2107.05217, 2021.
  42. [42]Michael Janner, Yilun Du, Joshua B Tenenbaum, and Sergey Levine. Planning with diffusion for flexible behavior synthesis. arXiv preprint arXiv:2205.09991, 2022.arxiv.org/abs/2205.09991
  43. [43]Anurag Ajay, Yilun Du, Abhi Gupta, Joshua Tenenbaum, Tommi Jaakkola, and Pulkit Agrawal. Is conditional generative modeling all you need for decision-making? arXiv preprint arXiv:2211.15657, 2022.arxiv.org/abs/2211.15657
  44. [44]Jifeng Hu, Yanchao Sun, Sili Huang, Siyuan Guo, Hechang Chen, Li Shen, Lichao Sun, Yi Chang, and Dacheng Tao. Instructed diffuser with temporal condition guidance for offline reinforcement learning. IEEE Transactions on Pattern Analysis and Machine Intelligence, 48(5):5346–5356, 2026. doi: 10.1109/TPAMI.2026.3652193.DOI
  45. [45]Tenglong Liu, Xin Xu, Yixing Lan, Jiacheng Huang, Xinglong Zhang, and Ling-Li Zeng. Latent meanflow policy optimization for offline reinforcement learning. IEEE Transactions on Pattern Analysis and Machine Intelligence, pages 1–14, 2026. doi: 10.1109/TPAMI.2026.3720530.DOI
  46. [46]Perry Dong, Chongyi Zheng, Chelsea Finn, Dorsa Sadigh, and Benjamin Eysenbach. Value flows. In Proceedings of the 14th International Conference on Learning Representations, 2026. URL https://openreview.net/forum?id=2VyNYUVF2k.arxiv.org/abs/2510.07650
  47. [47]Sungyoung Lee, Dohyeong Kim, Eshan Balachandar, Zelal Su Mustafaoglu, and Keshav Pingali. Towards efficient and expressive offline rl via flow-anchored noise-conditioned q-learning, 2026. URL https://arxiv.org/abs/2605.01663.

Paper details

vlnc:W_qugnwvgb
Version
v1 · latest
Published
Fresh — added to the Hub within the last 30 days
Added
License
CC BY 4.0
Usage

views · 10

downloads · 0

A view counts once per browser per day, a download each time the PDF is requested.

  • Computer Science

Not recorded for this paper

View statement
Looking for related papers…
Contents