Anomaly Detection Based on Critical Paths for Deep Neural Networks

Fuente: arXiv
Enregistré dans:
Détails bibliographiques
Auteurs principaux: Zhao, Fangzhen, Zhang, Chenyi, Dong, Naipeng, Li, Ming, Shan, Jinxiao
Format: Preprint
Publié: 2025
Sujets:
Accès en ligne:
Tags: Ajouter un tag
Pas de tags, Soyez le premier à ajouter un tag!
_version_ 1866916748051087360
author Zhao, Fangzhen
Zhang, Chenyi
Dong, Naipeng
Li, Ming
Shan, Jinxiao
author_facet Zhao, Fangzhen
Zhang, Chenyi
Dong, Naipeng
Li, Ming
Shan, Jinxiao
contents Deep neural networks (DNNs) are notoriously hard to understand and difficult to defend. Extracting representative paths (including the neuron activation values and the connections between neurons) from DNNs using software engineering approaches has recently shown to be a promising approach in interpreting the decision making process of blackbox DNNs, as the extracted paths are often effective in capturing essential features. With this in mind, this work investigates a novel approach that extracts critical paths from DNNs and subsequently applies the extracted paths for the anomaly detection task, based on the observation that outliers and adversarial inputs do not usually induce the same activation pattern on those paths as normal (in-distribution) inputs. In our approach, we first identify critical detection paths via genetic evolution and mutation. Since different paths in a DNN often capture different features for the same target class, we ensemble detection results from multiple paths by integrating random subspace sampling and a voting mechanism. Compared with state-of-the-art methods, our experimental results suggest that our method not only outperforms them, but it is also suitable for the detection of a broad range of anomaly types with high accuracy.
format Preprint
id arxiv_https___arxiv_org_abs_2505_14967
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Anomaly Detection Based on Critical Paths for Deep Neural Networks
Zhao, Fangzhen
Zhang, Chenyi
Dong, Naipeng
Li, Ming
Shan, Jinxiao
Machine Learning
Artificial Intelligence
Deep neural networks (DNNs) are notoriously hard to understand and difficult to defend. Extracting representative paths (including the neuron activation values and the connections between neurons) from DNNs using software engineering approaches has recently shown to be a promising approach in interpreting the decision making process of blackbox DNNs, as the extracted paths are often effective in capturing essential features. With this in mind, this work investigates a novel approach that extracts critical paths from DNNs and subsequently applies the extracted paths for the anomaly detection task, based on the observation that outliers and adversarial inputs do not usually induce the same activation pattern on those paths as normal (in-distribution) inputs. In our approach, we first identify critical detection paths via genetic evolution and mutation. Since different paths in a DNN often capture different features for the same target class, we ensemble detection results from multiple paths by integrating random subspace sampling and a voting mechanism. Compared with state-of-the-art methods, our experimental results suggest that our method not only outperforms them, but it is also suitable for the detection of a broad range of anomaly types with high accuracy.
title Anomaly Detection Based on Critical Paths for Deep Neural Networks
topic Machine Learning
Artificial Intelligence
url https://arxiv.org/abs/2505.14967