TL;DR
RFPO (Rectified Flow Policy Optimization) enables expressive flow-based robot policies to run in a single Euler step, achieving up to a 55x inference speedup without sacrificing control performance. By integrating reward-aware path rectification directly into on-policy reinforcement learning, it bridges the "discretization gap" that typically causes few-step generative policies to fail.
What Problem Does This Paper Address?
Generative policies, such as those based on diffusion or flow matching, are highly expressive and can represent complex, multi-modal action distributions that standard Gaussian policies (like those used in PPO) cannot. However, they come with a heavy "inference tax": generating an action requires iteratively solving an ODE, often taking 64 or more steps.
In the high-frequency world of robotics (e.g., 50Hz control loops), this latency is a dealbreaker. Simply reducing the number of steps (e.g., to 1 or 4) leads to a few-step discretization gap. Because the policy was trained to be optimal at 64 steps, its internal "trajectories" from noise to action are often curved; a coarse one-step jump misses the target entirely, leading to unstable behavior or robot falls.
Methods
RFPO introduces a framework to train a "flow student" that is inherently robust to coarse integration. Its architecture consists of three main pillars:
- Reward-Aware Online Reflow: The authors adapt the "Reflow" technique—which straightens ODE transport paths—to an online RL setting. During training, the student generates full-budget endpoints. RFPO then minimizes a regression loss to make the paths toward these endpoints straight. Crucially, this loss is weighted by the RL advantage, focusing the "straightening" effort on actions that actually lead to high rewards.
- Multi-Budget Action Distillation: To keep the student grounded, a frozen, pre-trained Gaussian PPO teacher provides stable action targets. The student is trained to match these targets across various integration budgets (e.g., 4, 8, and 64 steps). Interestingly, the student is not directly supervised at 1 step; its one-step proficiency emerges from the combination of Reflow and multi-budget anchoring.
- Adaptive Compute Regularization: An auxiliary module encourages the policy to maintain consistency across different solver budgets while penalizing unnecessary computation, further pushing the model toward low-step reliability.
Datasets
The method was evaluated in simulation across four distinct robot embodiments:
- Quadrupeds: Unitree Go2 and Boston Dynamics Spot.
- Humanoids: Unitree H1 and Unitree G1 (29 Degrees of Freedom).
Training utilized embodiment-specific proprioceptive observations and reward functions (e.g., velocity tracking). Real-world validation was conducted specifically on the Unitree Go2 for locomotion tasks.
Key Insights and Ideas
- Geometry is Destiny: The failure of few-step generative policies is a geometric problem. By forcing the vector field to be "straight" (rectified), a single Euler step becomes a mathematically sound approximation of the full ODE.
- Advantage Weighting Matters: Standard Reflow treats all data equally. RFPO's "Reward-aware" twist ensures the model doesn't waste capacity straightening paths for "bad" actions that the RL agent shouldn't be taking anyway.
- Zero-Initialization for Deployment: While training uses Gaussian noise, the authors found that using a fixed zero-initialization at deployment (setting $\epsilon=0$) provides the most stable deterministic control for real-world robotics.
Key Results
- Massive Speedup: On the Unitree Go2's onboard CPU, RFPO reduced mean inference latency from 4.39 ms (64 steps) to 0.08 ms (1 step)—a 54.9x improvement.
- Performance Preservation: Across all four robots, one-step execution remained within 2.4% of the 64-step reward. On the Go2, it retained 98.5% of the full-step reward, whereas baselines like FPO++ collapsed completely at one step.
- Command Tracking: RFPO maintained precise velocity tracking and zero falls at one step, while other methods exhibited large tracking errors or frequent falls.
Limitations and Future Work
- Training Complexity: The deployment efficiency comes at the cost of higher training overhead, as it requires full-budget student rollouts and a separate teacher model.
- Teacher Dependency: The current framework relies on a pre-trained PPO teacher for distillation; removing this dependency would improve scalability.
- Static vs. Dynamic Budget: Currently, the one-step solver is fixed at deployment. The authors suggest that future versions could dynamically adjust the integration budget based on the complexity of the current robot state (e.g., using more steps for a recovery maneuver and fewer for steady walking).
Summary updated