Neuron Sensitivity Guided Test Case Selection for Deep Learning Testing

Dong Huang, Qingwen Bu, Yichao Fu, Yuhao Qing, Bocheng Xiao +1 more
7/20/2023
cs.LGcs.SE

No official code found. Best implementation: Trustworthy-ML-Lab/Interpretability-Guided-Defense (4 stars, last commit 2024-10-01).

Abstract

Deep Neural Networks~(DNNs) have been widely deployed in software to address various tasks~(e.g., autonomous driving, medical diagnosis). However, they could also produce incorrect behaviors that result in financial losses and even threaten human safety. To reveal the incorrect behaviors in DNN and repair them, DNN developers often collect rich unlabeled datasets from the natural world and label them to test the DNN models. However, properly labeling a large number of unlabeled datasets is a highly expensive and time-consuming task. To address the above-mentioned problem, we propose NSS, Neuron Sensitivity guided test case Selection, which can reduce the labeling time by selecting valuable test cases from unlabeled datasets. NSS leverages the internal neuron's information induced by test cases to select valuable test cases, which have high confidence in causing the model to behave incorrectly. We evaluate NSS with four widely used datasets and four well-designed DNN models compared to SOTA baseline methods. The results show that NSS performs well in assessing the test cases' probability of fault triggering and model improvement capabilities. Specifically, compared with baseline approaches, NSS obtains a higher fault detection rate~(e.g., when selecting 5\% test case from the unlabeled dataset in MNIST \& LeNet1 experiment, NSS can obtain 81.8\% fault detection rate, 20\% higher than baselines).

View on arXivView PDF

Code Implementations(1)

[ECCV 24] A new and low-cost test-time defense for DNNs based on neuron-level-interpretability methods

41Shell, PythonJul 3, 20242 years ago
adversarial-examplesadversarial-machine-learningcomputer-visiondeep-learninginterpretability+1 more

Similar Papers

Cite this paper

@article{huang2023neuron,
  title  = {Neuron Sensitivity Guided Test Case Selection for Deep Learning Testing},
  author = {Dong Huang and Qingwen Bu and Yichao Fu and Yuhao Qing and Bocheng Xiao and Heming Cui},
  year   = {2023},
  eprint = {2307.11011},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2307.11011v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2307.11011.svg)](https://codeofpaper.com/paper/2307.11011)

Discussion