betaFeedback

WorksComputer Science

DEFlow: Deep Equilibrium Flow Maximum-Entropy Reinforcement Learning

Abstract

Expressive flow policies can represent multiple high-value actions, but sampling them with few integration steps while retaining tractable action densities remains challenging. We introduce DEFlow, a deep equilibrium flow policy that replaces explicit Euler sampling with implicit Euler integration and solves all intermediate actions jointly as an equilibrium system. We combine implicit differentiation with a discrete change-of-variables formula for the final-action density, enabling off-policy training within soft actor-critic without backpropagating through solver iterations. DEFlow achieves an average relative improvement of approximately 10% in mean successful coverage over the strongest baseline across four Multi-Goal docking variants. It also achieves the highest mean time-averaged return on four of five manipulation tasks, while remaining broadly competitive across five MuJoCo tasks. These results support implicit flow policies for tasks requiring both diversity and precision, at the cost of additional nonlinear and linear solves. Primary

Introduction

Soft actor–critic (SAC) is a strong baseline for continuous control. It combines data-efficient off-policy learning with entropy-driven exploration [7 b]. Its standard actor, however, is a single tanh-squashed diagonal Gaussian. This distribution is easy to sample from and has a closed-form density, but it cannot easily represent several distinct high-value actions at the same state [6]. Diffusion and flow-matching policies offer a more expressive alternative. They generate actions by transforming simple noise through multiple learned steps and can represent complex, multimodal distributions [10] (Wang et al. 2023). The challenge is to gain this expressivity while keeping SAC training practical. Sampling and actor differentiation now involve a multi-step rollout, and the final-action log-density required by the entropy objective may be hard to obtain.

Existing off-policy methods resolve this tension by design compromise. Some give up the maximum-entropy objective altogether: Flow Q-Learning distills a multi-step generator into a one-step actor [12], consistency policies replace the long sampler with one- or few-step generation [4], and Diffusion-QL combines diffusion behavior cloning with value maximization without evaluating the policy likelihood (Wang et al., 2023). Q-score matching (QSM) [13] directly matches the policy score to the critic’s action-gradient and avoids backpropagating through the complete sampler. SAC-Flow (Zhang et al., 2025), the direct parent of this work, treats its explicit KK-step flow rollout as a sequential model and stabilizes the recurrence with a gated velocity field. DIME retains a multi-step denoising policy and trains its transitions through approximate inference toward a QQ-defined energy-based target [3]. These methods make expressive generative actors trainable off-policy, but leave a separate numerical question: how should a multi-step policy be sampled when its learned velocity field becomes difficult to integrate with a small number of explicit steps? We investigate implicit-Euler sampling as an alternative.

We introduce DEFlow, a flow policy built around implicit-Euler sampling. We retain SAC-Flow’s gated velocity field and multi-step actor, but evaluate each velocity at the unknown next action, replacing the explicit Euler recurrence with implicit-Euler equations [9]. This integration rule is well suited to stiff dynamics, making it a natural alternative when a learned field is poorly resolved by a few explicit steps. To implement the sampler, we collect all TT intermediate actions into one small deep-equilibrium system and solve for them jointly [1] (Walker & Ni 2011). The forward pass uses a root solver to obtain the trajectory, while the backward pass is formulated through implicit differentiation rather than backpropagation through the solver iterations. Under the stated regularity assumptions, an exact equilibrium also admits a final-action log-density through discrete change of variables. The implementation evaluates the density and implicit gradient along the numerically obtained trajectory.

In summary, our contributions are threefold:

  • A joint equilibrium formulation of flow policies. We formulate the full implicit-Euler action trajectory as a single deep equilibrium system, providing an alternative to explicit rollouts for expressive policies.

  • Maximum-entropy policy learning. We train DEFlow within SAC using implicit gradients and a final-action density formula, exact at equilibrium under the stated assumptions.

  • Comprehensive empirical evaluation. We study DEFlow across precision docking, manipulation, and MuJoCo benchmarks, with matched explicit-Euler baselines, step-count ablations, and numerical density verification. The experiments characterize both the strengths and the limitations of implicit flow sampling.

Background and Related Work

Maximum-Entropy Reinforcement Learning

