Skip to content
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

Dirty-Label Backdoor Poisoning Attack for Audio #1740

Merged

Conversation

Swanand-Kadhe
Copy link
Collaborator

Description

This PR adds a dirty-label backdoor attack on audio classification. Key files added are as follows:

  • art/attacks/poisoning/perturbations/audio_perturbations.py
  • tests/attacks/poison/test_audio_perturbations.py
  • notebooks/poisoning_attack_backdoor_audio.ipynb

Type of change

Please check all relevant options.

  • Improvement (non-breaking)
  • Bug fix (non-breaking)
  • 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
  • I have performed a self-review of my own code
  • 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

Signed-off-by: Swanand Ravindra Kadhe <Swanand.Kadhe@ibm.com>
Signed-off-by: Swanand Ravindra Kadhe <Swanand.Kadhe@ibm.com>
Signed-off-by: Swanand Ravindra Kadhe <Swanand.Kadhe@ibm.com>
Signed-off-by: Swanand Ravindra Kadhe <Swanand.Kadhe@ibm.com>
Signed-off-by: Swanand Ravindra Kadhe <Swanand.Kadhe@ibm.com>
@lgtm-com
Copy link

lgtm-com bot commented Jun 17, 2022

This pull request introduces 1 alert when merging 0e419a6 into 301df37 - view on LGTM.com

new alerts:

  • 1 for Unused import

@beat-buesser beat-buesser self-requested a review June 17, 2022 18:07
@beat-buesser beat-buesser self-assigned this Jun 17, 2022
@beat-buesser beat-buesser added the enhancement New feature or request label Jun 17, 2022
@beat-buesser beat-buesser added this to Pull request open in ART 1.11.0 via automation Jun 17, 2022
@beat-buesser beat-buesser added this to the ART 1.11.0 milestone Jun 17, 2022
@codecov-commenter
Copy link

codecov-commenter commented Jun 17, 2022

Codecov Report

Merging #1740 (1ec261e) into dev_1.11.0 (f73029b) will decrease coverage by 0.02%.
The diff coverage is 86.00%.

Impacted file tree graph

@@              Coverage Diff               @@
##           dev_1.11.0    #1740      +/-   ##
==============================================
- Coverage       86.31%   86.29%   -0.03%     
==============================================
  Files             264      270       +6     
  Lines           22323    22787     +464     
  Branches         3966     4054      +88     
==============================================
+ Hits            19268    19663     +395     
- Misses           2086     2125      +39     
- Partials          969      999      +30     
Impacted Files Coverage Δ
...cks/poisoning/perturbations/audio_perturbations.py 86.00% <86.00%> (ø)
art/defences/detector/poison/activation_defence.py 84.28% <0.00%> (-0.34%) ⬇️
art/utils.py 75.45% <0.00%> (ø)
art/estimators/certification/__init__.py 100.00% <0.00%> (ø)
art/estimators/object_detection/__init__.py 100.00% <0.00%> (ø)
...estimators/object_detection/pytorch_faster_rcnn.py 100.00% <0.00%> (ø)
...mators/object_detection/pytorch_object_detector.py 79.21% <0.00%> (ø)
...n/derandomized_smoothing/derandomized_smoothing.py 88.81% <0.00%> (ø)
...rs/certification/derandomized_smoothing/pytorch.py 88.00% <0.00%> (ø)
art/estimators/object_detection/pytorch_yolo.py 79.04% <0.00%> (ø)
... and 4 more

Signed-off-by: Swanand Ravindra Kadhe <Swanand.Kadhe@ibm.com>
Signed-off-by: Swanand Ravindra Kadhe <Swanand.Kadhe@ibm.com>
@lgtm-com
Copy link

lgtm-com bot commented Jun 20, 2022

This pull request introduces 1 alert when merging c3cb9f1 into 301df37 - view on LGTM.com

new alerts:

  • 1 for Unused import

Swanand-Kadhe and others added 6 commits June 20, 2022 17:49
Signed-off-by: Swanand Ravindra Kadhe <Swanand.Kadhe@ibm.com>
Signed-off-by: Swanand Ravindra Kadhe <Swanand.Kadhe@ibm.com>
Signed-off-by: Swanand Ravindra Kadhe <Swanand.Kadhe@ibm.com>
Signed-off-by: Swanand Ravindra Kadhe <Swanand.Kadhe@ibm.com>
Signed-off-by: Swanand Ravindra Kadhe <Swanand.Kadhe@ibm.com>
@Swanand-Kadhe Swanand-Kadhe marked this pull request as ready for review June 24, 2022 19:57
@beat-buesser beat-buesser changed the base branch from main to dev_1.11.0 June 27, 2022 14:33
ART 1.11.0 automation moved this from Pull request open to Pull request review Jun 27, 2022
Copy link
Collaborator

@beat-buesser beat-buesser left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @Swanand-Kadhe Thank you very much for your first pull request to ART! The code looks good to me! I have added a small suggestion above and would like to ask if you could update the notebooks/README.md file to include your new notebook?

beat-buesser and others added 4 commits June 27, 2022 23:37
Signed-off-by: Swanand Ravindra Kadhe <Swanand.Kadhe@ibm.com>
Signed-off-by: Swanand Ravindra Kadhe <Swanand.Kadhe@ibm.com>
…/adversarial-robustness-toolbox into development_audio_backdoor

merge remote branch
@Swanand-Kadhe
Copy link
Collaborator Author

Hi @beat-buesser Thank you so much for reviewing the PR and for the suggestions. I have incorporated them. Please take a look and let me know if there are any other suggestions. Many thanks!

beat-buesser and others added 3 commits June 28, 2022 10:59
Signed-off-by: Swanand Ravindra Kadhe <Swanand.Kadhe@ibm.com>
…/adversarial-robustness-toolbox into development_audio_backdoor

merge remote branch into local
Copy link
Collaborator

@beat-buesser beat-buesser left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @Swanand-Kadhe Thank you very much!

@beat-buesser beat-buesser merged commit 8aa0aa6 into Trusted-AI:dev_1.11.0 Jun 28, 2022
ART 1.11.0 automation moved this from Pull request review to Pull request done Jun 28, 2022
@beat-buesser beat-buesser linked an issue Jun 29, 2022 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
No open projects
ART 1.11.0
  
Pull request done
Development

Successfully merging this pull request may close these issues.

Add poisoning attack for audio
3 participants