mlsanityData to 13 Oct 2026

Adversarial Text Purification: A Large Language Model Approach for Defense

arXiv 2402.06655 ↗First posted 5 Feb 2024cs.CR cs.AI cs.CLcited by 8

Not on the map. Why?

Abstract (arXiv)

Adversarial purification is a defense mechanism for safeguarding classifiers against adversarial attacks without knowing the type of attacks or training of the classifier. These techniques characterize and eliminate adversarial perturbations from the attacked inputs, aiming to restore purified samples that retain similarity to the initially attacked ones and are correctly classified by the classifier. Due to the inherent challenges associated with characterizing noise perturbations for discrete inputs, adversarial text purification has been relatively unexplored. In this paper, we investigate the effectiveness of adversarial purification methods in defending text classifiers. We propose a novel adversarial text purification that harnesses the generative capabilities of Large Language Models (LLMs) to purify adversarial text without the need to explicitly characterize the discrete noise perturbations. We utilize prompt engineering to exploit LLMs for recovering the purified examples for given adversarial examples such that they are semantically similar and correctly classified. Our proposed method demonstrates remarkable performance over various classifiers, improving their accuracy under the attack by over 65% on average.

Key facts. Cited by 8 papers in the map (data through 13 Oct 2026). Builds on 27 of its 39 references that are in the map. First posted on arXiv 5 Feb 2024.

Builds on

27 of 39 references.

References · 27

  1. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,304
  2. 2020Language Models are Few-Shot Learnerscited by 32,320
  3. 2022Training language models to follow instructions with human feedbackcited by 15,856
  4. 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,322
  5. 2020Score-Based Generative Modeling through Stochastic Differential Equationscited by 9,028
  6. 2017Towards Deep Learning Models Resistant to Adversarial Attackscited by 6,379
  7. 2022Training a Helpful and Harmless Assistant with Reinforcement Learning from Human Feedbackcited by 3,691
  8. 2023A Survey on Evaluation of Large Language Modelscited by 1,236
  9. 2019Is BERT Really Robust? A Strong Baseline for Natural Language Attack on Text Classification and Entailmentcited by 668
  10. 2020BERT-ATTACK: Adversarial Attack Against BERT Using BERTcited by 490
  11. 2022Diffusion Models for Adversarial Purificationcited by 472
  12. 2018Generating Natural Language Adversarial Examplescited by 424
15 more
  1. 2018Defense-GAN: Protecting Classifiers Against Adversarial Attacks Using Generative Modelscited by 362
  2. 2016Adversarial Training Methods for Semi-Supervised Text Classificationcited by 280
  3. 2019FreeLB: Enhanced Adversarial Training for Natural Language Understandingcited by 263
  4. 2019Certified Robustness to Adversarial Word Substitutionscited by 168
  5. 2023A Study of Generative Large Language Model for Medical Research and Healthcarecited by 162
  6. 2023ExpertPrompting: Instructing Large Language Models to be Distinguished Expertscited by 141
  7. 2021Adversarial purification with Score-based generative modelscited by 133
  8. 2019Robust Neural Machine Translation with Doubly Adversarial Inputscited by 105
  9. 2021Certified Robustness to Text Adversarial Attacks by Randomized [MASK]cited by 57
  10. 2021Searching for an Effective Defender: Benchmarking Defense against Adversarial Word Substitutioncited by 56
  11. 2023Fighting Fire with Fire: Can ChatGPT Detect AI-generated Text?cited by 39
  12. 2023Open-Source LLMs for Text Annotation: A Practical Guide for Model Setting and Fine-Tuningcited by 31
  13. 2022A Survey of Adversarial Defences and Robustness in NLPcited by 23
  14. 2022Text Adversarial Purification as Defense against Adversarial Attackscited by 16
  15. 2023Can Large Language Models Aid in Annotating Speech Emotional Data? Uncovering New Frontierscited by 10

Built on by

Cited by year (2026 to 13 Oct)

Citing papers per year: 2024: 3; 2025: 4; 2026: 1.

8 papers.