We consider an infinite-horizon Markov decision process with state s∈Ss \in\mathcal{S}, action a∈A⊆Rdaa \in\mathcal{A} \subseteq\mathbb{R}^{d_a}, transition kernel p(s′∣s,a)p(s' \mid s,a), reward r(s,a)r(s,a), and discount γ∈(0,1)\gamma\in(0,1), where dad_a is the action dimension. Soft actor–critic (SAC) trains a policy πθ\pi_\theta off-policy on transitions drawn from a replay buffer D\mathcal{D} to maximize the maximum-entropy return

J(πθ)=Eτ∼πθ[∑tγt(r(st,at)+αH(πθ(⋅∣st)))].J(\pi_\theta) = \mathbb{E}_{\tau\sim\pi_\theta}\left[\sum_t \gamma^t\left(r(s_t,a_t) + \alpha\mathcal{H}(\pi_\theta(\cdot\mid s_t))\right)\right].

where the temperature α>0\alpha> 0 trades reward against entropy [7 b]. With twin critics Qϕ1,Qϕ2Q_{\phi_1}, Q_{\phi_2}, the actor balances expected value against the log-density of its sampled actions. The same log-density enters the soft target for the critics. Section 4.2 gives the actor and critic objectives used by DEFlow.

SAC provides the actor–critic framework used in this work. Its standard actor parameterizes a state-conditioned Gaussian distribution whose samples are squashed by tanh to satisfy the action bounds [8]. The underlying Gaussian is unimodal, which limits the policy’s ability to capture complex, multimodal action distributions.

Flow and Diffusion Policies

A flow policy is the expressive actor we adopt. Rather than a single Gaussian draw, it turns base noise z∼p0z \sim p_0 into an action by transporting it through a learned velocity field. The state-conditioned transport follows a˙(t)=vθ(a(t),s,t)\dot{a}(t) = v_\theta(a(t),s,t), starting from a(0)=za(0) = z for t∈[0,1]t \in[0,1]. A numerical integrator turns this motion into TT discrete steps; the endpoint is then squashed to keep the action bounded. Flow matching [10] provides a way to learn such fields from data. By transporting samples from a simple base distribution, a flow can represent complex action distributions with multiple distinct modes.

Representing a richer action distribution, however, does not by itself make the policy easy to optimize with SAC. The standard actor update propagates gradients from the critic through the sampled action to the policy parameters. Flow policies admit this differentiation, but direct optimization requires propagating the learning signal through the entire sequence of sampling steps. This can be computationally expensive and can lead to vanishing or exploding gradients, making stable policy improvement a separate challenge from learning to reproduce an action distribution [12] (Zhang et al. 2025).

Our main comparisons concern expressive policies learned through online interaction. SAC-Flow (Zhang et al., 2025), our direct predecessor, combines a gated velocity field with explicit Euler integration and a surrogate entropy objective within SAC. DIME [3] instead uses a variational maximum-entropy bound, while Q-score matching (QSM) [13] learns the policy score from the critic’s action-gradient without evaluating a density.

Implicit Models and Differentiation

Deep equilibrium (DEQ) models are implicit-layer networks [1]: rather than stack many explicit layers, a DEQ defines its output as the fixed point Z⋆=gθ(Z⋆)Z^\star= g_\theta(Z^\star) of a single weight-tied map and computes it with a root-finder. When gθg_\theta is a contraction, the iteration Zk+1=gθ(Zk)Z^{k+1} = g_\theta(Z^k) converges at a linear rate bounded by its Lipschitz constant. Anderson acceleration (Walker & Ni, 2011) uses a history of iterates and residuals to accelerate this solve.

The gradient follows from the solved equilibrium, without differentiating through the solver iterations. For a continuously differentiable map with nonsingular I−∂Zgθ(Z⋆)I - \partial_Z g_\theta(Z^\star), implicit differentiation turns the nonlinear forward problem into a linear system in the backward pass. Standard DEQ implementations solve the adjoint system iteratively. Jacobian regularization can improve the convergence of these solves [2]. A complementary perspective treats backpropagation as block-triangular back substitution [5]. We use the equilibrium formulation and implicit differentiation to construct DEFlow in § 4.

The Finite-Step Sampling Problem

At a fixed state, the maximum-entropy optimum [6, 8] is

π⋆(a∣s)∝exp⁡(Q⋆(s,a)/α).(1)\pi^\star(a \mid s) \propto\exp(Q^\star(s,a)/\alpha). \tag*{(1)}

It can therefore contain several narrow modes corresponding to different valid actions. The tanh-Gaussian actor used by SAC is unimodal before squashing, whereas a flow policy can represent these modes if its finite-step sampler preserves them.

A finite inference budget. At a fixed state, explicit and implicit Euler use

ak+1exp=ak+Δt vθ(ak,s,tk),(2)a^{\mathrm{exp}}_{k+1} = a_k + \Delta t\,v_\theta(a_k,s,t_k), \tag*{(2)}
ak+1imp=ak+Δt vθ(ak+1,s,tk+1).(3)a^{\mathrm{imp}}_{k+1} = a_k + \Delta t\,v_\theta(a_{k+1},s,t_{k+1}). \tag*{(3)}

where tk=kΔtt_k = k\Delta t and Δt=1/T\Delta t = 1/T. Real-time control limits latency and field evaluations, so the usable TT may be small and Δt\Delta t correspondingly large. Solving an implicit step may require multiple field evaluations, increasing its computational cost.

Three distinct numerical effects. Coarse discretization affects (i) the endpoint, (ii) the step map, and (iii) the policy gradient. For the one-step maps Fk:ak↦ak+1F_k: a_k \mapsto a_{k+1} and Jk=Davθ(ak,s,tk)J_k = D_a v_\theta(a_k,s,t_k), the step Jacobians are

DaFkexp=I+Δt Jk,DaFkimp=(I−Δt Jk+1)−1.(4)D_aF_k^{\mathrm{exp}} = I + \Delta t\,J_k,\qquad D_aF_k^{\mathrm{imp}} = (I - \Delta t\,J_{k+1})^{-1}. \tag*{(4)}

so the two schemes can have different conditioning on the same field. In the fixed-state mixture analysis of Appendix § 8.§ 1, the exact field is smooth, but its largest derivative grows at least like m2σ−3m^2\sigma^{-3} as the mode width σ\sigma decreases. Writing πΔt⋆\pi^\star_{\Delta t} for the law induced by TT explicit Euler steps of the exact field and π⋆\pi^\star for the two-mode surrogate target of that appendix, explicit Euler incurs

Δt≥22 σ⟹W2(πΔt⋆,π⋆)≥σ22,(5)\Delta t \ge2\sqrt{2}\,\sigma\quad\Longrightarrow\quad W_2(\pi^\star_{\Delta t},\pi^\star) \ge\frac{\sigma}{2\sqrt{2}}, \tag*{(5)}

and at T=2T = 2 its error tends to a positive limit as σ→0\sigma\to0 (Eq. (29)). The same analysis bounds the discrete gradient at no more than a fraction 3(σ/Δt)23(\sigma/\Delta t)^2 of the exact one for a specified Gaussian subfamily and terminal loss, so it nearly vanishes in the same coarse-grid regime. Coarse explicit integration can introduce errors in both the sampled distribution and its gradients even when every step remains locally invertible.

A coarse-step empirical illustration. Figure 1 shows that implicit Euler achieves more accurate robot reaching than explicit Euler at low step counts for the tested fixed contracting flow. With just two steps, the joint DEQ sampler concentrates endpoints near the target and achieves 97.8% success, versus 1.7% for explicit Euler. This advantage persists at three to five steps, where implicit sampling achieves 100% success and explicit Euler reaches at most 77.8%. The comparison uses a fixed field without a trained neural policy.

Figure 1. Panda reaching errors with explicit Euler (left) and joint implicit Euler (right), using 2–5 flow steps. Percentages show success over 640 paired trials per setting: final 3D error below 8 mm.

Together, the analysis and measurements motivate implicit discretization. Its local sensitivity is governed by (I−ΔtJ)−1(I - \Delta t J)^{-1} rather than I+ΔtJI + \Delta t J, which can preserve concentration when the field contracts toward a target. The accuracy of implicit steps also depends on the conditioning of the underlying solve.

Method

We introduce a deep equilibrium flow policy (DEFlow), defined by implicit Euler integration and trained within soft actor–critic (SAC) (Haarnoja et al., [7]). Following § 3, we sample actions by solving the implicit Euler equations for all integration steps together. We compute policy gradients by implicit differentiation and action log-densities with the change-of-variables formula.

Implicit Flow Policy

For a state ss, we transform a base sample a0=z∼p0=N(0,σz2I)a_0 = z \sim p_0 = \mathcal{N}(0, \sigma_z^2 I) into an action through a state-conditioned velocity field vθ(a,s,t)v_\theta(a, s, t). We take σz>0\sigma_z > 0, and the base distribution is independent of θ\theta. We write its density as p(z)p(z). We parameterize the velocity field using the gated form of Flow-G in SAC-Flow (Zhang et al., 2025),

vθ(a,s,t)=zg(a,s,t)⊙(h~(a,s,t)−a),(6)v_\theta(a, s, t) = z_g(a, s, t) \odot\left(\widetilde{h}(a, s, t) - a\right), \tag*{(6)}

where zg∈(0,1)daz_g \in(0, 1)^{d_a} is a sigmoid gate, h~∈Rda\widetilde{h} \in\mathbb{R}^{d_a} is a scaled tanh output, and ⊙\odot denotes elementwise multiplication. Both outputs depend on (a,s,t)(a, s, t) and share parameters θ\theta.

Let Δt=1/T\Delta t = 1/T and tk=kΔtt_k = k\Delta t. We replace the explicit Euler rollout of SAC-Flow with implicit (backward) Euler (Hairer & Wanner, [9]):

ak=ak−1+Δt vθ(ak,s,tk),k=1,…,T,aenv=c⊙tanh⁡(aT)+b.(7)\begin{aligned} a_k &= a_{k-1} + \Delta t\,v_\theta(a_k, s, t_k), \qquad k = 1, \ldots, T,\\ a_{\mathrm{env}} &= c \odot\tanh(a_T) + b. \tag*{(7)} \end{aligned}

The field is evaluated at the new point aka_k. The final squashing transformation follows SAC (Haarnoja et al., [8]), with c=(amax⁡−amin⁡)/2>0c = (a_{\max} - a_{\min})/2 > 0 and b=(amax⁡+amin⁡)/2b = (a_{\max} + a_{\min})/2 enforcing the action bounds. Unless stated otherwise, we use T=4T = 4 integration steps.

Implicit Euler is a standard choice for stiff dynamics (Hairer & Wanner, [9]). For the scalar linear test equation x˙=λx\dot{x} = \lambda x with Re⁡λ<0\operatorname{Re}\lambda< 0, its amplification factor (1−Δt λ)−1(1 - \Delta t\,\lambda)^{-1} has magnitude at most one for every Δt>0\Delta t > 0, whereas explicit Euler requires ∣1+Δtλ∣≤1|1 + \Delta t \lambda| \le1. The finite-step analysis in § 3 motivates our use of implicit Euler. For strongly contracting dynamics, explicit Euler may require very small integration steps to remain stable. In the scalar linear setting above, implicit Euler remains stable for any positive step size.

Joint Fixed-Point Formulation

Summing the first kk implicit Euler updates in Eq. (7), with a0=za_0 = z, expresses each intermediate action in terms of the base sample and the accumulated velocity:

ak=z+Δt∑j=1kvθ(aj,s,tj),k=1,…,T.(8)a_k = z + \Delta t \sum_{j=1}^{k} v_\theta(a_j, s, t_j), \qquad k = 1, \ldots, T. \tag*{(8)}

We collect the intermediate actions into the vector Z=(a1⊤,…,aT⊤)⊤∈RDZ = (a_1^\top, \ldots, a_T^\top)^\top\in\mathbb{R}^D, where D=TdaD = T d_a. Define gθ(Z;s,z)g_\theta(Z; s, z) by stacking the right-hand sides of Eq. (8) in the same order. The implicit Euler equations can then be written as a single fixed-point equation:

Z⋆=gθ(Z⋆;s,z).(9)Z^\star= g_\theta(Z^\star; s, z). \tag*{(9)}

The solution Z⋆Z^\star contains the intermediate actions a1⋆,…,aT⋆a_1^\star, \ldots, a_T^\star satisfying all implicit Euler steps. Following the DEQ approach (Bai et al. [1]), we compute this solution with a numerical root finder.

The forward pass searches for a root of gθ(Z;s,z)−Z=0g_\theta(Z; s, z) - Z = 0. We use Anderson acceleration (Walker & Ni (2011)), initialized with every trajectory block equal to zz, to approximate this root. Each evaluation of gθg_\theta computes the velocities at the current estimates of the intermediate actions and accumulates them along the trajectory. The final block supplies aTa_T, which is squashed into the environment action by Eq. (7).

Backward Pass

Following the implicit differentiation procedure of Bai et al. [1] (Eqs. (8) and (11)), we compute policy gradients by solving a linear system at the fixed point, without backpropagating through the root-finding iterations. For a differentiable sample loss ℓ(θ,Z⋆)\ell(\theta, Z^\star), let A=I−∂ZgθA = I - \partial_Z g_\theta, with derivatives evaluated at (Z⋆;s,z)(Z^\star; s, z) for fixed (s,z)(s, z). Assuming a differentiable solution branch and an invertible AA, we solve for the adjoint vector λ∈RD\lambda\in\mathbb{R}^D and evaluate the parameter gradient as

A⊤λ=∇Zℓ,∇θℓ=∂θℓ∣Z⋆+(∂θgθ)⊤λ.(10)A^\top\lambda= \nabla_Z \ell, \qquad\nabla_\theta\ell= \left.\partial_\theta\ell\right|_{Z^\star} + \left(\partial_\theta g_\theta\right)^\top\lambda. \tag*{(10)}

Gradients are column vectors. The direct derivative ∂θℓ∣Z⋆\left.\partial_\theta\ell\right|_{Z^\star} holds the trajectory fixed and accounts for the explicit parameter dependence of the log-density and Jacobian penalty introduced below. The adjoint solve avoids forming A−1A^{-1}.

In our implementation, we compute λ\lambda with a batched dense linear solve. Appendix § 8.§ 2 gives the derivation, the structure of AA, and full regularity assumptions. Appendix § 10.§ 1 describes the finite-tolerance evaluation and numerical modifications.

Maximum-Entropy Policy Optimization

To train the implicit flow policy with SAC, we need the log-density of its actions (Haarnoja et al. [8]). We derive this density from the discrete implicit Euler steps and use it in the actor–critic updates below.

Exact Density by Discrete Change of Variables

To obtain the exact density we use the change-of-variables identity for invertible maps (Rezende & Mohamed [14]; Papamakarios et al. [11]): for x↦y=f(x)x \mapsto y = f(x),

pY(y)=pX(f−1(y))∣det⁡∂f−1∂y∣=pX(x)∣det⁡∂f∂x∣.(11)p_Y(y) = p_X\left(f^{-1}(y)\right) \left|\det\frac{\partial f^{-1}}{\partial y}\right| = \frac{p_X(x)}{\left|\det\frac{\partial f}{\partial x}\right|}. \tag*{(11)}

Under the smoothness and invertibility assumptions in Appendix § 8.§ 3, each implicit step in Eq. (7) defines a locally invertible map around the selected solution. Differentiating ak=ak−1+a_k = a_{k-1} + Δt vθ(ak,s,tk)\Delta t\,v_\theta(a_k,s,t_k) gives the differential dak=dak−1+Δt Jk dakda_k = da_{k-1} + \Delta t\,J_k\,da_k, so (I−Δt Jk) dak=dak−1(I-\Delta t\,J_k)\,da_k = da_{k-1} and the one-step Jacobian is

∂ak∂ak−1=(I−Δt Jk)−1,Jk=∂vθ∂a∣(ak,tk).(12)\frac{\partial a_k}{\partial a_{k-1}} = (I-\Delta t\,J_k)^{-1}, \qquad J_k = \left.\frac{\partial v_\theta}{\partial a}\right|_{(a_k,t_k)}. \tag*{(12)}

Substituting Eq. (12) into Eq. (11), a single step changes the log-density by log⁡p(ak)=log⁡p(ak−1)+log⁡∣det⁡(I−Δt Jk)∣\log p(a_k) = \log p(a_{k-1}) + \log\left|\det(I-\Delta t\,J_k)\right|. The positive sign follows from the inverse in Eq. (12). Composing the TT steps into the rollout z=a0→a1→⋯→aTz = a_0 \to a_1 \to\cdots\to a_T, the log-density is the base density plus one log-determinant per step. Applying the final squashing transformation gives the environment action aenv=c⊙tanh⁡(aT)+ba_{\mathrm{env}} = c \odot\tanh(a_T) + b (Eq. (7)). Its exact log-density is therefore:

log⁡πθ(aenv∣s)=log⁡p(z)+∑k=1Tlog⁡∣det⁡(I−Δt Jk)∣−∑i=1dalog⁡[ci(1−tanh⁡2aT,i)](13)\log\pi_\theta(a_{\mathrm{env}}\mid s) = \log p(z) + \sum_{k=1}^{T}\log\left|\det(I-\Delta t\,J_k)\right| - \sum_{i=1}^{d_a}\log\left[c_i\left(1-\tanh^2 a_{T,i}\right)\right] \tag*{(13)}

(13) gives the exact action log-density for the selected solution branch under the assumptions above. SAC-Flow uses a joint path log-density over intermediate actions as its entropy term (Zhang et al., 2025), whereas DIME uses a lower bound on the policy entropy [3]. Here, the change-of-variables formula gives the log-density of the final action directly. The implementation uses finite solver tolerances, diagonal shifts, and clipping, which can modify the evaluated log-density and policy gradient. The full derivation is given in Appendix § 8.§ 3.

Actor–Critic Updates

We train DEFlow within the SAC framework [8], using the action samples and log-densities derived above. Let aθ(s,z)=c⊙tanh⁡(aT∗)+ba_\theta(s,z) = c \odot\tanh(a_T^*) + b denote an action sampled from the implicit policy. We compute the soft Bellman target as

y=r+γ[min⁡j=1,2Qϕˉj(s′,a′)−αlog⁡πθ(a′∣s′)],(14)y = r + \gamma\left[\min_{j=1,2} Q_{\bar{\phi}_j}(s',a') - \alpha\log\pi_\theta(a'\mid s')\right], \tag*{(14)}

where a′=aθ(s′,z′)a' = a_\theta(s',z'), z′∼p0z' \sim p_0, and dd is the termination indicator. Here ϕˉj\bar{\phi}_j denotes the parameters of target critic jj, and the action log-density is given by Eq. (13). For terminal transitions, we set y=ry=r. Each critic is trained by minimizing the mean squared error

LQ(ϕj)=E(s,a,r,s′,d)∼D, z′∼p0[(Qϕj(s,a)−y)2],j=1,2.(15)\mathcal{L}_Q(\phi_j) = \mathbb{E}_{(s,a,r,s',d)\sim\mathcal{D},\,z'\sim p_0}\left[\left(Q_{\phi_j}(s,a)-y\right)^2\right], \qquad j=1,2. \tag*{(15)}

We update the implicit flow policy by minimizing the SAC actor objective [7 b]:

Lπ(θ)=Es∼D, z∼p0[αlog⁡πθ(aθ(s,z)∣s)−min⁡j=1,2Qϕj(s,aθ(s,z))].(16)\mathcal{L}_\pi(\theta) = \mathbb{E}_{s\sim\mathcal{D},\,z\sim p_0}\left[\alpha\log\pi_\theta(a_\theta(s,z)\mid s)-\min_{j=1,2}Q_{\phi_j}(s,a_\theta(s,z))\right]. \tag*{(16)}

The log-density is evaluated by Eq. (13). We compute the policy gradient using the implicit backward pass in Eq. (10). In the regularized configuration, we minimize Lπ+βRJ\mathcal{L}_\pi+\beta R_J, where β≥0\beta\ge0 weights a per-step Jacobian penalty motivated by Jacobian regularization in DEQ models [2]. Appendix B.§ 1 defines RJR_J and specifies its hyperparameters.

The target critics are initialized with ϕˉj=ϕj\bar{\phi}_j=\phi_j and updated by exponential moving averages ϕˉj←(1−τ)ϕˉj+τϕj\bar{\phi}_j \leftarrow(1-\tau)\bar{\phi}_j+\tau\phi_j for j=1,2j=1,2, where τ∈(0,1]\tau\in(0,1] is the target averaging rate [8].

Algorithm

Algorithm 1 in Appendix B summarizes data collection and actor–critic updates following SAC [8]. Each action aθ(s,z)a_\theta(s,z) is obtained by solving Eq. (9) with Anderson acceleration and applying the squashing transformation in Eq. (7). Policy updates use the log-density in Eq. (13) and the implicit gradients in Eq. (10). The pseudocode takes the current temperature α\alpha and regularization weight β\beta as inputs to each update. Numerical evaluation is described in Appendix § 10.§ 1.

Experiments

Experimental Setup

We evaluate DEFlow in three settings: four variants of MultiGoal-4 with different navigation and docking tolerances [6], five MuJoCo locomotion tasks (Todorov et al., 2012), and five manipulation tasks: PickCube and PushCube in ManiSkill (Tao et al., 2025), and ButtonPressWall, PegInsertSide, and PushWall in MetaWorld (Yu et al., 2020). Training budgets are 200k transitions for MultiGoal, 1M environment steps for MuJoCo, and 500k recorded steps for manipulation. Our main comparison methods are SAC [7], SAC-Flow, DIME, and QSM. For ablation studies, we compare DEFlow with a matched explicit-Euler flow on MultiGoal and vary the number of integration steps TT. All baseline results come from our own implementations and training runs. Evaluation protocols, task-specific configurations, and additional statistical analyses are provided in Appendices B and C.

Benchmark Results

Successful diversity under precision constraints. We extend the four-goal MultiGoal task [6] to test whether an expressive policy can combine diverse goal choices with precise actions. The agent receives a dense distance reward while navigating toward one of four symmetric goals. On entering a goal region, it performs one docking action and receives a bonus if the action is sufficiently close to the goal’s target. We study four variants combining wide or narrow goal regions with loose or tight docking tolerances. Wide goal regions are circles of radius 1, while narrow regions are radial ellipses with semi-axes 1 and 0.20. Docking succeeds when the final action lies within distance 0.12 (loose) or 0.06 (tight) of the target associated with the reached goal. This design varies the precision required during navigation and during the final docking action separately. Figure 5 in Appendix C.2 illustrates the four variants. To maintain several successful strategies, the policy must choose different goals across episodes and concentrate its final action around the target associated with each goal.

Figure 5. Four MultiGoal docking variants. Top: navigation goal regions. Bottom: corresponding docking targets and action tolerances; colors and numbers identify goals.

Our main metric, successful coverage (U4), measures how many distinct goals a policy successfully completes within a small number of attempts. Let pip_i be the probability that an episode from the origin reaches goal ii and docks successfully. For four independent episodes under the same policy,

U4=14∑i=14[1−(1−pi)4].(17)\mathrm{U4} = \frac{1}{4}\sum_{i=1}^{4}\left[1-\left(1-p_i\right)^4\right]. \tag*{(17)}

Here, 1−(1−pi)41-\left(1-p_i\right)^4 is the probability of completing goal ii at least once, so U4 is the expected fraction of distinct goals successfully completed. It rewards both reliable docking and coverage of alternative goals. Always succeeding at one goal gives U4 = 0.25, whereas uniform success across all four goals attains the maximum 1−(3/4)4≈0.6841-(3/4)^4 \approx0.684. We estimate pip_i from 1,000 stochastic episodes per trained policy and average U4 across training seeds.

DEFlow achieves the highest mean successful coverage on all evaluated variants (Table 1). On loose docking, it approaches the balanced four-goal ceiling. Its mean successful coverage exceeds that of the second-best method by up to 17%. Thus, DEFlow retains the strongest combination of diversity and successful completion when the final action must be more precise. Figure 2 also shows that DEFlow develops successful coverage early in training. Appendix C.4 and § 5.3 examine the failures of explicit flow and QSM.

Figure 2. Successful coverage during training (mean ± SD). The dotted line marks the maximum U4.

Continuous control. Figure 3 shows learning curves across five MuJoCo tasks, and Table 6 in Appendix § 10.§ 2 summarizes return at the recorded 1M evaluation. We report means and standard deviations across three runs per task. Appendix § 10.§ 2 provides per-seed results, confidence intervals, and sensitivity analyses at alternative evaluation horizons. These tasks do not explicitly require multimodal action selection, and we observe no consistent advantage from greater policy expressivity, with SAC, SAC-Flow, DIME, and DEFlow achieving broadly comparable returns overall and SAC retaining a small lead in the sum of returns across tasks.

Figure 3. MuJoCo learning curves. Lines show run means, bands show ±1 sample SD.

EnvironmentSACSAC-FlowDIMEQSMDEFlow
Hopper2510 ± 9012955 ± 10552485 ± 3262474 ± 12843318 ± 560
Walker2d4517 ± 6444513 ± 4364866 ± 3481615 ± 9924973 ± 564
HalfCheetah14190 ± 115211476 ± 164713476 ± 5275981 ± 79112534 ± 340
Ant5995 ± 1886215 ± 4585975 ± 568−22 ± 25673 ± 1340
Humanoid5042 ± 3345089 ± 1234981 ± 1854672 ± 1914211 ± 858
Sum3225330247317831472130709

Table 6. MuJoCo return at 1M steps, mean ± SD across three runs. Bold and underlined values mark the highest and second-highest means.

Manipulation. Manipulation tasks test how quickly a policy turns contact with an object into useful behavior. We compare SAC, SAC-Flow, DIME, and DEFlow on five tasks from ManiSkill and MetaWorld, with a budget of 500k recorded training steps. Figure 4 shows deterministic evaluation returns, and Table 7 in Appendix § 10.§ 2 summarizes their time average over training. Table 5 in Appendix § 10.§ 2 reports final sampled ever-success: the fraction of evaluation episodes in which the policy completes the task at least once.

Figure 4. Manipulation evaluation returns, mean ± SD across three training seeds. Dashed segments connect an illustrative origin to the first evaluation.

TaskSACSAC-FlowDIMEDEFlow
PickCube64.7 ± 56.05.0 ± 8.793.0 ± 9.587.3 ± 8.3
PushCube97.0 ± 3.697.3 ± 3.199.0 ± 1.798.7 ± 1.2
ButtonPressWall0.0 ± 0.00.0 ± 0.03.7 ± 2.18.7 ± 14.2
PegInsertSide72.3 ± 9.80.0 ± 0.023.7 ± 41.039.3 ± 21.5
PushWall0.0 ± 0.010.3 ± 17.91.0 ± 1.70.3 ± 0.6
Sum234.0112.7220.3234.3

Table 5. Final sampled ever-success (%) at 500k steps, mean ± SD across three training seeds. Bold and underlined values mark the top two means.

EnvironmentSACSAC-FlowDIMEDEFlow
MS PickCube25.1 ± 5.919.0 ± 1.529.1 ± 3.033.5 ± 0.5
MS PushCube38.4 ± 0.737.3 ± 1.237.3 ± 1.540.8 ± 0.2
MW ButtonPressWall641.6 ± 91.147.2 ± 55.6696.7 ± 30.1755.7 ± 24.9
MW PegInsertSide699.1 ± 209.12.5 ± 0.0298.2 ± 237.4564.3 ± 158.7
MW PushWall61.2 ± 39.328.1 ± 38.523.4 ± 19.4217.8 ± 334.9
Sum1465.4134.01084.91612.2

Table 7. Time-averaged return over 50k–500k steps, mean ± SD across three seeds. Bold and underlined values mark the top two means.

DEFlow’s main advantage is early learning under the evaluated training recipes. It achieves the highest mean time-averaged return on four of the five tasks. On PickCube, the advantage also appears in task completion: DEFlow reaches higher sampled success at the intermediate checkpoints, before DIME catches up later in training. On PushCube, DEFlow attains high return by the first evaluation and maintains it through the rest of training. The return curves and early success evaluations thus capture gains that a final-checkpoint comparison alone would miss. At the final checkpoint, DIME has the highest sampled-success means on the cube tasks, while SAC leads on PegInsertSide.

Ablation Studies

Implicit vs. explicit flow. To test the role of implicit integration during policy learning, we replace DEFlow’s implicit-Euler updates with explicit Euler while retaining the actor architecture, four integration steps, discrete density objective, and training settings. Both policies are trained independently on the docking tasks. DEFlow achieves higher successful coverage on loose docking (Table 1), and tight docking exposes a further limitation of the explicit variant: it either concentrates on a preferred goal or fails numerically (details in Appendix § 10.§ 4). This comparison strongly supports implicit integration for learning diverse successful behavior under a narrow action tolerance.

NavigationDockingSACSAC-FlowDIMEQSMExplicit flowDEFlow
WideLoose0.397 ± 0.1270.522 ± 0.2240.634 ± 0.0210.000 ± 0.0000.507 ± 0.0300.671 ± 0.002
NarrowLoose0.376 ± 0.0190.613 ± 0.0320.632 ± 0.0120.000 ± 0.0000.499 ± 0.1000.661 ± 0.020
WideTight0.428 ± 0.1050.481 ± 0.0670.502 ± 0.0110.000 ± 0.0000.412 ± 0.0840.589 ± 0.128
NarrowTight0.467 ± 0.0740.451 ± 0.0840.491 ± 0.0090.000 ± 0.0000.417 ± 0.1530.552 ± 0.113

Table 1. Successful coverage (U4) at 200k transitions: mean ± SD over completed seeds, 1,000 episodes per seed. Bold/underline mark the top two means.

Integrator step-count ablation. On the MultiGoal variant with wide goal regions and tight docking, we freeze two policies trained with T=4T = 4 and change only the number of docking integration steps. Each policy keeps its own integrator and uses the same states and Gaussian inputs across step counts. At the training depth T=4T = 4, the explicit policy achieves only 50.1% balanced docking accuracy on a shared bank of reachable states, with near-zero accuracy for two of the four goals, while DEFlow achieves 94.1%. Even on each policy’s own visited states, changing only the docking integration depth from T=4T = 4 to T=2T = 2 reduces explicit success from 99.8% to 0.7%, versus 96.5% to 53.7% for DEFlow, and increasing TT also degrades the explicit policy. For this pair, DEFlow is more robust to changes in step count (Figure 8 and Figure 9).

Figure 8. Docking actions on shared states as TT varies. Top: explicit; bottom: DEFlow. Hit averages equally over goals.

Figure 9. Docking actions on each policy’s own trajectories. Hit uses observed goal frequencies; gray targets were not visited.

Limitations and Costs

Training time. In our measured runs, DEFlow had roughly 40% lower effective training throughput than SAC-Flow and took about three times as long as SAC. Its wall-clock cost was of the same order as DIME’s. These comparisons are approximate and depend on workload and shared hardware. Each implicit actor update requires a nonlinear forward solve and a dense linear backward solve.

Exactness is tolerance-limited in training. Equation (13) is exact for a solution of the implicit equations under the assumptions in Appendix § 8.§ 3. The implementation uses finite solver tolerances and numerical modifications (Appendix § 10.§ 1). The trained-policy audit in Appendix § 10.§ 1 measures the resulting discrepancies at final manipulation checkpoints. The audit finds numerical inaccuracy, especially in PushWall actor gradients. Tightening the solver at evaluation reduces these errors, while sampled task success changes little. We use the original solver settings for benchmark evaluations to avoid the extra cost of tighter solves.

Conclusion

We introduced DEFlow, a deep-equilibrium formulation of flow policies for maximum-entropy reinforcement learning. By combining implicit sampling, tractable density evaluation, and implicit differentiation, DEFlow provides an alternative to explicit flow actors. Our experiments highlight its potential for expressive control and the remaining trade-offs in numerical accuracy and computational cost.

Additional Derivations

Finite-Step Analysis

This appendix records the assumptions and proof details behind the claims in § 3. We use T∈N+T \in\mathbb{N}_{+} integration steps on [0,1][0,1] with Δt=1/T\Delta t = 1/T and tk=kΔtt_k = k\Delta t. We fix a state and suppress it from the notation. The actions are unsquashed, the base variable is shared when two rollouts are compared, and the field is the ideal independent-interpolation field. These results isolate the numerical effects of finite-step integration on analytically specified vector fields.

A smooth multimodal target can require a fine grid

Consider

A=mC+σG,C∈{−1,1},It=(1−t)Z+tA,(18)A = mC + \sigma G,\qquad C \in\{-1,1\},\qquad I_t = (1-t)Z + tA, \tag*{(18)}

where m,σ>0m,\sigma> 0, P(C=±1)=1/2\mathbb{P}(C = \pm1) = 1/2, and Z,GZ,G are standard Gaussians. The variables C,Z,GC,Z,G are mutually independent. Small-width limits keep mm fixed. The terminal target is πm,σ⋆=12N(−m,σ2)+12N(m,σ2)\pi^\star_{m,\sigma} = \frac{1}{2}\mathcal{N}(-m,\sigma^2) + \frac{1}{2}\mathcal{N}(m,\sigma^2). Writing qt=(1−t)2+σ2t2q_t = (1-t)^2 + \sigma^2t^2, conditional Gaussian regression gives

v⋆(x,t)=btx+dttanh⁡(ktx),bt=σ2t−(1−t)qt,dt=m(1−t)qt,kt=mtqt.(19)v^\star(x,t) = b_tx + d_t\tanh(k_tx),\qquad b_t = \frac{\sigma^2t-(1-t)}{q_t},\qquad d_t = \frac{m(1-t)}{q_t},\qquad k_t = \frac{mt}{q_t}. \tag*{(19)}

The denominator is bounded away from zero, so this field is globally well posed. Its derivative is

∂xv⋆(x,t)=bt+dtktsech⁡2(ktx).(20)\partial_xv^\star(x,t) = b_t + d_tk_t\operatorname{sech}^{2}(k_tx). \tag*{(20)}

For 0<σ≤min⁡{1/2,m/10}0 < \sigma\le\min\{1/2,m/10\}, evaluating at x=0x = 0 and t=(1+σ)−1t = (1+\sigma)^{-1} yields

sup⁡x,t∣∂xv⋆(x,t)∣≥m28σ3.(21)\sup_{x,t} \lvert\partial_xv^\star(x,t)\rvert\ge\frac{m^2}{8\sigma^3}. \tag*{(21)}

Thus the exact field remains regular for every fixed σ>0\sigma> 0, while the near-identity requirement for a discrete step becomes increasingly demanding as the target narrows.

For completeness, let Jk=Dav(ak,tk)J_k = D_a v(a_k,t_k) and Bk=I+ΔtJkB_k = I + \Delta t J_k. If ∥Jk∥≤Lk\lVert J_k\rVert\le L_k, the triangle and reverse-triangle inequalities give

[1−ΔtLk]+≤σmin⁡(Bk)≤σmax⁡(Bk)≤1+ΔtLk.(22)[1-\Delta t L_k]_+ \le\sigma_{\min}(B_k) \le\sigma_{\max}(B_k) \le1+\Delta t L_k. \tag*{(22)}

When ΔtLk<1\Delta t L_k < 1 for all kk, multiplication of singular-value bounds gives

κ2(BT−1⋯B0)≤∏k=0T−11+ΔtLk1−ΔtLk.(23)\kappa_2(B_{T-1}\cdots B_0) \le\prod_{k=0}^{T-1}\frac{1+\Delta t L_k}{1-\Delta t L_k}. \tag*{(23)}

The same calculation for an implicit step produces the inverse factor (I−ΔtJk+1)−1(I-\Delta t J_{k+1})^{-1}, which is why the two discretizations can have different conditioning on the same field.

Sampling error. For the explicit Euler discretization of (19), define πΔt⋆\pi_{\Delta t}^\star as the law after T=1/ΔtT=1/\Delta t steps. The linear part of the update contracts the outward fluctuation. An induction gives

∣X^k∣≤mtk+Rk∣Z∣,Rk+1=(1+Δtbtk)Rk,R0=1.(24)|\widehat X_k| \le m t_k + R_k|Z|,\qquad R_{k+1}=(1+\Delta t b_{t_k})R_k,\qquad R_0=1. \tag*{(24)}

Convexity of qt\sqrt{q_t} implies

RT≤σ2(1−Δt)(Δt)2+σ2(1−Δt)2≤σ2Δt.(25)R_T \le\frac{\sigma^2(1-\Delta t)}{\sqrt{(\Delta t)^2+\sigma^2(1-\Delta t)^2}} \le\frac{\sigma^2}{\Delta t}. \tag*{(25)}

Now use the 1-Lipschitz function fm(x)=(∣x∣−m)+f_m(x)=(|x|-m)_+. The envelope gives ∥fm(X^T)∥L2≤RT\lVert f_m(\widehat X_T)\rVert_{L^2}\le R_T, while the target satisfies ∥fm(A)∥L2≥σ/2\lVert f_m(A)\rVert_{L^2}\ge\sigma/\sqrt{2}. For any coupling of the numerical and target variables, the reverse triangle inequality in L2L^2 therefore gives

W2(πΔt⋆,πm,σ⋆)≥[σ2−RT]+.(26)W_2(\pi_{\Delta t}^\star,\pi_{m,\sigma}^\star)\ge\left[\frac{\sigma}{\sqrt{2}}-R_T\right]_+. \tag*{(26)}

Substitution of (25) proves

Δt≥22σ⟹W2(πΔt⋆,πm,σ⋆)≥σ22.(27)\Delta t \ge2\sqrt{2}\sigma\quad\Longrightarrow\quad W_2(\pi_{\Delta t}^\star,\pi_{m,\sigma}^\star)\ge\frac{\sigma}{2\sqrt{2}}. \tag*{(27)}

At one step, v⋆(x,0)=−xv^\star(x,0)=-x, so X^1=0\widehat X_1=0 and W2(π1⋆,πm,σ⋆)=m2+σ2W_2(\pi_1^\star,\pi_{m,\sigma}^\star)=\sqrt{m^2+\sigma^2}. At two steps, direct substitution gives

X^2=σ2Z+mtanh⁡(mZ/(1+σ2))1+σ2.(28)\widehat X_2=\frac{\sigma^2 Z+m\tanh\left(mZ/(1+\sigma^2)\right)}{1+\sigma^2}. \tag*{(28)}

As σ↓0\sigma\downarrow0, this converges in L2L^2 to mtanh⁡(mZ)m\tanh(mZ), whereas the target converges to the two-point law on {−m,m}\{-m,m\}. The limiting Wasserstein error is consequently

m(E[(1−tanh⁡(m∣Z∣))2])1/2>0.(29)m\left(\mathbb{E}\left[(1-\tanh(m|Z|))^2\right]\right)^{1/2}>0. \tag*{(29)}

This establishes intermodal shape distortion without invoking a singular explicit update.

A fixed budget can distort the policy gradient

The gradient statement in § 3 uses the centered Gaussian subfamily A∼N(0,ϑ)A\sim\mathcal{N}(0,\vartheta), with σ=ϑ\sigma=\sqrt{\vartheta}, and the terminal loss ℓ(a)=a2/2\ell(a)=a^2/2. The exact flow gives X1=ϑZX_1=\sqrt{\vartheta}Z and L′(ϑ)=1/2\mathcal{L}'(\vartheta)=1/2. For T≥2T\ge2, direct substitution of tk=k/Tt_k=k/T into the explicit update yields

RT(ϑ)=∏k=0T−1(T−k)(T−k−1)+ϑk(k+1)(T−k)2+ϑk2,X^T=RT(ϑ)Z.(30)R_T(\vartheta)=\prod_{k=0}^{T-1}\frac{(T-k)(T-k-1)+\vartheta k(k+1)}{(T-k)^2+\vartheta k^2},\qquad\widehat X_T=R_T(\vartheta)Z. \tag*{(30)}

Hence LΔt′(ϑ)=RTRT′\mathcal{L}'_{\Delta t}(\vartheta)=R_T R_T'. Setting u=T2ϑ=(σ/Δt)2u=T^2\vartheta=(\sigma/\Delta t)^2, the factors are nondecreasing and their logarithmic derivatives give

0≤2RTRT′≤2ue2u1+u≤3u,0≤u≤18.(31)0\le2R_T R_T' \le\frac{2ue^{2u}}{1+u}\le3u,\qquad0\le u\le\frac{1}{8}. \tag*{(31)}

Since the exact derivative is 1/21/2, this is the claimed bound on the relative gradient. The statement is deliberately limited to this terminal loss and parameterization; it identifies a possible rollout-sensitivity mechanism rather than characterizing the full SAC actor gradient.

Why architectural stabilization alone is insufficient

Two short counterexamples clarify the scope of the preceding results. First, clipping an optimizer step bounds ∥θr+1−θr∥\|\theta^{r+1}-\theta^r\|, but does not bound ∥Dav∥\|D_av\|, the smallest singular value of a step map, or the sampling error. For vλ(x)=−λxv_\lambda(x)=-\lambda x, explicit Euler gives

X1=e−λZ,X^T=(1−Δtλ)TZ,W2=∣∣1−Δtλ∣T−e−λ∣.(32)X_1=e^{-\lambda}Z,\qquad\widehat{X}_T=(1-\Delta t\lambda)^T Z,\qquad W_2=\left|\left|1-\Delta t\lambda\right|^T-e^{-\lambda}\right|. \tag*{(32)}

The continuous flow is well posed, while λ=1/Δt\lambda=1/\Delta t makes one step singular and λ>2/Δt\lambda>2/\Delta t amplifies its sensitivity. A clipped update can be zero at a parameter-space minimizer, so clipping does not exclude this field.

Second, a bounded gated field can keep every Euler state in a bounded range while its gate derivative makes the step Jacobian singular or arbitrarily ill-conditioned. Normalized features and a bounded output head do not remove this possibility. These examples show why the method must expose and control the discrete step structure; they do not imply that the trained actor always enters the counterexample regime.

Implicit Differentiation

We derive the backward pass in § 4.1 following Bai et al. [1]. Fix (s,z)(s,z) and let Z⋆Z^\star solve Eq. (9). Assume that the velocity field has continuous first and second derivatives in (a,θ)(a,\theta) and that each matrix I−ΔtJkI-\Delta tJ_k is invertible at this solution, where Jk=∂avθ(ak⋆,s,tk)J_k=\partial_a v_\theta(a_k^\star,s,t_k).

Differentiating the fixed-point equation gives

AdZ⋆dθ=∂θgθ,A=I−∂Zgθ.(33)A\frac{dZ^\star}{d\theta}=\partial_\theta g_\theta,\qquad A=I-\partial_Zg_\theta. \tag*{(33)}

All derivatives are evaluated at (Z⋆;s,z)(Z^\star;s,z). From Eq. (8), block kk depends only on actions 1,…,k1,\ldots,k. The blocks of AA are therefore

Akj={−ΔtJj,j<k,I−ΔtJk,j=k,0,j>k,det⁡A=∏k=1Tdet⁡(I−ΔtJk).(34)A_{kj}= \begin{cases} -\Delta tJ_j, & j<k,\\ I-\Delta tJ_k, & j=k,\\ 0, & j>k, \end{cases} \qquad \det A=\prod_{k=1}^{T}\det(I-\Delta tJ_k). \tag*{(34)}

Thus AA is block lower triangular and invertible under the stated assumptions. The implicit function theorem then gives a locally differentiable solution as (z,θ)(z,\theta) varies.

For a differentiable sample loss ℓ(θ,Z⋆)\ell(\theta,Z^\star), the chain rule gives

∇θℓ=∂θℓ∣Z⋆+(dZ⋆dθ)⊤∇Zℓ=∂θℓ∣Z⋆+(∂θgθ)⊤A−⊤∇Zℓ.(35)\nabla_\theta\ell=\left.\partial_\theta\ell\right|_{Z^\star}+\left(\frac{dZ^\star}{d\theta}\right)^\top\nabla_Z\ell=\left.\partial_\theta\ell\right|_{Z^\star}+(\partial_\theta g_\theta)^\top A^{-\top}\nabla_Z\ell. \tag*{(35)}

Solving A⊤λ=∇ZℓA^\top\lambda=\nabla_Z\ell recovers Eq. (10). This avoids forming either A−1A^{-1} or the full derivative dZ⋆/dθdZ^\star/d\theta. The direct term ∂θℓ∣Z⋆\left.\partial_\theta\ell\right|_{Z^\star} includes the dependence of the log-density and Jacobian penalty on θ\theta with the actions held fixed. Their derivatives involve second derivatives of the velocity field.

To apply this calculation to the expected actor loss, we assume that, for almost every (s,z)(s,z), the selected solution remains differentiable throughout a common neighborhood of the current parameters. We also assume that the sample-loss derivatives in this neighborhood are bounded by a function of (s,z)(s,z) with finite expectation. Holding the replay distribution fixed, these conditions allow differentiation under the expectation and justify the minibatch gradient in Algorithm 1. Numerical evaluation of this gradient is described in Appendix C.1.

Action Log-Density

We justify the change-of-variables calculation in § 4.2. Fix a state ss. Assume that a measurable, deterministic rule selects an implicit trajectory for almost every z∼p0z\sim p_0. On open regions covering these samples up to a set of probability zero, assume that the selected trajectory is continuously differentiable in zz and that every I−ΔtJkI-\Delta tJ_k is invertible.

The log form of the change-of-variables identity in Eq. (11) is

log⁡pY(y)=log⁡pX(x)−log⁡∣det⁡∂f/∂x∣.(36)\log p_Y(y)=\log p_X(x)-\log\left|\det\partial f/\partial x\right|. \tag*{(36)}

An implicit Euler step has the explicit inverse relation

ak−1=Hk(ak),Hk(a)=a−Δt vθ(a,s,tk).(37)a_{k-1}=H_k(a_k),\qquad H_k(a)=a-\Delta t\,v_\theta(a,s,t_k). \tag*{(37)}

Consequently, the endpoint determines every preceding action and the base sample: z=H1∘⋯∘HT(aT)z=H_1\circ\cdots\circ H_T(a_T). Two different base samples cannot produce the same selected endpoint. The selected map z↦aT⋆z\mapsto a_T^\star is therefore one-to-one, even if the step equations admit other solutions. The pre-squash density is defined on the image of this selected map and is zero outside it.

Since ∂aHk=I−ΔtJk\partial_a H_k=I-\Delta tJ_k, differentiating the inverse map gives

∂z∂aT=(I−ΔtJ1)⋯(I−ΔtJT).(38)\frac{\partial z}{\partial a_T}=(I-\Delta tJ_1)\cdots(I-\Delta tJ_T). \tag*{(38)}

Composing the step maps and applying the log form of change of variables gives

∂aT∂z=(I−ΔtJT)−1⋯(I−ΔtJ1)−1,log⁡π(aT∣s)=log⁡p(z)+∑k=1Tlog⁡∣det⁡(I−ΔtJk)∣.(39)\frac{\partial a_T}{\partial z}=(I-\Delta tJ_T)^{-1}\cdots(I-\Delta tJ_1)^{-1},\qquad \log\pi(a_T\mid s)=\log p(z)+\sum_{k=1}^{T}\log\left|\det(I-\Delta tJ_k)\right|. \tag*{(39)}

Here, π(aT∣s)\pi(a_T\mid s) denotes the density before squashing. The final transformation aenv=c⊙tanh⁡(aT⋆)+ba_{\mathrm{env}}=c\odot\tanh(a_T^\star)+b is one-to-one for ci>0c_i>0, with Jacobian determinant ∏ici(1−tanh⁡2(aT,i⋆))\prod_i c_i(1-\tanh^2(a_{T,i}^\star)). Dividing by this determinant and taking logarithms gives the final-action log-density:

log⁡πθ(aenv∣s)=log⁡p(z)+∑k=1Tlog⁡∣det⁡(I−ΔtJk)∣−∑i=1dalog⁡[ci(1−tanh⁡2aT,i⋆)].\log\pi_\theta(a_{\mathrm{env}}\mid s)=\log p(z)+\sum_{k=1}^{T}\log\left|\det(I-\Delta tJ_k)\right|-\sum_{i=1}^{d_a}\log\left[c_i(1-\tanh^2 a_{T,i}^\star)\right].

This is Eq. (13), including the action-bound correction used in SAC [8]. This identity concerns an exact solution of the implicit equations. Appendix § 10.§ 1 specifies how it is evaluated at finite solver tolerance.

Implementation Details

Architecture

DEFlow uses the gated velocity field of SAC-Flow (Zhang et al., 2025). Its inputs are the observation, intermediate action, and time embedding. The time embedding maps 32 sinusoidal features through two layers of widths 64 and 32. A shared projection with SiLU and layer normalization feeds separate gate and candidate heads. Each head has one hidden layer and outputs an action-dimensional vector. The gate is sigmoid, and the candidate is a scaled tanh as in Eq. (6). The velocity width is 256, the candidate scale is 4, and the gate output bias is initialized to 1. Actions start from standard Gaussian noise and use four implicit-Euler steps before the final tanh and action-bound scaling.

Jacobian regularization. Motivated by Jacobian regularization for DEQ models [2], we penalize the individual velocity Jacobians:

RJ(θ)=Es∼D, z∼p0[∑k=1T[∥ΔtJk∥2−σ∗]+2],[x]+=max⁡(x,0),(40)R_J(\theta)=\mathbb{E}_{s\sim\mathcal{D},\,z\sim p_0}\left[\sum_{k=1}^{T}\left[\lVert\Delta tJ_k\rVert_2-\sigma^*\right]_+^2\right],\qquad[x]_+=\max(x,0), \tag*{(40)}

and minimize Lπ+βRJ\mathcal{L}_{\pi}+\beta R_J. We use σ∗=0.9\sigma^*=0.9 and increase β\beta from zero to 0.01 over the first 100,000 environment steps.

Temperature updates. In the regularized DEFlow recipe, we update log⁡α\log\alpha from the actor log-densities. The target is an exponential moving average of negative log-density (weight 0.01) minus 0.7, with floor −0.7da-0.7d_a. The update winsorizes log-densities at the minibatch 5th and 95th percentiles, leaks log⁡α\log\alpha toward log⁡(0.05)\log(0.05) with weight 0.01, and enforces α≥0.02\alpha\geq0.02. We also tested fixed-temperature variants, which sometimes reached comparable return but did not provide stable adaptive temperature behavior.

Implementation Details

Algorithm 1 summarizes the SAC updates with DEFlow’s implicit actor. Table 2 gives one reference configuration for the matched-critic MuJoCo comparison. All methods use twin 4×5124\times512 ReLU critics in this comparison. We retain each baseline’s policy class and actor objective: SAC has a squashed Gaussian density [8], SAC-Flow uses its noisy explicit rollout and joint-path entropy term (Zhang et al., 2025), DIME uses its diffusion entropy bound [3], and QSM matches its score to the critic action gradient without a policy log-density [13]. We implement each baseline’s actor and objective in a common training pipeline. Matching critic capacity is necessary to assess actor performance without confounding it with differences in the critic.

MethodActor stepsPolicy objective or density
SAC—Gaussian log-density
SAC-Flow4Joint-path entropy
DIME16Diffusion entropy bound
QSM5Q-score matching (no log-density)
DEFlow4Discrete change-of-variables density
Sharedtwin 4×5124\times512 critics; batch 512; replay 10610^6; warm-up 50k; UTD 1.
γ=0.99\gamma=0.99; τ=0.005\tau=0.005; actor/critic learning rates 3×10−4/10−33\times10^{-4}/10^{-3}.

Table 2. Reference matched-critic MuJoCo configuration. Method rows retain actor-specific sampling and objectives; full run settings are in the repository.

Benchmark Protocol

The benchmarks comprise MultiGoal-4 [6], five MuJoCo locomotion tasks (Hopper-v4, Walker2d-v4, HalfCheetah-v4, Ant-v4, Humanoid-v4) (Todorov et al., 2012), two Man-

Algorithm 1 DEFlow

Require: Initial policy parameters θ\theta, critic parameters ϕ1,ϕ2\phi_1, \phi_2, minibatch size BB, target averaging rate τ\tau.

1: Initialize target parameters ϕˉj←ϕj\bar{\phi}_j \leftarrow\phi_j for j=1,2j = 1, 2 and replay buffer D←∅\mathcal{D} \leftarrow\varnothing. 2: Reset the environment and observe the initial state ss. 3: for each iteration do 4: &nbsp;&nbsp;&nbsp;&nbsp;for each environment step do 5: &nbsp;&nbsp;&nbsp;&nbsp;Draw z∼p0z \sim p_0 and compute a=aθ(s,z)a = a_\theta(s, z). 6: &nbsp;&nbsp;&nbsp;&nbsp;Execute aa and observe reward rr, next state s′s', and termination indicator dd. 7: &nbsp;&nbsp;&nbsp;&nbsp;Store (s,a,r,s′,d)(s, a, r, s', d) in D\mathcal{D}. 8: &nbsp;&nbsp;&nbsp;&nbsp;Set s←s′s \leftarrow s', or reset the environment if the episode has ended. 9: &nbsp;&nbsp;&nbsp;&nbsp;end for 10: &nbsp;&nbsp;&nbsp;&nbsp;for each gradient step do 11: &nbsp;&nbsp;&nbsp;&nbsp;Draw a minibatch {(si,ai,ri,si′,di)}i=1B\{(s_i, a_i, r_i, s'_i, d_i)\}_{i=1}^{B} from D\mathcal{D}. 12: &nbsp;&nbsp;&nbsp;&nbsp;Draw zi′∼p0z'_i \sim p_0 and compute ai′=aθ(si′,zi′)a'_i = a_\theta(s'_i, z'_i) for each ii. 13: &nbsp;&nbsp;&nbsp;&nbsp;Evaluate log⁡πθ(ai′∣si′)\log\pi_\theta(a'_i \mid s'_i) using Eq. (13). 14: &nbsp;&nbsp;&nbsp;&nbsp;Compute targets yiy_i using Eq. (14), with yi=riy_i = r_i when di=1d_i = 1. 15: &nbsp;&nbsp;&nbsp;&nbsp;Update ϕ1,ϕ2\phi_1, \phi_2 by minimizing the minibatch critic loss in Eq. (15), holding yiy_i fixed. 16: &nbsp;&nbsp;&nbsp;&nbsp;if a policy update is due then 17: &nbsp;&nbsp;&nbsp;&nbsp;Draw fresh zi∼p0z_i \sim p_0 and compute a~i=aθ(si,zi)\tilde{a}_i = a_\theta(s_i, z_i) for each ii. 18: &nbsp;&nbsp;&nbsp;&nbsp;Evaluate log⁡πθ(a~i∣si)\log\pi_\theta(\tilde{a}_i \mid s_i) using Eq. (13). 19: &nbsp;&nbsp;&nbsp;&nbsp;Form each sample loss ℓi\ell_i using Eq. (16) and the β\beta-weighted penalty in Eq. (40). 20: &nbsp;&nbsp;&nbsp;&nbsp;Solve the adjoint systems in Eq. (10) to compute ∇θℓi\nabla_\theta\ell_i. 21: &nbsp;&nbsp;&nbsp;&nbsp;Update θ\theta using B−1∑i=1B∇θℓiB^{-1}\sum_{i=1}^{B}\nabla_\theta\ell_i. 22: &nbsp;&nbsp;&nbsp;&nbsp;Update α\alpha. 23: &nbsp;&nbsp;&nbsp;&nbsp;end if 24: &nbsp;&nbsp;&nbsp;&nbsp;Update target parameters ϕˉj←(1−τ)ϕˉj+τϕj\bar{\phi}_j \leftarrow(1-\tau)\bar{\phi}_j + \tau\phi_j for j=1,2j = 1, 2. 25: &nbsp;&nbsp;&nbsp;&nbsp;end for 26: end for

