In this paper, we consider the problem of repairing a data-trained Rectified Linear Unit (ReLU) Neural Network (NN) controller for a discrete-time, input-affine system. That is we assume that such a NN controller is available, and we seek to repair unsafe closed-loop behavior at one known “counterexample” state while simultaneously preserving a notion of safe closed-loop behavior on a separate, verified set of states. To this end, we further assume that the NN controller has a Two-Level Lattice (TLL) architecture, and exhibit an algorithm that can systematically and efficiently repair such an network. Facilitated by this choice, our approach uses the unique semantics of the TLL architecture to divide the repair problem into two significantly decoupled sub-problems, one of which is concerned with repairing the un-safe counterexample – and hence is essentially of local scope – and the other of which ensures that the repairs are realized in the output of the network – and hence is essentially of global scope. We then show that one set of sufficient conditions for solving each these sub-problems can be cast as a convex feasibility problem, and this allows us to formulate the TLL repair problem as two separate, but significantly decoupled, convex optimization problems. Finally, we evaluate our algorithm on a TLL controller on a simple dynamical model of a four-wheel-car.
[1]
Yasser Shoukry,et al.
Bounding the Complexity of Formally Verifying Neural Networks: A Geometric Approach
,
2020,
2021 60th IEEE Conference on Decision and Control (CDC).
[2]
Sebastian Kauschke,et al.
Towards Neural Network Patching: Evaluating Engagement-Layers and Patch-Architectures
,
2018,
ArXiv.
[3]
Johannes Fürnkranz,et al.
Batchwise Patching of Classifiers
,
2018,
AAAI.
[4]
Weiming Xiang,et al.
NNV: The Neural Network Verification Tool for Deep Neural Networks and Learning-Enabled Cyber-Physical Systems
,
2020,
CAV.
[5]
Aditya V. Thakur,et al.
Correcting Deep Neural Networks with Small, Generalizing Patches
,
2019
.
[6]
Yasser Shoukry,et al.
AReN: assured ReLU NN architecture for model predictive control of LTI systems
,
2019,
HSCC.
[7]
Guy Katz,et al.
Minimal Modifications of Deep Neural Networks using Verification
,
2020,
LPAR.