Skip to content

added support for attacking an ensemble of models with loss averaging #116

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

tsalmonking
Copy link
Contributor

@tsalmonking tsalmonking commented Mar 27, 2025

Initial support for evasion attacks Model ensembles

This pull request changes the inner loop of the evasion attack to support ensembles by passing a list of models. The attack computes gradients on the average of losses of each model.


📚 Documentation preview 📚: https://secml-torch--116.org.readthedocs.build/en/116/

@battistabiggio
Copy link
Collaborator

I think it'd be better to create a separate class for this, maybe inherited from the base class. It's not common practice to optimize an attack over multiple models, so we should probably create a different class, rather than modifying the base one. @maurapintor what do you think?

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

Successfully merging this pull request may close these issues.

2 participants