iSkill tasks (PickCube-v1 and PushCube-v1) (Tao et al., 2025), and three MetaWorld tasks (ButtonPressWall, PegInsertSide, PushWall) (Yu et al., 2020). All methods use the same task wrapper and checkpoint schedule within each comparison. MuJoCo and manipulation runs use budgets of 1M and 500k recorded steps, respectively. Manipulation wrappers set task-specific rewards, resets, horizons, and termination rules; their exact settings are provided in the repository’s run configurations.

MuJoCo returns use the recorded evaluation at 1M steps, curves use evaluations every 25k steps. Manipulation returns are evaluated from 50k to 500k steps and averaged over the recorded checkpoints for the time-averaged-return table. We report means and sample standard deviations across three training seeds per task and method. For deterministic DEFlow evaluation, the base sample is z=0z = 0, QSM retains stochastic denoising even in its evaluation channel. Final manipulation ever-success is the fraction of sampled episodes in which the task succeeds at least once, measured over 100 episodes per trained policy. These evaluation episodes are not additional training seeds. The exact selected runs and evaluation scripts are linked from the repository’s result manifests.

Fixed-Flow Robot Illustration

Figure 1 isolates discretization in a fixed scalar contraction, v(x,t)=−8(x−0.8)v(x,t) = -8(x - 0.8), on t∈[0,1]t \in[0,1], initialized with z∼N(0,1)z \sim\mathcal{N}(0,1). We compare explicit Euler with a jointly solved implicit-Euler trajectory at T∈{2,3,4,5}T \in\{2, 3, 4, 5\} and apply u=tanh⁡(xT)u = \tanh(x_T) to the terminal sample. The implicit solver uses damped Newton with zero initialization, an 80-iteration cap, and normalized local and cumulative fixed-point residual tolerances of 10−1110^{-11} and 10−910^{-9}, respectively, in double precision. This diagnostic has no learned velocity field, critic, or policy training; the learned DEFlow policies in § 4 use Anderson acceleration.

