thunlp/OpenAttack

An Open-Source Package for Textual Adversarial Attack.

56
/ 100
Established

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.

Stale 6m
Maintenance 0 / 25
Adoption 15 / 25
Maturity 18 / 25
Community 23 / 25

How are scores calculated?

Stars

772

Forks

130

Language

Python

License

MIT

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.