adversarial-robustness-toolbox icon indicating copy to clipboard operation
adversarial-robustness-toolbox copied to clipboard

Implement Sleeper Agent Poisoning Attack in TensorFlow

Open monshri opened this issue 2 years ago • 35 comments

Description

Supporting Sleeper Agent Attack in TensorFlow framework

Fixes # (issue)

Type of change

Please check all relevant options.

  • [ ] Improvement (non-breaking)
  • [ ] Bug fix (non-breaking)
  • [x] New feature (non-breaking)
  • [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • [ ] This change requires a documentation update

Testing

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

  • [ ] Test A
  • [ ] Test B

Test Configuration:

  • OS
  • Python version
  • ART version or commit number
  • TensorFlow / Keras / PyTorch / MXNet version

Checklist

  • [ ] My code follows the style guidelines of this project
  • [x] I have performed a self-review of my own code
  • [x] I have commented my code
  • [ ] I have made corresponding changes to the documentation
  • [ ] My changes generate no new warnings
  • [ ] I have added tests that prove my fix is effective or that my feature works
  • [ ] New and existing unit tests pass locally with my changes

monshri avatar Jul 06 '22 15:07 monshri

Codecov Report

Merging #1769 (897c4da) into dev_1.12.0 (8641de9) will increase coverage by 0.48%. The diff coverage is 26.19%.

Impacted file tree graph

@@              Coverage Diff               @@
##           dev_1.12.0    #1769      +/-   ##
==============================================
+ Coverage       85.13%   85.61%   +0.48%     
==============================================
  Files             275      275              
  Lines           24101    24115      +14     
  Branches         4306     4315       +9     
==============================================
+ Hits            20518    20646     +128     
+ Misses           2498     2372     -126     
- Partials         1085     1097      +12     
Impacted Files Coverage Δ
art/attacks/poisoning/sleeper_agent_attack.py 41.36% <24.39%> (+41.36%) :arrow_up:
art/attacks/poisoning/gradient_matching_attack.py 89.51% <100.00%> (+0.79%) :arrow_up:
...timators/poison_mitigation/neural_cleanse/keras.py 78.47% <0.00%> (+9.02%) :arrow_up:
...poison_mitigation/neural_cleanse/neural_cleanse.py 84.21% <0.00%> (+28.94%) :arrow_up:

codecov-commenter avatar Jul 06 '22 15:07 codecov-commenter

This pull request introduces 5 alerts when merging 66b70973b84b1bfe37744025006995fda711db7e into 45ca8f86bff7e87521ad21091ef79eababd19781 - view on LGTM.com

new alerts:

  • 4 for Module is imported with 'import' and 'import from'
  • 1 for Unused import

lgtm-com[bot] avatar Jul 06 '22 16:07 lgtm-com[bot]

This pull request introduces 4 alerts when merging 53be2f8d5c6ba5071ffbd54d125dbdc895ef91c7 into 45ca8f86bff7e87521ad21091ef79eababd19781 - view on LGTM.com

new alerts:

  • 4 for Module is imported with 'import' and 'import from'

lgtm-com[bot] avatar Jul 06 '22 17:07 lgtm-com[bot]

This pull request introduces 4 alerts when merging 99f40a9eea0cd54566fb855f1b586ea5f352385c into 45ca8f86bff7e87521ad21091ef79eababd19781 - view on LGTM.com

new alerts:

  • 4 for Module is imported with 'import' and 'import from'

lgtm-com[bot] avatar Jul 15 '22 15:07 lgtm-com[bot]

This pull request introduces 4 alerts when merging 9e67de8e6660844f4c6e1828409042fe263ef7d4 into 45ca8f86bff7e87521ad21091ef79eababd19781 - view on LGTM.com

new alerts:

  • 4 for Module is imported with 'import' and 'import from'

lgtm-com[bot] avatar Jul 15 '22 17:07 lgtm-com[bot]

This pull request introduces 4 alerts when merging 7142a3b6753fbae43476c5ae6be23dbad64456df into 45ca8f86bff7e87521ad21091ef79eababd19781 - view on LGTM.com

new alerts:

  • 4 for Module is imported with 'import' and 'import from'

lgtm-com[bot] avatar Jul 15 '22 18:07 lgtm-com[bot]

This pull request introduces 4 alerts when merging 808f5467e58ca697decbcfaa1eaa032c2f733bf8 into 45ca8f86bff7e87521ad21091ef79eababd19781 - view on LGTM.com

new alerts:

  • 4 for Module is imported with 'import' and 'import from'

lgtm-com[bot] avatar Jul 18 '22 16:07 lgtm-com[bot]

This pull request introduces 4 alerts when merging c18222df37ab76d8470ea6c6990bda5238f9bb4a into 45ca8f86bff7e87521ad21091ef79eababd19781 - view on LGTM.com

new alerts:

  • 4 for Module is imported with 'import' and 'import from'

lgtm-com[bot] avatar Jul 18 '22 18:07 lgtm-com[bot]

This pull request introduces 4 alerts when merging 9973784fbd16dcee4883fb13a7eda33f6dfb29ef into 45ca8f86bff7e87521ad21091ef79eababd19781 - view on LGTM.com

new alerts:

  • 4 for Module is imported with 'import' and 'import from'

lgtm-com[bot] avatar Jul 18 '22 20:07 lgtm-com[bot]

This pull request introduces 4 alerts when merging 569da6da1e17018cec632f01251a822a9b5f7429 into 9bc3b269e3cb7cb906603704f895fcddf8b1ac72 - view on LGTM.com

new alerts:

  • 4 for Module is imported with 'import' and 'import from'

lgtm-com[bot] avatar Jul 25 '22 16:07 lgtm-com[bot]

This pull request introduces 4 alerts when merging 02a2ddb5cf7c0e3542a6d283362cbd18497a26f4 into b85bc5d8b53eb8b5b3a3c38133dea403dd4bbb89 - view on LGTM.com

new alerts:

  • 4 for Module is imported with 'import' and 'import from'

lgtm-com[bot] avatar Aug 19 '22 21:08 lgtm-com[bot]

This pull request introduces 4 alerts when merging 9fefc8925e41b0e08d1ede97c6992e2ea5c858ba into 9de8f4f98c17eb95b95be99bc5314466a6259c9d - view on LGTM.com

new alerts:

  • 4 for Module is imported with 'import' and 'import from'

lgtm-com[bot] avatar Aug 23 '22 22:08 lgtm-com[bot]

This pull request introduces 4 alerts when merging f610122d057ae17d969eda294ebde90b20cc507b into 9de8f4f98c17eb95b95be99bc5314466a6259c9d - view on LGTM.com

new alerts:

  • 4 for Module is imported with 'import' and 'import from'

lgtm-com[bot] avatar Aug 24 '22 15:08 lgtm-com[bot]

This pull request introduces 4 alerts when merging bd8007326502c52baa053eb9ea10771d1c4c82e4 into 9de8f4f98c17eb95b95be99bc5314466a6259c9d - view on LGTM.com

new alerts:

  • 4 for Module is imported with 'import' and 'import from'

lgtm-com[bot] avatar Aug 24 '22 17:08 lgtm-com[bot]

This pull request introduces 4 alerts when merging 8e891c407067b43cbb12c1f6ab5cf23f0498df62 into 9de8f4f98c17eb95b95be99bc5314466a6259c9d - view on LGTM.com

new alerts:

  • 4 for Module is imported with 'import' and 'import from'

lgtm-com[bot] avatar Aug 26 '22 21:08 lgtm-com[bot]

This pull request introduces 4 alerts when merging ae85ce007a07b323f54a83a1df8f2ca2962c003c into 9de8f4f98c17eb95b95be99bc5314466a6259c9d - view on LGTM.com

new alerts:

  • 4 for Module is imported with 'import' and 'import from'

lgtm-com[bot] avatar Aug 29 '22 21:08 lgtm-com[bot]

This pull request introduces 4 alerts when merging 494272cc757aa1b1c0c6168c7b14c034455d135e into 9de8f4f98c17eb95b95be99bc5314466a6259c9d - view on LGTM.com

new alerts:

  • 4 for Module is imported with 'import' and 'import from'

lgtm-com[bot] avatar Aug 30 '22 17:08 lgtm-com[bot]

This pull request introduces 5 alerts when merging 462136b87a9b596b015f8829f1b2f5ff9f8ba330 into 9de8f4f98c17eb95b95be99bc5314466a6259c9d - view on LGTM.com

new alerts:

  • 4 for Module is imported with 'import' and 'import from'
  • 1 for Unused import

lgtm-com[bot] avatar Aug 30 '22 20:08 lgtm-com[bot]

This pull request introduces 1 alert and fixes 1 when merging 3aaa0d86e75a8049f80bc00de9921acd32ec2e84 into 9de8f4f98c17eb95b95be99bc5314466a6259c9d - view on LGTM.com

new alerts:

  • 1 for Unused import

fixed alerts:

  • 1 for Module is imported more than once

lgtm-com[bot] avatar Sep 01 '22 03:09 lgtm-com[bot]

This pull request introduces 1 alert and fixes 1 when merging a83d9905d42d1057ef7a34a6ae59b558f43efaaf into 9de8f4f98c17eb95b95be99bc5314466a6259c9d - view on LGTM.com

new alerts:

  • 1 for Unused import

fixed alerts:

  • 1 for Module is imported more than once

lgtm-com[bot] avatar Sep 01 '22 19:09 lgtm-com[bot]

This pull request fixes 1 alert when merging 9387477c5c8e3c606e028ac640fe5333affdbbb8 into 9de8f4f98c17eb95b95be99bc5314466a6259c9d - view on LGTM.com

fixed alerts:

  • 1 for Module is imported more than once

lgtm-com[bot] avatar Sep 02 '22 20:09 lgtm-com[bot]

This pull request introduces 3 alerts and fixes 1 when merging 8010c2f6af83ea8139172750621e1ca9b5ea99c6 into c85cf78623d3973edfced18fb05ab5a2d7f2347e - view on LGTM.com

new alerts:

  • 2 for Unused local variable
  • 1 for Unused import

fixed alerts:

  • 1 for Module is imported more than once

lgtm-com[bot] avatar Sep 12 '22 15:09 lgtm-com[bot]

This pull request introduces 1 alert and fixes 1 when merging d749d2f33c43850c1648aaf34c161e983f08341b into c85cf78623d3973edfced18fb05ab5a2d7f2347e - view on LGTM.com

new alerts:

  • 1 for Unused local variable

fixed alerts:

  • 1 for Module is imported more than once

lgtm-com[bot] avatar Sep 12 '22 20:09 lgtm-com[bot]

This pull request fixes 3 alerts when merging 12886ff0b86544c767d0e24eba284a97b5960641 into c85cf78623d3973edfced18fb05ab5a2d7f2347e - view on LGTM.com

fixed alerts:

  • 3 for Module is imported more than once

lgtm-com[bot] avatar Sep 12 '22 23:09 lgtm-com[bot]

This pull request fixes 3 alerts when merging c9602e6e9bcaabbbb94744954017a16f40986f77 into 8641de9f0b3e2d51529d5902dca1c68a9fd35b52 - view on LGTM.com

fixed alerts:

  • 3 for Module is imported more than once

lgtm-com[bot] avatar Sep 14 '22 00:09 lgtm-com[bot]

This pull request fixes 3 alerts when merging e8f2f892aaa7b01f9202384cdc4c3d1b8fcb0b65 into 8641de9f0b3e2d51529d5902dca1c68a9fd35b52 - view on LGTM.com

fixed alerts:

  • 3 for Module is imported more than once

lgtm-com[bot] avatar Sep 14 '22 03:09 lgtm-com[bot]

This pull request fixes 3 alerts when merging 2c826834889200df0a96f19e83f862b34ed282fb into 8641de9f0b3e2d51529d5902dca1c68a9fd35b52 - view on LGTM.com

fixed alerts:

  • 3 for Module is imported more than once

lgtm-com[bot] avatar Sep 14 '22 14:09 lgtm-com[bot]

This pull request fixes 3 alerts when merging 0eb1886054348e55c28632b67c0348f31360b438 into 8641de9f0b3e2d51529d5902dca1c68a9fd35b52 - view on LGTM.com

fixed alerts:

  • 3 for Module is imported more than once

lgtm-com[bot] avatar Sep 14 '22 16:09 lgtm-com[bot]

This pull request introduces 2 alerts and fixes 3 when merging 5f255b4c35f23001300934f0332146902ddca3ec into 8641de9f0b3e2d51529d5902dca1c68a9fd35b52 - view on LGTM.com

new alerts:

  • 1 for Unused local variable
  • 1 for Wrong number of arguments in a call

fixed alerts:

  • 3 for Module is imported more than once

lgtm-com[bot] avatar Sep 14 '22 23:09 lgtm-com[bot]

This pull request introduces 1 alert and fixes 3 when merging 5383158f0482c5c65259708e995641fb8ec99107 into 8641de9f0b3e2d51529d5902dca1c68a9fd35b52 - view on LGTM.com

new alerts:

  • 1 for Unused local variable

fixed alerts:

  • 3 for Module is imported more than once

lgtm-com[bot] avatar Sep 16 '22 17:09 lgtm-com[bot]