CCDP: Composition of Conditional Diffusion Policies with Guided Sampling

Amirreza Razmjoo, Sylvain Calinon, Michael Gienger, Fan Zhang

Introduction

Imitation learning (IL) has revolutionized how robots acquire complex skills by mimicking human demonstrations. Among current techniques, Diffusion Policies have emerged as a state-of-the-art approach for capturing multi-modal action distributions. However, a significant bottleneck remains: low-level failure recovery. When a robot encounters a failure—such as attempting to push a door that must be pulled—standard IL models often lack the mechanism to "try something else." Instead, they frequently sample actions similar to the failed attempt, leading to repetitive errors.

Existing solutions to this problem typically involve high-level symbolic planners, which are computationally expensive, or require massive datasets explicitly labeled with failure-and-recovery sequences. Composition of Conditional Diffusion Policies (CCDP) introduces a framework that enables robots to recover from failures by dynamically steering away from unsuccessful actions, utilizing only a dataset of successful demonstrations.

The CCDP Framework

CCDP is built on the principle of the "Product of Experts." Rather than training a single, monolithic neural network to handle all contingencies, the authors decompose the diffusion denoising process into several modular components. Each component, or "expert," provides a gradient that guides the action sampling process:

  1. Base Action Expert ($\epsilon_a$): Ensures the sampled actions align with the general distribution of the demonstration dataset.
  2. State Expert ($\epsilon_s$): Conditions the actions on the current robot and environment state.
  3. History Expert ($\epsilon_h$): Maintains temporal consistency by ensuring the next action follows the recent trajectory smoothly.
  4. Failure Avoidance Expert ($\epsilon_z$): This is the critical "negative guidance" term. It acts repulsively, pushing the sampling process away from regions of the action space associated with previous unsuccessful attempts.

By combining these experts, the system can incorporate an arbitrary number of failures. Each new failure simply adds another repulsive term to the denoising equation, allowing the robot to explore the remaining valid action space without needing a complex long-horizon memory.

Learning to Avoid without Failure Data

A key innovation of CCDP is its training strategy. Since the authors assume access only to successful demonstrations, they employ a data synthesis method to train the recovery model. By analyzing the expert dataset, the system identifies pairs of actions that occur in similar states but are dissimilar in their execution (e.g., sliding a door vs. lifting it). This allows the model to learn the concept of "alternative strategies." When a failure occurs, the Failure Avoidance Expert uses this learned knowledge to steer the robot toward these alternative expert behaviors.

Experimental Results

The researchers evaluated CCDP across five simulated robotic tasks designed to test logic and recovery: Door Opening (DO), Button Pressing (BP), Object Manipulation (OM), Object Packing (OP), and a Bartender (BT) task.

Performance and Efficiency

CCDP consistently outperformed standard Diffusion Policies (DP) and rejection-sampling baselines (DP*):

  • Success Rates: In the Door Opening task, where the robot must identify the correct mechanism (slide, pull, or lift), CCDP achieved a 99% success rate, compared to 76% for standard DP. In Object Packing, CCDP reached 94%, while standard DP fell to 10% because it could not stop attempting to place items in already-full baskets.
  • Search Efficiency: In the Button Pressing task, CCDP effectively "carved out" unsuccessful search areas, allowing the robot to find the target button significantly faster than baselines.

Preservation of Implicit Objectives

One of the most notable findings is that CCDP respects the "style" or underlying preferences of the demonstrations. In the Bartender task, where the expert prefers the closest available cup, CCDP selected the optimal "next closest" cup 97% of the time after a failure. In contrast, the DP baseline only managed 12%*, often choosing random cups and ignoring the proximity preference inherent in the expert data.

Limitations and Future Work

While CCDP provides a robust framework for recovery, several areas for improvement remain:

  • Feature Engineering: Currently, the key features of a failure (e.g., the specific action that failed) must be manually defined. Future iterations could utilize latent space extraction to identify these features autonomously.
  • Weight Sensitivity: The influence of different experts ($w_s, w_h, w_z$) is currently tuned manually. Improper weighting can lead to system instability or ineffective avoidance.
  • Dynamic Environments: The model assumes the cause of failure is static. In highly dynamic environments, an action that fails at one moment might be successful a few seconds later, a nuance CCDP is not yet designed to handle.

Conclusion

CCDP demonstrates that "negative guidance" is a powerful tool for robotic resilience. By decomposing diffusion policies into modular experts, robots can learn to steer away from mistakes and find alternative paths to success, all while remaining faithful to the nuances of human demonstrations.

Summary updated

BibTeX
@inproceedings{razmjoo2025ccdp,
  author = {Amirreza Razmjoo and Sylvain Calinon and Michael Gienger and Fan Zhang},
  title = {{CCDP: Composition of Conditional Diffusion Policies with Guided Sampling}},
  booktitle = {IEEE/RSJ International Conference on Intelligent Robots and Systems},
  year = {2025},
  doi = {10.1109/iros60139.2025.11247405},
}
Figure