Add adaptive random suffix attack module#30
Open
ivanoconnor wants to merge 20 commits intoReversecLabs:mainfrom
Open
Add adaptive random suffix attack module#30ivanoconnor wants to merge 20 commits intoReversecLabs:mainfrom
ivanoconnor wants to merge 20 commits intoReversecLabs:mainfrom
Conversation
…apping file - Updated `ensure_tiktoken_offline` function to download the public tiktoken mapping file from a specified URL instead of using a bundled resource. - Added support for an optional `save_path` parameter to specify the exact file path or directory for saving the downloaded file. - Improved error handling for download failures. - Removed the `spikee/utils.py` module, which contained timeout utilities, as it is no longer needed.
Shiva108
approved these changes
Dec 6, 2025
Collaborator
|
@ivanoconnor / @Shiva108 , this pull request will need some work to be merged as we changed the attack module interface to use OOP and we introduced functional testing. I am planning to work on this merge this side of Christmas, unless somebody wants to give it a go, I think it mostly just needs an update to adapt to the new interfaces for targets and attacks, ensuring the OOP interface for targets correctly handles the log probabilities needed by the attack. |
Author
|
Hey - happy to give this a go over the next couple of weeks |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds a token-level adversarial attack module based on research from the EPFL paper on adaptive attacks (arXiv:2404.02151)
Docs available at
docs/10_adaptive_rsa.md