TL;DR
When you try to upgrade an imitation-learned robot policy using reinforcement learning, a learned "critic" network often hallucinates high rewards for bizarre, out-of-distribution actions, steering the robot off the rails. RetraQ solves this by realizing that a pretrained flow-matching policy already knows the exact geometric shape of valid actions—and uses that hidden geometry to keep critic updates safely on track. The result? A clumsy robot plug-insertion policy goes from a coin-flip 55% success rate to a 100% success rate within just one hour of real-world practice.
What Problem Does This Paper Address?
Generative models—specifically flow-matching policies, which learn a velocity field to smoothly transport random noise into multi-step action sequences—are rapidly becoming the engine of modern robotics (such as $\pi_{0.5}$ vision-language-action models). Typically trained via behavioral cloning (BC), these policies mimic human demonstrations well, but they also inherit human imperfections. A robot might smoothly pick up a phone charger, bring it to an outlet, and then repeatedly fumble the final millimeter-precise alignment.
Reinforcement learning (RL) is the natural fix: train a critic ($Q$-function) to predict expected task rewards, and nudge sampled actions uphill along the critic’s gradient ($\nabla_{\mathbf{a}}Q$).
Here’s the catch: valid robot actions at any given moment usually live on a thin, curved, lower-dimensional surface—a behavior manifold—embedded inside the high-dimensional space of all possible motor commands. Because your critic was only trained on actions lying on this manifold, it only truly knows how value changes along the surface (tangential directions). Its gradients pointing away from the surface (normal directions) are completely unconstrained by data.
Following raw critic gradients pushes actions off the manifold into uncharted territory where the critic hallucinates high rewards—and even if you only step tangentially, taking a straight step off a curved surface still leaves the surface!
Methods
To stay safely on the behavior manifold without training a separate geometry model, the authors introduce RetraQ (Retraction-based Q-guidance). They extract two geometric operators directly from a frozen copy of the pretrained BC flow policy:
- The Denoising Map ($R$): By evaluating the frozen flow's velocity field just once at a high flow time ($t_g = 0.9$), RetraQ treats an input action as slightly noisy and estimates its "clean" counterpart. Mathematically, this acts as a retraction, pulling strayed actions back onto the manifold.
- Tangent Filtering ($J_R$): The Jacobian (derivative matrix) of that exact denoising map acts as a scaled posterior covariance. Multiplying the critic’s gradient by $J_R$ suppresses components normal to the manifold while preserving tangential ones—computed efficiently via a single Jacobian–vector product (no expensive backpropagation through the multi-step sampling chain).
Every RetraQ update follows a simple three-step dance: compute the critic gradient, filter its direction with $J_R$, and take a step followed by retraction via $R$. Crucially, this exact same update works across three settings:
- Test-time guidance: Adjusting actions on the fly with zero weight updates, paired with a clever "forked rollout" critic trained by replaying task-critical states with slight action perturbations.
- Offline distillation & Offline-to-online RL: Treating the refined actions as clean, stop-gradient regression targets to fine-tune the live actor policy.
Datasets
Rather than introducing static new datasets, the authors evaluate across four tiers of environments:
- Synthetic Manifolds: Controlled problems ($D=2$ up to $512$) with known ground-truth manifolds to directly measure gradient angles and off-manifold drift.
- LIBERO: 26 manipulation tasks across the Goal (10), Object (10), and hardest Spatial (6) suites.
- Standard RL Benchmarks: RoboMimic (Can manipulation) and OGBench (cube-single).
- Real-World Robotics: A contact-rich phone-charger plug insertion task on a dual-arm AgiBot G02 robot running a $\pi_{0.5}$ policy, using 270 forked rollouts for test-time critics and live interaction for online RL.
Key Insights and Ideas
- Accurate values don't imply accurate gradients: Two critics can agree 100% on every single data point on a manifold and still have normal gradients pointing in completely opposite directions. You must filter normal components.
- Your generative policy is secretly a Riemannian geometry engine: A pretrained flow policy doesn't just sample actions; its local derivatives encode the tangent space of valid behaviors, giving you Riemannian gradient ascent almost for free.
- Retraction does the heavy lifting, filtering polishes it: Across ablations, pulling the endpoint back onto the manifold ($R$) prevents catastrophic critic exploitation, while Jacobian filtering ($J_R$) keeps updates up to $2.6\times$ closer to the manifold than retraction alone and rotates gradients away from traps.
Key Results
- Preventing Hallucinations (Synthetic, $D=16$): Raw critic ascent chases a predicted score of $+1.50$ into an off-manifold abyss, suffering a true score of $-16.8$. RetraQ keeps predicted and true scores within $0.07$ of each other and stays $36\times$ closer to the manifold.
- Simulation Suites: In online training on LIBERO, RetraQ beats BC by 11–15 percentage points across all suites (reaching 78.1% on Spatial, 81.3% on Goal, and 66.4% on Object), outperforming AWR, FlowDPG, Q-VGM, and QAM by 5.5–7.8 points. It also hits 98.8% on OGBench cube-single and 70.3% on RoboMimic Can (up from 53.0% BC).
- Real-Robot Plug Insertion: Starting from a 55.0% BC baseline, test-time RetraQ jumps immediately to 76.7% without touching a single policy weight. In offline distillation, competing methods crash (Q-VGM hits 0%, FlowDPG 28.3%, literally slamming into the table), while RetraQ holds steady at 60.0%. With online RL, RetraQ hits 98.3% in 30 minutes and 100.0% in 1 hour.
Limitations and Future Work
- Multi-round offline degradation: When distilling targets repeatedly on a fixed offline dataset without fresh environment interaction, RetraQ's performance degrades over multiple rounds more than value-weighted baselines like AWR.
- Curse of dimensionality on the filter: Under a fixed flow-training budget, the learned Jacobian filter weakens in very high dimensions (losing most filtering power by $D=512$ as velocity derivative errors accumulate), and computing the JVP adds GPU memory overhead.
- Tethered to the reference policy: Because $R$ retracts toward the frozen BC support, RetraQ cannot easily discover radically new behaviors far outside the original demonstrations. Future work could constrain velocity derivatives during training or gradually update the reference flow alongside exploration.
Summary updated