Skip to content

Conversation

@ivanoconnor
Copy link

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

ivanoconnor and others added 20 commits August 18, 2025 17:31
…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.
@kyuz0
Copy link
Collaborator

kyuz0 commented Dec 6, 2025

@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.

@ivanoconnor
Copy link
Author

Hey - happy to give this a go over the next couple of weeks

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.

3 participants