Organizations: Stanford University · AGIBOT Innovation (Shanghai) Technology Co., Ltd. · The Chinese University of Hong Kong, Shenzhen · Southeast University
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 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/
Figures & tables
Figure 1: RetraQ at a glance. Left: raw critic ascent can move actions away from the behavior manifold Ms by following normal gradient components. RetraQ uses the Jacobian JR of a frozen flow’s denoising map R to filter the gradient and uses R to correct the updated action, constraining the update direction and destination. Right: for a π0.5 policy, a frozen copy of the flow defines R . The refined action a+ is executed at test time or used as a stop-gradient training target, without backpropagating through the policy’s sampling trajectory.
Figure 2: Constraints on the update direction and destination. (a) The critics Q1(u,v)=u+0.75v and Q2(u,v)=u−0.75v agree on the behavior manifold M={(u,0):u∈R} . Their tangential gradients agree, while their normal components have opposite signs. (b) A finite tangent step from a leaves the circular manifold. Projecting the endpoint back onto the circle yields a+ and locally defines a retraction.
Figure 3: One RetraQ update. ➊ At an action a , the critic gradient g may contain components normal to the behavior manifold. ➋ The Jacobian JR of the frozen flow’s denoising map keeps tangent directions and suppresses normal ones. ➌ After a step along the filtered direction g , the same map moves the action back toward the behavior manifold, giving a+ . Repeating the update gives the refined action a⋆ , which is executed or distilled into the actor πθ as a stop-gradient target.
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 JR versus the guidance level, for flat manifolds of increasing dimension at a fixed flow-training budget. (c) D=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 D.2 .
Method
Spatial (6 tasks)
Goal (10 tasks)
Object (10 tasks)
BC
63.3
69.0
55.3
AWR
64.8±0.6
71.9±3.3
58.4±0.7
FlowDPG
60.4±3.6
68.1±3.2
49.3±8.0
Q-VGM
70.6±0.6
73.6±0.4
59.9±2.0
QAM
61.5±2.7
73.1±0.7
60.9±0.7
Self-distillation
35.7±12.9
59.6±11.9
42.2±5.3
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.
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, now including map-only R(a) (no critic step; one shared entry) and Raw +R under both fork critics. n/a: not applicable. (c) Offline-to-online learning from a shared BC policy and critic warm-up.
Appendix figures & tables22 assets
Supplementary material from the paper’s appendix.
Appendix
Method
g evaluated at
Direction F
Endpoint C
DIPO
replay action
ID
id
FlowDPG
Dt(s,xt)
ID , step scaled to velocity norm
id
Q-VGM
Dt(s,xt)
ID , gradient clipped
action-range clip, best- Q iterate
QGF †
Dt(s,xt)
ID in place of J⊤
id
Raw ascent
clean action a
ID
id
Raw+ R
clean action a
ID
R
Appendix
Table 2: Local critic-gradient methods in the template of Eq. ( 2 ), a+=C(a+ηFg) , as described in the cited papers. Dt(s,xt) is the one-step clean-action estimate of Eq. ( 1 ) at the flow state xt ; id denotes no endpoint correction. The last three rows are the operator variants of Section 5.1 . † QGF adds its guidance term to the velocity at xt during sampling.
Table 3: Critics used by RetraQ. TTG: test-time guidance; MC: Monte Carlo; TD: temporal difference. FQL-style twin- Q TD evaluates the bootstrap target at an action of the current actor.
Figure 6: Forked rollouts provide local action comparisons. (a) Seeded replay from reset reproduces the same prefix K times and reaches the fork state s . In each branch, one action chunk is swapped for a perturbed chunk, the frozen policy πθˉ finishes the episode, and the branch is labeled by its Monte Carlo task outcome y . (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.
Branch type
n
Success
Deviation, median
Deviation, max
Tier weight
Injected noise
135
0.348
0.107
0.320
1.0
Human teleoperation
32
0.469
0.035
0.084
0.5
Policy resample
103
0.291
0.024
0.094
0.25
Appendix
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 , in radians. The tier weight enters the critic loss, Eq. ( 26 ).
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 u ” is Critic 2. Dotted line: y=x .
Setting
Initial action a(0)
Critic
Use of a⋆
Test-time guidance
πθˉ(⋅∣s) at fork states
fork critic, Eq. ( 8 )
executed
Offline distillation
current actor at dataset states
fixed during refinement
distilled
Offline-to-online
executed chunks in replay D
replay critic, snapshot Q^
distilled
Appendix
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 .
Toy
LIBERO
RoboMimic
OGBench
Real robot
Guidance level tg ( σg )
0.9 (0.11)
0.9 (0.11) ‡
Target displacement dtarget
0.05 †
0.25
0.10
0.05
0.025
Refinement steps M
1
Displacement cap
0.5
0.25
Executed frames per chunk
–
5
8
1
30
Flow integration steps
100
32
64
128
10
Appendix
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 .
Name
Target a⋆
Self-distillation
a
Map-only
R(a)
Raw ascent
a+ηg
Filter-only
a+ηJ(a)g
Raw+ R
R(a+ηg)
RetraQ
R(a+ηJ(a)g)
Appendix
Table 7: Targets for component ablations. The step size η is calibrated separately for each guided arm.
Query set
GN , med.
GN , 95th
ET , med.
ET , 95th
On manifold
0.0341
0.0446
0.0597
0.3979
Actor samples
0.0334
0.0424
0.0470
0.3483
Perturbed points
0.0342
0.0448
0.0604
0.3977
Appendix
Table 8: Forward-Jacobian diagnostics for one D=16 flow. Each cell is a quantile over query points.
D
k
Geometry
tg
GN
Model check
2
1
flat
0.9844
0.0567
accepted
2
1
curved
0.9531
0.0343
accepted
8
2
flat
0.9844
0.0789
accepted
8
2
curved
0.9844
0.0958
accepted
32
2
flat
0.9844
0.2120
accepted
32
2
curved
—
—
not accepted
Appendix
Table 9: Separate dimension sweep. GN is the median normal gain at the evaluation time tg . Training budget is fixed across dimensions. Dashes mark two curved cells whose flows did not pass the fit check.
Method
True objective ↑
Distance, 95th pct. ↓
BC reference
0.3947
0.0149
Self-distillation
0.2656
0.0812
Map-only
0.2859
—
Raw ascent
-16.7940
1.0160
Filter-only
-0.5822
0.4300
Raw+ R
0.7744
0.0726
Appendix
Table 10: Controlled D=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.
Figure 8: Final online LIBERO success (%), mean ± 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 .
Figure 9: Retraction residual of the final online actors on LIBERO , ∥a−R(s,a)∥2 at tg=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.
Method
Goal (10 tasks)
Object (10 tasks)
Spatial (6 tasks)
Self-distillation
59.56±11.91
42.22±5.30
35.74±12.94
AWR
71.89±3.29
58.44±0.69
64.81±0.64
FlowDPG
68.11±3.20
49.33±7.97
60.37±3.61
Q-VGM
73.56±0.38
59.89±1.95
70.56±0.56
QAM
73.11±0.69
60.89±0.69
61.48±2.74
Raw ascent
67.89±5.82
56.56±6.38
59.26±7.34
Appendix
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.
Spatial (8 tasks)
Goal (10 tasks)
Object (10 tasks)
Method
r=1
r=2
r=3
r=1
r=2
r=3
r=1
r=2
r=3
Self-distillation
64.86
61.11
62.22
66.67
66.11
66.11
50.22
51.44
51.00
AWR
65.56
70.28
69.86
72.00
73.00
76.11
55.44
57.67
58.78
FlowDPG
65.00
64.31
64.58
73.67
75.44
74.33
56.67
55.89
56.44
Q-VGM
19.86
23.89
21.94
34.22
35.33
32.44
19.89
18.56
17.56
QAM
40.83
38.06
37.92
36.67
34.44
34.22
24.11
22.89
20.33
Appendix
Table 12: Offline LIBERO success (%) at each fixed refinement round r . 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).
Method
Mean
Across-seed range
BC reference
53.00
one checkpoint
FlowDPG
64.33
62.00–67.00
Q-VGM
69.00
68.00–71.00
Raw+ R
67.00
65.00–69.00
RetraQ
70.33
64.00–77.00
Appendix
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.
Critic samples
RetraQ
Q-VGM
FlowDPG
588
57.5
59.2
62.5
3,234
73.3
56.7
71.7
4,410
87.5‡
79.2
80.0‡
Appendix
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% . ‡ One actor seed; all other cells have three.
Method
Success
Continued BC
3.50±1.41
Self-distillation
19.75±13.79
Map-only
0.25±0.35
Raw ascent
97.00±3.54
Raw+ R
99.00±0.71
RetraQ
98.75±0.35
Appendix
Table 15: Final OGBench cube-single success (%), mean ± standard deviation over two seeds.
Method
Critic 1
Critic 2
Test-time guidance (policy parameters fixed)
BC
55.00
QGF ( Zhou et al., 2026 )
58.33
56.67
Q-VGM
0.00
58.33
FlowDPG
63.33
66.67
RetraQ
76.67
73.33
Appendix
Table 16: Real-robot phone-charging success rates (%) without online interaction, as plotted in Figure 5 b. Top: test-time guidance of the frozen BC policy; the BC reference is shared across the two critic columns, and critic-guided methods are displacement-matched to RetraQ. Middle: added test-time component controls. Map-only takes no critic step and has a single entry shared across the columns. Each entry is over 60 trials. Bottom: offline distillation with the deployed guidance level tg=0.9 and a larger displacement budget shared by the three arms; the RetraQ arm uses the Critic 1 fork critic.
Method
0 h
0.5 h
1.0 h
QGF
55.00
88.33
91.67
FlowDPG
55.00
88.33
86.67
Q-VGM
55.00
95.00
93.33
DSRL ( Wagenmaker et al., 2025 )
55.00
86.67
93.33
RetraQ
55.00
98.33
100.00
Appendix
Table 17: Real-robot offline-to-online success (%) versus online training time, as plotted in Figure 5 c. 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. The updated comparison includes DSRL under the same protocol.
Figure 11: Online IQL critic along fixed evaluation rollouts ( min(Q1,Q2) 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.
Generative policies based on expressive model classes, such as diffusion and flow matching, are well-suited to complex control problems with highly multimodal action distributions. Their expressivity, however, comes at a significant inference cost: generating each action typically requires simulating many steps of the generative process, compounding latency across sequential decision-making rollouts. We introduce flow map policies, a novel class of generative policies designed for fast action generation by learning to take arbitrary-size jumps including one-step jumps-across the generative dynamics of existing flow-based policies. We instantiate flow map policies for offline-to-online reinforcement learning (RL) and formulate online adaptation as a trust-region optimization problem that improves the critic's Q-value while remaining close to the offline policy. We theoretically derive FLOW MAP Q-GUIDANCE (FMQ), a principled closed-form learning target that is optimal for adapting offline flow map policies under a critic-guided trust-region constraint. We further introduce Q-GUIDED BEAM SEARCH (QGBS), a stochastic flow-map sampler that combines renoising with beam search to enable iterative inference-time refinement. Across 12 challenging robotic manipulation and locomotion tasks from OGBench and RoboMimic, FMQ achieves state-of-the-art performance in offline-to-online RL, outperforming the previous one-step policy MVP by a relative improvement of 21.3% on the average success rate.
Flow-matching and diffusion policies are expressive action generators, but optimizing them with temporal-difference reinforcement learning (RL) remains difficult. Effective policy extraction requires exploiting the critic's action gradient, yet directly backpropagating this signal through a multi-step denoising process can be numerically unstable. Existing methods work around this either by discarding gradient information, distilling the policy into a simpler one-step actor, or repeatedly fine-tuning the denoising policy as the critic improves. We propose QPILOTS, a method that leaves the original policy unmodified and steers the denoising process at inference time. At each denoising step, instead of evaluating the critic on the noisy intermediate action where critic predictions are unreliable, we first project that intermediate state to an estimate of the final clean action and compute the critic gradient there. We introduce two variants: QPILOTS-U uses a fast single-point approximation, while QPILOTS-M draws differentiable posterior samples via a learned auxiliary network. On a standard offline-to-online RL benchmark, QPILOTS achieves the best aggregate performance, reaching an average success rate of 90% across 50 tasks. We also apply QPILOTS to steer a large, frozen, pretrained Vision-Language Action (VLA) foundation model, outperforming or matching prior inference-time approaches across six manipulation tasks in simulation.
Yifan Ruan, Chenyang Cao, Andreas Burger +7
University of Toronto · Vector Institute · LG Electronics
Expressive continuous control policies, such as diffusion and flow models, form the backbone of recent advances in scaling imitation learning for simulated and real robot control. While they are known to scale stably in the supervised imitation learning setting, incorporating them into reinforcement learning (RL) pipelines for policy improvement has proven more difficult. It often requires specialized training objectives or backpropagating through denoising processes, which cause well-known issues with stability and affect scalability. In this paper we study the question of whether simple policy improvement schemes at test time alone, leaving stable supervised policy training intact, can be a competitive alternative which sidesteps these issues. To this end, we propose QGF (Q-Guided Flow), an RL algorithm that performs policy optimization entirely at test time. QGF works by pre-training both a reference flow policy (via a standard behavioral cloning objective) and a value function critic and, at test time, using the value gradient to guide the reference policy to generate higher-value actions without any additional policy learning. Empirically, QGF outperforms prior test-time RL methods on single-task and goal-conditioned offline RL benchmarks with high-dimensional action spaces, and is competitive with state-of-the-art training-time algorithms while being much cheaper to run. Moreover, it exhibits favorable scaling with model size by avoiding the instability of actor-critic training, offering a practical and effective alternative RL algorithm with expressive policies.