Skip to content

Menu

WorksComputer Science

RetraQ: Manifold-Constrained Critic Guidance for Flow Policies in RL

Download PDFView on arXiv

Ask your agent about this work

Your agent reads this work through Valency, with its citations and similar works. Paste this at the start of a chat.

Use the Valency MCP. Work: W_ng6uvtbz. Fetch it with get_paper_by_id, then find its nearest works with find_similar_papers and tell me what it adds.

Works with any MCP client. Not connected yet? Connect your agent

Abstract

A learned critic can improve a pretrained flow-matching policy by steering sampled actions toward higher predicted value. However, even a critic that fits the behavior data well can provide misleading action gradients. Gradient components pointing away from the data-supported region are weakly constrained by behavior data and can lead guidance to exploit critic extrapolation errors. We introduce RetraQ (Retraction-based Q-guidance), which uses geometry encoded by the pretrained flow to constrain both the direction and the destination of critic guidance. A single velocity evaluation of the frozen flow defines a denoising map. RetraQ filters the critic gradient with the map's Jacobian and applies the map itself to correct the updated action. Our analysis characterizes when these operations approximate tangent filtering and retraction onto the behavior manifold. The same update guides actions at test time and provides targets for policy distillation and online reinforcement learning. In controlled studies, RetraQ improves true return while keeping refined actions close to the data-supported region, and its distillation targets remain more stable than those of raw critic ascent. In offline-to-online training on LIBERO and OGBench, RetraQ achieves higher mean final success than the evaluated critic-guidance baselines. On a real-world plug-insertion task, test-time RetraQ improves the success rate of a behavior-cloned π0.5π_{0.5} policy from 55.0% to 76.7%. Online training further increases success to 98.3% in only 30 minutes and 100% within one hour. Project page: https://2027ICLR.github.io/retraq/

Project page: https://xuanzhuoliu.github.io/RetraQ/

Introduction

Generative policies can model complex, multimodal action distributions that arise in robot manipulation [8] (Shafiullah et al. 2022). Flow-matching policies, in particular, learn a velocity field that transports noise into actions and can generate action chunks with only a few deterministic integration steps [15, 17]. Their efficient sampling and simple regression objective make them well suited to behavioral cloning (BC). Recent vision-language-action policies have adopted flow matching as their core action-generation mechanism (Black et al., 2025b;a; NVIDIA et al., 2025).

However, behavioral cloning does not directly optimize task outcomes and can inherit suboptimal behavior from its training data. In precise manipulation, a policy may complete most of a task yet still fail at a critical stage, such as aligning a plug before insertion. Reinforcement learning (RL) provides a natural way to improve such behaviors using reward feedback [18] (Physical Intelligence et al. 2025). For a pretrained flow policy, this feedback can be incorporated through a learned critic: following its action gradient ∇aQ(s,a)\nabla_a Q(s, a) can steer sampled actions toward higher predicted return [22] (Silver et al. 2014; Wang et al. 2023; Psenka et al. 2024).

The difficulty is that a critic can predict returns well for actions in the training data, yet its gradients may still provide unreliable directions for policy improvement. [5]. Consider the idealized case in which behavior actions at a fixed context lie on a smooth, lowerdimensional manifold. Two differentiable critics that agree on a local patch of the manifold must have the same tangential derivatives, while their normal derivatives can differ arbitrarily. Thus, even exact critic values on the data support leave the normal component of the action gradient undetermined. Following such a component can move an action away from the data-supported region, where a high predicted value may reflect critic extrapolation error rather than true improvement [9]. Filtering the direction alone is not sufficient: a finite step along a tangent direction can still leave a curved manifold. Reliable critic guidance therefore requires constraining both the update direction and its destination.

We introduce RetraQ, which approximates both operations using geometry already encoded by a pretrained flow policy. At a chosen flow time, a frozen flow defines a denoising map from a noisy action to an estimate of its clean counterpart. RetraQ uses the Jacobian of this map to filter the critic gradient and applies the map after the ascent step to retract the updated action toward the data-supported manifold (Figure 1). Theoretically, we show that the denoising map approximates a retraction while its Jacobian approximates tangent-space projection, and we bound how errors of a learned velocity field enter both. Unlike denoising-based Riemannian optimization of a known objective (Khaterinko et al., 2026), RetraQ follows a learned critic with unidentified normal gradients and obtains both operators from a flow policy. RetraQ requires no additional geometry model, and the filtering step is implemented with a Jacobian–vector product rather than backpropagation through the full sampling trajectory. The same refinement update applies to test-time guidance, offline and online policy distillation.

Figure 1. RetraQ at a glance. Left: raw critic ascent can move actions away from the behavior manifold Ms\mathcal{M}_s by following normal gradient components. RetraQ uses the Jacobian JRJ_R of a frozen flow’s denoising map RR to filter the gradient and uses RR to correct the updated action, constraining the update direction and destination. Right: for a π0.5\pi_{0.5} policy, a frozen copy of the flow defines RR. The refined action a+a^+ is executed at test time or used as a stop-gradient training target, without backpropagating through the policy’s sampling trajectory.

We evaluate RetraQ in controlled problems, simulation benchmarks, and real-world plug insertion. In a controlled 16-dimensional problem with a known manifold, the learned flow’s Jacobian attenuates normal gradient components, and RetraQ keeps refined actions closest to the manifold among the compared critic-guided updates. In these controlled studies, RetraQ also attains higher true return and more stable distillation targets than raw critic ascent. In offline-to-online training on LIBERO and OGBench, RetraQ attains higher mean final success than the evaluated critic-guidance baselines. On real-world plug insertion, test-time RetraQ raises the success rate of a behavior-cloned π0.5\pi_{0.5} policy [2] from 55.0% to 76.7%, without updating the policy parameters. With online training, success reaches 98.3% within 30 minutes and 100% after one hour.

Our contributions are:

  • Geometric analysis of critic-guidance. We analyze failure modes of critic guidance and establish conditions where flow denoising approximates tangent projection and retraction.

  • Gradient filtering with flow retraction. We introduce RetraQ, which uses a pretrained flow’s Jacobian to filter critic gradients and its denoising map to retract updated actions.

  • Sim and real-robot validation. We validate the geometric mechanism and distillation stability in controlled studies, and demonstrate policy improvement in simulation and on a real-world contact-rich manipulation task.

Section 6 discusses connections to denoising-based manifold optimization and related flow-policy improvement methods, and Appendix A extends the comparison.

Preliminaries

Flow-matching policies. Let ss denote the context, including the observation, robot state, and task instruction, and let a∈RD\mathbf{a} \in\mathbb{R}^{D} be an action chunk that concatenates a sequence of control commands. Let μ(⋅∣s)\mu(\cdot\mid s) denote the behavior action distribution. During training, flow matching samples a∼μ(⋅∣s)\mathbf{a} \sim\mu(\cdot\mid s) and independent noise z∼N(0,ID)\mathbf{z} \sim\mathcal{N}(0, I_D), and forms xt=ta+(1−t)z\mathbf{x}_t = t\mathbf{a} + (1-t)\mathbf{z}, t∈[0,1]t \in[0,1]. The velocity field vθ(s,x,t)v_\theta(s, \mathbf{x}, t) is trained by squared-error regression to a−z\mathbf{a} - \mathbf{z} [15, 17]. The policy generates actions by numerically integrating dx/dt=vθ(s,x,t)\mathrm{d}\mathbf{x}/\mathrm{d}t = v_\theta(s, \mathbf{x}, t) from x(0)=z\mathbf{x}(0) = \mathbf{z} to t=1t = 1. For t<1t < 1, a single velocity evaluation defines the clean-action estimate

Dtθ(s,x):=x+(1−t)vθ(s,x,t).(1)D_t^\theta(s, \mathbf{x}) := \mathbf{x} + (1-t)v_\theta(s, \mathbf{x}, t). \tag*{(1)}

Since xt+(1−t)(a−z)=a\mathbf{x}_t + (1-t)(\mathbf{a} - \mathbf{z}) = \mathbf{a}, under the population-optimal velocity v∗(s,x,t)=E[a−z∣xt=x,s]v^*(s, \mathbf{x}, t) = \mathbb{E}[\mathbf{a} - \mathbf{z} \mid\mathbf{x}_t = \mathbf{x}, s], this map equals the posterior mean, Dt∗(s,x)=E[a∣xt=x,s]D_t^*(s, \mathbf{x}) = \mathbb{E}[\mathbf{a} \mid\mathbf{x}_t = \mathbf{x}, s].

Behavior manifold. For each fixed context ss, we locally model the data-supported action set as a smooth kk-dimensional embedded manifold Ms⊂RD\mathcal{M}_s \subset\mathbb{R}^{D}, with k<Dk < D. When ss is fixed, we write M=Ms\mathcal{M} = \mathcal{M}_s. At a∈M\mathbf{a} \in\mathcal{M}, the tangent space TaMT_{\mathbf{a}}\mathcal{M} describes first-order variations along the manifold, while the normal space NaMN_{\mathbf{a}}\mathcal{M} is its orthogonal complement. Let PT(a)P_T(\mathbf{a}) and PN(a)=ID−PT(a)P_N(\mathbf{a}) = I_D - P_T(\mathbf{a}) denote the corresponding orthogonal projectors. We use the Euclidean metric in the flow’s normalized action coordinates. Let Πs(x)\Pi_s(\mathbf{x}) denote the point on Ms\mathcal{M}_s closest to x\mathbf{x} in Euclidean distance. We use this nearest-point projection locally where the closest point is unique.

Critic-guided refinement. Let Q(s,a)Q(s, \mathbf{a}) be a learned estimate of expected return, differentiable in the action. Holding ss fixed, we write Q(a):=Q(s,a)Q(\mathbf{a}) := Q(s, \mathbf{a}) and g(a):=∇aQ(a)\mathbf{g}(\mathbf{a}) := \nabla_{\mathbf{a}}Q(\mathbf{a}). We study refinements of an action sampled from the pretrained flow policy:

a+=C(a+ηF(a)g(a)),η>0,(2)\mathbf{a}^{+} = C\left(\mathbf{a} + \eta F(\mathbf{a})\mathbf{g}(\mathbf{a})\right), \qquad\eta> 0, \tag*{(2)}

where F(a)∈RD×DF(\mathbf{a}) \in\mathbb{R}^{D \times D} transforms the critic-gradient direction and CC corrects the resulting endpoint. Their dependence on ss is left implicit. Raw critic ascent corresponds to F=IDF = I_D and C=idC = \mathrm{id}. The refined action can be executed directly or used as a regression target for the flow policy.

Appendix A addresses existing critic-guided flow-policy improvement methods. Section 3 motivates tangent filtering and retraction, and Section 4 approximates both operations with the pretrained flow.

Geometric Constraints on Critic Guidance

Fix the context ss, write M=Ms\mathcal{M} = \mathcal{M}_s and Π=Πs\Pi= \Pi_s, and consider an action a∈M\mathbf{a} \in\mathcal{M}. Suppose two continuously differentiable critics agree on a local patch of M\mathcal{M} around a\mathbf{a}. Because their values change identically along every curve within this patch, their tangential gradients at a\mathbf{a} must agree. Their normal gradients, however, are unconstrained by these on-manifold values and can differ arbitrarily (Figure 2a). Thus, even exact critic values on the behavior manifold do not determine the full action gradient. Appendix B formalizes this observation and extends it to data concentrated in a thin neighborhood of the manifold.

Direction: filter the critic gradient. Let g=∇aQ(a)\mathbf{g} = \nabla_{\mathbf{a}}Q(\mathbf{a}) and decompose

g=gT+gN,gT=PT(a)g,gN=PN(a)g.\mathbf{g} = \mathbf{g}_T + \mathbf{g}_N, \qquad\mathbf{g}_T = P_T(\mathbf{a})\mathbf{g}, \qquad\mathbf{g}_N = P_N(\mathbf{a})\mathbf{g}.

The tangential component gT\mathbf{g}_T is determined by how the critic varies along the behavior manifold, whereas gN\mathbf{g}_N depends on how the critic extends away from it. Following gN\mathbf{g}_N can move the action into regions weakly supported by the behavior data, where high predicted value may reflect critic extrapolation error rather than true improvement [9]. We therefore retain only the tangential component, corresponding to F(a)=PT(a)F(a)=P_T(a) in Eq. (2).

Destination: correct the endpoint. Filtering the direction alone is insufficient. Because the tangent space is only a local linear approximation, a finite step a+ηgTa+\eta g_T can leave a curved manifold even when gTg_T is exactly tangent (Figure 2b). For a sufficiently small tangent displacement ξ∈TaM\xi\in T_a\mathcal{M}, nearest-point projection defines the local retraction

Constraints on the update direction and destination

Figure 2. Constraints on the update direction and destination. (a) The critics Q1(u,v)=u+0.75vQ_1(u,v)=u+0.75v and Q2(u,v)=u−0.75vQ_2(u,v)=u-0.75v agree on the behavior manifold M={(u,0):u∈R}\mathcal{M}=\{(u,0):u\in\mathbb{R}\}. Their tangential gradients agree, while their normal components have opposite signs. (b) A finite tangent step from aa leaves the circular manifold. Projecting the endpoint back onto the circle yields a+a^{+} and locally defines a retraction.

Retr⁡a(ξ):=Π(a+ξ),\operatorname{Retr}_a(\xi):=\Pi(a+\xi),

which returns the stepped action to M\mathcal{M} while preserving the tangent displacement to first order [4]. Choosing F(a)=PT(a)F(a)=P_T(a) and C=ΠC=\Pi therefore gives the geometric update

a+=Π(a+ηgT)=Retr⁡a(ηgT).(3)a^{+}=\Pi(a+\eta g_T)=\operatorname{Retr}_a(\eta g_T). \tag*{(3)}

Because gTg_T is determined entirely by the critic values on the local manifold patch, this update is unchanged by arbitrary differences in normal critic derivatives.

Local improvement guarantee. Let QπQ^\pi denote the true action-value function when the refined action chunk is followed by a fixed policy π\pi. If the learned critic QQ agrees with QπQ^\pi on the local manifold patch, then their tangential gradients also agree there. Consequently, under the smoothness conditions of Proposition 2, the ideal update in Eq. (3) strictly increases QπQ^\pi for all sufficiently small positive step sizes whenever gT≠0g_T\ne0. Formal statements and proofs are given in Appendix § 11.

In practice, neither the behavior manifold nor the operators PTP_T and Π\Pi are available explicitly. § 4 shows how the pretrained flow policy provides approximations to both.

RetraQ: Retraction-based Q-guidance

Section 3 motivates two operations for critic guidance: tangent filtering with PTP_T and endpoint correction with Π\Pi. RetraQ approximates both using a frozen behavior-cloned (BC) flow. In Eq. (2), it sets F=JRF=J_R and C=RC=R, where RR is a denoising map of the flow and JRJ_R its Jacobian (Figure 3).

Figure 3. One RetraQ update. ➊ At an action aa, the critic gradient gg may contain components normal to the behavior manifold. ➋ The Jacobian JRJ_R of the frozen flow’s denoising map keeps tangent directions and suppresses normal ones. ➌ After a step along the filtered direction g~\widetilde{g}, the same map moves the action back toward the behavior manifold, giving a+a^+. Repeating the update gives the refined action a⋆a^\star, which is executed or distilled into the actor πθ\pi_\theta as a stop-gradient target.

The Flow's Denoising Map as Filter and Retraction

The denoising map. Let θˉ\bar{\theta} denote the frozen parameters of the pretrained BC flow. Dividing Eq. (2) by tt gives xt/t=a+σtzx_t/t=a+\sigma_t z with σt:=(1−t)/t\sigma_t:=(1-t)/t. Thus, after rescaling, a flow state can be viewed as a clean action corrupted by Gaussian noise. At a fixed guidance level tg∈(0,1]t_g\in(0,1], let σg:=σtg\sigma_g:=\sigma_{t_g}. We interpret an input action aa as the rescaled noisy observation xtg/tgx_{t_g}/t_g and apply the clean-action estimate of Eq. (1), which takes one forward pass:

R(s,a):=Dtgθˉ(s,tga)=tga+(1−tg)vθ(s,tga,tg),JR(s,a):=∂R(s,a)∂a∈RD×D.(4)R(s,a):=D^{\bar{\theta}}_{t_g}(s,t_g a)=t_g a+(1-t_g)v_{\theta}(s,t_g a,t_g),\qquad J_R(s,a):=\frac{\partial R(s,a)}{\partial a}\in\mathbb{R}^{D\times D}. \tag*{(4)}

To see why RR and JRJ_R approximate these two operators, consider the population-optimal velocity, for which the clean-action map is the posterior mean of the clean action (§ 2). Let A∼μ(⋅∣s)A \sim\mu(\cdot\mid s) and Z∼N(0,ID)Z \sim\mathcal{N}(0, I_D) be independent. Then [20]

