-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Fix ActivationDefense
and SpectralSignatures
expected flattened bug
#2327
Fix ActivationDefense
and SpectralSignatures
expected flattened bug
#2327
Conversation
Signed-off-by: Farhan Ahmed <[email protected]>
Signed-off-by: Farhan Ahmed <[email protected]>
Codecov ReportAll modified and coverable lines are covered by tests ✅
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. Additional details and impacted files@@ Coverage Diff @@
## dev_1.17.0 #2327 +/- ##
==============================================
+ Coverage 76.18% 84.09% +7.90%
==============================================
Files 327 327
Lines 30850 30852 +2
Branches 5716 5716
==============================================
+ Hits 23503 25944 +2441
+ Misses 5914 3448 -2466
- Partials 1433 1460 +27
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @f4str Thank you very much for your pull request! It looks good to me.
This reverts commit 4db7626. Signed-off-by: Farhan Ahmed <[email protected]>
Due to issues with GitHub actions tests failing, removing the hack in the HuggingFace classifier to use the inputs post-flattening will not be included in this PR. Once the failed unit test is further investigated, the change will be revisited. |
Description
Modify the
ActivateDefense
andSpectralSignatures
poisoning defenses to flatten the outputs when callingget_activations()
on the estimator.Additionally, the hack in HuggingFace classifier to use the inputs post-flattening was removed since the defenses will now do the flattening and work with any arbitrary layer.Fixes #2313
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.
Test Configuration:
Checklist