Dynamic Slicing for Deep Neural Networks
Not on the map. Why?
Abstract (arXiv)
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 input detection, model pruning, and selective model protection. In all applications, NNSlicer significantly outperforms other baselines that do not rely on data flow analysis.
Key facts. Cited by 16 papers in the map (data through 14 Oct 2026). First posted on arXiv 29 Sep 2020.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2021: 4; 2022: 2; 2023: 4; 2024: 2; 2025: 4.
16 papers.
Sort:
By area:
- 2021DeepPayload: Black-box Backdoor Attack on Deep Learning Models through Neural Payload Injectioncited by 44
- 2021ModelDiff: Testing-Based DNN Similarity Comparison for Model Reuse Detectioncited by 33
- 2023SwapMoE: Serving Off-the-shelf MoE-based Large Language Models with Tunable Memory Budgetcited by 27
- 2021TransTailor: Pruning the Pre-trained Model for Improved Transfer Learningcited by 25
- 2022FairNeuron: Improving Deep Neural Network Fairness with Adversary Games on Selective Neuronscited by 21
- 2023No Privacy Left Outside: On the (In-)Security of TEE-Shielded DNN Partition for On-Device MLcited by 21
- 2021PatchCensor: Patch Robustness Certification for Transformers via Exhaustive Testingcited by 12
- 2023Modularizing while Training: A New Paradigm for Modularizing DNN Modelscited by 4
- 2024TEESlice: Protecting Sensitive Neural Network Models in Trusted Execution Environments When Attackers have Pre-Trained Modelscited by 3
- 2022Supervised Robustness-preserving Data-free Neural Network Pruningcited by 1
- 2024NeuSemSlice: Towards Effective DNN Model Maintenance via Neuron-level Semantic Slicingcited by 1
- 2025IRepair: An Intent-Aware Approach to Repair Data-Driven Errors in Large Language Modelscited by 1
4 more
- 2025SliceGX: Layer-wise GNN Explanation with Model-slicingcited by 1
- 2025DSperse: A Framework for Targeted Verification in Zero-Knowledge Machine Learningcited by 1
- 2023Generative Model for Models: Rapid DNN Customization for Diverse Tasks and Resource Constraintscited by 0
- 2025Anomaly Detection Based on Critical Paths for Deep Neural Networkscited by 0
- 2025DSperse: A Framework for Targeted Verification in Zero-Knowledge Machine Learning9 Aug 2025
- 2025SliceGX: Layer-wise GNN Explanation with Model-slicing22 Jun 2025
- 2025Anomaly Detection Based on Critical Paths for Deep Neural Networks20 May 2025
- 2025IRepair: An Intent-Aware Approach to Repair Data-Driven Errors in Large Language Models10 Feb 2025
- 2024TEESlice: Protecting Sensitive Neural Network Models in Trusted Execution Environments When Attackers have Pre-Trained Models15 Nov 2024
- 2024NeuSemSlice: Towards Effective DNN Model Maintenance via Neuron-level Semantic Slicing26 Jul 2024
- 2023No Privacy Left Outside: On the (In-)Security of TEE-Shielded DNN Partition for On-Device ML11 Oct 2023
- 2023SwapMoE: Serving Off-the-shelf MoE-based Large Language Models with Tunable Memory Budget29 Aug 2023
- 2023Generative Model for Models: Rapid DNN Customization for Diverse Tasks and Resource Constraints29 Aug 2023
- 2023Modularizing while Training: A New Paradigm for Modularizing DNN Models15 Jun 2023
- 2022FairNeuron: Improving Deep Neural Network Fairness with Adversary Games on Selective Neurons6 Apr 2022
- 2022Supervised Robustness-preserving Data-free Neural Network Pruning2 Apr 2022
4 more
- 2021PatchCensor: Patch Robustness Certification for Transformers via Exhaustive Testing19 Nov 2021
- 2021ModelDiff: Testing-Based DNN Similarity Comparison for Model Reuse Detection11 Jun 2021
- 2021TransTailor: Pruning the Pre-trained Model for Improved Transfer Learning2 Mar 2021
- 2021DeepPayload: Black-box Backdoor Attack on Deep Learning Models through Neural Payload Injection18 Jan 2021
- 2021DeepPayload: Black-box Backdoor Attack on Deep Learning Models through Neural Payload Injectioncited by 44
- 2021ModelDiff: Testing-Based DNN Similarity Comparison for Model Reuse Detectioncited by 33
- 2021TransTailor: Pruning the Pre-trained Model for Improved Transfer Learningcited by 25
- 2022FairNeuron: Improving Deep Neural Network Fairness with Adversary Games on Selective Neuronscited by 21
- 2023No Privacy Left Outside: On the (In-)Security of TEE-Shielded DNN Partition for On-Device MLcited by 21
- 2021PatchCensor: Patch Robustness Certification for Transformers via Exhaustive Testingcited by 12
- 2023Modularizing while Training: A New Paradigm for Modularizing DNN Modelscited by 4
- 2024TEESlice: Protecting Sensitive Neural Network Models in Trusted Execution Environments When Attackers have Pre-Trained Modelscited by 3
- 2022Supervised Robustness-preserving Data-free Neural Network Pruningcited by 1
- 2024NeuSemSlice: Towards Effective DNN Model Maintenance via Neuron-level Semantic Slicingcited by 1
- 2025IRepair: An Intent-Aware Approach to Repair Data-Driven Errors in Large Language Modelscited by 1
- 2025SliceGX: Layer-wise GNN Explanation with Model-slicingcited by 1
12 most cited of 15 All 15 (JSON)
- 2025DSperse: A Framework for Targeted Verification in Zero-Knowledge Machine Learning9 Aug 2025
- 2025SliceGX: Layer-wise GNN Explanation with Model-slicing22 Jun 2025
- 2025Anomaly Detection Based on Critical Paths for Deep Neural Networks20 May 2025
- 2025IRepair: An Intent-Aware Approach to Repair Data-Driven Errors in Large Language Models10 Feb 2025
- 2024TEESlice: Protecting Sensitive Neural Network Models in Trusted Execution Environments When Attackers have Pre-Trained Models15 Nov 2024
- 2024NeuSemSlice: Towards Effective DNN Model Maintenance via Neuron-level Semantic Slicing26 Jul 2024
- 2023No Privacy Left Outside: On the (In-)Security of TEE-Shielded DNN Partition for On-Device ML11 Oct 2023
- 2023Generative Model for Models: Rapid DNN Customization for Diverse Tasks and Resource Constraints29 Aug 2023
- 2023Modularizing while Training: A New Paradigm for Modularizing DNN Models15 Jun 2023
- 2022FairNeuron: Improving Deep Neural Network Fairness with Adversary Games on Selective Neurons6 Apr 2022
- 2022Supervised Robustness-preserving Data-free Neural Network Pruning2 Apr 2022
- 2021PatchCensor: Patch Robustness Certification for Transformers via Exhaustive Testing19 Nov 2021
12 newest of 15 All 15 (JSON)