Dynamic Slicing for Deep Neural Networks
Ziqi Zhang, Yuanchun Li, Yao Guo, Xiangqun Chen, Yunxin Liu

TL;DR
This paper introduces NNSlicer, a novel data flow analysis-based approach for program slicing in deep neural networks, enabling applications like adversarial detection, pruning, and protection with improved effectiveness.
Contribution
NNSlicer is the first method to perform program slicing on neural networks using data flow analysis, capturing neuron contributions for various applications.
Findings
NNSlicer outperforms baseline methods in adversarial detection.
NNSlicer effectively aids in model pruning.
NNSlicer enhances model protection strategies.
Abstract
Program slicing has been widely applied in a variety of software engineering tasks. However, existing program slicing techniques only deal with traditional programs that are constructed with instructions and variables, rather than neural networks that are composed of neurons and synapses. In this paper, we propose NNSlicer, the first approach for slicing deep neural networks based on data flow analysis. Our method understands the reaction of each neuron to an input based on the difference between its behavior activated by the input and the average behavior over the whole dataset. Then we quantify the neuron contributions to the slicing criterion by recursively backtracking from the output neurons, and calculate the slice as the neurons and the synapses with larger contributions. We demonstrate the usefulness and effectiveness of NNSlicer with three applications, including adversarial…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
