KDPE: A Kernel Density Estimation Strategy for Diffusion Policy Trajectory Selection
Andrea Rosasco, Federico Ceola, Giulia Pasquale, Lorenzo Natale
TL;DR
KDPE introduces a kernel density estimation-based trajectory selection strategy to mitigate out-of-distribution risks in Diffusion Policy. By sampling $N$ DP trajectories per observation and applying a manifold-aware KDE over the final actions, KDPE selects trajectories aligned with learned multimodal modes while incurring minimal test-time overhead. Empirical results across RoboMimic, MimicGen, and real-robot tasks show KDPE improves average success rates and robustness to visual perturbations, with modest inference-time costs. The approach offers a practical, plug-in enhancement for multimodal imitation in visuomotor manipulation with potential extensions to higher-dimensional settings.
Abstract
Learning robot policies that capture multimodality in the training data has been a long-standing open challenge for behavior cloning. Recent approaches tackle the problem by modeling the conditional action distribution with generative models. One of these approaches is Diffusion Policy, which relies on a diffusion model to denoise random points into robot action trajectories. While achieving state-of-the-art performance, it has two main drawbacks that may lead the robot out of the data distribution during policy execution. First, the stochasticity of the denoising process can highly impact on the quality of generated trajectory of actions. Second, being a supervised learning approach, it can learn data outliers from the dataset used for training. Recent work focuses on mitigating these limitations by combining Diffusion Policy either with large-scale training or with classical behavior cloning algorithms. Instead, we propose KDPE, a Kernel Density Estimation-based strategy that filters out potentially harmful trajectories output of Diffusion Policy while keeping a low test-time computational overhead. For Kernel Density Estimation, we propose a manifold-aware kernel to model a probability density function for actions composed of end-effector Cartesian position, orientation, and gripper state. KDPE overall achieves better performance than Diffusion Policy on simulated single-arm tasks and real robot experiments. Additional material and code are available on our project page at https://hsp-iit.github.io/KDPE/.