The simulator is a custom one-decision Panda waypoint-reaching task in ManiSkill 3. The scalar command specifies a displacement of 0.12u metres along the task axis from the calibrated end-effector anchor. The target uses u∗=tanh⁡(0.8(1−e−8))u_* = \tanh(0.8(1 - e^{-8})), the continuous-flow image of z=0z = 0 after squashing. Each waypoint is held for 40 Cartesian position-control steps at 20 Hz, with the gripper fixed and no early success termination. Success is the final three-dimensional end-effector distance to the target being less than 8 mm; it is not an ever-success metric. The plot shows axial and lateral projections, while its success labels use all three coordinates.

Each method and step count uses 640 trials: 128 trials for each of seeds 0, 1, 2, 3, 4. Simulator states and Gaussian base samples are shared across methods and step counts. The figure reuses recorded endpoints from the descriptive step-count sweep and is not an independent replication. The comparison holds the number of integration steps fixed, without matching field evaluations or wall-clock time. It supports a discretization comparison for this contraction task, without establishing computational efficiency, multimodal sampling accuracy, or performance of a trained policy.

Additional Results

Numerical Verification

DEFlow solves the joint trajectory with Anderson acceleration (Walker & Ni, 2011). The solver stops when the minibatch mean relative residual meets its configured tolerance or the iteration limit is reached, returning the last iterate in either case. Actor updates re-evaluate the field at that iterate and use a dense adjoint solve rather than differentiating through solver iterations. The adjoint and log-determinant matrices receive a 10−6I10^{-6} I shift, and log-determinants are clipped to [−50,50][-50, 50]. Some training recipes also clip actor log-densities to [−15,15][-15, 15]. The reference MuJoCo configuration uses a 3×10−43 \times10^{-4} forward tolerance.

