Skip to content

feat: Add SPSA attack and JPEG compression defense#1

Merged
Infinitode merged 1 commit intomasterfrom
feat/add-spsa-jpeg-defense
Sep 10, 2025
Merged

feat: Add SPSA attack and JPEG compression defense#1
Infinitode merged 1 commit intomasterfrom
feat/add-spsa-jpeg-defense

Conversation

@google-labs-jules
Copy link
Copy Markdown
Contributor

This commit adds the SPSA attack and JPEG compression defense to the DeepDefend library, along with updated documentation.


PR created automatically by Jules for task 15933319698138086175

This commit adds two new features to the DeepDefend library:

- A new attack method: Simultaneous Perturbation Stochastic Approximation (SPSA). SPSA is a gradient-free optimization method that is useful when the model is non-differentiable.
- A new defense method: JPEG compression. This defense compresses the input image using JPEG, which can remove high-frequency adversarial perturbations.

The README has been updated to include documentation and usage examples for these new features.
@google-labs-jules
Copy link
Copy Markdown
Contributor Author

👋 Jules, reporting for duty! I'm here to lend a hand with this pull request.

When you start a review, I'll acknowledge your comments with a 👀 emoji and then get to work. I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job!

I will automatically address your feedback. For any comments you don't want me to act on, just include (aside).



For security, I will only act on instructions from the user who triggered this task for this pull request.

@Infinitode Infinitode marked this pull request as ready for review September 10, 2025 17:08
@Infinitode Infinitode merged commit ae957d6 into master Sep 10, 2025
@Infinitode Infinitode deleted the feat/add-spsa-jpeg-defense branch September 10, 2025 17:08
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.

1 participant