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

Mass-center Attacks #5

Open
chinglamchoi opened this issue Aug 12, 2022 · 0 comments
Open

Mass-center Attacks #5

chinglamchoi opened this issue Aug 12, 2022 · 0 comments

Comments

@chinglamchoi
Copy link

Hello, thanks for the intriguing work. I'm reimplementing the IntegratedGradientsAttack in utils.py and referring to the paper but cannot get non-zero perturbations for mass-center attacks.

Referring to Algorithm 1, x^0 is initialised as x_t, the original test image. The first perturbation step is given by $$x^p = x^{p-1} + \alpha \cdot \textrm{sign}(\nabla_x \Vert C(x_t) - C(x^{p-1}) \Vert_2)$$ for p=1. So,
$$x^0 = x^t = x^{p-1}$$
Naturally, the gradient will be zero, then how will a perturbation be computed?

Looking forward to your response, thank you.

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

No branches or pull requests

1 participant