mlsanityData to 14 Oct 2026

Semantic-Based Neural Network Repair

arXiv 2306.07995 ↗First posted 12 Jun 2023cs.LG cs.AI cs.SEcited by 3

Not on the map. Why?

Abstract (arXiv)

Recently, neural networks have spread into numerous fields including many safety-critical systems. Neural networks are built (and trained) by programming in frameworks such as TensorFlow and PyTorch. Developers apply a rich set of pre-defined layers to manually program neural networks or to automatically generate them (e.g., through AutoML). Composing neural networks with different layers is error-prone due to the non-trivial constraints that must be satisfied in order to use those layers. In this work, we propose an approach to automatically repair erroneous neural networks. The challenge is in identifying a minimal modification to the network so that it becomes valid. Modifying a layer might have cascading effects on subsequent layers and thus our approach must search recursively to identify a "globally" minimal modification. Our approach is based on an executable semantics of deep learning layers and focuses on four kinds of errors which are common in practice. We evaluate our approach for two usage scenarios, i.e., repairing automatically generated neural networks and manually written ones suffering from common model bugs. The results show that we are able to repair 100% of a set of randomly generated neural networks (which are produced with an existing AI framework testing approach) effectively and efficiently (with an average repair time of 21.08s) and 93.75% of a collection of real neural network bugs (with an average time of 3min 40s).

Key facts. Cited by 3 papers in the map (data through 14 Oct 2026). Builds on 19 of its 62 references that are in the map. First posted on arXiv 12 Jun 2023.

Builds on

19 of 62 references.

References · 19

  1. 2017Fashion-MNIST: a Novel Image Dataset for Benchmarking Machine Learning Algorithmscited by 4,349
  2. 2014Deep Learning in Neural Networks: An Overviewcited by 770
  3. 2019AutoML: A Survey of the State-of-the-Artcited by 390
  4. 2018Visual Analytics in Deep Learning: An Interrogative Survey for the Next Frontierscited by 117
  5. 2019Taxonomy of Real Faults in Deep Learning Systemscited by 90
  6. 2018Seq2Seq-Vis: A Visual Debugging Tool for Sequence-to-Sequence Modelscited by 69
  7. 2018TensorFuzz: Debugging Neural Networks with Coverage-Guided Fuzzingcited by 68
  8. 2018Automated Machine Learning: From Principles to Practicescited by 62
  9. 2022Causality-based Neural Network Repaircited by 47
  10. 2021Provable Repair of Deep Neural Networkscited by 42
  11. 2020Repairing Deep Neural Networks: Fix Patterns and Challengescited by 33
  12. 2018Identifying Implementation Bugs in Machine Learning based Image Classifiers using Metamorphic Testingcited by 31
7 more
  1. 2021NNrepair: Constraint-based Repair of Neural Network Classifierscited by 26
  2. 2021DocTer: Documentation Guided Fuzzing for Testing Deep Learning API Functionscited by 22
  3. 2021Neural Network Repair with Reachability Analysiscited by 19
  4. 2021DeepDiagnosis: Automatically Diagnosing Faults and Recommending Actionable Fixes in Deep Learning Programscited by 19
  5. 2020SOCRATES: Towards a Unified Platform for Neural Network Analysiscited by 7
  6. 2021A new perspective on the competent programmer hypothesis through the reproduction of bugs with repeated mutationscited by 1
  7. 2022ExAIS: Executable AI Semanticscited by 1

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2023: 1; 2024: 0; 2025: 1; 2026: 1.

3 papers.