Ropt(s,a)=E[A∣A+σgZ=a],JRopt(s,a)=σg−2Cov⁡[A∣A+σgZ=a].(5)R^{\mathrm{opt}}(s,a)=\mathbb{E}\left[A\mid A+\sigma_g Z=a\right],\qquad J_R^{\mathrm{opt}}(s,a)=\sigma_g^{-2}\operatorname{Cov}\left[A\mid A+\sigma_g Z=a\right]. \tag*{(5)}

Near the behavior manifold, this posterior concentrates around Πs(a)\Pi_s(a) and varies primarily along tangent directions, suggesting R≈ΠsR \approx\Pi_s and JR≈PTJ_R \approx P_T. Proposition 3 (Appendix § 11.§ 3) makes this precise. For a compact Ms\mathcal{M}_s with smooth positive density and for points inside a tubular neighborhood of radius smaller than its reach,

Ropt(s,a)=Πs(a)+O(σg2)R^{\mathrm{opt}}(s,a)=\Pi_s(a)+O(\sigma_g^2)

and, for a∈Msa\in\mathcal{M}_s,

JRopt(s,a)=PT(a)+O(σg2).(6)J_R^{\mathrm{opt}}(s,a)=P_T(a)+O(\sigma_g^2). \tag*{(6)}

For a learned flow, these approximations incur additional error from the velocity field and its input derivatives (Proposition 4). We use a fixed guidance level tg=0.9t_g=0.9 across all platforms. Appendix C.1 discusses this choice.

The RetraQ Update

Replacing PTP_T by JRJ_R and Πs\Pi_s by RR in the ideal update of Eq. (3) gives RetraQ. For a context ss, an action aa, and a differentiable critic QQ,

g=∇aQ(s,a)critic ascent direction,g~=JR(s,a) gfilter the direction,a+=R(s,a+ηg~)step and retract.(7)\begin{aligned} g &= \nabla_a Q(s,a) && \text{critic ascent direction,}\\ \widetilde{g} &= J_R(s,a)\,g && \text{filter the direction,}\\ a^+ &= R(s,a+\eta\widetilde{g}) && \text{step and retract.} \tag*{(7)} \end{aligned}

The update needs no manifold estimate or backpropagation through the sampling chain: step ➋ is one Jacobian–vector product through RR. Applying Eq. (7) MM times to an initial action a(0)a^{(0)} gives the refined action a⋆=REFINE⁡(s,a(0))a^\star=\operatorname{REFINE}(s,a^{(0)}) (Algorithm 1); all experiments use M=1M=1. The step size η\eta is calibrated once so that the critic-induced displacement of the first step matches a target dtargetd_{\mathrm{target}} (Appendix C.1).

Critics and Policy Improvement

RetraQ needs only the action gradient of a critic. The refined action a⋆a^\star is a constant (sg⁡[⋅]\operatorname{sg}[\cdot]) that is either executed or used as a regression target, in three settings that share REFINE⁡\operatorname{REFINE} (Table 5).

SettingInitial action a(0)a^{(0)}CriticUse of a⋆a^\star
Test-time guidanceπθˉ(⋅∣s)\pi_{\bar{\theta}}(\cdot\mid s) at fork statesfork critic, Eq. (8)executed
Offline distillationcurrent actor at dataset statesfixed during refinementdistilled
Offline-to-onlineexecuted chunks in replay D\mathcal{D}replay critic, snapshot Q^\hat{Q}distilled

Table 5. The three RetraQ settings share the operator REFINE (Algorithm 1) and differ in its inputs and in how its output is used. Critics per platform are listed in Table 3.

Test-time guidance. All parameters stay fixed, and a⋆a^\star is executed. Standard rollouts record one action per state and so say little about how a slightly different action would fare, which is what ∇aQ\nabla_a Q must capture. We therefore collect forked rollouts: at a few task-critical fork states, we replay the same prefix, perturb the chunk that the frozen policy predicts there (the reference chunk acrefa_c^{\mathrm{ref}}

Algorithm 1 Offline-to-online RetraQ. REFINE (lines 1–8) is shared by all settings: test-time guidance runs only REFINE and executes $a^\star$, and offline distillation skips line 12. The full version is Algorithm 2.

Require: frozen BC flow $v_{\bar{\theta}}$; demonstrations $\mathcal{D}_{\mathrm{demo}}$; replay buffer $\mathcal{D}$; guidance level $t_g$; target displacement $d_{\mathrm{target}}$; refinement steps $M$; loss weights $\lambda_{\mathrm{imp}}, \lambda_{\mathrm{BC}}$

1: function REFINE($s, a^{(0)}$; $\hat{Q}, \eta$)
2:   for $\ell = 0, \ldots, M - 1$ do
3:     $g \leftarrow \nabla_a \hat{Q}(s, a^{(\ell)})$ ▷ ➊ critic ascent direction
4:     $\tilde{g} \leftarrow J_R(s, a^{(\ell)})\,g$ ▷ ➋ damp normal part; one JVP
5:     $a^{(\ell+1)} \leftarrow \operatorname{sg}[R(s, a^{(\ell)} + \eta \tilde{g})]$ ▷ ➌ step, then retract
6:   end for
7:   return $a^\star = a^{(M)}$
8: end function

9: $\theta \leftarrow \bar{\theta}$; $\eta \leftarrow$ unset ▷ actor starts at BC; $\bar{\theta}$ stays frozen
10: Warm up the critic on $\mathcal{D}_{\mathrm{demo}}$; actor fixed ▷ no targets from an untrained critic
11: while training budget remains do
12:   Add labeled rollouts of $\pi_\theta$ to $\mathcal{D}$ ▷ new data from current actor
13:   for each update cycle do
14:     Update the critic on $\mathcal{D}$; freeze $\hat{Q} = \min_i Q_{\phi_i}$ ▷ fixed critic for this cycle
15:     for each actor step of the cycle do
16:       Sample $\{(s_j, a_j^{\mathrm{exec}})\}_j$ from $\mathcal{D}$ ▷ executed chunks
17:       if $\eta$ is unset then calibrate $\eta$ on this batch ▷ then held fixed
18:       $a_j^\star \leftarrow \operatorname{REFINE}(s_j, a_j^{\mathrm{exec}}; \hat{Q}, \eta)$; $a_j^{\mathrm{BC}} \sim \pi_{\bar{\theta}}(\cdot \mid s_j)$ ▷ target, anchor
19:       Take a gradient step on $\mathcal{L}_{\mathrm{actor}}(\theta)$ ▷ {xref}`Eq. (9)`
20:     end for
21:   end for
22: end while

fork group c), and let the frozen policy finish the episode. Since branches share the state, outcome differences can be attributed to the action. The fork critic scores the deviation from the reference,

Qϕ(s,a)=sigmoid⁡(Bψ(s)+Aω(a−acref)),Aω(0)=0,(8)Q_\phi(s, a) = \operatorname{sigmoid}(B_\psi(s) + A_\omega(a - a_c^{\mathrm{ref}})), \qquad A_\omega(0) = 0, \tag*{(8)}

so its action gradient comes entirely from AωA_\omega. Guidance is applied at detected fork states; elsewhere the BC policy runs unchanged (Appendix § 12.2.1).

Distillation. In the other two settings, an actor πθ\pi_\theta, initialized at θˉ\bar{\theta}, fits refined actions with the flow-matching loss LFM(θ;s,a):=Et,z∥vθ(s,xt,t)−(a−z)∥22\mathcal{L}_{\mathrm{FM}}(\theta; s, a) := \mathbb{E}_{t,z}\lVert v_\theta(s, x_t, t) - (a - z) \rVert_2^2 and is anchored to the frozen BC policy:

Lactor(θ)=Es[λimpLFM(θ;s,a⋆)+λBCLFM(θ;s,aBC)],aBC∼πθˉ(⋅∣s).(9)\mathcal{L}_{\mathrm{actor}}(\theta) = \mathbb{E}_s \left[\lambda_{\mathrm{imp}}\mathcal{L}_{\mathrm{FM}}(\theta; s, a^\star) + \lambda_{\mathrm{BC}}\mathcal{L}_{\mathrm{FM}}(\theta; s, a^{\mathrm{BC}})\right], \qquad a^{\mathrm{BC}} \sim\pi_{\bar{\theta}}(\cdot\mid s). \tag*{(9)}

Offline distillation refines the current actor’s actions on a fixed dataset. Offline-to-online learning (Algorithm 1) interleaves collecting rollouts into a replay buffer D\mathcal{D} with critic and actor updates. Its twin TD critics (IQL [12] on the robot) are regressed only at executed chunks, so their values are supported by data while their normal gradients are not, exactly the situation of § 3; refinement therefore starts from executed chunks.

Experiments

We evaluate RetraQ at three levels. Controlled problems with a known manifold test the mechanism directly: whether the flow’s Jacobian filters normal directions, whether updates exploit the critic, and where the learned geometry begins to fail (Section 5.2). Simulation benchmarks with component ablations test whether the two constraints improve policies, and which one carries the gain (§ 5.3). A real-robot task tests the same update for test-time guidance, offline distillation, and offline-to-online learning (§ 5.4).

Experimental Setup

We use controlled problems with a known manifold; three simulation benchmarks, LIBERO (Liu et al., [16]) (ten Goal and ten Object tasks, and the six Spatial tasks with the lowest BC success, since the remaining Spatial tasks leave little room for improvement), RoboMimic Can (Mandlekar et al., [19]), and OGBench cube-single (Park et al., [22]); and a real-robot insertion task with a π0.5\pi_{0.5} policy (Black et al., [2]). Baselines are our implementations of AWR (Peng et al., 2019), FlowDPG (Shi et al., 2026), Q-VGM (Wang et al., 2026), QAM (Li & Levine, [14]), and, on the robot, QGF (Zhou et al., 2026). Component ablations isolate the two constraints: raw ascent a+ηga+\eta g, filter-only a+ηJRga+\eta J_Rg, Raw+R R(a+ηg)R(a+\eta g), and RetraQ R(a+ηJRg)R(a+\eta J_Rg); a self-distillation control refits the actor to its own actions. On LIBERO, we report the final checkpoint, averaged over three actor seeds and 30 episodes per task and seed. Appendix § 13 gives the full protocols.

Does the Flow Provide the Geometry, and Does It Prevent Exploitation?

A known manifold lets us measure what success rates cannot: whether JRJ_R filters normal directions, whether the critic is exploited, and whether refined actions stay on the manifold (Figure 4). The flow’s Jacobian acts as a tangent filter, with the trade-off predicted by the theory. For D≤32D \le32, the median normal gain stays below 0.1 at all but the highest guidance level, so JRJ_R removes over 90% of the normal component while keeping tangent directions (tangent error below 0.09). Raising tgt_g lowers the tangent error but raises the normal gain toward 1, that is, JR→IDJ_R \to I_D, as Proposition 4 predicts. The effect is strong at D=128D = 128, and at D=512D = 512 filtering is largely lost under the fixed training budget (normal gain 0.84–0.97), where the flow also fits worst. The retraction closes the gap between predicted and true improvement. The critic predicts an improvement for every update. Raw ascent, however, turns a predicted objective of 1.50 into a true objective of −16.8-16.8; filtering narrows this gap, but filter-only still turns 0.68 into −0.58-0.58. For both retracted updates, predicted and true objectives differ by at most 0.07 (Figure 4c). RetraQ attains the highest true objective and stays closest to the manifold. Its refined actions are 2.6× closer to the manifold than those of Raw+RR and 36× closer than those of raw ascent (Figure 4d), so with the retraction held fixed, the filter further reduces the distance to the manifold.

Figure 4. Controlled problems with a known manifold. (a, b) Median normal gain (0: ideal filter; 1: no filtering) and tangent error of the learned JRJ_R versus the guidance level, for flat manifolds of increasing dimension at a fixed flow-training budget. (c) D=16D = 16 problem: objective predicted by the critic (light) and true objective (solid) after refinement. (d) True objective versus the 95th-percentile distance to the manifold. Symmetric-log scales in (c, d); details in Appendix § 13.§ 2.

Policy Improvement in Simulation

On LIBERO, actors start from BC and train online with a frozen geometry reference (Table 1). RetraQ improves BC on every suite and attains the highest mean success, 11–15 points above BC and 5.5–7.8 points above the strongest baseline on each suite (Q-VGM on Spatial and Goal, QAM on Object), with three seeds per arm. The retraction carries most of the gain, and filtering adds to it. Without the retraction, filter-only trails RetraQ by 8.6–14.6 points; adding the retraction to raw ascent (Raw+RR) recovers 5.6–16.1 points, and filtering adds another 1.9–4.3 points on every suite, consistent in sign but within the variation across three seeds. Self-distillation falls below BC, so refitting the actor alone does not explain the improvement; Appendix § 13.§ 7 argues that behavior regularization does not explain it either.

MethodSpatial (6 tasks)Goal (10 tasks)Object (10 tasks)
BC63.369.055.3
AWR64.8 ± 0.671.9 ± 3.358.4 ± 0.7
FlowDPG60.4 ± 3.668.1 ± 3.249.3 ± 8.0
Q-VGM70.6 ± 0.673.6 ± 0.459.9 ± 2.0
QAM61.5 ± 2.773.1 ± 0.760.9 ± 0.7
Self-distillation35.7 ± 12.959.6 ± 11.942.2 ± 5.3
Raw ascent59.3 ± 7.367.9 ± 5.856.6 ± 6.4
Filter-only63.5 ± 10.170.9 ± 5.657.8 ± 6.0
Raw+RR75.4 ± 1.779.4 ± 1.462.1 ± 6.7
RetraQ78.1 ± 4.281.3 ± 3.766.4 ± 5.2

Table 1. Final online success (%) on LIBERO, mean ± standard deviation over three actor seeds; actors train online from BC, and baselines are our implementations. Best in bold.

What the filter changes differs across tasks. On OGBench cube-single, the filtered gradient stays almost parallel to the raw one (median cosine 0.99 throughout training) at 0.42–0.48 of its norm. Since the step is calibrated to a fixed displacement, the filter then mainly rescales the step, and RetraQ and Raw+RR both approach the ceiling (98.8% and 99.0%). On RoboMimic Can, the filter also rotates the gradient (cosine 0.67–0.71), and RetraQ reaches the highest held-out success, 70.3%, against 53.0% for BC, 69.0% for Q-VGM, and 67.0% for Raw+RR (paired 95% interval for RetraQ minus Raw+RR: [−2.0, 8.7] points). An exploratory Can study that varies the critic’s training set, with rounds selected on the evaluation episodes, suggests that RetraQ benefits more from a stronger critic (Appendix § 13.§ 5).

Real-Robot Guidance and Online Improvement

We evaluate phone-charging plug insertion on an AgiBot G02 dual-arm robot with a behavior-cloned π0.5\pi_{0.5} policy that succeeds in 55% of trials; every evaluation uses 60 trials (Appendix § 13.8).

Test-time guidance. Without any parameter update, RetraQ raises success to 76.7% and 73.3% with two fork critics, linear and nonlinear in the action deviation, each trained on 270 forked rollouts. All guidance methods take steps of the same median size, so they differ only in direction and destination; the best baseline, FlowDPG, reaches 63.3% and 66.7%, and Q-VGM falls to 0% with the linear critic (Figure 5b). With 60 trials per arm, RetraQ’s gain over BC is significant with Critic 1 (Fisher’s exact test, p=0.02p = 0.02; p=0.06p = 0.06 with Critic 2), whereas its margin over FlowDPG is not (p≥0.16p \ge0.16). Appendix § 13.8 analyzes Q-VGM’s failure.

Figure 5. Real-robot plug insertion. (a) A successful rollout of the online RetraQ policy. (b) Without online interaction: offline distillation, and test-time guidance of the frozen BC policy with two fork critics (n/a: not applicable). (c) Offline-to-online learning from a shared BC policy and critic warm-up; means over three training runs. Numbers in Appendix § 13.8.

Offline distillation. Distilling a fixed set of refined targets under one shared, large displacement budget separates the methods further. Q-VGM targets drive success to 0%, with the policy repeatedly hitting the table, and FlowDPG targets to 28.3%, with frequent misaligned insertions, whereas the RetraQ-distilled policy reaches 60.0%, on par with BC (p=0.71p = 0.71).

Offline-to-online learning. All methods start from the same BC policy and warmed-up IQL critic, and then train their own critics under the same interaction budget; results are means over three training runs per method, each checkpoint evaluated with 60 trials per run. RetraQ reaches the highest success at every checkpoint (Figure 5c): 98.3% after 30 minutes and 100% after one hour, against at most 95.0% and 93.3% for the baselines.

Related Work

