Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[QUESTION]How to use Square or Pixle to attack? #176

Open
allanxia opened this issue Feb 22, 2024 · 3 comments
Open

[QUESTION]How to use Square or Pixle to attack? #176

allanxia opened this issue Feb 22, 2024 · 3 comments
Labels
enhancement New feature or request

Comments

@allanxia
Copy link

❔ Any questions

Hi, I need to use black box attack model to test, the actual scenario I don't know the model used by the other party, I will only receive feedback from the other party's model, but I look at the black box model in the project, such as square,Pixle's input need to pass the name of the model being attacked, please is there any demo for the black box attack?

@allanxia allanxia added the enhancement New feature or request label Feb 22, 2024
@rikonaka
Copy link
Contributor

rikonaka commented Feb 23, 2024

Hi @allanxia , based on what I know so far, the so-called black-box attacks can be roughly categorized into two types, the first type is that we train an surrogate model A with the same architecture as the target model to attack, and then test the generated adv. examples on the target model B, which involves related theories such as adv. examples transferability . In the other category, instead of using an additional model, certain techniques are used to directly compute the adversarial samples based on the output of the black-box model (e.g., gradient estimation attack ZOO).

Unfortunately, however, the two types of attack, torchattacks is not implemented. But the good news is that I plan to add some of these attack algorithms to torchattacks, this should be something you'll see soon 😉.

@allanxia
Copy link
Author

@rikonaka
Thank you very much for your answer, but I seem to be more confused.
So the algorithms in torchattacks that implement Square and Pixle blackbox attacks are of that type?

@rikonaka
Copy link
Contributor

rikonaka commented Feb 23, 2024

@rikonaka Thank you very much for your answer, but I seem to be more confused. So the algorithms in torchattacks that implement Square and Pixle blackbox attacks are of that type?

Well, I am not the author of these two algorithms, but I have just had a brief look at the code of these two programs, and although its claimed to be a black box attack algorithm, the attack still requires a model to be inputted, this may not meet your requirements for a black box attack (i.e., no input model), and in this regard I may need some time to examine the code. And if you understand these two attack algorithms, you can try to test with them now 😘.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants