NPC: N euron P ath C overage via Characterizing Decision Logic of Deep Neural Networks
Open Access
- 9 April 2022
- journal article
- research article
- Published by Association for Computing Machinery (ACM) in ACM Transactions on Software Engineering and Methodology
- Vol. 31 (3) , 1-27
Abstract
Deep learning has recently been widely applied to many applications across different domains, e.g., image classification and audio recognition. However, the quality of Deep Neural Networks (DNNs) still raises concerns in the practical operational environment, which calls for systematic testing, especially in safety-critical scenarios. Inspired by software testing, a number of structural coverage criteria are designed and proposed to measure the test adequacy of DNNs. However, due to the blackbox nature of DNN, the existing structural coverage criteria are difficult to interpret, making it hard to understand the underlying principles of these criteria. The relationship between the structural coverage and the decision logic of DNNs is unknown. Moreover, recent studies have further revealed the non-existence of correlation between the structural coverage and DNN defect detection, which further posts concerns on what a suitable DNN testing criterion should be. In this article, we propose the interpretable coverage criteria through constructing the decision structure of a DNN. Mirroring the control flow graph of the traditional program, we first extract a decision graph from a DNN based on its interpretation, where a path of the decision graph represents a decision logic of the DNN. Based on the control flow and data flow of the decision graph, we propose two variants of path coverage to measure the adequacy of the test cases in exercising the decision logic. The higher the path coverage, the more diverse decision logic the DNN is expected to be explored. Our large-scale evaluation results demonstrate that: The path in the decision graph is effective in characterizing the decision of the DNN, and the proposed coverage criteria are also sensitive with errors, including natural errors and adversarial examples, and strongly correlate with the output impartiality.Keywords
All Related Versions
Funding Information
- National Research Foundation, Singapore under its the AI Singapore Programme (AISG2-RP-2020-019)
- National Research Foundation, Prime Minister’s Office, Singapore under its National Cybersecurity R&D Program (NRF2018NCR-NCR005-0001)
- NRF Investigatorship (NRFI06-2020-0022-0001)
- National Research Foundation through its National Satellite of Excellence in Trustworthy Software Systems (NSOE-TSS) project under the National Cybersecurity R&D (NRF2018NCR-NSOE003-0001)
- National Research Foundation, Singapore under its AI Singapore Programme (AISG-PhD/2021-01-022[T])
- Ministry of Education, Singapore under its Academic Research Fund Tier 3 (MOET32020-0004)
- JSPS KAKENHI (JP20H04168, JP19K24348, JP19H04086, JP21H04877)
- JST-Mirai Program (JPMJMI20B8)
- Canada CIFAR AI Program and Natural Sciences and Engineering Research Council of Canada
This publication has 38 references indexed in Scilit:
- DeepXplore2017
- End-to-end learning for lane keeping of self-driving cars2017
- Towards Evaluating the Robustness of Neural Networks2017
- "Why Should I Trust You?"2016
- The Limitations of Deep Learning in Adversarial Settings2016
- On Pixel-Wise Explanations for Non-Linear Classifier Decisions by Layer-Wise Relevance PropagationPLOS ONE, 2015
- Coverage and fault detection of the output-uniqueness test selection criteria2014
- Evasion Attacks against Machine Learning at Test Time2013
- DECKARD: Scalable and Accurate Tree-Based Detection of Code Clones29th International Conference on Software Engineering (ICSE'07), 2007
- Software unit test coverage and adequacyACM Computing Surveys, 1997