thunlp/OpenAttack
An Open-Source Package for Textual Adversarial Attack.
Supports sentence-, word-, and character-level perturbations across gradient-based, score-based, decision-based, and black-box attack paradigms. Built-in multilingual support (English/Chinese) with parallel processing capabilities and full integration with Hugging Face Transformers and Datasets. Extensible architecture enables custom victim models, datasets, and attack algorithms through pluggable components for robustness evaluation and adversarial training workflows.
772 stars and 218 monthly downloads. No commits in the last 6 months. Available on PyPI.
Stars
772
Forks
130
Language
Python
License
MIT
Category
Last pushed
Jul 20, 2023
Monthly downloads
218
Commits (30d)
0
Dependencies
6
Get this data via API
curl "https://pt-edge.onrender.com/api/v1/quality/nlp/thunlp/OpenAttack"
Open to everyone — 100 requests/day, no key needed. Get a free key for 1,000/day.
Related tools
thunlp/TAADpapers
Must-read Papers on Textual Adversarial Attack and Defense
osoleve/glitchlings
Enemies for your LLM
jind11/TextFooler
A Model for Natural Language Attack on Text Classification and Inference
thunlp/OpenBackdoor
An open-source toolkit for textual backdoor attack and defense (NeurIPS 2022 D&B, Spotlight)
thunlp/SememePSO-Attack
Code and data of the ACL 2020 paper "Word-level Textual Adversarial Attacking as Combinatorial...