Automatic Fault Detection for Deep Learning Programs Using Graph Transformations
Not on the map. Why?
Abstract (arXiv)
Nowadays, we are witnessing an increasing demand in both corporates and academia for exploiting Deep Learning (DL) to solve complex real-world problems. A DL program encodes the network structure of a desirable DL model and the process by which the model learns from the training dataset. Like any software, a DL program can be faulty, which implies substantial challenges of software quality assurance, especially in safety-critical domains. It is therefore crucial to equip DL development teams with efficient fault detection techniques and tools. In this paper, we propose NeuraLint, a model-based fault detection approach for DL programs, using meta-modelling and graph transformations. First, we design a meta-model for DL programs that includes their base skeleton and fundamental properties. Then, we construct a graph-based verification process that covers 23 rules defined on top of the meta-model and implemented as graph transformations to detect faults and design inefficiencies in the generated models (i.e., instances of the meta-model). First, the proposed approach is evaluated by finding faults and design inefficiencies in 28 synthesized examples built from common problems reported in the literature. Then NeuraLint successfully finds 64 faults and design inefficiencies in 34 real-world DL programs extracted from Stack Overflow posts and GitHub repositories. The results show that NeuraLint effectively detects faults and design issues in both synthesized and real-world examples with a recall of 70.5 % and a precision of 100 %. Although the proposed meta-model is designed for feedforward neural networks, it can be extended to support other neural network architectures such as recurrent neural networks. Researchers can also expand our set of verification rules to cover more types of issues in DL programs.
Key facts. Cited by 9 papers in the map (data through 14 Oct 2026). Builds on 27 of its 49 references that are in the map. First posted on arXiv 17 May 2021.
Builds on
27 of 49 references.
References · 27
- 2015Deep Residual Learning for Image Recognitioncited by 52,096
- 2014Microsoft COCO: Common Objects in Contextcited by 17,608
- 2014Very Deep Convolutional Networks for Large-Scale Image Recognitioncited by 15,364
- 2015Batch Normalization: Accelerating Deep Network Training by Reducing Internal Covariate Shiftcited by 7,005
- 2015Rethinking the Inception Architecture for Computer Visioncited by 5,475
- 2016SqueezeNet: AlexNet-level accuracy with 50x fewer parameters and <0.5MB model sizecited by 1,060
- 2014Striving for Simplicity: The All Convolutional Netcited by 990
- 2017DeepXplore: Automated Whitebox Testing of Deep Learning Systemscited by 311
- 2017DeepTest: Automated Testing of Deep-Neural-Network-driven Autonomous Carscited by 251
- 2017Learning to Represent Programs with Graphscited by 220
- 2016Deep Pyramidal Residual Networkscited by 163
- 2018Activation Functions: Comparison of trends in Practice and Research for Deep Learningcited by 130
15 more
- 2016An Analysis of Deep Neural Network Models for Practical Applicationscited by 116
- 2019On the Impact of the Activation Function on Deep Neural Networks Trainingcited by 102
- 2019Taxonomy of Real Faults in Deep Learning Systemscited by 90
- 2014Convolutional Neural Networks at Constrained Time Costcited by 81
- 2019A Comprehensive Study on Deep Learning Bug Characteristicscited by 65
- 2018On Testing Machine Learning Programscited by 48
- 2018Understanding the Disharmony between Dropout and Batch Normalization by Variance Shiftcited by 37
- 2020Repairing Deep Neural Networks: Fix Patterns and Challengescited by 33
- 2018Identifying Implementation Bugs in Machine Learning based Image Classifiers using Metamorphic Testingcited by 31
- 2019DeepEvolution: A Search-Based Testing Approach for Deep Neural Networkscited by 15
- 2017Developing Bug-Free Machine Learning Systems With Formal Mathematicscited by 14
- 2018Towards Principled Design of Deep Convolutional Networks: Introducing SimpNetcited by 11
- 2016Deep Convolutional Neural Network Design Patternscited by 5
- 2019TFCheck : A TensorFlow Library for Detecting Training Issues in Neural Network Programscited by 3
- 2020Software Language Comprehension using a Program-Derived Semantics Graphcited by 2
Built on by
Citing papers per year: 2022: 1; 2023: 3; 2024: 2; 2025: 2; 2026: 1.
9 papers.
- 2022Bugs in Machine Learning-based Systems: A Faultload Benchmarkcited by 15
- 2023Bug Characterization in Machine Learning-based Systemscited by 10
- 2023Mutation-based Fault Localization of Deep Neural Networkscited by 5
- 2025Debugging and Runtime Analysis of Neural Networks with VLMs (A Case Study)cited by 3
- 2024Toward Debugging Deep Reinforcement Learning Programs with RLExplorercited by 1
- 2025Why Attention Fails: A Taxonomy of Faults in Attention-Based Neural Networkscited by 1
- 2023Path Analysis for Effective Fault Localization in Deep Neural Networkscited by 0
- 2024An Empirical Study of Fault Localisation Techniques for Deep Learningcited by 0
- 2026Hierarchical Fault Detection and Diagnosis for Transformer Architecturescited by 0
- 2026Hierarchical Fault Detection and Diagnosis for Transformer Architectures30 Apr 2026
- 2025Why Attention Fails: A Taxonomy of Faults in Attention-Based Neural Networks6 Aug 2025
- 2025Debugging and Runtime Analysis of Neural Networks with VLMs (A Case Study)21 Mar 2025
- 2024An Empirical Study of Fault Localisation Techniques for Deep Learning15 Dec 2024
- 2024Toward Debugging Deep Reinforcement Learning Programs with RLExplorer6 Oct 2024
- 2023Path Analysis for Effective Fault Localization in Deep Neural Networks29 Oct 2023
- 2023Mutation-based Fault Localization of Deep Neural Networks10 Sep 2023
- 2023Bug Characterization in Machine Learning-based Systems26 Jul 2023
- 2022Bugs in Machine Learning-based Systems: A Faultload Benchmark24 Jun 2022