Harry24k / adversarial-attacks-pytorch

PyTorch implementation of adversarial attacks [torchattacks].
https://adversarial-attacks-pytorch.readthedocs.io/en/latest/index.html
MIT License
1.79k stars 337 forks source link

[QUESTION]BIM and PGD have the same output #185

Open pleaseWind opened 1 month ago

pleaseWind commented 1 month ago

❔ Any questions

I use your bim and pgd code to test my cnn model in MNIST, but get the same accuracy. Is it true?

rikonaka commented 1 month ago

Hi @pleaseWind , can you provide your code?

pleaseWind commented 1 month ago

I have uploaded the file to my Repository. I find the reason may be the PGD's parameter"random_start". Although I modify code, the PGD's accuracy is lower than BIM's. This is different from the literature.

rikonaka commented 1 month ago

Hi @pleaseWind , can you provide the link to your code?

pleaseWind commented 1 month ago

https://github.com/pleaseWind/adversarial-attacks-pytorch

rikonaka commented 1 month ago

Hi @pleaseWind , MNIST as a dataset is too simple at the moment, so the success rate of attacking such a dataset is basically 100%, and if you want to get a different result, you can test on CIFAR-10 and larger datasets.

pleaseWind commented 1 month ago

OK, I will try. Thank for your help.