We test how the forward solver affects trained DEFlow policies by comparing each final manipulation policy under two settings: the original Anderson solver with a 25-iteration limit and 10−510^{-5} tolerance, and a tighter solver with a 100-iteration limit and 10−610^{-6} tolerance. Table 3 compares actions, safeguarded log-density readouts, and actor gradients with an independently solved implicit reference; the median and P95 pool matched inputs within each task. Three PushWall inputs without a validated reference are excluded from these discrepancies. Table 4 reports stochastic ever-success on paired environment episodes as the mean ±\pm sample standard deviation over three training seeds. Both settings use the same 100 evaluation episodes per checkpoint, and the change is Tighter minus Original in percentage points.

TaskDiscrepancyOriginal MedianOriginal P95Tighter MedianTighter P95
PickCubeAction1.49×10−51.49 \times10^{-5}1.62×10−41.62 \times10^{-4}7.04×10−77.04 \times10^{-7}2.39×10−62.39 \times10^{-6}
PickCubeLog-density (nat)3.73×10−53.73 \times10^{-5}5.18×10−45.18 \times10^{-4}2.05×10−62.05 \times10^{-6}9.92×10−69.92 \times10^{-6}
PickCubeGradient (%)0.003300.7710.0001430.000980
PushCubeAction1.02×10−51.02 \times10^{-5}3.20×10−43.20 \times10^{-4}9.73×10−79.73 \times10^{-7}2.38×10−62.38 \times10^{-6}
PushCubeLog-density (nat)2.03×10−52.03 \times10^{-5}8.15×10−58.15 \times10^{-5}2.47×10−62.47 \times10^{-6}8.91×10−68.91 \times10^{-6}
PushCubeGradient (%)0.0009300.004650.0002290.000642
ButtonPressWallAction1.63×10−51.63 \times10^{-5}9.92×10−49.92 \times10^{-4}9.95×10−79.95 \times10^{-7}3.10×10−63.10 \times10^{-6}
ButtonPressWallLog-density (nat)4.49×10−54.49 \times10^{-5}1.91×10−31.91 \times10^{-3}2.55×10−62.55 \times10^{-6}1.05×10−51.05 \times10^{-5}
ButtonPressWallGradient (%)0.0006300.008360.0004200.00178
PegInsertSideAction8.54×10−68.54 \times10^{-6}2.75×10−52.75 \times10^{-5}9.69×10−79.69 \times10^{-7}2.57×10−62.57 \times10^{-6}
PegInsertSideLog-density (nat)2.22×10−52.22 \times10^{-5}1.31×10−41.31 \times10^{-4}2.09×10−62.09 \times10^{-6}9.18×10−69.18 \times10^{-6}
PegInsertSideGradient (%)0.0005230.004350.0001530.000390
PushWallAction0.002990.03750.0004790.0211
PushWallLog-density (nat)0.01080.2990.001220.197
PushWallGradient (%)13.796.12.8450.3

