TextAttack: A Framework for Adversarial Attacks, Data Augmentation, and Adversarial Training in NLP
While there has been substantial research using adversarial attacks to analyze NLP models, each attack is implemented in its own code repository. It remains challenging to develop NLP attacks and utilize them to improve model performance. This paper introduces TextAttack, a Python framework for adversarial attacks, data augmentation, and adversarial training in NLP. TextAttack builds attacks from four components: a goal function, a set of constraints, a transformation, and a search method. TextAttack's modular design enables researchers to easily construct attacks from combinations of novel and existing components. TextAttack provides implementations of 16 adversarial attacks from the literature and supports a variety of models and datasets, including BERT and other transformers, and all GLUE tasks. TextAttack also includes data augmentation and adversarial training modules for using components of adversarial attacks to improve model accuracy and robustness. TextAttack is democratizing NLP: anyone can try data augmentation and adversarial training on any model or dataset, with just a few lines of code. Code and tutorials are available at https://github.com/QData/TextAttack.
Code (2)
Tasks
Adversarial AttackAdversarial TextData AugmentationLexical EntailmentMachine TranslationText ClassificationMethods 이 논문이 사용한 방법론
Similar Papers 제목 키워드 기반
TextAttack: Lessons learned in designing Python frameworks for NLP
TextAttack is an open-source Python toolkit for adversarial attacks, adversarial training, and data augmentation in NLP. TextAttack unites 15+ papers from the NLP adversarial attack literature into a single framework, wi…
Adversarial AttackData AugmentationDon’t Search for a Search Method — Simple Heuristics Suffice for Adversarial Text Attacks
Recently more attention has been given to adversarial attacks on neural networks for natural language processing (NLP). A central research topic has been the investigation of search algorithms and search constraints, acc…
Adversarial TextDon't Search for a Search Method -- Simple Heuristics Suffice for Adversarial Text Attacks
Recently more attention has been given to adversarial attacks on neural networks for natural language processing (NLP). A central research topic has been the investigation of search algorithms and search constraints, acc…
Adversarial TextSelective Adversarial Attacks on LLM Benchmarks
Benchmarking outcomes increasingly govern trust, selection, and deployment of LLMs, yet these evaluations remain vulnerable to semantically equivalent adversarial perturbations. Prior work on adversarial robustness in NL…
Adversarial RobustnessGeneral KnowledgeIdentifying Adversarial Attacks on Text Classifiers
The landscape of adversarial attacks against text classifiers continues to grow, with new attacks developed every year and many of them available in standard toolkits, such as TextAttack and OpenAttack. In response, ther…
Abuse DetectionAdversarial TextLanguage ModellingSentiment Analysis