Skip to content

repository for article "Graph-based methods coupled with specific distributional distances for adversarial attack detection" in Neural Networks journal.

License

Notifications You must be signed in to change notification settings

dwight-nwaigwe/graph_based_methods_for_adversarial_attack

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

graph_based_methods_for_adversarial_attack

This repository contains source code to implement the methods in the article "Graph-based methods coupled with specific distributional distances for adversarial attack detection". The code here pertains to Model1, and Inceptionresnetv2/Mobilenet/VGG19. Source code for Model1 has it's own folder, while that for Inceptionresnetv2/Mobilenet/VGG19 has a different one. To use the source code, you first need your models and adversarial examples. Adverarial examples can be made using scripts provided which use the Adverarial Robustness Toolbox (ART). Note that the adversarial examples for Inceptionresnetv2/Mobilenet/VGG19 are made in a specific manner (see the article or the source code provided here to see how they are made), specifically they are made after calling the built-in preprocess() method on the samples.

For each model, the source code is separated into subdirectories for logistic regression and the statistical tests (WSR). Once you have a model and the adversarial examples, you will need to change file paths so that the code runs. In addition, you will need several packages as shown by the import statements in each file.

Making the adversarial examples for Model 1 and running the corresponding logistic regression and statistical test source code is simple, but doing this for Inceptionresnetv2/Mobilenet/VGG19 requires a lot more RAM and time; you may need access to a high performance cluster.

Feel free to contact me with comments or requests for help.

*note that the layerwise relevance propgation code is adapted from that found at https://github.com/atulshanbhag/Layerwise-Relevance-Propagation

About

repository for article "Graph-based methods coupled with specific distributional distances for adversarial attack detection" in Neural Networks journal.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published