Towards Improving Adversarial Training of NLP Models
Not on the map. Why?
Abstract (arXiv)
Adversarial training, a method for learning robust deep neural networks, constructs adversarial examples during training. However, recent methods for generating NLP adversarial examples involve combinatorial search and expensive sentence encoders for constraining the generated instances. As a result, it remains challenging to use vanilla adversarial training to improve NLP models' performance, and the benefits are mainly uninvestigated. This paper proposes a simple and improved vanilla adversarial training process for NLP models, which we name Attacking to Training (A2T). The core part of A2T is a new and cheaper word substitution attack optimized for vanilla adversarial training. We use A2T to train BERT and RoBERTa models on IMDB, Rotten Tomatoes, Yelp, and SNLI datasets. Our results empirically show that it is possible to train robust NLP models using a much cheaper adversary. We demonstrate that vanilla adversarial training with A2T can improve an NLP model's robustness to the attack it was originally trained with and also defend the model against other types of word substitution attacks. Furthermore, we show that A2T can improve NLP models' standard accuracy, cross-domain generalization, and interpretability. Code is available at https://github.com/QData/Textattack-A2T .
Key facts. Cited by 79 papers in the map (data through 14 Oct 2026). Builds on 35 of its 55 references that are in the map. First posted on arXiv 1 Sep 2021.
Builds on
35 of 55 references.
References · 35
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
- 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,372
- 2019Sentence-BERT: Sentence Embeddings using Siamese BERT-Networkscited by 9,170
- 2014Explaining and Harnessing Adversarial Examplescited by 7,364
- 2017Towards Deep Learning Models Resistant to Adversarial Attackscited by 6,415
- 2016"Why Should I Trust You?": Explaining the Predictions of Any Classifiercited by 5,070
- 2019DistilBERT, a distilled version of BERT: smaller, faster, cheaper and lightercited by 4,307
- 2015Character-level Convolutional Networks for Text Classificationcited by 2,330
- 2015A large annotated corpus for learning natural language inferencecited by 1,847
- 2017Decoupled Weight Decay Regularizationcited by 1,831
- 2016Adversarial examples in the physical worldcited by 1,769
- 2017Adversarial Examples for Evaluating Reading Comprehension Systemscited by 571
23 more
- 2020BERT-ATTACK: Adversarial Attack Against BERT Using BERTcited by 491
- 2018Universal Sentence Encodercited by 489
- 2019On Evaluating Adversarial Robustnesscited by 447
- 2018Generating Natural Language Adversarial Examplescited by 424
- 2015Evaluating the visualization of what a Deep Neural Network has learnedcited by 419
- 2018Black-box Generation of Adversarial Text Sequences to Evade Deep Learning Classifierscited by 345
- 2020BAE: BERT-based Adversarial Examples for Text Classificationcited by 316
- 2016Adversarial Training Methods for Semi-Supervised Text Classificationcited by 280
- 2019SMART: Robust and Efficient Fine-Tuning for Pre-trained Natural Language Models through Principled Regularized Optimizationcited by 254
- 2019Facebook FAIR's WMT19 News Translation Task Submissioncited by 179
- 2019Certified Robustness to Adversarial Word Substitutionscited by 168
- 2016Counter-fitting Word Vectors to Linguistic Constraintscited by 140
- 2020Contextualized Perturbation for Textual Adversarial Attackcited by 136
- 2020Adversarial Training for Large Neural Language Modelscited by 111
- 2020SSMBA: Self-Supervised Manifold Based Data Augmentation for Improving Out-of-Domain Robustnesscited by 96
- 2018Seq2Sick: Evaluating the Robustness of Sequence-to-Sequence Models with Adversarial Examplescited by 94
- 2019Achieving Verified Robustness to Symbol Substitutions via Interval Bound Propagationcited by 88
- 2020Reevaluating Adversarial Examples in Natural Languagecited by 85
- 2021Towards Robustness Against Natural Language Word Substitutionscited by 69
- 2018Training verified learners with learned verifierscited by 50
- 2020TextAttack: A Framework for Adversarial Attacks, Data Augmentation, and Adversarial Training in NLPcited by 45
- 2020Learning Variational Word Masks to Improve the Interpretability of Neural Text Classifierscited by 35
- 2020Searching for a Search Method: Benchmarking Search Algorithms for Generating NLP Adversarial Examplescited by 23
Built on by
Citing papers per year: 2022: 13; 2023: 29; 2024: 26; 2025: 7; 2026: 4.
79 papers.
Sort:
By area:
- 2023A Survey on Large Language Model (LLM) Security and Privacy: The Good, the Bad, and the Uglycited by 387
- 2022State-of-the-art generalisation research in NLP: A taxonomy and reviewcited by 98
- 2024Typos that Broke the RAG's Back: Genetic Attack on RAG Pipeline by Simulating Documents in the Wild via Low-level Perturbationscited by 65
- 2024R.A.C.E.: Robust Adversarial Concept Erasure for Secure Text-to-Image Diffusion Modelcited by 58
- 2023Query-Efficient Black-Box Red Teaming via Bayesian Optimizationcited by 32
- 2023Adversarial Illusions in Multi-Modal Embeddingscited by 29
- 2023Are Chatbots Ready for Privacy-Sensitive Applications? An Investigation into Input Regurgitation and Prompt-Induced Sanitizationcited by 17
- 2023PTP: Boosting Stability and Performance of Prompt Tuning with Perturbation-Based Regularizercited by 15
- 2024LLM Whisperer: An Inconspicuous Attack to Bias LLM Responsescited by 15
- 2023Dynamic Transformers Provide a False Sense of Efficiencycited by 14
- 2024Towards Building a Robust Toxicity Predictorcited by 14
- 2023A Review of ChatGPT Applications in Education, Marketing, Software Engineering, and Healthcare: Benefits, Drawbacks, and Research Directionscited by 12
38 more
- 2023Generating Valid and Natural Adversarial Examples with Large Language Modelscited by 12
- 2024An Unsupervised Approach to Achieve Supervised-Level Explainability in Healthcare Recordscited by 12
- 2023Randomized Smoothing with Masked Inference for Adversarially Robust Text Classificationscited by 11
- 2023Improving the Robustness of Transformer-based Large Language Models with Dynamic Attentioncited by 10
- 2022Impact of Adversarial Training on Robustness and Generalizability of Language Modelscited by 9
- 2023TextDefense: Adversarial Text Detection based on Word Importance Entropycited by 9
- 2023LimeAttack: Local Explainable Method for Textual Hard-Label Adversarial Attackcited by 9
- 2026LaS-Comp: Zero-shot 3D Completion with Latent-Spatial Consistencycited by 9
- 2022Residue-Based Natural Language Adversarial Attack Detectioncited by 8
- 2023CitySpec with Shield: A Secure Intelligent Assistant for Requirement Formalizationcited by 7
- 2023Modeling Adversarial Attack on Pre-trained Language Models as Sequential Decision Makingcited by 6
- 2023LEAP: Efficient and Automated Test Method for NLP Softwarecited by 6
- 2024Adversarial Training: A Surveycited by 6
- 2023Towards Effective Paraphrasing for Information Disguisecited by 5
- 2024LLM-Based Robust Product Classification in Commerce and Compliancecited by 5
- 2024Hijacking Vision-and-Language Navigation Agents with Adversarial Environmental Attackscited by 5
- 2022Identifying Adversarial Attacks on Text Classifierscited by 4
- 2022Are Synonym Substitution Attacks Really Synonym Substitution Attacks?cited by 4
- 2023Frauds Bargain Attack: Generating Adversarial Text Samples via Word Manipulation Processcited by 4
- 2023A Classification-Guided Approach for Adversarial Attacks against Neural Machine Translationcited by 4
- 2023Improving Language Models Meaning Understanding and Consistency by Learning Conceptual Roles from Dictionarycited by 4
- 2023BERT Lost Patience Won't Be Robust to Adversarial Slowdowncited by 4
- 2024Extreme Miscalibration and the Illusion of Adversarial Robustnesscited by 4
- 2022Don't sweat the small stuff, classify the rest: Sample Shielding to protect text classifiers against adversarial attackscited by 3
- 2022Balanced Adversarial Training: Balancing Tradeoffs between Fickleness and Obstinacy in NLP Modelscited by 3
- 2023Enhancing Robustness of AI Offensive Code Generators via Data Augmentationcited by 3
- 2023Toward Stronger Textual Attack Detectorscited by 3
- 2024Finding a Needle in the Adversarial Haystack: A Targeted Paraphrasing Approach For Uncovering Edge Cases with Minimal Distribution Distortioncited by 3
- 2024SemRoDe: Macro Adversarial Training to Learn Representations That are Robust to Word-Level Attackscited by 3
- 2024PID Control-Based Self-Healing to Improve the Robustness of Large Language Modelscited by 3
- 2024Achieving Domain-Independent Certified Robustness via Knowledge Continuitycited by 3
- 2022Adversarial Attack and Defense for Non-Parametric Two-Sample Testscited by 2
- 2022Detecting Textual Adversarial Examples Based on Distributional Characteristics of Data Representationscited by 2
- 2022Learning to Ignore Adversarial Attackscited by 2
- 2022TCAB: A Large-Scale Text Classification Attack Benchmarkcited by 2
- 2024MaskPure: Improving Defense Against Text Adversaries with Stochastic Purificationcited by 2
- 2024TF-Attack: Transferable and Fast Adversarial Attacks on Large Language Modelscited by 2
- 2024TaeBench: Improving Quality of Toxic Adversarial Examplescited by 2
50 most cited of 79 All 79 (JSON)
- 2026Evaluation of Adversarial Robustness in Arabic Language Models28 Jul 2026
- 2026Vulnerability of Natural Language Classifiers to Evolutionary Generated Adversarial Text25 Jun 2026
- 2026SeaAlert: Robust Severity Classification and LLM-Based Information Extraction for Noisy Maritime Distress Communications23 Mar 2026
- 2026LaS-Comp: Zero-shot 3D Completion with Latent-Spatial Consistency21 Feb 2026
- 2025Adversarially Robust Detection of Harmful Online Content: A Computational Design Science Approach19 Dec 2025
- 2025Selective Adversarial Attacks on LLM Benchmarks15 Oct 2025
- 2025Overcoming Black-box Attack Inefficiency with Hybrid and Dynamic Select Algorithms25 Sep 2025
- 2025DINA: A Dual Defense Framework Against Internal Noise and External Attacks in Natural Language Processing4 Aug 2025
- 2025Defending against Adversarial Malware Attacks on ML-based Android Malware Detection Systems23 Jan 2025
- 2025Effective faking of verbal deception detection with target-aligned adversarial attacks10 Jan 2025
- 2025Tougher Text, Smarter Models: Raising the Bar for Adversarial Defence Benchmarks5 Jan 2025
- 2024On Adversarial Robustness of Language Models in Transfer Learning29 Dec 2024
38 more
- 2024Hijacking Vision-and-Language Navigation Agents with Adversarial Environmental Attacks3 Dec 2024
- 2024Achieving Domain-Independent Certified Robustness via Knowledge Continuity3 Nov 2024
- 2024Automated Trustworthiness Oracle Generation for Machine Learning Text Classifiers30 Oct 2024
- 2024Advancing NLP Security by Leveraging LLMs as Adversarial Engines23 Oct 2024
- 2024Adversarial Training: A Survey19 Oct 2024
- 2024TaeBench: Improving Quality of Toxic Adversarial Examples8 Oct 2024
- 2024TF-Attack: Transferable and Fast Adversarial Attacks on Large Language Models26 Aug 2024
- 2024LLM-Based Robust Product Classification in Commerce and Compliance11 Aug 2024
- 2024Adversarial Text Rewriting for Text-aware Recommender Systems1 Aug 2024
- 2024DiffuseDef: Improved Robustness to Adversarial Attacks via Iterative Denoising28 Jun 2024
- 2024IDT: Dual-Task Adversarial Attacks for Privacy Protection28 Jun 2024
- 2024MaskPure: Improving Defense Against Text Adversaries with Stochastic Purification18 Jun 2024
- 2024An Unsupervised Approach to Achieve Supervised-Level Explainability in Healthcare Records13 Jun 2024
- 2024LLM Whisperer: An Inconspicuous Attack to Bias LLM Responses7 Jun 2024
- 2024CR-UTP: Certified Robustness against Universal Text Perturbations on Large Language Models4 Jun 2024
- 2024R.A.C.E.: Robust Adversarial Concept Erasure for Secure Text-to-Image Diffusion Model25 May 2024
- 2024Typos that Broke the RAG's Back: Genetic Attack on RAG Pipeline by Simulating Documents in the Wild via Low-level Perturbations22 Apr 2024
- 2024Towards Building a Robust Toxicity Predictor9 Apr 2024
- 2024Towards Robust Domain Generation Algorithm Classification9 Apr 2024
- 2024READ: Improving Relation Extraction from an ADversarial Perspective2 Apr 2024
- 2024PID Control-Based Self-Healing to Improve the Robustness of Large Language Models31 Mar 2024
- 2024SemRoDe: Macro Adversarial Training to Learn Representations That are Robust to Word-Level Attacks27 Mar 2024
- 2024Extreme Miscalibration and the Illusion of Adversarial Robustness27 Feb 2024
- 2024Single Word Change is All You Need: Using LLMs to Create Synthetic Training Examples for Text Classifiers30 Jan 2024
- 2024Finding a Needle in the Adversarial Haystack: A Targeted Paraphrasing Approach For Uncovering Edge Cases with Minimal Distribution Distortion21 Jan 2024
- 2023A Survey on Large Language Model (LLM) Security and Privacy: The Good, the Bad, and the Ugly4 Dec 2023
- 2023Improving the Robustness of Transformer-based Large Language Models with Dynamic Attention29 Nov 2023
- 2023Generating Valid and Natural Adversarial Examples with Large Language Models20 Nov 2023
- 2023DA3: A Distribution-Aware Adversarial Attack against Language Models14 Nov 2023
- 2023Towards Effective Paraphrasing for Information Disguise8 Nov 2023
- 2023BERT Lost Patience Won't Be Robust to Adversarial Slowdown29 Oct 2023
- 2023Improving Language Models Meaning Understanding and Consistency by Learning Conceptual Roles from Dictionary24 Oct 2023
- 2023Toward Stronger Textual Attack Detectors21 Oct 2023
- 2023What Learned Representations and Influence Functions Can Tell Us About Adversarial Examples19 Sep 2023
- 2023A Classification-Guided Approach for Adversarial Attacks against Neural Machine Translation29 Aug 2023
- 2023Adversarial Illusions in Multi-Modal Embeddings22 Aug 2023
- 2023LEAP: Efficient and Automated Test Method for NLP Software22 Aug 2023
- 2023Robust Infidelity: When Faithfulness Measures on Masked Language Models Are Misleading13 Aug 2023
50 newest of 79 All 79 (JSON)
- 2023Dynamic Transformers Provide a False Sense of Efficiencycited by 14
- 2023Dynamic Transformers Provide a False Sense of Efficiency20 May 2023
- 2023A Survey on Large Language Model (LLM) Security and Privacy: The Good, the Bad, and the Uglycited by 387
- 2022State-of-the-art generalisation research in NLP: A taxonomy and reviewcited by 98
- 2023Adversarial Illusions in Multi-Modal Embeddingscited by 29
- 2023Are Chatbots Ready for Privacy-Sensitive Applications? An Investigation into Input Regurgitation and Prompt-Induced Sanitizationcited by 17
- 2023PTP: Boosting Stability and Performance of Prompt Tuning with Perturbation-Based Regularizercited by 15
- 2024LLM Whisperer: An Inconspicuous Attack to Bias LLM Responsescited by 15
- 2024Towards Building a Robust Toxicity Predictorcited by 14
- 2023A Review of ChatGPT Applications in Education, Marketing, Software Engineering, and Healthcare: Benefits, Drawbacks, and Research Directionscited by 12
- 2023Generating Valid and Natural Adversarial Examples with Large Language Modelscited by 12
- 2024An Unsupervised Approach to Achieve Supervised-Level Explainability in Healthcare Recordscited by 12
- 2023Randomized Smoothing with Masked Inference for Adversarially Robust Text Classificationscited by 11
- 2023Improving the Robustness of Transformer-based Large Language Models with Dynamic Attentioncited by 10
12 most cited of 73 All 73 (JSON)
- 2026Evaluation of Adversarial Robustness in Arabic Language Models28 Jul 2026
- 2026Vulnerability of Natural Language Classifiers to Evolutionary Generated Adversarial Text25 Jun 2026
- 2026SeaAlert: Robust Severity Classification and LLM-Based Information Extraction for Noisy Maritime Distress Communications23 Mar 2026
- 2026LaS-Comp: Zero-shot 3D Completion with Latent-Spatial Consistency21 Feb 2026
- 2025Selective Adversarial Attacks on LLM Benchmarks15 Oct 2025
- 2025Overcoming Black-box Attack Inefficiency with Hybrid and Dynamic Select Algorithms25 Sep 2025
- 2025DINA: A Dual Defense Framework Against Internal Noise and External Attacks in Natural Language Processing4 Aug 2025
- 2025Defending against Adversarial Malware Attacks on ML-based Android Malware Detection Systems23 Jan 2025
- 2025Effective faking of verbal deception detection with target-aligned adversarial attacks10 Jan 2025
- 2025Tougher Text, Smarter Models: Raising the Bar for Adversarial Defence Benchmarks5 Jan 2025
- 2024On Adversarial Robustness of Language Models in Transfer Learning29 Dec 2024
- 2024Hijacking Vision-and-Language Navigation Agents with Adversarial Environmental Attacks3 Dec 2024
12 newest of 73 All 73 (JSON)