Provably Safe Neural Network Controllers via Differential Dynamic Logic

Samuel Teuber, Stefan Mitsch, André Platzer
2/16/2024
eess.SYcs.AIcs.LG

No official code found. Best implementation: samysweb/NCubeV (4 stars, GPL-3.0, last commit 2025-11-10).

Abstract

While neural networks (NNs) have potential as autonomous controllers for Cyber-Physical Systems, verifying the safety of NN based control systems (NNCSs) poses significant challenges for the practical use of NNs, especially when safety is needed for unbounded time horizons. One reason is the intractability of analyzing NNs, ODEs and hybrid systems. To this end, we introduce VerSAILLE (Verifiably Safe AI via Logically Linked Envelopes): The first general approach that allows reusing control theory results for NNCS verification. By joining forces, we exploit the efficiency of NN verification tools while retaining the rigor of differential dynamic logic (dL). Based on provably safe control envelopes in dL, we derive specifications for the NN which is proven via NN verification. We show that a proof of the NN adhering to the specification is mirrored by a dL proof on the infinite-time safety of the NNCS. The NN verification properties resulting from hybrid systems typically contain nonlinear arithmetic and arbitrary logical structures while efficient NN verification merely supports linear constraints. To overcome this divide, we present Mosaic: An efficient, sound and complete verification approach for polynomial real arithmetic properties on piece-wise linear NNs. Mosaic partitions complex verification queries into simple queries and lifts off-the-shelf linear constraint tools to the nonlinear setting in a completeness-preserving manner by combining approximation with exact reasoning for counterexample regions. Our evaluation demonstrates the versatility of VerSAILLE and Mosaic: We prove infinite-time safety on the classical Vertical Airborne Collision Avoidance NNCS verification benchmark for two scenarios while (exhaustively) enumerating counterexample regions in unsafe scenarios. We also show that our approach significantly outperforms State-of-the-Art tools in closed-loop NNV.

View on arXivView PDF

Code Implementations(1)

samysweb/NCubeVCommunity100%
GPL-3.0

NCubeV - The Nonlinear Neural Network Verifier

41C++, SMTMar 31, 202211 months agoGPL-3.0
neural-network-verificationsmtverification

Similar Papers

Cite this paper

@article{teuber2024provably,
  title  = {Provably Safe Neural Network Controllers via Differential Dynamic Logic},
  author = {Samuel Teuber and Stefan Mitsch and André Platzer},
  year   = {2024},
  eprint = {2402.10998},
  archivePrefix = {arXiv},
  doi    = {10.48550/arXiv.2402.10998},
  url    = {http://arxiv.org/abs/2402.10998v3},
  journal = {NEURIPS 2024 2024}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2402.10998.svg)](https://codeofpaper.com/paper/2402.10998)

Discussion