Abstract: Diffusion policies (DPs) achieve state-of-the-art performance on complex manipulation tasks by learning from large-scale demonstration datasets, often spanning multiple embodiments and environments. However, they cannot guarantee safe behavior, so external safety mechanisms are needed. These, however, alter actions in ways unseen during training, causing unpredictable behavior and performance degradation. To address these problems, we propose path-consistent safety filtering (PACS) for DPs. Our approach performs path-consistent braking on a trajectory computed from the sequence of generated actions. In this way, we keep execution consistent with the policy's training distribution, maintaining the learned, task-completing behavior. To enable a real-time deployment and handle uncertainties, we verify safety using set-based reachability analysis. Our experimental evaluation in simulation and on three challenging real-world human-robot interaction tasks shows that PACS (a) provides formal safety guarantees in dynamic environments, (b) preserves task success rates, and (c) outperforms reactive safety approaches, such as control barrier functions, by up to 68% in terms of task success.
Introduction
Imitation learning, particularly through Diffusion Policies (DPs), has enabled robots to perform remarkably complex, long-horizon manipulation tasks. However, these models are essentially "black boxes" that lack inherent understanding of safety constraints, such as avoiding a moving human hand. In real-world deployments, external safety filters are typically employed to prevent collisions.
The standard approach involves using reactive filters, such as Control Barrier Functions (CBFs), which "nudge" or steer the robot away from imminent collisions. However, DPs are extremely sensitive to Out-of-Distribution (OOD) states. When a reactive filter pushes the robot into a pose it never encountered during training, the policy often fails, leading to erratic behavior or task abandonment. This creates a catch-22: safety filters are necessary for deployment, but the filters themselves often cause the policy to fail the task.
Path-Consistent Safety Filtering (PACS)
To resolve this conflict, we introduce Path-Consistent Safety Filtering (PACS). The core innovation is a shift in strategy: instead of pushing the robot away from its intended path to avoid a collision, PACS modifies only the robot's speed along that path.
Methodology
The PACS framework operates through a multi-stage process designed for high-frequency real-time execution:
- Trajectory Generation: DPs typically output an "action chunk"—a sequence of future target positions. PACS takes this entire chunk and computes a time-optimized, kinematically feasible trajectory.
- Reachability Analysis: Using the SaRA framework, the system performs set-based reachability analysis at 1 kHz. It calculates the "reachable occupancy" of both the robot and dynamic obstacles (like humans), accounting for measurement errors and sensor delays.
- The Failsafe Mechanism: Every millisecond, the filter evaluates whether the robot can still come to a complete stop safely before a collision occurs. If a collision is predicted, it triggers a "path-consistent" braking maneuver, stopping the robot exactly on its intended trajectory.
- Observation Design: To ensure the policy remains stable when the robot slows down, velocity information is omitted from the policy's observations, allowing it to focus on visual inputs and joint angles.
Experimental Evaluation
We evaluated PACS across simulated benchmarks (robomimic) and three real-world Human-Robot Interaction (HRI) tasks: Sorting (moving blocks amidst human interference), Handover (grabbing blocks from a human hand), and Feeding (placing a utensil near a human's mouth).
Key Results
- Higher Success Rates: In simulation, PACS outperformed traditional reactive CBFs by up to 68% in task success. As shown in the trajectory analysis, CBFs frequently pushed the robot into OOD regions where it could not recover, whereas PACS maintained the robot within the training distribution.
- Formal Safety Guarantees: In real-world hardware tests, while an unfiltered baseline violated safety constraints in 56% of timesteps, PACS achieved 0% safety violations while maintaining an 80% task success rate.
- Computational Efficiency: The system is highly efficient, with an average safety-step computation time of just 0.20 ms, facilitating 1 kHz deployment.
Conclusion and Future Work
PACS demonstrates that for imitation learning policies, "braking" is a safer and more effective intervention than "steering." By ensuring the robot remains on its intended path, we can provide formal safety guarantees without sacrificing the performance of state-of-the-art diffusion models.
Future research will focus on extending PACS to handle complex static obstacles, which may require constraint-aware online replanning. Additionally, we aim to automate the definition of safety constraints (e.g., allowable impact forces for different body parts) through advanced semantic scene understanding.
Summary updated