Table 3. Numerical discrepancies on trained policies.

TaskOriginalTighterChange (pp)
PickCube87.0±8.987.0 \pm8.986.7±8.786.7 \pm8.7−0.33-0.33
PushCube98.7±1.298.7 \pm1.299.0±1.099.0 \pm1.0+0.33+0.33
ButtonPressWall8.7±14.28.7 \pm14.28.3±13.68.3 \pm13.6−0.33-0.33
PegInsertSide38.0±23.838.0 \pm23.838.0±23.838.0 \pm23.80.000.00
PushWall0.3±0.60.3 \pm0.60.3±0.60.3 \pm0.60.000.00

Table 4. Final sampled success under each solver.

The tighter settings reduce the median and P95 discrepancies for every task and quantity in Table 3. Final sampled success changes little on the paired episodes in Table 4. This means that a more accurate solver at evaluation does not improve task success overall. For the iteration limit, the fraction of evaluation calls that reach it averages 47.2% with Original and 13.1% with Tighter across checkpoints. These results measure the sensitivity of final policies to the tested solver change, while errors during learning and the likelihood of the finite-iteration sampler remain open. Original is reevaluated in the same runtime as Tighter and can differ from the earlier benchmark evaluation.

Extended Benchmark Results

Figure 6. MuJoCo continuous-control environments used in our experiments.

