JOURNAL ARTICLE

Text Adversarial Purification as Defense against Adversarial Attacks

Abstract

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.

Keywords:
Adversarial system Computer science Construct (python library) Word (group theory) Masking (illustration) Artificial intelligence Language model Computer security Linguistics

Metrics

10
Cited By
2.55
FWCI (Field Weighted Citation Impact)
38
Refs
0.88
Citation Normalized Percentile
Is in top 1%
Is in top 10%

Citation History

Topics

Adversarial Robustness in Machine Learning
Physical Sciences →  Computer Science →  Artificial Intelligence
Advanced Malware Detection Techniques
Physical Sciences →  Computer Science →  Signal Processing

Related Documents

BOOK-CHAPTER

Defense Against Adversarial Attacks

Minoru Kuribayashi

Studies in autonomic, data-driven and industrial computing Year: 2022 Pages: 131-148
JOURNAL ARTICLE

SURVEY OF ADVERSARIAL ATTACKS AND DEFENSE AGAINST ADVERSARIAL ATTACKS

Akshat JainSanskar AgarwalArmaan PareekVanshika Singh

Journal:   Darpan International Research Analysis Year: 2024 Vol: 12 (3)Pages: 535-542
JOURNAL ARTICLE

Defense Against Adversarial Attacks for Neural Representations of Text

Huixin ZhanKun ZhangZhong ChenVictor S. Sheng

Journal:   Proceedings of the ... Annual Hawaii International Conference on System Sciences/Proceedings of the Annual Hawaii International Conference on System Sciences Year: 2024
JOURNAL ARTICLE

Defense Against Adversarial Attacks for Neural Representations of Text

Huixin ZhanKun ZhangZhong ChenVictor S. Sheng

Journal:   Proceedings of the ... Annual Hawaii International Conference on System Sciences/Proceedings of the Annual Hawaii International Conference on System Sciences Year: 2024
© 2026 ScienceGate Book Chapters — All rights reserved.