IntelLabs / MART

Modular Adversarial Robustness Toolkit
BSD 3-Clause "New" or "Revised" License
16 stars 0 forks source link

Make reusable attack config components #211

Closed mzweilin closed 12 months ago

mzweilin commented 1 year ago

What does this PR do?

Currently, it requires full understanding of the config structure to compose an attack algorithm. This PR makes it easier to compose attack algorithms by introducing

Existing attack configurations are updated to demonstrate the simplicity.

Depends on #212

Type of change

Please check all relevant options.

Testing

Please describe the tests that you ran to verify your changes. Consider listing any relevant details of your test configuration.

Before submitting

Did you have fun?

Make sure you had fun coding 🙃

mzweilin commented 12 months ago

I think the examples of composing FGSM and PGD help people understand how MART works. In addition, the reusable components of FGM and PGD make it easier to do a sanity check on other components (e.g. composer, gain function) when composing novel attacks against new models.