uclaml / RayS

RayS: A Ray Searching Method for Hard-label Adversarial Attack (KDD2020)

Home Page:https://arxiv.org/abs/2006.12792

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Does all found x_final with dist <= self.epsilon is attacked successfully?

machanic opened this issue · comments

I notice you only use dist <= self.epsilon to indicate the success boolean. However, imaging a situation that the distance/distortion between self.x_final and original image is below predefined epsilon, but it is classified correctly by the classifier!
Are you sure this code can deal with this situation.
https://github.com/uclaml/RayS/blob/master/RayS.py#L77

Please note that self.x_final is initialized far away from the original (dist = infty) and is only been updated when a successful attack is founded. Therefore your imagined case never happens.