Research
RFPO: Rectified Flow Policy Optimization for Embodied Control
Flow-based policies generate robot actions by numerically integrating an ordinary differential equation, which is expressive but expensive at inference time.

- arXiv
- 2610.10453 · Preprint · not peer-reviewed
- Published
- 2026-10-07
- Authors
- Ting Huang, Lisiyu Pan, Haoyu Wang, Zeyu Zhang, Siyuan Qian, Yanjun Li, Yandong Guo, Boxin Shi, Hao Tang
In plain words
Flow-based policies generate robot actions by numerically integrating an ordinary differential equation, which is expressive but expensive at inference time. Simply using fewer integration steps breaks control, because policies are trained under a full 64-step budget and are never constrained to behave well when that budget is cut.
AI summary
Overview
Research area: Robotics — reinforcement learning for legged locomotion, with a focus on generative (flow-matching / rectified-flow) policies for continuous control.
Technical level: Advanced. The paper assumes familiarity with reinforcement learning (PPO, actor–critic, advantages), flow matching and rectified flow, and ODE solvers for generative models.
Scope: The paper introduces RFPO, a training framework that makes reward-optimized flow policies reliable when executed with a single Euler integration step, and validates it across two quadruped and two humanoid robots in simulation plus one real quadruped.
What This Paper Is About
Flow-based policies generate robot actions by numerically integrating an ordinary differential equation, which is expressive but expensive at inference time. Simply using fewer integration steps breaks control, because policies are trained under a full 64-step budget and are never constrained to behave well when that budget is cut. The paper names this mismatch the "few-step discretization gap" and proposes training-time fixes so that a policy trained for 64 steps can be deployed at 1 step with essentially the same reward.
Key Contributions
-
Identifies the few-step discretization gap. The authors show that aggressively reducing the numerical integration budget of a reward-optimized flow policy can severely degrade control even when full-step performance is strong, and that this failure is not fixed by action distillation alone.
-
Introduces reward-aware online Reflow. During on-policy learning, the current student policy generates its own full-budget endpoints (with stop-gradient), and its transport paths are re-straightened toward those endpoints, weighted by positive on-policy advantage. This reshapes the vector field so coarse integration is more accurate.
-
Adds complementary multi-budget action-space supervision. A frozen Gaussian PPO controller supplies action targets at the full and intermediate budgets {64, 8, 4} — notably excluding 1 step — so one-step behavior is never directly supervised by a teacher. An auxiliary adaptive compute regularizer (with a learned budget predictor over {1, 4, 8, 16, 64}) further varies the budgets seen in training and penalizes expected solver cost.
-
Demonstrates robust one-step deployment. Across Unitree Go2, Boston Dynamics Spot, Unitree H1, and Unitree G1, one-step execution stays within 2.4% of 64-step returns under both zero and random initialization; on Go2 the deployed single flow student runs in 0.08 ms mean latency versus 4.39 ms at 64 steps, a 54.9× speedup, and transfers to real-robot locomotion.
Main Findings
-
The gap is real and severe for baselines. On Unitree Go2 with zero initialization, FPO++ drops from 21.29 at 64 steps to −187.70 at one step, and KD-only (PPO action supervision without Reflow) collapses from 29.95 to −4919.70. Both baselines also degrade badly on Spot, H1, and G1.
-
Reflow is the primary mechanism. Uniform Reflow alone holds a nearly flat return profile on Go2 from 64 to one step (33.57 → 32.84), and reward-aware Reflow is similarly robust (32.78 → 33.40). Adding action distillation raises the full-budget controller further (Reflow+KD: 34.65 → 34.39) while preserving few-step behavior.
-
Full RFPO gives the best combination. The complete method reaches 34.78 at 64 steps and 34.25 at one step on Go2, against a PPO reference of 35.58. Under zero initialization, the 64-to-1-step change is −1.5% on Go2, +0.4% on Spot, −0.9% on H1, and +1.7% on G1; under random initialization all four embodiments stay within 2.4%.
-
Reward preservation alone is not enough. RA-Reflow keeps high one-step episodic reward (33.40) but has a one-step forward-velocity tracking error of 0.805, showing reward robustness does not guarantee accurate command following. FPO++ and KD-only show tracking errors of 0.883 and 0.810 with fall fractions of 0.680 and 0.334. Reflow (0.070), Reflow+KD (0.068), and RFPO (0.075) all show zero one-step falls; PPO's tracking error is 0.055.
-
Large onboard latency reduction. On the Go2 onboard CPU with single-thread ONNX Runtime, mean latency falls from 4.39 ms (64 steps) to 0.08 ms (1 step), a 54.9× speedup, while p99 latency falls from 20.06 ms to 0.10 ms — the former roughly matching a 50 Hz control period.
-
Real-robot one-step locomotion works. A fixed one-step policy with zero initialization runs forward, lateral, and yaw commands on a Unitree Go2. Matched-command replay shows joint-position correlations of 0.992–0.997 and MAE of 0.055–0.085 between simulation and hardware.
-
Learned transport is structured. Visualizing action-flow densities for hip and thigh joints across all four legs shows concentrated transport bands that evolve smoothly over flow time, complementing the numerical robustness results.
Methodology in Plain English
The starting point is an existing on-policy reinforcement learning method for flow policies (FPO++), which trains the policy to maximize reward but only ever evaluates it at the full 64-step integration budget. The authors keep that objective and bolt on three training-only signals.
First, they let the current policy generate its own action for an observation using the full budget, freeze that as a target, and then train the policy to travel in a straight line from the noise to that target. This is the Reflow idea, but applied continuously during on-policy training and weighted so that samples with positive advantage — behavior that actually earned reward — dominate the rectification. Some of these auxiliary samples start from pure zeros rather than random noise (probability 0.25), which matches how the policy is used at deployment.
Second, they train a separate, ordinary Gaussian PPO controller and freeze it. The flow policy is then nudged so that its outputs at 64, 8, and 4 integration steps match that controller's action. One step is deliberately left out, so the deployed behavior is not simply copied from the teacher at one step.
Third, a small learned module guesses, per observation, which integration budget to use among {1, 4, 8, 16, 64}, and the policy is trained to match its own full-budget zero-initialized action at that guessed budget, while a penalty discourages expensive budgets. This exposes the network to many budgets during training.
At deployment, the teacher, the budget predictor, and all auxiliary losses are discarded. Only the flow student remains, run from zero initial noise with exactly one Euler step. Evaluation uses 256 parallel environments (256 episodes per setting) with an EMA checkpoint (decay 0.95, 500-step warm-up), and the real-robot test uses the official Unitree-Go2-Velocity task with a 45-D proprioceptive observation and joint-control targets through the low-level PD interface.
Why This Matters
Impact on research. The paper reframes few-step acceleration of generative policies as a training-time property to be optimized jointly with reward, not a post-hoc distillation step. It provides a concrete failure mode (the discretization gap) and shows that reward robustness and control fidelity are separable properties that need separate mechanisms — a distinction that prior flow-RL work did not isolate.
Real-world applications:
- Legged robot locomotion on onboard compute, where control loops run at tens of hertz and inference must fit inside the cycle with headroom.
- Humanoid whole-body control, where the same policy class is attractive but per-step inference cost is higher.
- Battery- and thermally-constrained untethered robots, where a 54.9× reduction in inference time translates into energy and heat savings.
- Safety-critical loops needing predictable tail latency — the p99 drop from 20.06 ms to 0.10 ms matters more than the mean for real-time guarantees.
Industry relevance. Any deployment of flow- or diffusion-based policies (including vision-language-action models such as π₀ that the paper cites) on edge hardware faces the same integration-cost bottleneck. A method that removes the teacher and auxiliary modules at deployment, leaving one network and one Euler step, is directly compatible with existing ONNX-based onboard stacks.
Future Directions
- Broaden hardware validation. The authors note real-robot evidence is limited to Unitree Go2 locomotion; humanoid platforms and contact-rich tasks remain untested in the real world.
- Move beyond matched-command consistency. The current sim-to-real analysis measures joint-position agreement under replayed commands, not full state-level equivalence, leaving a stronger validation open.
- Cut training overhead. Online Reflow needs full-budget student rollouts, and distillation needs a separately trained frozen PPO teacher; reducing this dependency is flagged as important for scalability.
- Adapt the budget online. Deployment uses a fixed one-step solver while the adaptive compute predictor is training-only; letting the policy choose its integration budget from the current control state could improve the accuracy–efficiency trade-off for highly dynamic behaviors.
Target Audience
Robotics and embodied-AI researchers working on generative policies, flow matching, or diffusion-based control; reinforcement learning practitioners interested in deploying learned controllers under tight latency budgets; and engineers building onboard inference stacks for legged or humanoid robots who need real-time guarantees from iterative generative models. Readers without a background in flow matching or on-policy RL will find the method sections demanding, though the problem statement and headline results are accessible.
Authors’ abstract
Flow-based policies provide an expressive framework for continuous robot control, but their iterative ODE integration incurs substantial inference cost. Naively reducing the integration budget can severely degrade control, since policies optimized under full-step execution are not explicitly constrained to remain reliable under coarse numerical integration. We refer to this mismatch as the few-step discretization gap. To address this problem, we introduce RFPO, a flow-policy…
The full abstract on arXivRelated papers
- JEPA4R: Embodied JEPA World Models with 4D Point Planning 2026-11-15 · cs.RO · Also by Hao Tang, Yanjun Li +1
- SEES: A Self-Evolving Embodied System via Failure-Guided VLA Policy Adaptation 2026-09-26 · cs.RO · Also by Haoyu Wang, Yandong Guo
- DeTac: Dual-branch Decoupling of Texture and Force Signals in Vision-Based Tactile Sensors 2026-10-12 · cs.RO · Also by Boxin Shi, Yandong Guo
- Code2Worlds-2: Physically Plausible Agent Harness for Embodied World Simulation 2026-10-13 · cs.RO · Also by Hao Tang, Zeyu Zhang
- Language-Forcing: Advancing Humanoid Loco-Manipulation via Semantic Alignment of Whole-Body World Action Models 2026-09-28 · cs.RO · Also by Hao Tang, Yanjun Li