Towards a Robust Deep Neural Network in Texts: A Survey

Wenqi Wang, Lina Wang, Run Wang, Zhibo Wang, Aoshuang Ye · DOI

Abstract: Deep neural networks (DNNs) have achieved remarkable success in various tasks such as image classification, speech recognition, and natural language processing (NLP). However, researchers have demonstrated that DNN-based models are vulnerable to adversarial examples, which cause erroneous predictions by adding imperceptible perturbations into legitimate inputs. Recently, studies have revealed adversarial examples in the text domain, which could effectively evade various DNN-based text analyzers and further bring the threats of the proliferation of disinformation. In this paper, we give a comprehensive survey on the existing studies of adversarial techniques for generating adversarial texts written by both English and Chinese characters and the corresponding defense methods. We classify the existing adversarial techniques based on perturbation units, introduce adversarial techniques from the perspective of different NLP tasks, and discuss existing challenges and future research directions.

Introduction

Deep Neural Networks (DNNs) have revolutionized Natural Language Processing, yet they possess a critical vulnerability: susceptibility to adversarial examples. These are inputs modified by small, often human-imperceptible perturbations that cause a model to make confident, incorrect predictions. While adversarial research in the image domain is mature, text presents a unique challenge due to its discrete nature. Unlike images, where one can add a tiny gradient to a pixel, changing a single letter or word in text can fundamentally alter semantics or syntax.

Growth of publications in adversarial research (all areas vs. text domain).

As shown in the figure above, while adversarial research has exploded across all AI domains, the text-specific domain has seen a more gradual but steady increase, highlighting an escalating "arms race" between attackers and defenders.

Taxonomy of Adversarial Attacks

Adversarial text generation is categorized based on the unit of perturbation:

  • Character-level Attacks: These exploit visual similarities or common typos (e.g., swapping 'l' for '1'). Tools like DeepWordBug use these to bypass filters while remaining readable to humans.
  • Word-level Attacks: This is the most common approach, involving the replacement of words with synonyms or using gradient-based methods to identify "vulnerable" words that, if changed, flip the model's prediction.
  • Sentence-level Attacks: These involve adding distracting sentences or using Generative Adversarial Networks (GANs) to paraphrase entire sequences to confuse the model.
  • Multi-level Attacks: Hybrid approaches that combine multiple perturbation levels to maximize the attack success rate.
Example of a word-level adversarial attack on the ParallelDots sentiment analysis system.

Defense Strategies

To counter these threats, two primary strategies have emerged:

  1. Adversarial Detection: Identifying and filtering out "noisy" inputs before they reach the model using tools like spell-checkers or word recognition models.
  2. Model Enhancement: Improving the model itself through Adversarial Training (including adversarial examples in the training set) or Certified Robustness, which mathematically proves a model's stability within a specific perturbation range.

Key Insights and Challenges

  • The Discrete Dilemma: Text requires specialized metrics like Edit Distance and Cosine Similarity to ensure the adversarial text maintains its original meaning to a human reader.
  • Chinese Language Nuances: Attacks on Chinese models are fundamentally different because they require word segmentation. Defenses like English spell-checkers are ineffective, necessitating language-specific features like glyph and phonetic-level analysis.
  • Transferability: Many attacks are "black-box" capable. An attacker can craft an attack against a substitute model, and that same attack will often successfully fool a completely different, proprietary system.

Conclusion and Future Work

While adversarial training is currently the most effective defense, it suffers from a "cat-and-mouse" problem, often only protecting against specific known attacks. Future work must focus on "imperceptibility"—ensuring text looks perfectly natural to humans—and the development of unified benchmarks to compare attack and defense algorithms fairly across the field.

Summary updated

Abstract

Deep neural networks (DNNs) have achieved remarkable success in various tasks (e.g., image classification, speech recognition, and natural language processing (NLP)). However, researchers have demonstrated that DNN-based models are vulnerable to adversarial examples, which cause erroneous predictions by adding imperceptible perturbations into legitimate inputs. Recently, studies have revealed adversarial examples in the text domain, which could effectively evade various DNN-based text analyzers and further bring the threats of the proliferation of disinformation. In this paper, we give a comprehensive survey on the existing studies of adversarial techniques for generating adversarial texts written by both English and Chinese characters and the corresponding defense methods. More importantly, we hope that our work could inspire future studies to develop more robust DNN-based text analyzers against known and unknown adversarial techniques. We classify the existing adversarial techniques for crafting adversarial texts based on the perturbation units, helping to better understand the generation of adversarial texts and build robust models for defense. In presenting the taxonomy of adversarial attacks and defenses in the text domain, we introduce the adversarial techniques from the perspective of different NLP tasks. Finally, we discuss the existing challenges of adversarial attacks and defenses in texts and present the future research directions in this emerging and challenging field.
BibTeX
@misc{wang2019towards,
  author = {Wenqi Wang and Lina Wang and Run Wang and Zhibo Wang and Aoshuang Ye},
  title = {{Towards a Robust Deep Neural Network in Texts: A Survey}},
  year = {2019},
  eprint = {1902.07285},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1902.07285},
}
Figure