TextAttack
AI Security & Safety · Free + paid
NLP adversarial attacks, augmentation, and training
At a glance
- Korean
- None (English and a few others only)
- Available on
- CLI
- Open source
- MIT
- GitHub
- 3,478 stars · MIT
What is TextAttack?
TextAttack is a Python framework for adversarial attacks, data augmentation, and model training in NLP. You can run various adversarial attacks on NLP models and examine the outputs to better understand the models, and use its library of components to research and develop new attacks. You can augment datasets to improve model generalization and robustness, and train NLP models with a single command. It runs from the textattack command line or as a Python module.
- Adversarial attack recipes (TextFooler, DeepWordBug, BERT-Attack, etc.)
- Data augmentation (textattack augment)
- Model training (textattack train) and evaluation (textattack eval)
- Collection of pretrained models (Model Zoo)
- Multilingual attacks (French, Spanish, and Chinese recipes)
- Custom transformations, constraints, datasets, and models
- Parallel attacks on multiple GPUs (--parallel)
Who uses TextAttack and for what
- Understanding and evaluating NLP models with adversarial attacks
- Researching and developing new NLP adversarial attacks
- Improving model robustness by augmenting datasets
Pricing
Open source + paid enterprise plans
Some open-source tools are free; enterprise security platforms are billed under separate contracts
Estimate based on AI knowledge - please verify on the official site
AI tools similar to TextAttack (alternatives)
TextAttack vs. alternatives at a glance
| AI | Pricing | Combos on the map | Connected tools | Free | Cheapest monthly | Korean |
|---|---|---|---|---|---|---|
| TextAttack | Free + paid | 0 | 5 | — | — | No |
| ART | Free + paid | 0 | 6 | — | — | No |
| Foolbox | Free + paid | 0 | 6 | — | — | No |
| Garak | Free + paid | 0 | 6 | Yes | — | No |
| HarmBench | Free + paid | 0 | 6 | — | — | No |
1 of these 5 tools have a free plan.
Combo and connection counts are based on the relationships recorded on AI Galaxy Map (2026-10-26); they are not a quality ranking.
TextAttack on AI Galaxy Map
- One of 21 AI tools in the AI Security & Safety field.
- Connected to 5 other tools — #11 in its field.
Frequently asked questions
Can I use TextAttack for free?
Open source + paid enterprise plans. Prices can change, so check the official site before paying.
What AI can I use instead of TextAttack?
Tools that do the same job, such as ART, Foolbox, Garak, HarmBench, are connected to it on the map.
Can I use TextAttack in Korean?
None (English and a few others only)
Sources (official pages)
Checked on the official pages on 2026-10-14. Prices and features can change, so check the official site again before paying.