NPC: Neuron path coverage via characterizing decision logic of deep neural networks

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, espe...

Full description

Saved in:
Bibliographic Details
Main Authors: XIE, Xiaofei, LI, Tianlin, WANG, Jian, MA, Lei, GUO, Qing, JUEFEI-XU, Felix, LIU, Yang
Format: text
Language:English
Published: Institutional Knowledge at Singapore Management University 2022
Subjects:
Online Access:https://ink.library.smu.edu.sg/sis_research/7192
https://ink.library.smu.edu.sg/context/sis_research/article/8195/viewcontent/2203.12915.pdf
Tags: Add Tag
No Tags, Be the first to tag this record!
Institution: Singapore Management University
Language: English
id sg-smu-ink.sis_research-8195
record_format dspace
spelling sg-smu-ink.sis_research-81952022-08-04T08:57:31Z NPC: Neuron path coverage via characterizing decision logic of deep neural networks XIE, Xiaofei LI, Tianlin WANG, Jian MA, Lei GUO, Qing JUEFEI-XU, Felix LIU, Yang 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 paper, 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 correlated with the output impartiality. 2022-07-01T07:00:00Z text application/pdf https://ink.library.smu.edu.sg/sis_research/7192 info:doi/10.1145/3490489 https://ink.library.smu.edu.sg/context/sis_research/article/8195/viewcontent/2203.12915.pdf http://creativecommons.org/licenses/by-nc-nd/4.0/ Research Collection School Of Computing and Information Systems eng Institutional Knowledge at Singapore Management University Deep Learning Testing Testing Coverage Criteria Model Interpretation OS and Networks Software Engineering
institution Singapore Management University
building SMU Libraries
continent Asia
country Singapore
Singapore
content_provider SMU Libraries
collection InK@SMU
language English
topic Deep Learning Testing
Testing Coverage Criteria
Model Interpretation
OS and Networks
Software Engineering
spellingShingle Deep Learning Testing
Testing Coverage Criteria
Model Interpretation
OS and Networks
Software Engineering
XIE, Xiaofei
LI, Tianlin
WANG, Jian
MA, Lei
GUO, Qing
JUEFEI-XU, Felix
LIU, Yang
NPC: Neuron path coverage via characterizing decision logic of deep neural networks
description 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 paper, 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 correlated with the output impartiality.
format text
author XIE, Xiaofei
LI, Tianlin
WANG, Jian
MA, Lei
GUO, Qing
JUEFEI-XU, Felix
LIU, Yang
author_facet XIE, Xiaofei
LI, Tianlin
WANG, Jian
MA, Lei
GUO, Qing
JUEFEI-XU, Felix
LIU, Yang
author_sort XIE, Xiaofei
title NPC: Neuron path coverage via characterizing decision logic of deep neural networks
title_short NPC: Neuron path coverage via characterizing decision logic of deep neural networks
title_full NPC: Neuron path coverage via characterizing decision logic of deep neural networks
title_fullStr NPC: Neuron path coverage via characterizing decision logic of deep neural networks
title_full_unstemmed NPC: Neuron path coverage via characterizing decision logic of deep neural networks
title_sort npc: neuron path coverage via characterizing decision logic of deep neural networks
publisher Institutional Knowledge at Singapore Management University
publishDate 2022
url https://ink.library.smu.edu.sg/sis_research/7192
https://ink.library.smu.edu.sg/context/sis_research/article/8195/viewcontent/2203.12915.pdf
_version_ 1770576267192565760