Skip to content

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

Closed
tsalmonking wants to merge 1 commit into
pralab:mainfrom
tsalmonking:ensemble-attack-feature
Closed

added support for attacking an ensemble of models with loss averaging#116
tsalmonking wants to merge 1 commit into
pralab:mainfrom
tsalmonking:ensemble-attack-feature

Conversation

@tsalmonking

@tsalmonking tsalmonking commented Mar 27, 2025

Copy link
Copy Markdown
Collaborator

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
Copy Markdown
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?

@tsalmonking

Copy link
Copy Markdown
Collaborator Author

Handled in #183

@tsalmonking
tsalmonking deleted the ensemble-attack-feature branch March 23, 2026 19:17
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