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

[FEATURE] Target attack of PI-FGSM #146

Closed CHENBIN99 closed 1 year ago

CHENBIN99 commented 1 year ago

✨ Short description of the feature [tl;dr]

Thank you for this great work that allows us to quickly and easily call each adversarial attack method!

As discuss in Issus#143, you have made quick work of the PI-FGSM non-targeted attack method.

Now that I have obtained the relevant paper of PI-FGSM targeting attacks, I wonder if you might consider adding it to torchattacks

Thank you so much for all your hard work!

💬 Detailed motivation and codes

paper

rikonaka commented 1 year ago

Hi @CHENBIN99 , it looks like these are two different approaches in here PIM and here PIM++. PIM does not support target attack, but PIM++ does.

Should I call it PIM as the original author did or PI-FGSM? But then the paper calls it PI-FGSM, which is indeed confusing.

image

Image from here.

CHENBIN99 commented 1 year ago

As I understand it, PI-FGSM can be called PIM (Patch-wise Method) and likewise PI-FGSM++ can be called PIM++ (Patch-wise Method ++). PI-FGSM++ can be considered as a successor to PI-FGSM with the addition of the target attack

rikonaka commented 1 year ago

Hi @CHENBIN99 , the PI-FGSM++ has been add to torchattacks.

CHENBIN99 commented 1 year ago

Thanks for your efficient work!