Constraint-Aware Diffusion Guidance for Robotics: Real-Time Obstacle Avoidance for Autonomous Racing
Hao Ma, Sabrina Bodmer, Andrea Carron, Melanie Zeilinger, Michael Muehlebach
TL;DR
Safety-constrained real-time planning with diffusion models is challenging; CoDiG augments the reverse diffusion with a barrier-based potential so that $p_t(x_t|\mathcal{C}) = p_t(x_t) e^{-\gamma_t V(x_t;\mathcal{C})}/Z_t$ and its score is $\nabla_x \log p_t(x_t|\mathcal{C}) = \nabla_x \log p_t(x_t) - \gamma_t \nabla_x V(x_t;\mathcal{C})$, with a warm-start to speed up inference. The contributions include a general constraint-aware diffusion framework, a barrier-based inference mechanism, and a real-world autonomous racing demonstration with dynamic obstacles and 2.5 Hz planning, illustrating near time-optimal behavior under safety constraints. This work enables robust, real-time, constraint-satisfying diffusion-based planning across safety-critical robotic domains.
Abstract
Diffusion models hold great potential in robotics due to their ability to capture complex, high-dimensional data distributions. However, their lack of constraint-awareness limits their deployment in safety-critical applications. We propose Constraint-Aware Diffusion Guidance (CoDiG), a data-efficient and general-purpose framework that integrates barrier functions into the denoising process, guiding diffusion sampling toward constraint-satisfying outputs. CoDiG enables constraint satisfaction even with limited training data and generalizes across tasks. We evaluate our framework in the challenging setting of miniature autonomous racing, where real-time obstacle avoidance is essential. Real-world experiments show that CoDiG generates safe outputs efficiently under dynamic conditions, highlighting its potential for broader robotic applications. A demonstration video is available at https://youtu.be/KNYsTdtdxOU.
