Skip to content

Number of times model was queried by black-box evasion attacks such as Boundary or HopSkipJump? #1239

Answered by beat-buesser
amir1m asked this question in Q&A
Discussion options

You must be logged in to vote

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?

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
1 reply
@amir1m
Comment options

Answer selected by beat-buesser
Comment options

You must be logged in to vote
3 replies
@beat-buesser
Comment options

@FaramirHurin
Comment options

@FaramirHurin
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #1238 on July 19, 2021 12:08.