Opt-ODENet: A Neural ODE Framework with Differentiable QP Layers for Safe and Stable Control Design (longer version)
Keyan Miao, Liqun Zhao, Han Wang, Konstantinos Gatsis, Antonis Papachristodoulou
TL;DR
Opt-ODENet addresses safe and stable learning-based control by fusing Neural ODEs with a differentiable QP layer that enforces hard safety constraints via CBFs, while CLFs are integrated into the loss to promote stability. The approach enables gradient-based learning without relying on nominal controllers or large datasets, using the adjoint method to backpropagate through both the continuous-time dynamics and the QP layer, and learning a flexible class-$\\mathcal{K}$ function for safety. Case studies on a unicycle and simulated cars demonstrate that learning the safety parameters (e.g., the CBF coefficient $\\kappa$ and higher-order CBFs) yields collision-free trajectories and faster convergence, even under varying obstacle configurations. The framework offers a practical, real-time-safe control solution with potential for extending to moving obstacles and more complex tasks, while paving the way for fully adaptive CBF design via learning.
Abstract
Designing controllers that achieve task objectives while ensuring safety is a key challenge in control systems. This work introduces Opt-ODENet, a Neural ODE framework with a differentiable Quadratic Programming (QP) optimization layer to enforce constraints as hard requirements. Eliminating the reliance on nominal controllers or large datasets, our framework solves the optimal control problem directly using Neural ODEs. Stability and convergence are ensured through Control Lyapunov Functions (CLFs) in the loss function, while Control Barrier Functions (CBFs) embedded in the QP layer enforce real-time safety. By integrating the differentiable QP layer with Neural ODEs, we demonstrate compatibility with the adjoint method for gradient computation, enabling the learning of the CBF class-$\mathcal{K}$ function and control network parameters. Experiments validate its effectiveness in balancing safety and performance.