Figure 7. Manipulation tasks from ManiSkill (first two) and MetaWorld (last three). ManiSkill images are from the official task demonstrations.

Table 6 reports MuJoCo return at the recorded 1M evaluation. Table 7 reports time-averaged manipulation return over 50k–500k steps. Table 8 reports the last-100k mean, return AUC, and return at 950k for the MuJoCo benchmark. Table 9 reports return at 500k, return AUC over 50k–500k steps, and sampled ever-success for the manipulation benchmark.

EnvironmentSACSAC-FlowDIMEQSMDEFlow
Last 100k mean
Hopper2775±6442775 \pm6443328±5913328 \pm5912416±6272416 \pm6272491±12772491 \pm12773165±11263165 \pm1126
Walker2d4487±16044487 \pm16044443±8444443 \pm8444849±9644849 \pm9641461±23361461 \pm23365169±5225169 \pm522
HalfCheetah14098±241714098 \pm241711533±392411533 \pm392413501±127813501 \pm12785982±9995982 \pm99912723±44912723 \pm449
Ant5737±8595737 \pm8596286±5306286 \pm5306047±11716047 \pm1171−25±6-25 \pm65824±22965824 \pm2296
Humanoid4345±12674345 \pm12675023±1075023 \pm1074875±5124875 \pm5124539±10464539 \pm10464357±19144357 \pm1914
Return AUC
Hopper2157±11232157 \pm11232644±5832644 \pm5832500±1642500 \pm1641956±7621956 \pm7622858±5672858 \pm567
Walker2d2873±24162873 \pm24163112±1763112 \pm1763127±12303127 \pm1230879±1219879 \pm12193583±6283583 \pm628
HalfCheetah11220±99911220 \pm9999806±25829806 \pm258211564±46111564 \pm4615237±6105237 \pm61010465±149110465 \pm1491
Ant3569±7153569 \pm7154917±8464917 \pm8464470±12354470 \pm1235−27±4-27 \pm43846±6513846 \pm651
Humanoid2902±4622902 \pm4623400±2823400 \pm2823150±8163150 \pm8162722±5592722 \pm5592706±4962706 \pm496
Return at 950k
Hopper3543±8283543 \pm8283559±453559 \pm452251±21482251 \pm21482996±13082996 \pm13082725±19202725 \pm1920
Walker2d4423±15044423 \pm15043748±23733748 \pm23734757±13074757 \pm13071035±15511035 \pm15515131±5125131 \pm512
HalfCheetah13709±278713709 \pm278711624±384611624 \pm384613071±397313071 \pm39736196±9176196 \pm91712677±56012677 \pm560
Ant5682±9735682 \pm9736145±12556145 \pm12556046±16646046 \pm1664−25±2-25 \pm25583±27745583 \pm2774
Humanoid4441±11264441 \pm11264848±7434848 \pm7435220±4595220 \pm4594407±20074407 \pm20074250±34084250 \pm3408

Table 8. Sensitivity analysis: mean ±\pm 95% confidence-interval half-width across three training seeds per cell. Return AUC is the time-averaged return over 25k–1M steps.

