Text Adversarial Purification as Defense against Adversarial Attacks
Not on the map. Why?
Abstract (arXiv)
Adversarial purification is a successful defense mechanism against adversarial attacks without requiring knowledge of the form of the incoming attack. Generally, adversarial purification aims to remove the adversarial perturbations therefore can make correct predictions based on the recovered clean samples. Despite the success of adversarial purification in the computer vision field that incorporates generative models such as energy-based models and diffusion models, using purification as a defense strategy against textual adversarial attacks is rarely explored. In this work, we introduce a novel adversarial purification method that focuses on defending against textual adversarial attacks. With the help of language models, we can inject noise by masking input texts and reconstructing the masked texts based on the masked language models. In this way, we construct an adversarial purification process for textual models against the most widely used word-substitution adversarial attacks. We test our proposed adversarial purification method on several strong adversarial attack methods including Textfooler and BERT-Attack and experimental results indicate that the purification algorithm can successfully defend against strong word-substitution attacks.
Key facts. Cited by 15 papers in the map (data through 7 Oct 2026). Builds on 25 of its 39 references that are in the map. First posted on arXiv 27 Mar 2022.
Builds on
25 of 39 references.
References · 25
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
- 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,266
- 2020Score-Based Generative Modeling through Stochastic Differential Equationscited by 8,964
- 2014Explaining and Harnessing Adversarial Examplescited by 7,287
- 2017Towards Deep Learning Models Resistant to Adversarial Attackscited by 6,326
- 2016Towards Evaluating the Robustness of Neural Networkscited by 2,976
- 2015Character-level Convolutional Networks for Text Classificationcited by 2,293
- 2020BERT-ATTACK: Adversarial Attack Against BERT Using BERTcited by 488
- 2018Universal Sentence Encodercited by 485
- 2018Generating Natural Language Adversarial Examplescited by 422
- 2018Defense-GAN: Protecting Classifiers Against Adversarial Attacks Using Generative Modelscited by 362
- 2020BAE: BERT-based Adversarial Examples for Text Classificationcited by 316
13 more
- 2019Certified Robustness to Adversarial Word Substitutionscited by 164
- 2016Counter-fitting Word Vectors to Linguistic Constraintscited by 138
- 2021Adversarial purification with Score-based generative modelscited by 132
- 2019Robust Neural Machine Translation with Doubly Adversarial Inputscited by 105
- 2019Achieving Verified Robustness to Symbol Substitutions via Interval Bound Propagationcited by 87
- 2020Reevaluating Adversarial Examples in Natural Languagecited by 83
- 2021Towards Robustness Against Natural Language Word Substitutionscited by 68
- 2021Certified Robustness to Text Adversarial Attacks by Randomized [MASK]cited by 57
- 2021Searching for an Effective Defender: Benchmarking Defense against Adversarial Word Substitutioncited by 55
- 2021Online Adversarial Purification based on Self-Supervisioncited by 45
- 2020Defense against Adversarial Attacks in NLP via Dirichlet Neighborhood Ensemblecited by 26
- 2020Searching for a Search Method: Benchmarking Search Algorithms for Generating NLP Adversarial Examplescited by 23
- 2020TAVAT: Token-Aware Virtual Adversarial Training for Language Understandingcited by 8
Built on by
Citing papers per year: 2023: 2; 2024: 6; 2025: 5; 2026: 2.
15 papers.
Sort:
By area:
- 2023A Survey on Large Language Model (LLM) Security and Privacy: The Good, the Bad, and the Uglycited by 380
- 2024Optimization-based Prompt Injection Attack to LLM-as-a-Judgecited by 123
- 2024Navigating the Risks: A Survey of Security, Privacy, and Ethics Threats in LLM-Based Agentscited by 63
- 2024Large Language Model Sentinel: LLM Agent for Adversarial Purificationcited by 10
- 2024Adversarial Text Purification: A Large Language Model Approach for Defensecited by 8
- 2025Retrieval-Augmented Purifier for Robust LLM-Empowered Recommendationcited by 7
- 2025Exploring Gradient-Guided Masked Language Model to Detect Textual Adversarial Attackscited by 4
- 2024MaskPure: Improving Defense Against Text Adversaries with Stochastic Purificationcited by 2
- 2025GenoArmory: A Unified Evaluation Framework for Adversarial Attacks on Genomic Foundation Modelscited by 2
- 2025Sharing State Between Prompts and Programscited by 2
- 2023Fooling the Textual Fooler via Randomizing Latent Representationscited by 1
- 2024Adversarial Attacks and Dimensionality in Text Classifierscited by 0
3 more
- 2025Adversarially Robust Detection of Harmful Online Content: A Computational Design Science Approachcited by 0
- 2026Agentic Adversarial Rewriting Exposes Architectural Vulnerabilities in Black-Box NLP Pipelinescited by 0
- 2026Detect, Unlearn, Restore: Defending Text Summarization Models Against Data Poisoningcited by 0
- 2026Detect, Unlearn, Restore: Defending Text Summarization Models Against Data Poisoning24 Jun 2026
- 2026Agentic Adversarial Rewriting Exposes Architectural Vulnerabilities in Black-Box NLP Pipelines26 Apr 2026
- 2025Adversarially Robust Detection of Harmful Online Content: A Computational Design Science Approach19 Dec 2025
- 2025Sharing State Between Prompts and Programs16 Dec 2025
- 2025GenoArmory: A Unified Evaluation Framework for Adversarial Attacks on Genomic Foundation Models16 May 2025
- 2025Exploring Gradient-Guided Masked Language Model to Detect Textual Adversarial Attacks8 Apr 2025
- 2025Retrieval-Augmented Purifier for Robust LLM-Empowered Recommendation3 Apr 2025
- 2024Navigating the Risks: A Survey of Security, Privacy, and Ethics Threats in LLM-Based Agents14 Nov 2024
- 2024MaskPure: Improving Defense Against Text Adversaries with Stochastic Purification18 Jun 2024
- 2024Large Language Model Sentinel: LLM Agent for Adversarial Purification24 May 2024
- 2024Adversarial Attacks and Dimensionality in Text Classifiers3 Apr 2024
- 2024Optimization-based Prompt Injection Attack to LLM-as-a-Judge26 Mar 2024
- 2024Optimization-based Prompt Injection Attack to LLM-as-a-Judgecited by 123
- 2024Optimization-based Prompt Injection Attack to LLM-as-a-Judge26 Mar 2024
- 2023A Survey on Large Language Model (LLM) Security and Privacy: The Good, the Bad, and the Uglycited by 380
- 2024Adversarial Text Purification: A Large Language Model Approach for Defensecited by 8
- 2025Exploring Gradient-Guided Masked Language Model to Detect Textual Adversarial Attackscited by 4
- 2024MaskPure: Improving Defense Against Text Adversaries with Stochastic Purificationcited by 2
- 2025GenoArmory: A Unified Evaluation Framework for Adversarial Attacks on Genomic Foundation Modelscited by 2
- 2025Sharing State Between Prompts and Programscited by 2
- 2023Fooling the Textual Fooler via Randomizing Latent Representationscited by 1
- 2024Adversarial Attacks and Dimensionality in Text Classifierscited by 0
- 2025Sharing State Between Prompts and Programs16 Dec 2025
- 2025GenoArmory: A Unified Evaluation Framework for Adversarial Attacks on Genomic Foundation Models16 May 2025
- 2025Exploring Gradient-Guided Masked Language Model to Detect Textual Adversarial Attacks8 Apr 2025
- 2024MaskPure: Improving Defense Against Text Adversaries with Stochastic Purification18 Jun 2024
- 2024Adversarial Attacks and Dimensionality in Text Classifiers3 Apr 2024
- 2024Adversarial Text Purification: A Large Language Model Approach for Defense5 Feb 2024
- 2023A Survey on Large Language Model (LLM) Security and Privacy: The Good, the Bad, and the Ugly4 Dec 2023
- 2023Fooling the Textual Fooler via Randomizing Latent Representations2 Oct 2023
Similar, not cited
Close in wording, no citation either way
- 2023Language Guided Adversarial Purification
- 2022Diffusion Models for Adversarial Purification
- 2025Defending Against Frequency-Based Attacks with Diffusion Models
- 2025Gradient-Free Adversarial Purification with Diffusion Models
- 2024Instant Adversarial Purification with Adversarial Consistency Distillation
- 2024Classifier Guidance Enhances Diffusion-based Adversarial Purification by Preserving Predictive Information
- 2023DiffAttack: Evasion Attacks Against Diffusion-Based Adversarial Purification
- 2026AMRM-Pure: Semantic-Preserving Adversarial Purification ↗