Critic-guided improvement of generative policies. A learned critic can improve a diffusion or flow policy through its values alone [12] (Peng et al. 2019; Zhang et al. 2025), by backpropagating ∇aQ\nabla_a Q through the generation process [22, 14] (Wang et al. 2023), or by applying ∇aQ\nabla_a Q locally at one action without differentiating through sampling (Yang et al., 2023; Shi et al., 2026; Wang et al., 2026; Zhou et al., 2026). The local methods, closest to RetraQ, follow the gradient unfiltered and correct the endpoint at most by clipping or best-iterate selection, that is, F=IDF = I_D and C≈idC \approx\mathrm{id} in Eq. (2). RetraQ instead uses the frozen flow’s denoising map as both operators, F=JRF = J_R and C=RC = R, and so acts on exactly the normal gradient component that the data leave undetermined (§ 3). Offline RL counters the same extrapolation by constraining the policy or its values [9, 13]; RetraQ constrains each update geometrically, with the behavior model already at hand.

Riemannian optimization through denoising. The ideal update of Eq. (3) is Riemannian gradient ascent with the projection retraction [1, 4], and a denoiser’s Jacobian is a scaled posterior covariance [6, 20]. Landing with the Score [11] combines the two into denoising Riemannian gradient descent (DRGD) for a known objective and a pretrained diffusion denoiser. RetraQ shares this filter–step–denoise structure but differs in each ingredient: it follows a learned critic, for which filtering is motivated by the non-identifiability of normal gradients (§ 3); it obtains RR and JRJ_R from one velocity evaluation of a context-conditioned flow policy by rescaling flow states into Gaussian-corrupted actions (§ 4.1); it bounds how errors of a learned velocity and its input derivatives enter both operators (Proposition 4); and it uses refined actions as distillation and online-learning targets. Manifold-preserving diffusion guidance [10] and latent-noise steering (Wagenmaker et al., 2025) are compared in Appendix § 10.

Conclusion

Accurate critic values on behavior data leave gradients normal to the behavior manifold undetermined. RetraQ uses the pretrained flow to constrain both the direction and the destination of critic-guided updates: the Jacobian of its denoising map filters the critic gradient, and the map itself brings the updated action back toward the manifold, approximating tangent projection and retraction. In our experiments, RetraQ outperforms the evaluated baselines across tested LIBERO suites. On real plug insertion, it improves a π0.5\pi_{0.5} policy at test time and reaches near-perfect success within an hour of online training. These results show that a pretrained generative policy provides not only an expressive action distribution, but also local geometry for reliable policy improvement.

Limitations and future work. Repeated offline distillation without new interaction is a limitation: on LIBERO, RetraQ degrades over three refinement rounds more than AWR or FlowDPG (Appendix § 13.§ 4), so its stability advantage holds against raw ascent but not in general. Separating errors in the refined targets from errors in fitting them could help stabilize offline improvement. The Jacobian–vector product through the frozen flow also adds GPU memory. Our geometric guarantees are local and asymptotic, and the learned filter weakens in high-dimensional action spaces; constraining velocity derivatives during training or adapting the guidance level may help. Refinement also remains tied to the support of the frozen reference flow; combining RetraQ with exploration or carefully updating the reference could broaden the behaviors it can learn.

AI Use Statement

In this work, we used generative AI tools (large language model assistants) to assist in creating the plotting code for the figures, formatting and checking references. We have not used generative AI tools to generate data sets, to collect or label real-robot data, or to translate text. We take responsibility for the final content of this work.

Reproducibility Statement

Appendix B states the assumptions of every theoretical result and gives complete proofs. Appendix C specifies the operator, step-size calibration, critics, and all three settings, including the full offline-to-online algorithm (Algorithm 2) and the hyperparameters on each platform (Table 6). Appendix D gives, for each benchmark, the task subsets, seeds, evaluation episodes, checkpoint selection, and all recorded arms, as well as the real-robot platform, policy, and trial protocol. Anonymized code for the algorithms will be released.

Extended Related Work

This appendix extends Section 6. We relate RetraQ to prior work through the template of Eq. (2), a+=C(a+ηF(a)g(a))a^{+} = \mathcal{C}(a + \eta F(a)g(a)) with g=∇aQg = \nabla_a Q: Appendix A.1 covers critic-guided improvement of diffusion and flow policies, and Appendix A.2 covers the Riemannian-optimization view of the direction transform FF and the endpoint correction CC.

Critic-Guided Improvement of Flow Policies

Other uses of the critic. Value-based methods use the critic only through its values, for example by advantage-weighted regression [12] (Peng et al. 2019) or by weighting the flow-matching loss with exp⁡(βQ)\exp(\beta Q) (Zhang et al., 2025); they never differentiate QQ with respect to the action. Pathwise methods backpropagate ∇aQ\nabla_a Q through the policy’s generation process, either through the full sampling chain (Wang et al., 2023), a distilled one-step actor [22], or an adjoint of the behavior field [14]. Our experiments include AWR from the first group and QAM from the second. Latent-steering methods such as DSRL (Wagenmaker et al., 2025) leave the policy weights fixed and instead run RL over the input noise of the generative policy; they change which samples the policy produces rather than refining a given action with the critic gradient, and are complementary to RetraQ.

Local critic-gradient guidance. The methods closest to RetraQ apply g=∇aQ\mathbf{g} = \nabla_a Q at a single action without differentiating through the sampling process (Table 2). DIPO fits the policy to raw-ascent targets a+ηga + \eta\mathbf{g} (Yang et al., 2023). FlowDPG and Q-VGM evaluate g\mathbf{g} at the one-step clean-action estimate Dt(s,xt)D_t(s, x_t) of Eq. (1) and regress the velocity toward the ascended action, with a step scaled to the velocity norm (Shi et al., 2026) or with several ascent steps that are clipped to the action range and keep the highest-valued iterate (Wang et al., 2026). QGF adds the gradient at DtD_t to the velocity during test-time sampling, replacing the transposed Jacobian required by the chain rule with the identity, which it reports to outperform the full Jacobian (Zhou et al., 2026). In all of these, FF is the identity up to a scalar or clipping, and CC is at most coordinate clipping or a value-based acceptance rule; DtD_t only locates where the critic is evaluated. RetraQ instead uses the frozen flow’s map as the operators themselves, F=JRF = J_R and C=RC = R, which approximate tangent filtering and retraction onto the behavior manifold (§ 4.1). § 5 compares our implementations of FlowDPG, Q-VGM, and, on the robot, QGF; because the methods also differ in regularization and data collection, these comparisons evaluate complete procedures rather than the operators alone.

Methodg\mathbf{g} evaluated atDirection FFEndpoint CC
DIPOreplay actionIDI_Did
FlowDPGDt(s,xt)D_t(s, x_t)IDI_D, step scaled to velocity normid
Q-VGMDt(s,xt)D_t(s, x_t)IDI_D, gradient clippedaction-range clip, best-QQ iterate
QGF†^\daggerDt(s,xt)D_t(s, x_t)IDI_D in place of JTJ^\mathsf{T}id
Raw ascentclean action aaIDI_Did
Raw+RRclean action aaIDI_DRR
RetraQclean action aaJR(a)J_R(a)RR

Table 2. Local critic-gradient methods in the template of Eq. (2), a+=C(a+ηFg)a^+ = C(a + \eta F\mathbf{g}), as described in the cited papers. Dt(s,xt)D_t(s, x_t) is the one-step clean-action estimate of Eq. (1) at the flow state xtx_t; id denotes no endpoint correction. The last three rows are the operator variants of § 5.1.

Riemannian Optimization through Denoising

Retraction and denoising. Eq. (3) is one step of Riemannian gradient ascent with the metric-projection retraction [1, 4]. On the manifold, the Jacobian of Π\Pi is PTP_T [4 Sec. 5.12], so a single map R≈ΠR \approx\Pi can supply both C=RC = R and F=JRF = J_R. The flow’s denoising map is such a map. By Tweedie’s formula and its second-order form [6, 20], it is a posterior mean whose Jacobian is the scaled posterior covariance (Eq. (5)); near a data manifold, these approach Π\Pi and its Jacobian [11], as stated in Eq. (6).

Manifold-preserving guidance. Training-free guidance of diffusion models also uses the manifold hypothesis: MPGD [10] applies the guidance gradient to the clean-sample estimate and keeps the guided sample on the data manifold, for example with a pretrained autoencoder. These methods steer the generation of a sample toward a known guidance objective. RetraQ instead refines a completed action with a learned critic, motivates filtering by the non-identifiability of the critic’s normal gradients, obtains both operators from the frozen policy itself without an auxiliary model, and uses the refined actions as policy-improvement targets.

