Stabilized Neural Differential Equations for Learning Dynamics with Explicit Constraints
Alistair White, Niki Kilbertus, Maximilian Gelbrecht, Niklas Boers
TL;DR
The paper addresses learning dynamical systems from data under explicit constraints such as conservation laws or holonomic restrictions. It proposes Stabilized Neural Differential Equations (SNDEs), which augment the learned vector field with a stabilization term that enforces the constraint manifold $\mathcal{M} = \{u : g(u,t)=0\}$. Theoretical guarantees show that, with a stabilization matrix $F$ making $G(u)F(u)$ symmetric positive definite and a sufficiently large $\\gamma$, the manifold is asymptotically stable, while on $\mathcal{M}$ the stabilization vanishes and original dynamics are preserved. Empirically, SNDEs improve long-term fidelity and constraint satisfaction across autonomous and non-autonomous problems (two-body, rigid body, DC-DC converter, controlled robot arm, double pendulum), enabling reliable learning under conservation laws and controls with modest computational overhead.
Abstract
Many successful methods to learn dynamical systems from data have recently been introduced. However, ensuring that the inferred dynamics preserve known constraints, such as conservation laws or restrictions on the allowed system states, remains challenging. We propose stabilized neural differential equations (SNDEs), a method to enforce arbitrary manifold constraints for neural differential equations. Our approach is based on a stabilization term that, when added to the original dynamics, renders the constraint manifold provably asymptotically stable. Due to its simplicity, our method is compatible with all common neural differential equation (NDE) models and broadly applicable. In extensive empirical evaluations, we demonstrate that SNDEs outperform existing methods while broadening the types of constraints that can be incorporated into NDE training.
