Number of times model was queried by black-box evasion attacks such as Boundary or HopSkipJump? #1239
-
Hello, Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
Hi @amir1m Thank you very much for your question! I have moved it to our new Discussions forum. There are currently no specific counter attributes/properties for model evaluations in black-box attacks other than the query budget allocations following the original paper's algorithms. I think it could be a useful feature for a future release to wrap the estimator's predict method in black-box attack to add a counter for actual model evaluations. Maybe something like: def _predict_and_count(self, x):
self._number_estimator_predictions += x.shape[0]
return self.estimator.predict(x=x) Would you be interested to implement this feature and contribute it to ART? |
Beta Was this translation helpful? Give feedback.
-
Hello, I am working on the same problem. For Boundary I think it should be possible to formulate it as a function of the parameters: A counter could be added to verify that no operation is repeated and that the effective number of queries to the model matches the one the algorithm should theoretically do. |
Beta Was this translation helpful? Give feedback.
Hi @amir1m Thank you very much for your question! I have moved it to our new Discussions forum.
There are currently no specific counter attributes/properties for model evaluations in black-box attacks other than the query budget allocations following the original paper's algorithms.
I think it could be a useful feature for a future release to wrap the estimator's predict method in black-box attack to add a counter for actual model evaluations. Maybe something like:
Would you be interested to implement this feature and contribute it to ART?