EnvironmentSACSAC-FlowDIMEDEFlow
Return at 500k
PickCube30.2±28.330.2 \pm28.323.2±6.623.2 \pm6.638.7±7.138.7 \pm7.135.5±3.735.5 \pm3.7
PushCube40.3±11.240.3 \pm11.239.8±10.539.8 \pm10.542.7±1.042.7 \pm1.042.8±1.242.8 \pm1.2
ButtonPressWall845.6±108.9845.6 \pm108.935.9±89.135.9 \pm89.1772.8±155.2772.8 \pm155.2747.6±200.3747.6 \pm200.3
PegInsertSide1274.5±308.71274.5 \pm308.72.0±0.52.0 \pm0.5699.7±1607.9699.7 \pm1607.91091.7±693.21091.7 \pm693.2
PushWall78.7±118.178.7 \pm118.17.7±19.07.7 \pm19.015.8±12.515.8 \pm12.5457.8±1887.2457.8 \pm1887.2
Return AUC
PickCube25.1±14.625.1 \pm14.619.0±3.719.0 \pm3.729.1±7.529.1 \pm7.533.5±1.233.5 \pm1.2
PushCube38.4±1.838.4 \pm1.837.3±3.137.3 \pm3.137.3±3.737.3 \pm3.740.8±0.640.8 \pm0.6
ButtonPressWall641.6±226.3641.6 \pm226.347.2±138.247.2 \pm138.2696.7±74.8696.7 \pm74.8755.7±61.8755.7 \pm61.8
PegInsertSide699.1±519.5699.1 \pm519.52.5±0.12.5 \pm0.1298.2±589.7298.2 \pm589.7564.3±394.2564.3 \pm394.2
PushWall61.2±97.661.2 \pm97.628.1±95.628.1 \pm95.623.4±48.323.4 \pm48.3217.8±831.9217.8 \pm831.9
Sampled ever-success (%)
PickCube64.7±139.164.7 \pm139.15.0±21.55.0 \pm21.593.0±23.793.0 \pm23.787.3±20.787.3 \pm20.7
PushCube97.0±9.097.0 \pm9.097.3±7.697.3 \pm7.699.0±4.399.0 \pm4.398.7±2.998.7 \pm2.9
ButtonPressWall0.0±0.00.0 \pm0.00.0±0.00.0 \pm0.03.7±5.23.7 \pm5.28.7±35.28.7 \pm35.2
PegInsertSide72.3±24.472.3 \pm24.40.0±0.00.0 \pm0.023.7±101.823.7 \pm101.839.3±53.339.3 \pm53.3
PushWall0.0±0.00.0 \pm0.010.3±44.510.3 \pm44.51.0±4.31.0 \pm4.30.3±1.40.3 \pm1.4

Table 9. Manipulation benchmark results, mean ±\pm 95% confidence-interval half-width across three training seeds per cell. Return AUC is the time-averaged return over 50k–500k steps.

Ablation Studies

Integrator step-count ablation. Both figures use the wide-goal, tight-docking MultiGoal variant and two frozen policies, each keeping its training integrator (explicit Euler, implicit DEFlow), both trained at T=4T = 4 (seed 3, 200005 transitions). We vary only the docking step count T∈{2,4,8,16}T \in\{2, 4, 8, 16\}, keeping navigation and all inputs fixed; this is the only seed with both final checkpoints, since explicit seeds 1 and 2 failed numerically. Figure 8 evaluates both policies on the same 104 reached states with 16 Gaussian inputs each (1664 actions), using balanced [email protected], the per-goal hit rates averaged with equal weights. Figure 9 follows 1000 new stochastic T=4T = 4 episodes per policy and recomputes only the docking action from each recorded state, Gaussian base sample, and full batch; replaying at T=4T = 4 reproduces the recorded actions bit-for-bit and matches every recorded episode success. Its Hit is the fraction of the 1000 docking actions within 0.06 of the reached goal’s target, so frequent routes dominate.

On the shared states, DEFlow stays high for T≥4T \ge4 (94.1%, 96.5%, 95.1%; 54.9% at T=2T = 2), while the explicit policy reaches 50.1% at its training depth, accurate on only two goals and near zero on the other two, and degrades at smaller and larger step counts (1.4%, 35.1%, 15.1% at T=2,8,16T = 2, 8, 16). On its own trajectories, explicit succeeds on 99.8% of episodes at T=4T = 4 because they visit almost only those two goals, then drops to 0.7% at T=2T = 2 and 59.1%/28.2% at T=8/16;DEFlowholds96.5T = 8/16; DEFlow holds 96.5%, 99.1%, 98.0%, and 53.7% atT = 2. In this pair, DEFlow’s docking is nearly insensitive to the tested step counts, whereas the explicit policy’s accuracy is route-selective and strongly step-dependent (paired illustration, one seed, each policy with its own integrator).

Docking Failure Diagnostics

Explicit flow. The docking audit illustrates the step-map conditioning effect identified in § 3. In the notation of Eq. (4), the explicit-step Jacobian is Bk=DaFkexp=I+ΔtJkB_k = D_aF_k^{\mathrm{exp}} = I + \Delta tJ_k. Three original explicit-flow runs terminated after detecting non-finite TD targets. At a frozen checkpoint from one of these runs, det⁡(B0+εI)\det(B_0+\varepsilon I) changes sign between two sampled latent inputs. A float64 probe locates a singularity of this diagonally regularized matrix between them. At the same local J0J_0, the algebraic implicit counterpart I−ΔtJ0I - \Delta tJ_0 has minimum singular value 1.226. The checkpoint thus exhibits the singular explicit-step regime illustrated by the linear contraction in Appendix § 8.§ 1.

QSM. QSM’s zero docking success is not a failure to reach the goal: 1,374 of 3,000 episodes across three seeds reached the docking state, yet none docked. The failure lies in action generation. At a frozen checkpoint, ideal goal-center observations produced action-box corners in 2,045 of 2,048 samples. An exact replay of the five denoising steps shows that the final learned correction has median magnitude 16.0–21.6 in a box of [−1,1]2[-1,1]^2, pushing both coordinates outside the box in 99.4–100% of samples, so clipping maps the action to a corner. All values are finite and the final step adds no fresh noise. Why the correction is learned so large remains unresolved.

AI Assistance

We used AI tools to assist with writing and polishing the manuscript, to support literature retrieval and discovery of related work, and to draft sections of the paper. The authors reviewed and revised the resulting text and take full responsibility for the final manuscript.

References

  1. [1]Shaojie Bai, J. Zico Kolter, and Vladlen Koltun. Deep equilibrium models. In Advances in Neural Information Processing Systems, 2019. doi: 10.48550/arXiv.1909.01377. URL https://arxiv.org/abs/1909.01377.
  2. [2]Shaojie Bai, Vladlen Koltun, and J. Zico Kolter. Stabilizing equilibrium models by jacobian regularization. In Proceedings of the 38th International Conference on Machine Learning, volume 139 of Proceedings of Machine Learning Research, pp. 554–565. PMLR, 2021. URL https://proceedings.mlr.press/v139/bai21b.html.arxiv.org/abs/2106.14342
  3. [3]Onur Celik, Zechu Li, Denis Blessing, Ge Li, Daniel Palenicek, Jan Peters, Georgia Chylatzaki, and Gerhard Neumann. DIME: Diffusion-based maximum entropy reinforcement learning. In Proceedings of the 42nd International Conference on Machine Learning, volume 267 of Proceedings of Machine Learning Research, pp. 6958–6977. PMLR, 2025. URL https://proceedings.mlr.press/v267/celik25a.html.
  4. [4]Zihan Ding and Chi Jin. Consistency models as a rich and efficient policy class for reinforcement learning. In International Conference on Learning Representations, 2024. doi: 10.48550/arXiv.2309.16984. URL https://arxiv.org/abs/2309.16984.
  5. [5]Alan Edelman, Ekin Akyürek, and Yuyang Wang. Backpropagation through back substitution with a backslash. SIAM Journal on Matrix Analysis and Applications, 45(1):429–449, 2024. doi: 10.1137/22M1532871. URL https://doi.org/10.1137/22M1532871.
  6. [6]Tuomas Haarnoja, Haoran Tang, Pieter Abbeel, and Sergey Levine. Reinforcement learning with deep energy-based policies. In Proceedings of the 34th International Conference on Machine Learning, volume 70 of Proceedings of Machine Learning Research, pp. 1352–1361. PMLR, 2017. URL https://proceedings.mlr.press/v70/haarnoja17a.html.arxiv.org/abs/1702.08165
  7. [7]Tuomas Haarnoja, Aurick Zhou, Pieter Abbeel, and Sergey Levine. Soft actor-critic: Off-policy maximum entropy deep reinforcement learning with a stochastic actor. In Proceedings of the 35th International Conference on Machine Learning, volume 80 of Proceedings of Machine Learning Research, pp. 1861–1870. PMLR, 2018a. URL https://proceedings.mlr.press/v80/haarnoja18b.html.arxiv.org/abs/1801.01290
  8. [8]Tuomas Haarnoja, Aurick Zhou, Kristian Hartikainen, George Tucker, Sehoon Ha, Jie Tan, Vikash Kumar, Henry Zhu, Abhishek Gupta, Pieter Abbeel, and Sergey Levine. Soft actor-critic algorithms and applications, 2018b. URL https://arxiv.org/abs/1812.05905.
  9. [9]Ernst Hairer and Gerhard Wanner. Solving Ordinary Differential Equations II: Stiff and Differential-Algebraic Problems, volume 14 of Springer Series in Computational Mathematics. Springer, Berlin, Heidelberg, 2 edition, 1996. doi: 10.1007/978-3-642-05221-7.
  10. [10]Yaron Lipman, Ricky T. Q. Chen, Heli Ben-Hamu, Maximilian Nickel, and Matt Le. Flow matching for generative modeling. In International Conference on Learning Representations, 2023. URL https://arxiv.org/abs/2210.02747.
  11. [11]George Papamakarios, Eric Nalisnick, Danilo Jimenez Rezende, Shakir Mohamed, and Balaji Lakshminarayanan. Normalizing flows for probabilistic modeling and inference. Journal of Machine Learning Research, 22(57):1–64, 2021.
  12. [12]Seohong Park, Qiyang Li, and Sergey Levine. Flow q-learning. In Proceedings of the 42nd International Conference on Machine Learning, volume 267 of Proceedings of Machine Learning Research, pp. 48104–48127. PMLR, 2025. URL https://proceedings.mlr.press/v267/park25f.html.arxiv.org/abs/2502.02538
  13. [13]Michael Psenka, Alejandro Escontrela, Pieter Abbeel, and Yi Ma. Learning a diffusion model policy from rewards via q-score matching. In Proceedings of the 41st International Conference on Machine Learning, volume 235 of Proceedings of Machine Learning Research, pp. 41163–41182. PMLR, 2024. URL https://proceedings.mlr.press/v235/psenka24a.html.arxiv.org/abs/2312.11752
  14. [14]Danilo Jimenez Rezende and Shakir Mohamed. Variational inference with normalizing flows. In Proceedings of the 32nd International Conference on Machine Learning (ICML), volume 37 of PMLR, pp. 1530–1538, 2015.arxiv.org/abs/1505.05770

Paper details

vlnc:W_b54zn3vk
Version
v1 · latest
Published
Fresh — added to the Hub within the last 30 days
Added
License
CC0-1.0
Usage

views · 0

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