Skip to main content
QUICK REVIEW

[Paper Review] Adversarial Attacks and Defense on Texts: A Survey

Aminul Huq, Mst. Tasnim Pervin|arXiv (Cornell University)|May 28, 2020
Adversarial Robustness in Machine LearningComputer Science57 references13 citations
TL;DR

This survey provides a comprehensive analysis of adversarial attacks and defense techniques in natural language processing, categorizing attack methods by perturbation level and defense strategies by approach. It identifies key challenges such as discrete text data, imperceptibility issues, lack of benchmarks, and the absence of unified defense models, while highlighting the need for standardized toolkits and universal perturbations in text.

ABSTRACT

Deep learning models have been used widely for various purposes in recent years in object recognition, self-driving cars, face recognition, speech recognition, sentiment analysis, and many others. However, in recent years it has been shown that these models possess weakness to noises which force the model to misclassify. This issue has been studied profoundly in the image and audio domain. Very little has been studied on this issue concerning textual data. Even less survey on this topic has been performed to understand different types of attacks and defense techniques. In this manuscript, we accumulated and analyzed different attacking techniques and various defense models to provide a more comprehensive idea. Later we point out some of the interesting findings of all papers and challenges that need to be overcome to move forward in this field.

Motivation & Objective

  • To systematically analyze and classify adversarial attack and defense techniques in textual deep learning models.
  • To identify the limitations and challenges in current adversarial NLP research, particularly regarding discrete data, imperceptibility, and lack of standardization.
  • To compare existing attack and defense methods across NLP tasks such as sentiment analysis, machine translation, and question-answering.
  • To highlight the imbalance in research focus—where most studies target attacks, while defenses remain underexplored.
  • To propose future research directions, including the need for unified defense models, universal perturbations, and standardized benchmarks and toolkits.

Proposed method

  • The paper conducts a systematic literature review of adversarial attacks and defenses in NLP, drawing from 100+ research papers across classification, translation, and question-answering tasks.
  • It classifies attacks based on perturbation level (word, subword, character) and attack strategy (gradient-based, search-based, heuristic-based), with examples from methods like HotFlip and TextAttack.
  • Defenses are categorized into adversarial training, input transformation, model distillation, and robust architecture design, with specific examples like SEM and Pruthi et al. (2019) for spelling-based attacks.
  • The study evaluates techniques using a taxonomy of attack levels and defense mechanisms, comparing their effectiveness across datasets like IMDB, SNLI, SQuAD, and WMT.
  • It identifies gaps through comparative analysis of existing surveys and highlights the absence of a standard benchmark or open-source toolkit for text adversarial research.
  • The methodology includes a critical synthesis of findings, challenges, and open problems, based on a thorough review of attack generation strategies and defense implementations.

Experimental results

Research questions

  • RQ1What are the main categories and taxonomies of adversarial attacks in natural language processing, and how do they differ from image-based attacks?
  • RQ2How effective are current defense mechanisms in mitigating various types of adversarial attacks in text, and what are their limitations?
  • RQ3Why is imperceptibility more challenging in text than in images, and how does the discrete nature of text affect adversarial attack design?
  • RQ4What are the key challenges hindering progress in adversarial NLP, including lack of benchmarks and standard toolkits?
  • RQ5Can a unified defense strategy be developed to handle multiple attack types, or are current defenses inherently task- and attack-specific?

Key findings

  • Character-level perturbations, such as adding dots or spaces, can significantly alter model predictions, demonstrating that even minimal changes can break model robustness.
  • Most research focuses on attack strategies, with only a small fraction dedicated to defense, indicating a significant imbalance in research attention.
  • The majority of adversarial example generation in text follows a two-step process: identifying the most influential word and replacing it with adversarial candidates to mislead the model.
  • No existing defense strategy can effectively handle all types of attacks, such as synonym-based or spelling-based attacks, highlighting the lack of a unified defense framework.
  • The absence of a standard benchmark and open-source toolkit for text adversarial research hinders reproducibility and fair comparison across methods.
  • Universal perturbations—effective across multiple inputs—have not yet been successfully extended to text, unlike in the image domain, representing a major open challenge.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.