Denoising Riemannian gradient descent. The closest predecessor of RetraQ’s update is Landing with the Score ([11]), whose Denoising Riemannian Gradient Descent (DRGD) minimizes a known objective ff over a data manifold by xk+1=v(xk−γkv′(xk)∇f(xk))x_{k+1} = \mathbf{v}(x_k - \gamma_k \mathbf{v}'(x_k)\nabla f(x_k)), with v\mathbf{v} a pretrained diffusion denoiser. RetraQ’s update in Eq. (7) shares this filter–step–denoise structure, and we view DRGD as its closest algorithmic predecessor. The two methods, however, address different problems, and RetraQ changes how each ingredient is obtained and justified. First, DRGD minimizes a known objective ff, whose full gradient is meaningful everywhere, and uses the denoiser for feasibility. RetraQ follows a learned critic whose values are constrained only on behavior data; § 3 shows that its normal gradient is then not identified, which gives filtering a statistical rather than purely geometric role, and the local guarantee (Proposition 2) is stated for the true value QπQ^\pi under on-manifold agreement only. Second, RetraQ obtains both operators from a flow-matching policy rather than a score or diffusion denoiser. Rescaling the interpolant as xt/t=a+σtzx_t/t = a + \sigma_t z turns an action into a Gaussian-corrupted observation at level σt\sigma_t, so one velocity evaluation of the context-conditioned flow gives RR and one JVP gives JRJ_R (see Eq. (4)), with no separate score network, noise-schedule conversion, or per-context geometry model. Third, DRGD’s guarantees assume a uniformly accurate denoiser and Jacobian. For a learned flow, Proposition 4 bounds how errors of the velocity field and of its input derivatives enter RR and JRJ_R, and Section 5.2 measures how the guidance level and action dimension trade tangent accuracy against normal suppression. Fourth, RetraQ embeds the update in policy improvement: refined actions are stop-gradient targets for anchored distillation and offline-to-online learning with a frozen geometry reference, the step is calibrated to a target displacement, and fork critics supply action-gradient supervision on the robot.

Theoretical Results

This appendix collects the results behind § 3 and § 4.1. Section B.1 shows what critic values on the behavior manifold determine; Section B.2 shows that the ideal geometric update improves the true action value; and Section B.3, the main result of this appendix, shows that the denoising map of a flow approximates the two ideal operators. Standard facts from Riemannian optimization are cited rather than re-derived ([4]).

Setting. Fix a context ss and an action aa on a smooth embedded manifold M=Ms⊂RD\mathcal{M} = \mathcal{M}_s \subset\mathbb{R}^D. We omit ss from the critics. All statements are local to aa and use the Euclidean metric in the normalized action coordinates of the flow. Let PT(a)P_T(a) and PN(a)P_N(a) be the tangent and normal orthogonal projectors. Choose a sufficiently small neighborhood UU of aa where the nearest-point projection Π=Πs\Pi= \Pi_s is single-valued and smooth. Then DΠ(a)=PT(a)\mathrm{D}\Pi(a) = P_T(a) ([4]). Here D\mathrm{D} denotes the derivative of a map. Figure 2 illustrates the two geometric issues discussed below.

What Critic Values on the Manifold Determine

Proposition 1 (Tangential agreement and normal-gradient freedom). Let Q1Q_1 be continuously differentiable on UU.

(i) If a continuously differentiable critic Q2Q_2 agrees with Q1Q_1 on M∩U\mathcal{M} \cap U, then

PT(a)∇Q1(a)=PT(a)∇Q2(a).(10)P_T(a)\nabla Q_1(a) = P_T(a)\nabla Q_2(a). \tag*{(10)}

(ii) For every n∈NaM\mathbf{n} \in N_a\mathcal{M}, there exists a continuously differentiable Q2Q_2 on UU that agrees with Q1Q_1 on M∩U\mathcal{M} \cap U and satisfies

∇Q2(a)=∇Q1(a)+n.(11)\nabla Q_2(a) = \nabla Q_1(a) + \mathbf{n}. \tag*{(11)}

Moreover, it can be chosen so that, for every x∈U\mathbf{x} \in U,

∣Q2(x)−Q1(x)∣≤∥n∥2dist⁡(x,M).(12)\lvert Q_2(\mathbf{x}) - Q_1(\mathbf{x})\rvert\le\lVert\mathbf{n}\rVert_2 \operatorname{dist}(\mathbf{x},\mathcal{M}). \tag*{(12)}

Proof. For part (i), take any ξ∈TaM\boldsymbol{\xi} \in T_a\mathcal{M}. There is a smooth curve cc on M\mathcal{M} with c(0)=ac(0) = a and c′(0)=ξc'(0) = \boldsymbol{\xi}. For a sufficiently short segment, this curve lies in UU, where $Q_2(c(t)) - Q_1(c(t)) = 0. Differentiating at t=0t = 0 gives

ξT(∇Q2(a)−∇Q1(a))=0.\xi^{\mathsf{T}}\left(\nabla Q_2(\mathbf{a})-\nabla Q_1(\mathbf{a})\right)=0.

The gradient difference is orthogonal to every tangent vector, proving Eq. (10).

For part (ii), define

hn(x):=nT(x−Π(x)),Q2(x):=Q1(x)+hn(x).h_{\mathbf{n}}(\mathbf{x}) := \mathbf{n}^{\mathsf{T}}\left(\mathbf{x}-\Pi(\mathbf{x})\right), \qquad Q_2(\mathbf{x}) := Q_1(\mathbf{x}) + h_{\mathbf{n}}(\mathbf{x}).

On M∩U\mathcal{M} \cap U, Π(x)=x\Pi(\mathbf{x}) = \mathbf{x}, so hn=0h_{\mathbf{n}} = 0. At a\mathbf{a},

∇hn(a)=(ID−DΠ(a))Tn=(ID−PT(a))n=n.\nabla h_{\mathbf{n}}(\mathbf{a}) = \left(I_D-D\Pi(\mathbf{a})\right)^{\mathsf{T}}\mathbf{n} = \left(I_D-P_T(\mathbf{a})\right)\mathbf{n} = \mathbf{n}.

Finally, the Cauchy–Schwarz inequality and the nearest-point property give

∣hn(x)∣≤∥n∥2∥x−Π(x)∥2=∥n∥2dist⁡(x,M).\left|h_{\mathbf{n}}(\mathbf{x})\right| \leq\|\mathbf{n}\|_2\|\mathbf{x}-\Pi(\mathbf{x})\|_2 = \|\mathbf{n}\|_2\operatorname{dist}(\mathbf{x},\mathcal{M}).

These identities establish both the gradient change and the value bound.

The proposition assumes exact agreement throughout a local manifold patch. It identifies the tangential derivative of that shared restriction, without asserting that the shared values equal the true action value. Agreement on finitely many samples, or a small value-fitting error, does not by itself guarantee accurate tangential derivatives.

Data in a thin neighborhood. Let Sδ⊂US_\delta\subset U be a set of data actions satisfying dist⁡(x,M)≤δ\operatorname{dist}(\mathbf{x},\mathcal{M}) \leq\delta for every x∈Sδ\mathbf{x} \in S_\delta, where δ>0\delta> 0. Let ϵ>0\epsilon> 0 be an allowed discrepancy between the values predicted by two critics on these actions. For any n∈NaM\mathbf{n} \in N_{\mathbf{a}}\mathcal{M} with ∥n∥2≤ϵ/δ\|\mathbf{n}\|_2 \leq\epsilon/\delta, the construction in Proposition 1(ii) gives

sup⁡x∈Sδ∣Q2(x)−Q1(x)∣≤δ∥n∥2≤ϵ,∇Q2(a)−∇Q1(a)=n.(13)\sup_{\mathbf{x}\in S_\delta}\left|Q_2(\mathbf{x})-Q_1(\mathbf{x})\right| \leq\delta\|\mathbf{n}\|_2 \leq\epsilon,\qquad\nabla Q_2(\mathbf{a})-\nabla Q_1(\mathbf{a})=\mathbf{n}. \tag*{(13)}

Thus, a normal-gradient change of size ϵ/δ\epsilon/\delta is compatible with a value discrepancy of at most ϵ\epsilon on all these data. For a fixed value tolerance, this construction permits larger gradient changes as the data become more concentrated around the manifold.

Here ϵ\epsilon measures the difference between two critics, rather than either critic’s error against a target. If Q1Q_1 fits target values y(x)y(\mathbf{x}) with uniform error at most ϵ0\epsilon_0 on SδS_\delta, the triangle inequality gives

sup⁡x∈Sδ∣Q2(x)−y(x)∣≤ϵ0+ϵ.\sup_{\mathbf{x}\in S_\delta}\left|Q_2(\mathbf{x})-y(\mathbf{x})\right| \leq\epsilon_0+\epsilon.

In particular, if Q1Q_1 fits these targets exactly, Q2Q_2 fits them to accuracy ϵ\epsilon while allowing the stated normal-gradient change.

This is a constructive ambiguity result. It does not upper-bound all possible normal-gradient errors by ϵ/δ\epsilon/\delta; such a bound would require additional assumptions controlling derivatives.

Local Improvement by the Geometric Update

Two standard facts connect the update of Eq. (3) to Riemannian optimization under the induced Euclidean metric [4]. First, gT=PT(a)∇Q(a)\mathbf{g}_T=P_T(\mathbf{a})\nabla Q(\mathbf{a}) is the Riemannian gradient of the restriction Q∣MQ|_{\mathcal{M}}, so the normalized filtered gradient is the unit tangent direction of steepest initial increase of QQ along M\mathcal{M}. Second, Retr⁡a(ξ):=Π(a+ξ)\operatorname{Retr}_{\mathbf{a}}(\xi):=\Pi(\mathbf{a}+\xi) is a local retraction: Retr⁡a(0)=a\operatorname{Retr}_{\mathbf{a}}(0)=\mathbf{a} and DRetr⁡a(0)[ξ]=ξD\operatorname{Retr}_{\mathbf{a}}(0)[\xi]=\xi for tangent ξ\xi, because DΠ(a)=PT(a)D\Pi(\mathbf{a})=P_T(\mathbf{a}). The following statement specifies when critic ascent along this retraction also improves the true action value.

Proposition 2 (Local action-value improvement). Let π\pi be a fixed continuation policy, and let QπQ^\pi denote its true action-value function at the fixed context. Suppose QQ and QπQ^\pi are continuously differentiable near a∈M\mathbf{a}\in\mathcal{M} and agree on a local manifold patch containing a\mathbf{a}. For gT=PT(a)∇Q(a)\mathbf{g}_T=P_T(\mathbf{a})\nabla Q(\mathbf{a}) and any local retraction at a\mathbf{a},

ddηQπ(Retr⁡a(ηgT))∣η=0=∥gT∥22.(14)\left.\frac{\mathrm{d}}{\mathrm{d}\eta}Q^\pi\left(\operatorname{Retr}_{\mathbf{a}}(\eta\mathbf{g}_T)\right)\right|_{\eta=0} =\|\mathbf{g}_T\|_2^2. \tag*{(14)}

If gT≠0\mathbf{g}_T\ne0, then Qπ(Retr⁡a(ηgT))>Qπ(a)Q^\pi\left(\operatorname{Retr}_{\mathbf{a}}(\eta\mathbf{g}_T)\right)>Q^\pi(\mathbf{a}) for all sufficiently small η>0\eta>0.

Proof. Proposition 1(i) gives PT(a)∇Qπ(a)=gTP_T(\mathbf{a})\nabla Q^\pi(\mathbf{a}) = \mathbf{g}_T. By the chain rule and the retraction property,

ddηQπ(Retr⁡a(ηgT))∣η=0=∇Qπ(a)⊤gT=∥gT∥22.\left.\frac{\mathrm{d}}{\mathrm{d}\eta}Q^\pi\bigl(\operatorname{Retr}_{\mathbf{a}}(\eta\mathbf{g}_T)\bigr)\right|_{\eta=0}=\nabla Q^\pi(\mathbf{a})^\top\mathbf{g}_T=\|\mathbf{g}_T\|_2^2.

A positive derivative at zero implies the stated strict increase for all sufficiently small positive step sizes.

Proposition 2 assumes exact critic values on a manifold patch and exact geometric operators, and concerns one context under a fixed continuation policy. A learned filter can leave a residual normal component, so the stepped action need not lie in the domain of a retraction; its endpoint can still be corrected by Π\Pi as long as it stays in a tube where Π\Pi is single-valued. Section B.3 shows how the learned denoising map approximates both operators on such a tube.

Flow-Based Approximation of the Geometric Operators

This section states and proves the two results that § 4.1 uses to connect the denoising map RR of Eq. (4) to the ideal operators PTP_T and Πs\Pi_s of § 3. Proposition 3 concerns the map RoptR^{\mathrm{opt}} defined by the population-optimal velocity; Proposition 4 quantifies the additional error of a learned velocity. As above, the context is fixed and omitted, and μ=μ(⋅∣s)\mu=\mu(\cdot\mid s). Norms of matrices are operator norms.

Assumptions.

(A1) M⊂RD\mathcal{M}\subset\mathbb{R}^{D} is a compact kk-dimensional embedded C4C^4 submanifold without boundary, with positive reach τM\tau_{\mathcal{M}} ([7]).

(A2) μ\mu is supported on M\mathcal{M} and has a density p∈C2(M)p\in C^2(\mathcal{M}) with respect to the kk-dimensional volume measure of M\mathcal{M}, and p>0p>0 on M\mathcal{M}.

Fix 0<r<τM0<r<\tau_{\mathcal{M}} and the closed tube Ur:={a:dist⁡(a,M)≤r}U_r:=\{\mathbf{a}:\operatorname{dist}(\mathbf{a},\mathcal{M})\le r\}. On UrU_r, the nearest-point projection Π\Pi is single-valued and C3C^3 ([7]), and its derivative at a=Π(a)+dν\mathbf{a}=\Pi(\mathbf{a})+d\nu, with d=dist⁡(a,M)d=\operatorname{dist}(\mathbf{a},\mathcal{M}) and ν\nu a unit normal vector at Π(a)\Pi(\mathbf{a}), is

DΠ(a)=(IT−dSν)−1PT(Π(a)),(15)D\Pi(\mathbf{a})=(I_T-dS_\nu)^{-1}P_T(\Pi(\mathbf{a})), \tag*{(15)}

where ITI_T is the identity on the tangent space at Π(a)\Pi(\mathbf{a}) and SνS_\nu is the shape operator in direction ν\nu, the self-adjoint map on that space defined by ⟨Sνξ,ζ⟩=⟨II(ξ,ζ),ν⟩\langle S_\nu\xi,\zeta\rangle=\langle\mathrm{II}(\xi,\zeta),\nu\rangle, with II\mathrm{II} the normal-valued second fundamental form; IT−dSνI_T-dS_\nu is invertible because d<τMd<\tau_{\mathcal{M}}. On M\mathcal{M}, d=0d=0 and DΠ=PTD\Pi=P_T ([4]).

The ideal map is a Gaussian posterior mean. As in § 4.1, write σ=σg=(1−tg)/tg\sigma=\sigma_g=(1-t_g)/t_g, and let A∼μ\mathbf{A}\sim\mu and Z∼N(0,ID)\mathbf{Z}\sim\mathcal{N}(0,I_D) be independent. Then Ropt(a)=E[A∣A+σZ=a]R^{\mathrm{opt}}(\mathbf{a})=\mathbb{E}[\mathbf{A}\mid\mathbf{A}+\sigma\mathbf{Z}=\mathbf{a}], and differentiating this Gaussian posterior mean in a\mathbf{a} gives JRopt(a)=σ−2Cov⁡[A∣A+σZ=a]J_R^{\mathrm{opt}}(\mathbf{a})=\sigma^{-2}\operatorname{Cov}[\mathbf{A}\mid\mathbf{A}+\sigma\mathbf{Z}=\mathbf{a}] (second-order Tweedie identity ([6, 20])). The posterior of A\mathbf{A} given the observation a\mathbf{a} is the probability measure on M\mathcal{M}

ρa(dm)∝p(m)exp⁡(−∥a−m∥222σ2)vol⁡M(dm),(16)\rho_{\mathbf{a}}(\mathrm{d}\mathbf{m})\propto p(\mathbf{m})\exp\left(-\frac{\|\mathbf{a}-\mathbf{m}\|_2^2}{2\sigma^2}\right)\operatorname{vol}_{\mathcal{M}}(\mathrm{d}\mathbf{m}), \tag*{(16)}

so Ropt(a)R^{\mathrm{opt}}(\mathbf{a}) and σ2JRopt(a)\sigma^2J_R^{\mathrm{opt}}(\mathbf{a}) are the mean and covariance of ρa\rho_{\mathbf{a}}.

Proposition 3 (Local geometry of the ideal denoising map). Under (A1)–(A2), there exist σ0>0\sigma_0>0 and C<∞C<\infty, depending on M\mathcal{M}, pp, and rr, such that for all σ∈(0,σ0]\sigma\in(0,\sigma_0] and all a∈Ur\mathbf{a}\in U_r,

∥Ropt(a)−Π(a)∥2≤Cσ2,∥JRopt(a)−DΠ(a)∥≤Cσ2.(17)\left\|R^{\mathrm{opt}}(\mathbf{a})-\Pi(\mathbf{a})\right\|_2\le C\sigma^2,\qquad\left\|J_R^{\mathrm{opt}}(\mathbf{a})-D\Pi(\mathbf{a})\right\|\le C\sigma^2. \tag*{(17)}

In particular, Ropt(a)=PT(a)+O(σ2)R^{\mathrm{opt}}(\mathbf{a})=P_T(\mathbf{a})+O(\sigma^2) for a∈M\mathbf{a}\in\mathcal{M}, which is Eq. (6).

Proof. Fix a∈Ur\mathbf{a}\in U_r, let m0=Π(a)\mathbf{m}_0=\Pi(\mathbf{a}), and write a=m0+dν\mathbf{a}=\mathbf{m}_0+d\nu as above.

Step 1: localization. Let ϕ(m):=12∥a−m∥22−12d2≥0\phi(\mathbf{m}):=\frac{1}{2}\|\mathbf{a}-\mathbf{m}\|_2^2-\frac{1}{2}d^2\ge0 on M\mathcal{M}. Because m0\mathbf{m}_0 is the unique minimizer of ϕ\phi and UrU_r and M\mathcal{M} are compact, for every ε≥0\varepsilon\ge0 there is δ(ε)>0\delta(\varepsilon)>0, independent of a∈Ura \in U_r, such that ϕ(m)≥δ(ϵ)\phi(\mathbf{m}) \ge\delta(\epsilon) whenever ∥m−m0∥2≥ϵ\lVert\mathbf{m} - \mathbf{m}_0\rVert_2 \ge\epsilon. The mass that ρa\rho_a assigns to this region is therefore at most cσ−ke−δ(ϵ)/σ2c\sigma^{-k}e^{-\delta(\epsilon)/\sigma^2}, since the normalizing constant of Eq. (16) is at least of order σke−d2/(2σ2)\sigma^k e^{-d^2/(2\sigma^2)}. The same bound, multiplied by diam⁡(M)2\operatorname{diam}(\mathcal{M})^2, controls the contribution of this region to the mean and covariance. These terms are o(σm)o(\sigma^m) for every mm and can be neglected.

Step 2: chart. By compactness of M\mathcal{M}, ϵ\epsilon can be chosen, independently of m0\mathbf{m}_0, so that M∩{∥m−m0∥2<ϵ}\mathcal{M} \cap\{\lVert\mathbf{m} - \mathbf{m}_0\rVert_2 < \epsilon\} is a graph over the tangent space at m0\mathbf{m}_0. We parametrize M\mathcal{M} near m0\mathbf{m}_0 as m(u)=m0+Eu+12II(u,u)+O(∥u∥3)\mathbf{m}(\mathbf{u}) = \mathbf{m}_0 + E\mathbf{u} + \frac{1}{2}\mathrm{II}(\mathbf{u},\mathbf{u}) + O(\lVert\mathbf{u}\rVert^3), where E∈RD×kE \in\mathbb{R}^{D\times k} is an orthonormal basis of the tangent space at m0\mathbf{m}_0, and u∈Rk\mathbf{u} \in\mathbb{R}^k. Then

ϕ(m(u))=12uTHu+ϕ3(u)+O(∥u∥4),H=Ik−dETSνE,\phi(\mathbf{m}(\mathbf{u})) = \frac{1}{2}\mathbf{u}^{\mathsf{T}}H\mathbf{u} + \phi_3(\mathbf{u}) + O(\lVert\mathbf{u}\rVert^4), \qquad H = I_k - dE^{\mathsf{T}}S_\nu E,

with ϕ3\phi_3 a cubic form; there is no linear term because a−m0\mathbf{a} - \mathbf{m}_0 is normal. HH is positive definite, uniformly over UrU_r, because d≤r<τMd \le r < \tau_{\mathcal{M}}. The density of u\mathbf{u} is proportional to q(u)exp⁡(−ϕ(m(u))/σ2)q(\mathbf{u})\exp(-\phi(\mathbf{m}(\mathbf{u}))/\sigma^2), where q(u)=p(m(u))det⁡g(u)q(\mathbf{u}) = p(\mathbf{m}(\mathbf{u}))\sqrt{\det g(\mathbf{u})} is C2C^2 and positive, with gg the metric in the chart.

Step 3: Laplace expansion. Substitute u=σw\mathbf{u} = \sigma\mathbf{w}. The density of w\mathbf{w} is proportional to exp⁡(−12wTHw)(1+σℓ(w)+O(σ2(1+∥w∥6)))\exp(-\frac{1}{2}\mathbf{w}^{\mathsf{T}}H\mathbf{w})(1+\sigma\ell(\mathbf{w})+O(\sigma^2(1+\lVert\mathbf{w}\rVert^6))), where ℓ(w)=∇log⁡q(0)Tw−ϕ3(w)\ell(\mathbf{w}) = \nabla\log q(0)^{\mathsf{T}}\mathbf{w} - \phi_3(\mathbf{w}) is an odd polynomial. Every term of order σ\sigma in the moments of w\mathbf{w} is a Gaussian moment of odd total degree and vanishes. Hence E[w]=O(σ)\mathbb{E}[\mathbf{w}] = O(\sigma), E[wwT]=H−1+O(σ2)\mathbb{E}[\mathbf{w}\mathbf{w}^{\mathsf{T}}] = H^{-1} + O(\sigma^2), and E[w⊗w⊗w]=O(σ)\mathbb{E}[\mathbf{w}\otimes\mathbf{w}\otimes\mathbf{w}] = O(\sigma), uniformly over UrU_r because the constants depend continuously on a\mathbf{a} through HH, ϕ3\phi_3, and qq on a compact set.

Step 4: mean and covariance. Returning to u=σw\mathbf{u} = \sigma\mathbf{w}, E[u]=O(σ2)\mathbb{E}[\mathbf{u}] = O(\sigma^2) and E[∥u∥2]=O(σ2)\mathbb{E}[\lVert\mathbf{u}\rVert^2] = O(\sigma^2), so

Ropt(a)=m0+EE[u]+12E[II(u,u)]+O(σ3)=Π(a)+O(σ2).R^{\mathrm{opt}}(\mathbf{a}) = \mathbf{m}_0 + E\mathbb{E}[\mathbf{u}] + \frac{1}{2}\mathbb{E}[\mathrm{II}(\mathbf{u},\mathbf{u})] + O(\sigma^3) = \Pi(\mathbf{a}) + O(\sigma^2).

For the covariance, Cov⁡[m]=ECov⁡[u]ET+O(σ4)\operatorname{Cov}[\mathbf{m}] = E\operatorname{Cov}[\mathbf{u}]E^{\mathsf{T}} + O(\sigma^4): the cross terms between EuE\mathbf{u} and 12II(u,u)\frac{1}{2}\mathrm{II}(\mathbf{u},\mathbf{u}) involve third moments of u\mathbf{u}, which are σ3⋅O(σ)\sigma^3 \cdot O(\sigma), and the remaining terms are of fourth order in u\mathbf{u}. Since Cov⁡[u]=σ2(H−1+O(σ2))\operatorname{Cov}[\mathbf{u}] = \sigma^2(H^{-1} + O(\sigma^2)),

JRopt(a)=σ−2Cov⁡[m]=EH−1ET+O(σ2).J_R^{\mathrm{opt}}(\mathbf{a}) = \sigma^{-2}\operatorname{Cov}[\mathbf{m}] = EH^{-1}E^{\mathsf{T}} + O(\sigma^2).

Finally, EH−1ET=(IT−dSν)−1PT(m0)=DΠ(a)EH^{-1}E^{\mathsf{T}} = (I_T - dS_\nu)^{-1}P_T(\mathbf{m}_0) = D\Pi(\mathbf{a}) by Eq. (15). Both bounds are uniform over UrU_r by Steps 1 and 3.

What the proposition does and does not provide. Proposition 3 is an asymptotic statement as σ→0\sigma\to0 for a behavior distribution supported exactly on a manifold with positive reach. Its constant CC grows with the curvature of M\mathcal{M}, the variation of log⁡p\log p, and the proximity of rr to the reach; it gives no numerical error at the operating point σg≈0.11\sigma_g \approx0.11. The result does not apply when two parts of the support lie within a distance comparable to σ\sigma, for example nearby action modes, because the reach is then small. The manifold is also assumed to have no boundary; near the boundary of a manifold patch, the posterior is truncated on one side, and its mean is shifted inward by O(σ)O(\sigma) rather than O(σ2)O(\sigma^2). Off the manifold, the Jacobian approximates DΠD\Pi, which rescales tangent directions by (IT−dSν)−1(I_T-dS_\nu)^{-1} and annihilates normal ones; it equals PTP_T only on M\mathcal{M}.

Proposition 4 (Error of the learned denoising map). Let vθv_\theta be any velocity field that is differentiable in xx, let v∗v^* be the population-optimal velocity of Section 2, and write e(x):=vˉθ(s,x,tg)−v∗(s,x,tg)e(\mathbf{x}) := \bar v_\theta(\mathbf{s},\mathbf{x},t_g) - v^*(\mathbf{s},\mathbf{x},t_g). For every action a\mathbf{a},

R(a)−Ropt(a)=(1−tg)e(tga),(18)R(\mathbf{a}) - R^{\mathrm{opt}}(\mathbf{a}) = (1-t_g)e(t_g\mathbf{a}), \tag*{(18)}
JR(a)−JRopt(a)=tg(1−tg)∂xe(tga).(19)J_R(\mathbf{a}) - J_R^{\mathrm{opt}}(\mathbf{a}) = t_g(1-t_g)\partial_{\mathbf{x}}e(t_g\mathbf{a}). \tag*{(19)}

Consequently, under the assumptions of Proposition 3, for a∈Ur\mathbf{a} \in U_r and σg≤σ0\sigma_g \le\sigma_0,

∥R(a)−Π(a)∥2≤Cσg2+(1−tg)∥e(tga)∥2,∥JR(a)−DΠ(a)∥≤Cσg2+tg(1−tg)∥∂xe(tga)∥.(20)\lVert R(\mathbf{a})-\Pi(\mathbf{a})\rVert_2 \le C\sigma_g^2 +(1-t_g)\lVert e(t_g\mathbf{a})\rVert_2,\qquad\lVert J_R(\mathbf{a})-D\Pi(\mathbf{a})\rVert\le C\sigma_g^2+t_g(1-t_g)\lVert\partial_{\mathbf{x}}e(t_g\mathbf{a})\rVert. \tag*{(20)}

Moreover, if ∥∂xvθ(s,x,tg)∥≤L\lVert\partial_{\mathbf{x}}v_\theta(\mathbf{s},\mathbf{x},t_g)\rVert\le L for all x\mathbf{x}, then ∥JR(a)−tgID∥≤tg(1−tg)L\lVert J_R(\mathbf{a})-t_gI_D\rVert\le t_g(1-t_g)L for every a\mathbf{a}.

Proof. By Eq. (4), R(a)=tga+(1−tg)vˉθ(s,tga,tg)R(\mathbf{a}) = t_g\mathbf{a} + (1-t_g)\bar v_\theta(\mathbf{s},t_g\mathbf{a},t_g), and RoptR^{\mathrm{opt}} is the same expression with v∗v^*. Subtracting gives Eq. (18). Differentiating in a\mathbf{a}, with the factor tgt_g from the input scaling (Eq. (21)), gives Eq. (19). The bounds of Eq. (20) follow from the triangle inequality and Proposition 3. For the last statement, JR(a)−tgID=tg(1−tg)∂xvθ(s,tga,tg)J_R(\mathbf{a})-t_gI_D=t_g(1-t_g)\partial_{\mathbf{x}}v_\theta(\mathbf{s},t_g\mathbf{a},t_g).

Consequences for the guidance level. Eq. (19) shows that the filter inherits the error in the input derivative of the velocity, not only the error in its value. Flow-matching regression controls the value error in mean square under the noisy marginal, but not its derivative, so a small regression loss does not by itself make JRJ_R an accurate tangent filter. The normal gain measured in Section 5.2 is a direct diagnostic of the combined error of Eq. (20) on normal inputs. The last statement of Proposition 4 formalizes the limit tg→1t_g \to1 discussed in § 4.1: for any velocity with input derivatives bounded by LL, JR→IDJ_R \to I_D, the unfiltered direction of raw critic ascent, even though JRopt→PTJ_R^{\mathrm{opt}} \to P_T on M\mathcal{M} by Proposition 3. The two propositions thus bound the two sides of the trade-off in the choice of tgt_g (Appendix § 12.§ 1): the Cσg2C\sigma_g^2 term favors large tgt_g, whereas a bounded learned derivative forces JRJ_R toward tgIDt_g I_D as tg→1t_g \to1.

Implementation Details of RetraQ

This appendix gives the details that § 4 omits: how the operator is computed and calibrated (C.1), the critics (C.2), how the three settings use refined actions, including the full offline-to-online algorithm (C.3), and the hyperparameters (Table 6).

ToyLIBERORoboMimicOGBenchReal robot
Guidance level tgt_g (σg\sigma_g)0.9 (0.11)0.9\ (0.11)0.9 (0.11)0.9\ (0.11)‡
Target displacement dtargetd_{\mathrm{target}}0.050.05†0.250.250.100.100.050.050.0250.025
Refinement steps MM11
Displacement cap0.50.50.250.25
Executed frames per chunk–5588113030
Flow integration steps100100323264641281281010
Offline outer iterations3030555555–
Critic steps before improvement–8,0008{,}00012,00012{,}000 / iter.10610^6see§
Critic steps per online block–1,5001{,}500–5,0005{,}00022 / 2020 trans.
Actor batch size–256256256256512512128128
Loss weights λimp\lambda_{\mathrm{imp}} / λBC\lambda_{\mathrm{BC}}–11 / 1111 / 1111 / 00 (offline)11 / 11

Table 6. RetraQ hyperparameters. Values shared by all methods on a platform (policy backbone, evaluation protocol) are in Appendix D; critics are listed in Table 3.

Conventions. Flow time follows § 2, with t=1t = 1 at the data. The π0.5\pi_{0.5} code base uses the reversed time t′=1−tt' = 1 - t, so its configuration value tg′=0.1t'_g = 0.1 is the same operating point as tg=0.9t_g = 0.9 here (σg≈0.11\sigma_g \approx0.11). Real robot refers to phone-charging plug insertion on an AgiBot G02 dual-arm robot with three cameras (head and both wrists; § 5.4). Displacements are Euclidean norms of whole action chunks in the flow’s normalized action coordinates.

The Operator in Practice

Cost. We never form the D×DD \times D matrix JRJ_R. One Jacobian–vector product through RR at a\mathbf{a} with tangent g\mathbf{g}, computed by forward-mode automatic differentiation, returns both R(s,a)R(\mathbf{s},\mathbf{a}) and g~=JRg\widetilde{\mathbf{g}} = J_R\mathbf{g} at a small constant multiple of the cost of one forward pass. An update therefore costs one critic gradient, one JVP, and one further forward pass of RR at a+ηg~\mathbf{a} + \eta\widetilde{\mathbf{g}}. We use M=1M = 1 refinement step on all platforms.

Guidance level. For 0<t<10 < t < 1 write Rt(s,a):=D‾tθ(s,ta)=ta+(1−t)vθˉ(s,ta,t)R_t(\mathbf{s},\mathbf{a}) := \overline{D}^{\theta}_t(\mathbf{s},t\mathbf{a}) = t\mathbf{a} + (1 - t)v_{\bar{\theta}}(\mathbf{s},t\mathbf{a},t), so that R=RtgR = R_{t_g} in Eq. (4). Its action-input Jacobian is

Jt(s,a):=∂aRt(s,a)=tID+t(1−t)∂xvθˉ(s,ta,t).(21)J_t(\mathbf{s},\mathbf{a}) := \partial_{\mathbf{a}}R_t(\mathbf{s},\mathbf{a}) = tI_D + t(1-t)\partial_{\mathbf{x}}v_{\bar{\theta}}(\mathbf{s},t\mathbf{a},t). \tag*{(21)}

The factor tt in the second term comes from the input scaling; the JVP includes it. The level tgt_g trades two errors (Propositions 3 and 4): a large tgt_g makes the O(σg2)O(\sigma_g^2) terms small but drives a learned JRJ_R toward tgIDt_gI_D, and a small tgt_g lets the posterior average across curvature and nearby action modes, which blurs both RR and JRJ_R. We use tg=0.9t_g = 0.9 on all platforms. This point was fixed from operator diagnostics on OGBench and inherited by the other platforms; it was not tuned on task success, and we ran no tgt_g sweep on the robot.

Step-size calibration. The scale of g~\widetilde{\mathbf{g}} varies with the critic and the local geometry, so we fix the displacement rather than η\eta. On a calibration batch {(sj,aj(0))}j=1B\{(\mathbf{s}_j,\mathbf{a}_j^{(0)})\}_{j=1}^{B}, with first-step filtered gradients g~j=JR(sj,aj(0))∇aQ^(sj,aj(0))\widetilde{\mathbf{g}}_j = J_R(\mathbf{s}_j,\mathbf{a}_j^{(0)})\nabla_{\mathbf{a}}\widehat{Q}(\mathbf{s}_j,\mathbf{a}_j^{(0)}), we solve

stat⁡η 1B∑j=1B∥R(sj,aj(0)+ηg~j)−R(sj,aj(0))∥2=dtarget(22)\underset{\eta}{\operatorname{stat}}\ \frac{1}{B}\sum_{j=1}^{B}\left\|R(\mathbf{s}_j,\mathbf{a}_j^{(0)}+\eta\widetilde{\mathbf{g}}_j)-R(\mathbf{s}_j,\mathbf{a}_j^{(0)})\right\|_2 = d_{\mathrm{target}} \tag*{(22)}

for η\eta by a log-scale grid search followed by bisection. The statistic is the batch mean in offline-to-online learning and the median in offline distillation and robot test-time guidance. η\eta is calibrated once and then held fixed: on the first actor batch in offline-to-online learning, on a held-out split of 2048 states in offline distillation, and on a bank of fork-state samples for robot test-time guidance (η=0.01\eta= 0.01). A calibration that does not converge is flagged, never clipped, and excluded from displacement-matched comparisons.

Subtracting R(sj,aj(0))R(\mathbf{s}_j,\mathbf{a}_j^{(0)}) removes the map’s own offset R(s,a)−aR(\mathbf{s},\mathbf{a}) - \mathbf{a}, which is present even when g~=0\widetilde{\mathbf{g}} = 0, so dtargetd_{\mathrm{target}} measures only critic-induced movement. The offset is not small: on 135 robot fork states, ∥R(a)−a∥2\lVert R(\mathbf{a})-\mathbf{a}\rVert_2 has median 1.62, about 65 times the deployed dtarget=0.025d_{\mathrm{target}}=0.025. Multiplying Q^\hat{Q} by β>0\beta>0 multiplies every g~j\tilde{g}_j by β\beta and the calibrated η\eta by 1/β1/\beta, so the calibrated step ηg~\eta\tilde{g} does not depend on the critic’s scale. The controlled toy problem instead calibrates the total displacement ∥R(s,a+ηg~)−a∥2\lVert R(\mathbf{s},\mathbf{a}+\eta\tilde{g})-\mathbf{a}\rVert_2.

Padded actions. For padded action representations (on the robot, 16 executable coordinates padded to 32, and 30 executed frames padded to the 50-frame horizon), the fixed orthogonal projector PactP_{\mathrm{act}} retains executable coordinates and zeroes padded ones. The effective critic is Q^(s,a):=Q^(s,Pacta)\hat{Q}(\mathbf{s},\mathbf{a}):=\hat{Q}(\mathbf{s},P_{\mathrm{act}}\mathbf{a}), and step ➊ of Eq. (7) uses its gradient. All other operations and norms use model action coordinates.

Guards. Numerical checks stop the run if a non-finite value appears in the critic value, its gradient, the JVP output, the proposal, the refined action, or R(a)R(\mathbf{a}), or if η\eta leaves [10−6,102][10^{-6},10^{2}]; values are never patched, since a patched target would train the actor toward an arbitrary action without a trace. A displacement check discards an update if the critic-induced displacement exceeds a cap (0.5 by default, 0.25 on the robot) rather than rescaling it, because rescaling would still train on a displacement at which neither the retraction nor the critic’s local linearization is trusted. The cap matters because matching a batch statistic does not bound each action: on 240 robot fork frames, ∥∇aQ∥\lVert\nabla_{\mathbf{a}}Q\rVert has median 0.0155 and maximum 2.03, and 2.5% of the calibrated steps exceed the robot cap.

Critics

RetraQ uses only the action gradient of a critic. Table 3 lists the critic used in each setting.

Platform and settingCriticTraining data and targets
Real robot, TTGfork critic: Critic 1 (linear), Critic 2 (nonlinear)270 forked rollouts; binary success
Real robot, offline distill.fork critic (Critic 1)same
Real robot, offline-to-onlineIQL, twin-QQ and VV, Eq. (27)online replay; terminal success
LIBERO, offlinechunk critic, MCforked BC rollouts; discounted success
LIBERO, onlineFQL-style twin-QQ TD, warm-started from MCmixed replay; discounted success
RoboMimic Can, offlinechunk critic, MCforked BC rollouts; discounted success
OGBench, offline and onlineFQL-style twin-QQ TDoffline data, then mixed replay; benchmark reward
Toyanalytic Q^\hat{Q} (no learned critic)—

Table 3. Critics used by RetraQ. TTG: test-time guidance; MC: Monte Carlo; TD: temporal difference. FQL-style twin-QQ TD evaluates the bootstrap target at an action of the current actor.

Fork Critic for Test-Time Guidance

Collection. A fork group is collected as in Figure 6a. Seeded replay reproduces the same prefix and reaches the fork state ss. In each branch, the first action chunk after ss is replaced, the frozen policy πθˉ\pi_{\bar{\theta}} finishes the episode, and the branch is labeled by its task outcome yy. The reference chunk aref\mathbf{a}^{\mathrm{ref}} is the chunk that the frozen policy predicts at the fork state. Because branches share the state and differ only in the replaced chunk, outcome differences within a group can be attributed to the action.

Figure 6. Forked rollouts provide local action comparisons. (a) Seeded replay from reset reproduces the same prefix KK times and reaches the fork state s. In each branch, one action chunk is swapped for a perturbed chunk, the frozen policy πθˉ\pi_{\bar{\theta}} finishes the episode, and the branch is labeled by its Monte Carlo task outcome yy. (b) Ranked pairs (arrows) are formed only within a fork group and place a successful branch (filled) above a failed one (hollow). Branches from different fork states s and s′' are never paired, because their outcome difference would mix the effect of the state with that of the action.

Robot fork states and branches. The robot fork states are taken at two task-critical moments: the right arm has grasped the plug and is about to move it down toward the socket, and the plug is very close to the socket. Each collection run resets the robot to a fixed joint configuration at one of these moments. Runs are assigned to fork states by clustering their frame-0 joint proprioception; five collection runs yield four fork states. Scene variables that proprioception does not capture, such as the pose of the phone and cable, are not matched, so branches are not exact counterfactuals. A robot fork group contains three kinds of branches (Table 4). Injected-noise branches add a zero-mean Gaussian offset, constant over the chunk, to the coordinates J={7,8,9}\mathcal{J} = \{7, 8, 9\}, joints 1–3 of the right arm that performs the insertion, with standard deviation σb=0.3\sigma_b = 0.3 times the per-coordinate action standard deviation. Policy-resample branches execute a new sample of the frozen policy, and human-teleoperated branches an operator-provided first chunk. The first chunk has Hexec=30H_{\mathrm{exec}} = 30 frames (1 s at 30 Hz). Of 300 collected rollouts, 270 are usable (n=103,105,30,32n = 103, 105, 30, 32 over the four fork states; overall success 34.1%): we exclude rollouts with an operator intervention at any frame, whose later actions are not generated by the policy, and two whose first chunk is incomplete (24 and 27 frames).

Branch typennSuccessDeviation, medianDeviation, maxTier weight
Injected noise1350.3480.1070.3201.0
Human teleoperation320.4690.0350.0840.5
Policy resample1030.2910.0240.0940.25

Table 4. Robot fork corpus by branch type. Deviation is the Euclidean norm of the first-chunk deviation from the reference chunk on the perturbed joints J\mathcal{J}, in radians. The tier weight enters the critic loss, Eq. (26).

Simulation forks. In simulation, forks are taken along replayed BC trajectories: every 12 environment steps on LIBERO, and at steps 48, 96, and 144 on RoboMimic Can. LIBERO branches perturb the chunk with independent Gaussian noise, and RoboMimic branches with temporally correlated AR(1) noise (coefficient 0.7, rescaled to unit standard deviation). Simulation labels are discounted Monte Carlo success γT\gamma^T, with TT the number of steps to success; robot labels are binary terminal success judged by the operator.

Action input and heads. Let Δ=a−acref\Delta= \mathbf{a} - \mathbf{a}^{\mathrm{ref}}_c be the deviation in Eq. (8), Δh\Delta_h its hh-th control step, and PJP_{\mathcal{J}} the selector of the perturbed coordinates. The action term reads the deviation through its mean over the executed chunk,

u=PˉΔ:=1Hexec∑h=1HexecPJΔh∈R3,Aω(Δ)=fω(PˉΔ),fω(0)=0,(23)\mathbf{u} = \bar{P}\Delta:= \frac{1}{H_{\mathrm{exec}}}\sum_{h=1}^{H_{\mathrm{exec}}} P_{\mathcal{J}}\Delta_h \in\mathbb{R}^3,\qquad A_{\omega}(\Delta) = f_{\omega}(\bar{P}\Delta),\qquad f_{\omega}(0)=0, \tag*{(23)}

which matches how the injected perturbation is applied. Because Pˉ\bar{P} is fixed and linear, ∇aQϕ=κPˉT∇ufω(u)\nabla_a Q_{\phi} = \kappa\bar{P}^{\mathsf{T}}\nabla_{\mathbf{u}} f_{\omega}(\mathbf{u}) is zero on unperturbed and padded coordinates and beyond the executed chunk. The baseline is linear in the 16-dimensional joint proprioception, Bψ(s)=ψT[p(s);1]B_{\psi}(s) = \psi^{\mathsf{T}}[p(s);1], and carries almost no outcome information: alone, its held-out AUROC on the four fork states is 0.511, 0.527, 0.578, and 0.410, whereas the action term reaches 0.727, 0.685, 0.814, and 0.508. The robot uses two action heads. Critic 1 is linear, fω(u)=wTuf_{\omega}(\mathbf{u})=\mathbf{w}^{\mathsf{T}}\mathbf{u}:

Qϕ(s,a)=sigmoid⁡(Bψ(s)+wTPˉ(a−ac(s)ref)),ϕ=(ψ,w).(24)Q_{\phi}(\mathbf{s},\mathbf{a})=\operatorname{sigmoid}\left(B_{\psi}(\mathbf{s})+\mathbf{w}^{\mathsf{T}}\bar{P}(\mathbf{a}-\mathbf{a}_{c(\mathbf{s})}^{\mathrm{ref}})\right),\qquad\phi=(\psi,\mathbf{w}). \tag*{(24)}

Critic 2 is nonlinear in the deviation, fω(u)=MLP⁡ω(u)−MLP⁡ω(0)f_{\omega}(\mathbf{u})=\operatorname{MLP}_{\omega}(\mathbf{u})-\operatorname{MLP}_{\omega}(\mathbf{0}), and is trained on the same data. Fork states whose action standard deviation on J\mathcal{J} is below 0.25σb=0.0750.25\sigma_b=0.075 do not train the action head; this excludes state 3 (0.052).

Loss. The fork critic is trained with

L(ϕ)=Lout(ϕ)+λrankLrank(ω),λrank≥0.(25)\mathcal{L}(\phi)=\mathcal{L}_{\mathrm{out}}(\phi)+\lambda_{\mathrm{rank}}\mathcal{L}_{\mathrm{rank}}(\omega),\qquad\lambda_{\mathrm{rank}}\ge0. \tag*{(25)}

The outcome loss fits the predictions to the labels. The ranking loss compares branches of the same fork group and asks the one with the better outcome to receive the higher action score; since both branches share s\mathbf{s}, the baseline cancels and Lrank\mathcal{L}_{\mathrm{rank}} depends on ω\omega alone. Pairs across fork groups are excluded (Figure 6b), because their outcome difference would also reflect the state. With logits νi=Bψ(si)+fω(ui)\nu_i=B_{\psi}(\mathbf{s}_i)+f_{\omega}(\mathbf{u}_i), tier weights αi\alpha_i (Table 4), and ranked pairs P={(i,j):ci=cj, yi>yj+ϵ}\mathcal{P}=\{(i,j):c_i=c_j,\ y_i>y_j+\epsilon\} with ϵ=0.02\epsilon=0.02, which drops pairs with nearly equal labels,

L(ϕ)=λout∑iαiBCE⁡(νi,yi)∑iαi+λrank∑(i,j)∈Pαijlog⁡(1+e−(νi−νj))∑(i,j)∈Pαij+λwEi[∥∇ufω(ui)∥22],(26)\mathcal{L}(\phi)=\lambda_{\mathrm{out}}\frac{\sum_i\alpha_i\operatorname{BCE}(\nu_i,y_i)}{\sum_i\alpha_i}+\lambda_{\mathrm{rank}}\frac{\sum_{(i,j)\in\mathcal{P}}\alpha_{ij}\log(1+e^{-(\nu_i-\nu_j)})}{\sum_{(i,j)\in\mathcal{P}}\alpha_{ij}}+\lambda_w\mathbb{E}_i\left[\left\lVert\nabla_{\mathbf{u}}f_{\omega}(\mathbf{u}_i)\right\rVert_2^2\right], \tag*{(26)}

where αij=min⁡(αi,αj)\alpha_{ij}=\min(\alpha_i,\alpha_j), λout=0.1\lambda_{\mathrm{out}}=0.1, λrank=1\lambda_{\mathrm{rank}}=1, and λw=10−2\lambda_w=10^{-2}. For the linear head, the last term is ∥w∥22\lVert\mathbf{w}\rVert_2^2. We train with learning rate 3×10−33\times10^{-3} for 2000 steps.

What the ablation shows. With four fork states and 270 rollouts, only a low-dimensional action direction can be resolved (Figure 7). Every richer action input or head raises in-sample AUROC but lowers the AUROC on held-out fork states: the linear head on the three-dimensional chunk mean reaches 0.741 in leave-one-state-out evaluation over states 0–2, whereas per-frame, all-coordinate, and state-dependent variants fall to 0.534–0.617, and the nonlinear head of Critic 2 reaches 0.694 despite the highest in-sample AUROC (0.884). This is why Critic 1 is the default. Critic 2 failed a gate fixed in advance (held-out AUROC above 0.667 when state 3 is also held out; it reaches 0.649), but it is evaluated as a second test-time critic (§ 5.4) because, unlike Critic 1, its gradient varies with the action. Objective and data choices barely change transfer; in particular, removing the ranking term leaves the held-out AUROC at 0.745, so the fork critic’s transfer does not depend on it. Across three training seeds, the cosine similarity of the linear head’s ∇aQ\nabla_{\mathbf{a}}Q exceeds 0.9999.

Figure 7. Fit versus transfer of fork-critic variants. In-sample AUROC versus leave-one-state-out AUROC over fork states 0–2. Wider action inputs and richer heads move right (better fit) and down (worse transfer); objective and data choices leave the used linear head’s transfer nearly unchanged. “MLP in uu” is Critic 2. Dotted line: y=xy=x.

What a linear head implies for RetraQ. With Eq. (24), the action gradient is κPˉTw\kappa\bar{P}^{\mathsf{T}}\mathbf{w}. Its direction is the same at every action of a fork group, and QϕQ_{\phi} increases monotonically along it with no interior maximum. The critic therefore says which way to move but not how far: the step length comes from the displacement calibration of Eq. (22), not from a critic maximum. The data support this direction only within the perturbation range, while a linear head extrapolates beyond it. The deployed step stays well inside that range: a median step changes each coordinate by at most dtarget=0.025d_{\mathrm{target}}=0.025, whereas the injected perturbations have standard deviation σb=0.3\sigma_b=0.3 on each perturbed coordinate.

Replay Critics for Offline-to-Online Learning

Online rollouts are not forked, so no two samples share a state and the ranking term is unavailable. A replay transition stores a context s\mathbf{s}, the executed part of a chunk (k≤Hk\le H frames, padded to the horizon HH with a frame mask m\mathbf{m}; Appendix § 12.§ 3), the per-frame rewards r0,…,rk−1r_0,\ldots,r_{k-1}, the next context s′\mathbf{s}', and a terminal flag dd. On the robot, we train twin critics Qϕ1,Qϕ2Q_{\phi_1},Q_{\phi_2} and a state value VψV_{\psi} with implicit Q-learning (Kostrikov et al., [12]), with target critics Qˉϕi\bar{Q}_{\phi_i}:

LV(ψ)=E[L2(qˉ−Vψ(s))],qˉ=sg⁡[min⁡iQˉϕi(s,a,m)],\mathcal{L}_{V}(\psi)=\mathbb{E}\left[L_2^{}(\bar{q}-V_{\psi}(\mathbf{s}))\right],\qquad\bar{q}=\operatorname{sg}\left[\min_i\bar{Q}_{\phi_i}(\mathbf{s},\mathbf{a},\mathbf{m})\right],
LQ(ϕ1,ϕ2)=E[∑i=12(Qϕi(s,a,m)−y)2],y=sg⁡[∑h=0k−1γhrh+γk(1−d)Vψ(s′)],(27)\mathcal{L}_{Q}(\phi_1,\phi_2)=\mathbb{E}\left[\sum_{i=1}^{2}(Q_{\phi_i}(\mathbf{s},\mathbf{a},\mathbf{m})-y)^2\right],\qquad y=\operatorname{sg}\left[\sum_{h=0}^{k-1}\gamma^h r_h+\gamma^k(1-d)V_{\psi}(\mathbf{s}')\right], \tag*{(27)}

where L2τ(x)=∣τ−1(x<0)∣x2L_2^\tau(x) = \lvert\tau- \mathbb{1}(x < 0) \rvert x^2 is the expectile loss. We use τ=0.7\tau= 0.7, γ=0.99\gamma= 0.99 per executed frame, and Polyak averaging ϕˉi←(1−ρ)ϕˉi+ρϕi\bar{\phi}_i \leftarrow(1-\rho)\bar{\phi}_i + \rho\phi_i with ρ=0.005\rho= 0.005 after every update. The reward is sparse: r=1r = 1 at the terminal frame of a success judged by the operator and 0 otherwise. The networks read frozen vision–language features of the BC model (masked mean pooling, concatenated with the normalized robot state; 2080 dimensions). QQ additionally takes the 30×1630 \times16 executed actions and the 30-dimensional frame mask (2590 inputs in total); QQ and VV are MLPs with two hidden layers of width 256, LayerNorm, and tanh, with no output activation, and share no trainable parameters. Each is trained with Adam, learning rate 3×10−43 \times10^{-4}, and gradient-norm clipping at 1.0, in FP32. RetraQ reads the frozen snapshot Q^=min⁡iQϕi\hat{Q} = \min_i Q_{\phi_i}. IQL evaluates the critics only at executed actions, so their values are supported by data while their normal gradients are unconstrained, which is the case step ➋ handles.

In simulation, LIBERO and OGBench use FQL-style twin-QQ TD critics, whose bootstrap target evaluates the next action of the current actor. The LIBERO online critic is warm-started from the offline Monte Carlo chunk critic (8000 training steps); the OGBench critic is first trained for 10610^6 offline steps, frozen during offline RetraQ, and then trained online. Both mix offline and online data equally in critic batches.

The Three Settings

Table 5 summarizes how the settings of § 4.3 use the shared operator REFINE.

Test-time guidance on the robot. With all parameters fixed, RetraQ refines a sample of the BC policy before execution, only at detected fork states. The detector computes the Euclidean distance from the 16-dimensional joint proprioception to the four stored fork-state centroids and selects the nearest one if the distance is below 0.15 (within-state spread at most 0.007 rad; centroids at least 0.38 apart). Guidance is restricted to states 0–2, since state 3 lies below the action-standard-deviation floor and its held-out AUROC is 0.446. Otherwise, and if the critic logit saturates (∣ν∣>15\lvert\nu\rvert> 15) or a guard fails, the BC chunk is executed unchanged. Critic 1 and Critic 2 use the same detector, operator, and step size.

Offline distillation. Offline distillation runs outer iterations on a fixed dataset without collection; the critic is not updated while targets are refined. In each iteration, the current actor samples an action at each dataset state (detached), REFINE improves it, and the actor is distilled toward the refined actions. Each iteration fits a new set of targets, so the actor’s Adam optimizer is re-initialized at its start. We run 30 iterations on the toy and 5 on LIBERO, RoboMimic, and OGBench, and report intermediate iterations where stated (LIBERO k≤3k \le3, RoboMimic k=2k = 2). On OGBench, offline RetraQ uses no anchor term (λBC=0\lambda_{\mathrm{BC}} = 0). On the robot, the offline-distillation arm instead fine-tunes π0.5\pi_{0.5} continuously on refined targets from the Critic 1 fork critic, with the deployed guidance level tg=0.9t_g = 0.9 (tg′=0.1t'_g = 0.1 in the π0.5\pi_{0.5} convention) and a total-displacement target of 2.10 instead of the test-time dtarget=0.025d_{\mathrm{target}} = 0.025.

Offline-to-online learning. Refinement starts from replayed actions. A replayed transition contains the executed part of a chunk, aexec\mathbf{a}^{\mathrm{exec}}, with k≤Hk \le H frames. We convert it to the normalized action coordinates of the BC flow (on the robot, absolute to delta actions, then normalization), zero-pad it to the horizon, a(0)=Pad⁡H(aexec,0)\mathbf{a}^{(0)} = \operatorname{Pad}_{H}(\mathbf{a}^{\mathrm{exec}}, 0), and mark the executed frames with mh=1[h≤k]m_h = \mathbb{1}[h \le k]. The critic takes the mask as input, and the improvement loss is restricted to the executed frames,

LFM(θ;s,a,m):=Et,z∥m⊙(vθ(s,xt,t)−(a−z))∥22,(28)\mathcal{L}_{\mathrm{FM}}(\theta; \mathbf{s}, \mathbf{a}, \mathbf{m}) := \mathbb{E}_{t,z}\left\| \mathbf{m} \odot\left(v_\theta(\mathbf{s}, \mathbf{x}_t, t) - (\mathbf{a} - \mathbf{z})\right)\right\|_2^2, \tag*{(28)}

where ⊙\odot multiplies each frame by its mask entry; the loss of § 4.3 is the case m=1\mathbf{m} = 1. The actor loss is EBπ[λimpLFM(θ;s,a∗,m)+λBCLFM(θ;s,aBC,1)]\mathbb{E}_{B_\pi}\left[\lambda_{\mathrm{imp}}\mathcal{L}_{\mathrm{FM}}(\theta; \mathbf{s}, \mathbf{a}^{*}, \mathbf{m})+\lambda_{\mathrm{BC}}\mathcal{L}_{\mathrm{FM}}(\theta; \mathbf{s}, \mathbf{a}^{\mathrm{BC}}, 1)\right], where aBC\mathbf{a}^{\mathrm{BC}} is a freshly generated full-horizon chunk of the frozen BC policy on every platform. The improvement term supervises only the executed frames; the anchor term supplies targets for every frame. Gradients reach only θ\theta, never target generation or the sampling chain. The BC flow θˉ\bar{\theta} stays frozen throughout. Algorithm 2 gives the robot version. Updates are triggered by new data: on the robot, every 20 new chunk transitions allow one actor update attempt and two critic updates, each drawing a fresh global batch of 128 chunk transitions (16 per GPU on 8 GPUs) entirely from online replay. An attempt whose guards fail is skipped, so the number of actor updates can be smaller than the number of attempts. No human interventions occurred in the reported online runs. In simulation, updates proceed in blocks (LIBERO: 1500 critic steps per 2500 environment steps; OGBench: 5000 critic steps per 5000 environment steps), with η\eta calibrated once as on the robot.

Hyperparameters

Table 6 lists the RetraQ hyperparameters on each platform.

Additional Experimental Details and Results

Operator Definitions and Calibration

We use the abbreviations RR, JJ, and gg introduced in § 5.1. Table 7 specifies the target used by each component ablation. The unchanged-target control measures changes caused by repeated self-distillation. The map-only control measures the result of applying the frozen action map without a critic step. Neither control is displacement-matched to the critic-guided arms.

NameTarget a⋆a^\star
Self-distillationaa
Map-onlyR(a)R(a)
Raw ascenta+ηga+\eta g
Filter-onlya+ηJ(a)ga+\eta J(a)g
Raw+RRR(a+ηg)R(a+\eta g)
RetraQR(a+ηJ(a)g)R(a+\eta J(a)g)

Table 7. Targets for component ablations. The step size η\eta is calibrated separately for each guided arm.

The controlled toy campaign calibrates the median total movement ∥a∗−a∥2\lVert\mathbf{a}^{*} - \mathbf{a} \rVert_2 to its target displacement. The deployed calibration described in § 4 instead measures the movement induced by the critic relative to the mapped baseline, ∥R(a+ηJ(a)g)−R(a)∥2\lVert R(\mathbf{a} + \eta J(\mathbf{a})g) - R(\mathbf{a}) \rVert_2. These quantities differ whenever R(a)≠aR(\mathbf{a}) \ne\mathbf{a}, so the controlled results evaluate the operator under the toy calibration. AWR is not displacement-calibrated in the evaluated implementation. QAM [14] fits the actor by adjoint matching, with the frozen BC flow as the base field; its temperature is matched to the same target displacement by bisection on the achieved actor drift and reverts to its default value when the target lies outside the achievable range.

Online component runs can acquire different replay data and critic parameters as training proceeds, so their differences measure the resulting learning procedures; the controlled problems of Section 5.2 isolate the immediate effect of each operator at fixed actions and a fixed critic.

Forward-Jacobian Diagnostics

Algorithm 2 Offline-to-online RetraQ on the robot, full version of Algorithm 1, with frame masks, guards, and the IQL critic update of Eq. (27). REFINE is defined in Algorithm 1; here Q^\hat{Q} also takes the mask m\mathbf{m}.

Require: BC parameters θˉ\bar{\theta}; demonstrations Ddemo\mathcal{D}_{\mathrm{demo}}; replay buffer D\mathcal{D}; horizon HH; refinement steps MM; guidance level tgt_g; target displacement dtargetd_{\mathrm{target}}; IQL parameters γ\gamma, τ\tau, ρ\rho; loss weights λimp\lambda_{\mathrm{imp}}, λBC\lambda_{\mathrm{BC}}; warm-up updates WW; critic updates per cycle KQK_Q

  1. θ←θˉ\theta\leftarrow\bar{\theta} (θˉ\bar{\theta} frozen); initialize Qϕ1Q_{\phi_1}, Qϕ2Q_{\phi_2}, VψV_\psi; ϕˉi←ϕi\bar{\phi}_i \leftarrow\phi_i; η←\eta\leftarrow unset

  2. for w=1,…,Ww = 1,\ldots,W do

  3. IQLUPDATE(batch from Ddemo\mathcal{D}_{\mathrm{demo}}) ▷ actor fixed

  4. end for

  5. while training budget remains do

  6. Collect rollouts of πθ\pi_\theta; label success or failure; append transitions to D\mathcal{D}

  7. for each update cycle allowed by the replay schedule do

  8. for j=1,…,KQj = 1,\ldots,K_Q do

  9. IQLUPDATE(batch from D\mathcal{D})

  10. end for

  11. Freeze Q^(s,a,m)=min⁡iQϕi(s,a,m)\hat{Q}(s,a,\mathbf{m}) = \min_i Q_{\phi_i}(s,a,\mathbf{m})

  12. Sample actor batch Bπ\mathcal{B}_\pi of (s,aexec,k)(s,a^{\mathrm{exec}},k) from D\mathcal{D}

  13. a(0)←Pad⁡H(aexec,0)a^{(0)} \leftarrow\operatorname{Pad}_H(a^{\mathrm{exec}},0); mh←1[h≤k]m_h \leftarrow\mathbb{1}[h \leq k] ▷ normalized coordinates

  14. if η\eta is unset then solve Eq. (22) on Bπ\mathcal{B}_\pi ▷ then held fixed

  15. a⋆←REFINE⁡(s,a(0);Q^,η)a^\star\leftarrow\operatorname{REFINE}(s,a^{(0)};\hat{Q},\eta); aBC∼πθˉ(⋅∣s)a^{\mathrm{BC}} \sim\pi_{\bar{\theta}}(\cdot\mid s) ▷ full horizon

  16. Lπ←EBπ[λimpLFM(θ;s,a⋆,m)+λBCLFM(θ;s,aBC,1)]\mathcal{L}_\pi\leftarrow\mathbb{E}_{\mathcal{B}_\pi}\left[\lambda_{\mathrm{imp}}\mathcal{L}_{\mathrm{FM}}(\theta;s,a^\star,\mathbf{m})+\lambda_{\mathrm{BC}}\mathcal{L}_{\mathrm{FM}}(\theta;s,a^{\mathrm{BC}},1)\right]

  17. Update θ\theta with ∇θLπ\nabla_\theta\mathcal{L}_\pi if the numerical and displacement guards pass

  18. end for

  19. Periodically synchronize actor weights to the rollout workers

  20. end while

  21. procedure IQLUPDATE(BB)

  22. Update VψV_\psi on LV\mathcal{L}_V, then Qϕ1,Qϕ2Q_{\phi_1},Q_{\phi_2} on LQ\mathcal{L}_Q (Eq. (27))

  23. ϕˉi←(1−ρ)ϕˉi+ρϕi\bar{\phi}_i \leftarrow(1-\rho)\bar{\phi}_i+\rho\phi_i for i=1,2i=1,2

  24. end procedure

Forward-Jacobian Diagnostics

Fix a context and a point aa on its known kk-dimensional manifold, with 1≤k<D1 \le k < D. Let PT(a)P_T(a) and PN(a)P_N(a) be the orthogonal tangent and normal projectors defined in § 2. We measure

GN(a):=∥J(a)PN(a)∥FD−k,(29)G_N(a) := \frac{\lVert J(a)P_N(a)\rVert_F}{\sqrt{D-k}}, \tag*{(29)}
ET(a):=∥(J(a)−ID)PT(a)∥Fk,(30)E_T(a) := \frac{\lVert(J(a)-I_D)P_T(a)\rVert_F}{\sqrt{k}}, \tag*{(30)}

where ∥⋅∥F\lVert\cdot\rVert_F is the Frobenius norm, the square root of the sum of squared matrix entries. Equivalently, these are root-mean-square responses over an orthonormal normal or tangent basis. They also equal the root-mean-square responses to uniformly sampled unit directions in the respective subspaces. The implementation evaluates the basis responses with forward JVPs without forming the Jacobian. For J=PTJ=P_T, both diagnostics vanish. For J=IDJ=I_D, normal gain is one and tangent error is zero. Small tangent error alone therefore does not establish normal filtering. These diagnostics describe average directional responses, rather than worst-direction operator-norm bounds.

Table 8 reports the D=16D=16 diagnostics. For sampled or perturbed points away from the manifold, the reference tangent and normal spaces are evaluated at their known manifold projections. Each row summarizes 512 query points for one frozen flow at tg=0.9t_g=0.9.

For this flow, a separate same-input comparison between JvJv and JTvJ^{\mathsf{T}}v reports a relative difference of approximately 0.9167, after the campaign’s aggregation over points and four probe directions. Because the learned Jacobian is far from symmetric, we report forward-Jacobian diagnostics, which match the JVP used by RetraQ.

The dimension sweep in Table 9 uses a different geometric family from the D=16D=16 refinement campaign. Training budget was held fixed across dimensions, so fitting error also varies across configurations and the sweep does not isolate a causal effect of dimension. The D=16D=16 problem is not part of this sweep.

DDkkGeometrytgt_gGNG_NModel check
21flat0.98440.0567accepted
21curved0.95310.0343accepted
82flat0.98440.0789accepted
82curved0.98440.0958accepted
322flat0.98440.2120accepted
322curved——not accepted
1282flat0.98440.8642accepted
1282curved——not accepted
5122flat0.98440.9659accepted
5122curved0.98440.9661accepted

Table 9. Separate dimension sweep. GNG_N is the median normal gain at the evaluation time tgt_g. Training budget is fixed across dimensions. Dashes mark two curved cells whose flows did not pass the fit check.

Guidance-level sweep. Figure 4a,Figure 4b repeats the diagnostics on flat manifolds with D∈{2,8,32,128,512}D \in\{2, 8, 32, 128, 512\} at five guidance levels tg∈{0.922,0.938,0.953,0.969,0.984}t_g \in\{0.922, 0.938, 0.953, 0.969, 0.984\}, with one flow per dimension trained for 20,000 steps (512 on-manifold query points; 128 for D=512D=512). The deployed level tg=0.9t_g=0.9 lies just below this grid. Across the grid, the tangent error falls from about 0.07–0.09 to about 0.01–0.02, whereas the normal gain rises, from 0.27 to 0.86 at D=128D=128 and from 0.84 to 0.97 at D=512D=512; for D≤8D \le8 it stays below 0.1. Because the training budget is fixed, the flow fits the high-dimensional cells worst (normalized held-out loss 0.708 at $D=512 against

0.072–0.418 elsewhere), so the growth with DD is confounded with fitting quality. Curved cells at D=32D = 32 and 128, whose flows did not pass the fit check, are omitted.

Critic exploitation. On the D=16D = 16 problem, the critic’s predicted objective and the true objective of the refined actions are 1.498 and −16.794 for raw ascent, 0.679 and −0.582 for filter-only, 0.831 and 0.774 for Raw+RR, and 0.838 and 0.827 for RetraQ (Figure 4c).

Controlled Refinement Results

Table 10 uses the batch mean of the analytic task objective before taking the median over actor seeds. Using the batch median instead changes the filter-only result from −0.5822 to 0.1088. Both summarize the same campaign but answer different questions about its sample distribution. The batch mean is retained as the primary objective statistic so that the poor lower tail remains represented. The reported distance percentile describes proximity to the known manifold. It is not a lower bound or a measure of statistical uncertainty.

MethodTrue objective ↑Distance, 95th pct. ↓
BC reference0.39470.0149
Self-distillation0.26560.0812
Map-only0.2859—
Raw ascent-16.79401.0160
Filter-only-0.58220.4300
Raw+RR0.77440.0726
RetraQ0.82720.0284

Table 10. Controlled D=16D = 16 problem after 30 refinement–distillation rounds. The objective is averaged over 4096 samples within each actor seed. The distance statistic is the within-seed 95th percentile of Euclidean distance to the known manifold. Both columns report medians over eight actor seeds sharing one reference flow and critic. The map-only probe did not report this distance percentile.

We report continuous distances rather than threshold-based out-of-distribution fractions, whose radius would depend on a reference control that itself drifts.

LIBERO Evaluation and Offline Stability

Figure 9 shows that the two retracted arms produce actions near fixed points of the frozen map: more than 99% of their actions have a smaller residual than the median demonstration chunk, against 29–91% for the other arms. Actors trained without the retraction, including self-distillation, remain within the range of the demonstrations.

Figure 9. Retraction residual of the final online actors on LIBERO, ∥a−R(s,a)∥2\lVert a - R(s, a) \rVert_2 at tg=0.9t_g = 0.9, pooled over tasks and seeds (boxes: quartiles; whiskers: 5th–95th percentiles). Grey band and dotted line: the same residual on held-out demonstration chunks. The residual is computed with the frozen map that RetraQ and Raw+R use to build their targets, so it measures consistency with the behavior model rather than a distance to the data.

Online LIBERO evaluation uses 30 test initializations per task and actor seed, indexed 0–29. The reported validation protocol uses five initializations starting at index 45. The comparison covers all ten Goal and all ten Object tasks. The online Spatial evaluation covers six tasks, with task indices {0,1,4,5,6,7}\{0, 1, 4, 5, 6, 7\}. These are the Spatial tasks with the lowest BC success; on the remaining tasks, BC already leaves little room for improvement through offline or online fine-tuning. The offline Spatial campaign covers eight tasks, so the two Spatial averages are not directly comparable.

For each training seed, task success rates are averaged with equal task weights. Table 11 reports the mean and sample standard deviation of these seed-level averages.

MethodGoal (10 tasks)Object (10 tasks)Spatial (6 tasks)
Self-distillation59.56 ± 11.9142.22 ± 5.3035.74 ± 12.94
AWR71.89 ± 3.2958.44 ± 0.6964.81 ± 0.64
FlowDPG68.11 ± 3.2049.33 ± 7.9760.37 ± 3.61
Q-VGM73.56 ± 0.3859.89 ± 1.9570.56 ± 0.56
QAM73.11 ± 0.6960.89 ± 0.6961.48 ± 2.74
Raw ascent67.89 ± 5.8256.56 ± 6.3859.26 ± 7.34
Filter-only70.89 ± 5.6057.78 ± 6.0063.52 ± 10.08
Raw+RR79.44 ± 1.3962.11 ± 6.6875.37 ± 1.70
RetraQ81.34 ± 3.7166.42 ± 5.1878.10 ± 4.23

Table 11. All online LIBERO arms. Entries are success (%) as mean ± across-seed standard deviation. Goal and Object cover all ten tasks. Spatial covers six tasks.

Limits of repeated offline improvement. Repeated offline improvement behaves differently from online improvement. After three refinement–distillation rounds, RetraQ success falls from the BC reference rates of 69.58%, 69.00%, and 55.33% to 39.86%, 50.00%, and 21.67% on the evaluated Spatial, Goal, and Object task sets, respectively (Table 12 and Figure 10). AWR and FlowDPG do not exhibit the same across-suite deterioration under their evaluated configurations. The self-distillation control also changes over rounds, although its decline is smaller than RetraQ’s. These results limit claims of reliable repeated offline improvement. They motivate distinguishing errors in refined targets from errors introduced when fitting those targets, which the final policy scores alone cannot separate.

MethodSpatial (8 tasks), r=1r=1Spatial (8 tasks), r=2r=2Spatial (8 tasks), r=3r=3Goal (10 tasks), r=1r=1Goal (10 tasks), r=2r=2Goal (10 tasks), r=3r=3Object (10 tasks), r=1r=1Object (10 tasks), r=2r=2Object (10 tasks), r=3r=3
Self-distillation64.8661.1162.2266.6766.1166.1150.2251.4451.00
AWR65.5670.2869.8672.0073.0076.1155.4457.6758.78
FlowDPG65.0064.3164.5873.6775.4474.3356.6755.8956.44
Q-VGM19.8623.8921.9434.2235.3332.4419.8918.5617.56
QAM40.8338.0637.9236.6734.4434.2224.1122.8920.33
Raw ascent38.8922.0816.6756.1140.3323.3339.2217.448.89
RetraQ71.3954.8639.8667.7855.3350.0055.4429.8921.67

Table 12. Offline LIBERO success (%) at each fixed refinement round rr. Each value averages three actor seeds and 30 evaluation episodes per task and seed, with equal task weights. Shared BC reference rates are given in the text.

Figure 10. Repeated offline refinement on LIBERO (Table 12). Round “BC” is the shared BC reference (dashed line).

The offline curves in Table 12 evaluate fixed rounds and show the complete available suite aggregates. Round is denoted by rr to distinguish it from the intrinsic dimension kk used in the geometric analysis. The shared BC reference is measured once per task. Raw+RR and map-only were not evaluated in this offline LIBERO campaign. On Spatial, AWR and QAM were evaluated after a simulator reinstallation that changed the outcomes of re-evaluated earlier cells, so their Spatial offline entries are not directly comparable with those of the other arms.

The offline BC reference means are 69.58% for the eight Spatial tasks, 69.00% for Goal, and 55.33% for Object. Restricting the Spatial BC evaluations to the six online task indices gives 63.33%. Figure 8 uses 63.33%, 69.00%, and 55.33% as the BC references for the online Spatial, Goal, and Object suites.

Figure 8. Final online LIBERO success (%), mean ±\pm standard deviation over three actor seeds. Cool colors: baselines; hatched warm colors: component ablations of RetraQ; dashed lines: BC. All numbers are in Table 11.

RoboMimic Held-Out Comparison

The preferred Can comparison fixes the number of refinement rounds at two using evaluation seeds 90000–90039, then evaluates on held-out seeds 90100–90199. Each trained arm has three actor-training seeds and 100 held-out episodes per seed. The BC reference has one checkpoint evaluated on 100 episodes. The broader 90000–90199 evaluation band includes selection episodes and is not used as the primary held-out estimate.

For RetraQ minus Raw+RR, the paired 95% interval is [−2.00, 8.67] percentage points around a difference of 3.33 points. It was constructed by resampling episode pairs within each training seed and is conditional on those trained policies. The reported McNemar value is p=0.268p = 0.268. The difference is therefore not statistically significant at this sample size.

Critic quality. Table 14 repeats the Can refinement with three critics trained on 588, 3,234, and 4,410 samples. Each entry is the best success over refinement rounds r≥1r \ge1 on the selection band (seeds 90000–90039, 40 episodes per actor seed), and the round is selected on the same episodes, so the entries are optimistic peaks rather than held-out estimates. The BC rate on this band is 57.5%. With the weakest critic, RetraQ does not exceed BC and ranks last; with the two stronger critics, it ranks first. At 4,410 samples, only Q-VGM has three actor seeds. For the RetraQ arm, the filtered and raw gradients have mean cosine 0.670, 0.697, and 0.712 for the three critics, with norm ratios ∥JRg∥/∥g∥\lVert J_R g\rVert/\lVert g\rVert of 0.400, 0.342, and 0.349 (first round, averaged over seeds).

Critic samplesRetraQQ-VGMFlowDPG
58857.559.262.5
3,23473.356.771.7
4,41087.5{sup}‡79.280.0{sup}‡

Table 14. RoboMimic Can success (%) versus critic training-set size. Best round per method, selected on the same selection-band episodes; BC is 57.5%. {sup}‡One actor seed; all other cells have three.

MethodMeanAcross-seed range
BC reference53.00one checkpoint
FlowDPG64.3362.00–67.00
Q-VGM69.0068.00–71.00
Raw+RR67.0065.00–69.00
RetraQ70.3364.00–77.00

Table 13. RoboMimic Can held-out success (%) after two refinement rounds. The final column is the range across the three actor seeds, not a confidence interval. The BC reference has one checkpoint.

OGBench Online Comparison

The cube-single campaign starts from an offline-refined actor. The reported initial success is 30.7% for that actor and 8.0% for the BC reference. Table 15 reports final policies with two training seeds and 200 evaluation episodes per seed.

MethodSuccess
Continued BC3.50 ± 1.41
Self-distillation19.75 ± 13.79
Map-only0.25 ± 0.35
Raw ascent97.00 ± 3.54
Raw+RR99.00 ± 0.71
RetraQ98.75 ± 0.35
Q-VGM95.00 ± 5.66
FlowDPG4.50 ± 0.71

Table 15. Final OGBench cube-single success (%), mean ± standard deviation over two seeds.

The table’s standard deviations summarize two training seeds.

Filter diagnostics. During online training of the RetraQ arm, we record the cosine between the filtered and raw critic gradients and their norm ratio at 10k, 25k, 50k, and 100k steps for both seeds. The median cosine is 0.988–0.991 at every checkpoint, and the ratio of median norms ∥JRg∥/∥g∥\lVert J_R g\rVert/\lVert g\rVert is 0.42–0.48. On this task, the filter therefore changes mainly the length of the step, which the displacement calibration then sets, consistent with the near-equal final success of RetraQ and Raw+RR in Table 15.

On the harder cube-double task, both evaluated methods remain near zero (RetraQ 2.50%, Q-VGM 1.25%; two seeds, 400 episodes each), so we do not draw conclusions from it.

Is RetraQ Behavior Regularization?

A natural concern is that, at σg≈0.11\sigma_g \approx0.11, the map RR might act mainly as a pull toward the behavior policy and JRJ_R as an isotropic shrinkage, so that RetraQ would reduce to critic ascent plus behavior regularization. The evidence collected above bears on this question as follows.

An explicit behavior anchor does not reproduce the retraction. On LIBERO, the component ablations share the distillation objective of Eq. (9), including its BC anchor, and differ only in their targets (Table 7). With this anchor, raw ascent and filter-only remain within about two points of BC on average, whereas replacing the target a+ηga + \eta g by R(a+ηg)R(a + \eta g) adds 5.6–16.1 points (Table 11). The retraction therefore contributes beyond the behavior regularization that the anchor already provides.

The map alone does not improve the policy. Map-only targets R(a)R(a) apply the same map without a critic step. They do not improve over the behavior policy: the true objective is 0.286 against 0.395 for BC on the D=16D = 16 problem (Table 10), and OGBench success is 0.25% against 3.50% for continued BC (Table 15). Self-distillation also falls below BC on LIBERO. The gains thus require the critic direction; RR contributes by correcting the critic step rather than by regularizing on its own.

RetraQ moves along the manifold, not back to BC. On the D=16D = 16 problem, where the manifold is known, a pull toward the behavior policy would move refined actions toward BC and their objective toward BC’s 0.395. RetraQ instead reaches a true objective of 0.827, while the 95th-percentile distance to the manifold changes only from 0.015 for BC to 0.028, against 0.073 for Raw+RR (Table 10). The improvement therefore comes from motion along the manifold. On this problem, the learned JRJ_R has median normal gain 0.034 and tangent error 0.060 on the manifold (Table 8): it is close to PTP_T, not to a scaled identity.

Query setGNG_N, med.GNG_N, 95thETE_T, med.ETE_T, 95th
On manifold0.03410.04460.05970.3979
Actor samples0.03340.04240.04700.3483
Perturbed points0.03420.04480.06040.3977

Table 8. Forward-Jacobian diagnostics for one D=16D=16 flow. Each cell is a quantile over query points.

Real-Robot Setup and Records

Platform and policy. The task is phone-charging plug insertion on an AgiBot G02 dual-arm robot controlled at 30 Hz, with three cameras (head and both wrists). The policy is a π0.5\pi_{0.5} flow behavior-cloned on task demonstrations for 80,000 steps (batch size 256). It predicts 50-frame chunks, of which the first 30 frames (1 s) are executed, and its flow is integrated with 10 steps.

Test-time guidance. RetraQ uses tg=0.9t_g = 0.9 (σg≈0.11\sigma_g \approx0.11), η=0.01\eta= 0.01 calibrated once offline and then frozen, dtarget=0.025d_{\mathrm{target}} = 0.025, and a displacement cap of 0.25 (Appendix § 12.§ 1). Guidance is enabled only at detected fork states 0–2 (Appendix § 12.§ 3); elsewhere the BC chunk is executed unchanged. The baselines use the same frozen policy, the same critic, and the same gate: QGF updates the velocity as v←v−λgv \gets v-\lambda g without a 1/t1/t factor, FlowDPG takes a normalized velocity step with a 1/t1/t factor, and Q-VGM follows its first version (Wang et al., 2026): it takes gradient-clipped ascent steps along gg from the one-step clean-action estimate, clips each iterate to the action range, and keeps the highest-valued iterate, with gating and a 1/t1/t factor. Their step sizes are set by bisection so that their median guided displacement equals the median displacement of the deployed RetraQ arm.

MethodCritic 1Critic 2
Test-time guidance (policy parameters fixed)
BC55.00
QGF (Zhou et al., 2026)58.3356.67
Q-VGM0.0058.33
FlowDPG63.3366.67
RetraQ76.6773.33
Offline distillation (shared displacement budget)
Q-VGM0.00—
FlowDPG28.33—
RetraQ60.00—

Table 16. Real-robot phone-charging success rates (%) without online interaction, as plotted in Figure 5b. Top: test-time guidance of the frozen BC policy; the BC reference is shared across the two critic columns, and all guidance methods are displacement-matched to RetraQ. Each entry is over 60 trials. Bottom: offline distillation with the deployed guidance level tg=0.9t_g = 0.9 and a larger displacement budget shared by the three arms; the RetraQ arm uses the Critic 1 fork critic.

Critics and trials. Every real-robot evaluation consists of 60 trials. In offline-to-online learning, this holds for every checkpoint of each of the three training runs per method, so each reported online entry averages 3×603 \times60 trials. Critic 1 and Critic 2 are the linear and the nonlinear fork critic of Appendix § 12.2.1, trained on the same data.

Why Q-VGM fails with the linear critic. With Critic 1, AωA_\omega in Eq. (8) is linear in the action deviation, so ∇aQ\nabla_a Q points in the same direction at every action, and the critic value increases monotonically along it. Q-VGM takes several ascent steps along this direction, clips each iterate to the action range, and keeps the highest-valued iterate. Under a monotone critic, this rule always selects the last, farthest iterate, and neither the coordinate clip nor the value-based selection removes the normal component of the fixed direction. The executed chunks can therefore leave the region covered by the behavior data at the fork states, which is consistent with the observed failure of every trial. Because the step size is matched to RetraQ’s median displacement, this failure stems from the direction of the update rather than its size. With the nonlinear Critic 2, the gradient direction varies with the action and the value need not increase monotonically along the ascent path, and Q-VGM stays near BC (58.33%). RetraQ receives the same gradient but removes its normal component with JRJ_R and maps the endpoint back with RR.

Offline distillation. The offline-distillation arms are a separate experiment. They distill refined targets into the policy without online interaction, under one shared displacement budget: the total RetraQ displacement (2.10 at η=0.05\eta= 0.05) measured at this setting. The RetraQ arm uses the Critic 1 fork critic and the same guidance level as deployment, tg=0.9t_g = 0.9 (tg′=0.1t'_g = 0.1 in the π0.5\pi_{0.5} convention). The displacement budget, however, is much larger than that of test-time guidance (dtarget=0.025d_{\mathrm{target}} = 0.025), far outside the perturbation range that supervises the fork critic, so it probes how each method’s targets behave when the critic is queried away from its training data. The Q-VGM-distilled policy reaches 0%: it repeatedly hits the table. The FlowDPG-distilled policy reaches 28.33%: it approaches the socket but frequently misaligns the plug at insertion. The RetraQ-distilled policy reaches 60.00%, on par with the BC rate of 55% (Fisher’s exact test, p=0.71p = 0.71). At this budget, unconstrained targets thus degrade the distilled policy, whereas RetraQ targets preserve it; a comparison that varies only dtargetd_{\mathrm{target}} would be needed to determine whether smaller displacements also let offline RetraQ improve substantially over BC.

Figure 11. Online IQL critic along fixed evaluation rollouts (min⁡(Q1,Q2)\min(Q_1, Q_2) at the end of each 1 s action chunk). (a) Critic after 1.0 h of online training along three successful rollouts of the online RetraQ policy and two failed rollouts of the BC policy; markers show the last chunk. The value rises sharply only in the final seconds of successful insertions. The two groups come from different policies, so this panel is illustrative. (b) One successful rollout scored by the critic at successive checkpoints. After warm-up, the critic assigns high values early in the episode; with online training, it concentrates value at the insertion.

Online RetraQ. Averaged over three training runs, online RetraQ reaches 98.33% after 30 minutes and 100% after one hour of online training, the highest success of all methods at each checkpoint (Table 17). It uses the IQL critic and the update schedule of Appendix § 12.§ 3: every 20 new chunk transitions allow one actor update attempt and two critic updates, with batches drawn entirely from online replay. No human interventions occurred during training; episodes are labeled by the operator as successes or failures.

Method0 h0.5 h1.0 h
QGF55.0088.3391.67
FlowDPG55.0088.3386.67
Q-VGM55.0095.0093.33
RetraQ55.0098.33100.00

Table 17. Real-robot offline-to-online success (%) versus online training time, as plotted in Figure 5c. All methods start from the same BC policy and the same warmed-up IQL critic (0 h); each then trains its own critic on its own rollouts under the same total interaction budget. Each checkpoint of each training run is evaluated with 60 trials, and each entry is the mean over three training runs per method.

References

  1. [1]P.-A. Absil and Jérôme Malick. Projection-like retractions on matrix manifolds. SIAM Journal on Optimization, 22(1):135–158, 2012. doi: 10.1137/100802529.DOI
  2. [2]Kevin Black, Noah Brown, James Darpinian, Karan Dhabalia, Danny Driess, Adnan Esmail, Michael Robert Equi, Chelsea Finn, Niccolo Fusai, Manuel Y. Galliker, Dibya Ghosh, Lachy Groom, Karol Hausman, Brian Ichter, Szymon Jakubczak, Tim Jones, Liyiming Ke, Devin LeBlanc, Sergey Levine, Adrian Li-Bell, Mohith Mothukuri, Suraj Nair, Karl Pertsch, Allen Z. Ren, Lucy Xiaoyang Shi, Laura Smith, Jost Tobias Springenberg, Kyle Stachowicz, James Tanner, Quan Vuong, Homer Walker, Anna Walling, Haohuan Wang, Lili Yu, and Ury Zhilinsky. π₀.₅: A vision-language-action model with open-world generalization. In Proceedings of the 9th Conference on Robot Learning, volume 305 of Proceedings of Machine Learning Research, pp. 17–40. PMLR, 2025a.arxiv.org/abs/2504.16054
  3. [4]Nicolas Boumal. An Introduction to Optimization on Smooth Manifolds. Cambridge University Press, 2023. doi: 10.1017/9781009166164.DOI
  4. [5]Pierluca D’Oro and Wojciech Jaśkowski. How to learn a useful critic? Model-based action-gradient-estimator policy optimization. In Advances in Neural Information Processing Systems, volume 33, pp. 313–324. Curran Associates, Inc., 2020.
  5. [6]Bradley Efron. Tweedie’s formula and selection bias. Journal of the American Statistical Association, 106(496):1602–1614, 2011. doi: 10.1198/jasa.2011.tm11181.DOI
  6. [7]Herbert Federer. Curvature measures. Transactions of the American Mathematical Society, 93(3):418–491, 1959. doi: 10.1090/S0002-9947-1959-0110078-1. URL https://www.ams.org/tran/1959-093-03/S0002-9947-1959-0110078-1/.DOI
  7. [8]Pete Florence, Corey Lynch, Andy Zeng, Oscar A. Ramirez, Ayzaan Wahid, Laura Downs, Adrian Wong, Johnny Lee, Igor Mordatch, and Jonathan Thompson. Implicit behavioral cloning. In Proceedings of the 5th Conference on Robot Learning, volume 164 of Proceedings of Machine Learning Research, pp. 158–168. PMLR, 2022.arxiv.org/abs/2109.00137
  8. [9]Scott Fujimoto, David Meger, and Doina Precup. Off-policy deep reinforcement learning without exploration. In Proceedings of the 36th International Conference on Machine Learning, volume 97 of Proceedings of Machine Learning Research, pp. 2052–2062. PMLR, 2019.arxiv.org/abs/1812.02900
  9. [10]Yutong He, Naoki Murata, Chieh-Hsin Lai, Yuhta Takida, Toshimitsu Uesaka, Dongjun Kim, Wei-Hsiang Liao, Yuki Mitsufuji, J. Zico Kolter, Ruslan Salakhutdinov, and Stefano Ermon. Manifold preserving guided diffusion. In International Conference on Learning Representations, 2024.arxiv.org/abs/2311.16424
  10. [11]Andrey Kharitenko, Zebang Shen, Riccardo De Santi, Niao He, and Florian Dörfler. Landing with the score: Riemannian optimization through denoising. In International Conference on Learning Representations, 2026. URL https://openreview.net/forum?id=xZNoeX0z9f.arxiv.org/abs/2509.23357
  11. [12]Ilya Kostrikov, Ashvin Nair, and Sergey Levine. Offline reinforcement learning with implicit Q-learning. In International Conference on Learning Representations, 2022. URL https://openreview.net/forum?id=68n2s9ZJWF8.arxiv.org/abs/2110.06169
  12. [13]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, pp. 11761–11771. Curran Associates, Inc., 2019.
  13. [14]Qiyang Li and Sergey Levine. Q-learning with adjoint matching. In International Conference on Learning Representations, 2026. URL https://openreview.net/forum?id=vd4eNAtdO6.arxiv.org/abs/2601.14234
  14. [15]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://openreview.net/forum?id=PQvPMdCRJT9t.arxiv.org/abs/2210.02747
  15. [16]Bo Liu, Yifeng Zhu, Chongkai Gao, Yihao Feng, Qiang Liu, Yuke Zhu, and Peter Stone. LIBERO: Benchmarking knowledge transfer for lifelong robot learning. In Advances in Neural Information Processing Systems, volume 36, pp. 44776–44791. Curran Associates, Inc., 2023a. doi: 10.52202/075280-1939.
  16. [17]Xingchao Liu, Chengyue Gong, and Qiang Liu. Flow straight and fast: Learning to generate and transfer data with rectified flow. In International Conference on Learning Representations, 2023b. URL https://openreview.net/forum?id=XVjT11nW5z.arxiv.org/abs/2209.03003
  17. [18]Jianlan Luo, Charles Xu, Jeffrey Wu, and Sergey Levine. Precise and dexterous robotic manipulation via human-in-the-loop reinforcement learning. Science Robotics, 10(105):eads5033, 2025. doi: 10.1126/scirobotics.ads5033.
  18. [19]Ajay Mandlekar, Danfei Xu, Josiah Wong, Soroush Nasiriany, Chen Wang, Rohan Kulkarni, Li Fei-Fei, Silvio Savarese, Yuke Zhu, and Roberto Martín-Martín. What matters in learning from offline human demonstrations for robot manipulation. In Proceedings of the 5th Conference on Robot Learning, volume 164 of Proceedings of Machine Learning Research, pp. 1678–1690. PMLR, 2022.
  19. [20]Hila Manor and Tomer Michaeli. On the posterior distribution in denoising: Application to uncertainty quantification. In International Conference on Learning Representations, 2024. URL https://openreview.net/forum?id=adSGeugiuj.arxiv.org/abs/2309.13598
  20. [22]Seohong Park, Kevin Frans, Benjamin Eysenbach, and Sergey Levine. OGBench: Benchmarking offline goal-conditioned RL. In International Conference on Learning Representations, 2025a. URL https://openreview.net/forum?id=M992mjGkzI.

AI tools statement

This work lists 1 AI tool.

  • generative AI tools (large language model assistants) · AI tool

    Roles
    SoftwareWriting — review & editing
    Verification
    self-declared at submission

Recorded on the work at submission, not per version. Names and roles are shown as submitted; roles use the CRediT taxonomy.

How AI tools are recorded

Paper details

Cite this paper

Publication

Published
Version
Latest

Data & code

No code, data or supplementary files were declared for this version.

Pick where to look, or just type