Problem with Defenses (PyTorch) #1402
Unanswered
fukashi-hatake
asked this question in
Q&A
Replies: 1 comment
-
Hi @fukashi-hatake Thank you very much for using ART! After a first look at your code I have a few questions:
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Describe the bug
Hello, I have an issue with the defenses of ART. After applying defense techniques like Spatial Smoothing, Feature Squeezing, the classifier still misclassified the adversarial input. For attack, I am using PGD (max_iter=20, eps_step=1, eps=0.01) which is not so strong. After applying Spatial Smoothing (window_size=3), the classifier could not predict the adversarial input correctly. Instead, Spatial Smoothing decreased the benign accuracy.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
I used those defense techniques with Keras and they worked perfectly. But when I am using them in PyTorch, they have problems. I also tried Spatial Smoothing with higher window sizes but it affects the quality of the image badly and after window_size=5, it starts that even the model cannot classify the benign input correctly. I used the same techniques with the same parameters in Keras but they worked perfectly but in PyTorch, I think there's an issue.
Screenshots
System information (please complete the following information):
Thank you very much for your support. I really appreciate your contributions.
Beta Was this translation helpful? Give feedback.
All reactions