Abstract
Diffusion policies have emerged as a powerful tool for learning complex robotic behaviors from human demonstrations. However, they often struggle with out-of-distribution states encountered during real-world deployment. This paper introduces OTPR (Optimal Transport-guided score-based diffusion Policy for RL fine-tuning), a novel framework that leverages Optimal Transport (OT) theory to stably and efficiently fine-tune diffusion policies using Reinforcement Learning (RL). By treating the RL Q-function as a transport cost and utilizing expert data to guide the mapping, OTPR achieves state-of-the-art performance and unprecedented training stability across complex robotic manipulation benchmarks.
Introduction
In modern robotics, Imitation Learning (IL) via Diffusion Policies is highly effective because diffusion models can handle multi-modal action distributions and high-dimensional spaces. Despite these strengths, IL is fundamentally limited by its training data; if a robot encounters a state outside its demonstration dataset, errors compound, leading to policy failure.
Reinforcement Learning (RL) is the natural solution, allowing robots to explore and adapt via trial-and-error. However, fine-tuning massive, iterative diffusion models with standard RL algorithms is notoriously difficult, often resulting in severe training instability or "catastrophic forgetting" of valuable expert priors. OTPR seeks a mathematically grounded way to merge the strong priors of diffusion-based IL with the adaptability of online RL.
Methods
OTPR frames policy optimization as an Optimal Transport problem, viewing the policy as a "transport map" that moves mass from a distribution of states to a distribution of actions.
The core innovations of the OTPR framework include:
- The OT Formulation: The RL Q-function acts as the transport cost (specifically, the goal is to minimize the negative Q-value). This provides a rigorous, closed-loop way to apply RL to diffusion models.
- Masked Optimal Transport: To avoid the computational burden of solving OT from scratch, OTPR uses expert demonstration data as "keypoints." A binary mask forces the transport plan to respect known expert state-action pairs, ensuring the model retains expert knowledge during exploration.
- Compatibility-Based Resampling: Standard mini-batch training can be unstable for score-based models in RL. OTPR addresses this by generating multiple actions, scoring them using a "compatibility function" derived from OT dual variables, and resampling the best ones to guide the diffusion model's training. This acts as a "soft" guide, creating a much smoother training signal than direct gradients.
Experimental Results
The authors evaluated OTPR on three challenging simulation benchmarks: Robomimic (Can and Square tasks), Franka-Kitchen (Complete, Mixed, and Partial sequences), and CALVIN (a long-horizon, language-conditioned benchmark).
Key Insights
- Performance Leaps: OTPR significantly outperforms existing demo-augmented RL and diffusion fine-tuning baselines. In the Franka-Kitchen-Complete-v0 task, OTPR improved the offline pre-trained score from 61 to 92. In the Robomimic Can-State task, it reached a near-perfect score of 99.
- Unprecedented Stability: While baselines like DQL and IDQL often suffer from performance crashes during online interaction, OTPR maintains monotonic, stable improvement.
- Mathematical Synergy: By viewing the Q-function as a transport cost, the optimal policy equates to the optimal transport map, allowing RL to be applied without hacking the underlying diffusion architecture.
Conclusion and Future Work
OTPR demonstrates that Optimal Transport provides a robust mathematical bridge between imitation learning and reinforcement learning for diffusion policies. While highly effective, future work will focus on scaling the OT computations to even larger state-action spaces and exploring the integration of this framework with other non-diffusion policy architectures.
Summary updated