Abstract
Diffusion policies have emerged as powerful generative models for offline policy learning, whose sampling process can be rigorously characterized by a score function guiding a Stochastic Differential Equation (SDE). However, the same score-based SDE modeling that grants diffusion policies the flexibility to learn diverse behavior also incurs solver and score-matching errors, large data requirements, and inconsistencies in action generation. While less critical in image generation, these inaccuracies compound and lead to failure in continuous control settings. We introduce Contractive Diffusion Policies (CDPs) to induce contractive behavior in the diffusion sampling dynamics. Contraction pulls nearby flows closer to enhance robustness against solver and score-matching errors while reducing unwanted action variance. We develop an in-depth theoretical analysis along with a practical implementation recipe to incorporate CDPs into existing diffusion policy architectures with minimal modification and computational cost. We evaluate CDPs for offline learning by conducting extensive experiments in simulation and real-world settings. Across benchmarks, CDPs often outperform baseline policies, with pronounced benefits under data scarcity.
Introduction
Diffusion models have gained significant traction in robotics due to their ability to represent complex, multimodal action distributions—essential for tasks where a robot must choose between several valid paths. These models operate by iteratively "denoising" random noise into a valid action using a learned score function.
However, the underlying mathematical framework, typically based on score-based Stochastic Differential Equations (SDEs), is highly sensitive. Small errors in the learned score function or numerical inaccuracies during the denoising steps can accumulate. While a minor error in image generation might result in a slightly off-color pixel, in robotics, it can lead to catastrophic failure, such as missing a grasp or colliding with an object. Consequently, standard diffusion policies often require massive amounts of data to achieve stability.
Methodology: Contractive Diffusion Policies
To address these challenges, we introduce Contractive Diffusion Policies (CDPs). The core innovation is the application of Contraction Theory to the diffusion sampling process. A contractive system is one where solutions converge over time, effectively "forgetting" initial perturbations and pulling nearby trajectories toward a dominant path.
The CDP framework incorporates a practical "recipe" for enhancing existing diffusion architectures:
- Contraction Loss: A penalty term is added to the training objective that encourages the Jacobian of the score function to satisfy a specific contraction condition.
- Efficient Computation: To minimize overhead, the method uses Power Iteration to estimate the largest eigenvalue of the Jacobian, avoiding the high cost of full spectral decomposition.
- Local Contraction: Crucially, CDPs enforce local contraction. This allows the model to maintain multiple distinct behavioral modes (e.g., approaching an object from different sides) while ensuring that once a mode is selected, the denoising process remains highly stable and resistant to noise.
Experimental Evaluation
We evaluated CDPs across a wide range of benchmarks, including D4RL (locomotion and manipulation), Robomimic (tabletop tasks), and real-world experiments on a Franka Emika Panda robot.
Key Results
- Superior Performance: In the D4RL suite, CDPs achieved an average reward of 65.7, outperforming the next best baseline (EDP) at 61.2 and significantly exceeding standard methods like IQL (54.9).
- Robustness to Data Scarcity: CDPs demonstrate their greatest advantage when training data is limited. As shown in the "Limited Data" benchmarks, CDPs maintain high performance while standard baselines experience sharp declines. For instance, in the Kitchen task with limited data, CDP achieved a reward of ~54 compared to ~43 for the baseline.
- Real-World Precision: On physical hardware, CDPs were notably more successful in high-precision tasks. In "Peg-in-hole" insertion, which requires tight tolerances, CDPs achieved a significantly higher success rate than standard Diffusion Behavioral Cloning (DBC).
Conclusion
Contractive Diffusion Policies provide a robust framework for action generation in robotics. By actively shaping the dynamics of the diffusion solver during training, CDPs mitigate the impact of numerical errors and reduce unwanted action variance. This leads to more reliable behavior, particularly in data-scarce and high-precision environments. Future work will investigate the sensitivity of the contraction hyperparameter and the potential for applying these principles to other generative architectures.
Summary updated