SpecRepair: Counter-Example Guided Safety Repair of Deep Neural Networks
Not on the map. Why?
Abstract (arXiv)
Deep neural networks (DNNs) are increasingly applied in safety-critical domains, such as self-driving cars, unmanned aircraft, and medical diagnosis. It is of fundamental importance to certify the safety of these DNNs, i.e. that they comply with a formal safety specification. While safety certification tools exactly answer this question, they are of no help in debugging unsafe DNNs, requiring the developer to iteratively verify and modify the DNN until safety is eventually achieved. Hence, a repair technique needs to be developed that can produce a safe DNN automatically. To address this need, we present SpecRepair, a tool that efficiently eliminates counter-examples from a DNN and produces a provably safe DNN without harming its classification accuracy. SpecRepair combines specification-based counter-example search and resumes training of the DNN, penalizing counter-examples and certifying the resulting DNN. We evaluate SpecRepair's effectiveness on the ACAS Xu benchmark, a DNN-based controller for unmanned aircraft, and two image classification benchmarks. The results show that SpecRepair is more successful in producing safe DNNs than comparable methods, has a shorter runtime, and produces safe DNNs while preserving their classification accuracy.
Key facts. Cited by 6 papers in the map (data through 7 Oct 2026). Builds on 14 of its 37 references that are in the map. First posted on arXiv 3 Jun 2021.
Builds on
14 of 37 references.
References · 14
- 2014Explaining and Harnessing Adversarial Examplescited by 7,287
- 2017Towards Deep Learning Models Resistant to Adversarial Attackscited by 6,326
- 2013Intriguing properties of neural networkscited by 5,114
- 2017Reluplex: An Efficient SMT Solver for Verifying Deep Neural Networkscited by 739
- 2019HopSkipJumpAttack: A Query-Efficient Decision-Based Attackcited by 328
- 2016Safety Verification of Deep Neural Networkscited by 262
- 2019Algorithms for Verifying Deep Neural Networkscited by 221
- 2019Parsimonious Black-Box Adversarial Attacks via Efficient Combinatorial Optimizationcited by 49
- 2021Provable Repair of Deep Neural Networkscited by 39
- 2019Outside the Box: Abstraction-Based Monitoring of Neural Networkscited by 36
- 2021NNrepair: Constraint-based Repair of Neural Network Classifierscited by 24
- 2020Into the Unknown: Active Monitoring of Neural Networkscited by 19
2 more
- 2020Towards Repairing Neural Networks Correctlycited by 13
- 2020Provably-Robust Runtime Monitoring of Neuron Activation Patternscited by 9
Built on by
Citing papers per year: 2023: 2; 2024: 3; 2025: 0; 2026: 1.
6 papers.
- 2024Marabou 2.0: A Versatile Formal Analyzer of Neural Networkscited by 81
- 2024Solving Probabilistic Verification Problems of Neural Networks using Branch and Boundcited by 4
- 2023A Robust Optimisation Perspective on Counterexample-Guided Repair of Neural Networkscited by 3
- 2024Counterexample-Guided Repair of Reinforcement Learning Systems Using Safety Criticscited by 1
- 2023Verifying Global Neural Network Specifications using Hyperpropertiescited by 0
- 2026Bad Genius: Counterfactual-Guided Harness Evolution Beyond Task-Specific Shortcutscited by 0
- 2026Bad Genius: Counterfactual-Guided Harness Evolution Beyond Task-Specific Shortcuts16 Sep 2026
- 2024Solving Probabilistic Verification Problems of Neural Networks using Branch and Bound27 May 2024
- 2024Counterexample-Guided Repair of Reinforcement Learning Systems Using Safety Critics24 May 2024
- 2024Marabou 2.0: A Versatile Formal Analyzer of Neural Networks25 Jan 2024
- 2023Verifying Global Neural Network Specifications using Hyperproperties21 Jun 2023
- 2023A Robust Optimisation Perspective on Counterexample-Guided Repair of Neural Networks26 Jan 2023