NNrepair: Constraint-based Repair of Neural Network Classifiers

Muhammad Usman, Divya Gopinath, Youcheng Sun, Yannic Noller, Corina Pasareanu
3/23/2021
cs.LGcs.AI

Official code: nnrepair/nnrepair (3 stars, Java, last commit 2020-08-29).

Abstract

We present NNrepair, a constraint-based technique for repairing neural network classifiers. The technique aims to fix the logic of the network at an intermediate layer or at the last layer.

Show full abstract

NNrepair first uses fault localization to find potentially faulty network parameters (such as the weights) and then performs repair using constraint solving to apply small modifications to the parameters to remedy the defects. We present novel strategies to enable precise yet efficient repair such as inferring correctness specifications to act as oracles for intermediate layer repair, and generation of experts for each class. We demonstrate the technique in the context of three different scenarios: (1) Improving the overall accuracy of a model, (2) Fixing security vulnerabilities caused by poisoning of training data and (3) Improving the robustness of the network against adversarial attacks. Our evaluation on MNIST and CIFAR-10 models shows that NNrepair can improve the accuracy by 45.56 percentage points on poisoned data and 10.40 percentage points on adversarial data. NNrepair also provides small improvement in the overall accuracy of models, without requiring new data or re-training.

View on arXivView PDF

Code Implementations(1)

nnrepair/nnrepairOfficial100%
35JavaAug 28, 20206 years ago

Similar Papers

Cite this paper

@article{usman2021nnrepair,
  title  = {NNrepair: Constraint-based Repair of Neural Network Classifiers},
  author = {Muhammad Usman and Divya Gopinath and Youcheng Sun and Yannic Noller and Corina Pasareanu},
  year   = {2021},
  eprint = {2103.12535},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2103.12535}
}

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/2103.12535.svg)](https://codeofpaper.com/paper/2103.12535)

Discussion