Comments (3)
Hi - sorry for the late answer. That's right, the images are flattened to vectors and the dot product is taken. This is equivalent:
np.vdot(a, b) == np.dot(a.flatten(), b.flatten())
from biased_boundary_attack.
By the way, in your work, if the computed gradient of the current sample (corresponding to the label of target sample ) has positive values in certain element, you will project the vector '-gradient' which has negative values in those elments onto the orthogonal plane, to keep the prediction result away from the target label. Is it right?
from biased_boundary_attack.
Well, the idea is simply to make sure the distance to the image under attack stays the same, no matter in which (orthogonal) direction we move. This is the premise of the original Boundary Attack (the Figures in the original paper by Brendel et al. https://arxiv.org/abs/1712.04248 show it nicely).
If we followed the gradient without projection, we might significantly increase the distance to the original image, and the attack might diverge. The projection makes sure that the Boundary Attack will only generate orthogonal samples (keeping the distance constant), and from there a small step towards the original image is taken. So, in the worst case (the label is not as desired), nothing will happen except that we need to draw more and more samples. But the attack cannot diverge/fail.
Projecting the gradient makes sure we don't violate the assumption of the Boundary Attack. Still, maybe it's not necessary and we could make a stronger attack without this projection. Unfortunately I haven't followed the newest papers on this.
from biased_boundary_attack.
Related Issues (4)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from biased_boundary_attack.