Ensuring Deployment-Time Safety of Neural Network Controlled Systems via Localized Certificate Repair
Xiaoyang Lv ⋅ Peixin Wang ⋅ Jianhao Bai ⋅ Bai Xue ⋅ Min Zhang ⋅ Luke Ong
Abstract
Barrier certificates provide formal safety guarantees for neural network controlled systems by ensuring that system trajectories avoid unsafe regions over time. However, after deployment, previously unseen obstacles or constraint changes may introduce new unsafe regions, invalidating the original certificate and potentially leading to unsafe behavior. We address this setting with $\textit{adaptive piecewise barrier certificates}$, which preserve the original certificate and policy in unchanged regions while introducing localized updates around newly emerged unsafe regions. The central question is how to perform such updates efficiently during system execution without retraining from scratch. Our key idea is to cast deployment-time adaptation as a localized certificate repair problem and reduce it to an optimization task that leverages the learned structure of previous barrier certificates, enabling fast updates without global retraining. We further design a staged repair framework that progressively transitions from localized repair to joint policy–certificate updates and, when necessary, localized retraining. Empirical results on four benchmarks with five new obstacles show that our method succeeds in all cases and completes within tens of seconds on average, whereas retraining from scratch fails in most cases. On instances where retraining succeeds, our method is \textbf{17.3$\times$} faster on average. It incurs only \textbf{16.2\%} performance degradation relative to the original policy.
Chat is not available.
Successful Page Load