Skip to main content
QUICK REVIEW

[Paper Review] A Survey of Adversarial Defences and Robustness in NLP

Shreya Goyal, Sumanth Doddapaneni|arXiv (Cornell University)|Mar 12, 2022
Adversarial Robustness in Machine LearningComputer Science9 citations
TL;DR

This survey provides a comprehensive review of adversarial defense methods in NLP, introducing a novel taxonomy to categorize techniques targeting robustness against word-level, character-level, and sentence-level perturbations. It evaluates defenses such as synonym encoding, direction-constrained adversarial training, and certified robustness via differential privacy, highlighting their effectiveness in improving model resilience while maintaining performance on standard NLP tasks.

ABSTRACT

In the past few years, it has become increasingly evident that deep neural networks are not resilient enough to withstand adversarial perturbations in input data, leaving them vulnerable to attack. Various authors have proposed strong adversarial attacks for computer vision and Natural Language Processing (NLP) tasks. As a response, many defense mechanisms have also been proposed to prevent these networks from failing. The significance of defending neural networks against adversarial attacks lies in ensuring that the model's predictions remain unchanged even if the input data is perturbed. Several methods for adversarial defense in NLP have been proposed, catering to different NLP tasks such as text classification, named entity recognition, and natural language inference. Some of these methods not only defend neural networks against adversarial attacks but also act as a regularization mechanism during training, saving the model from overfitting. This survey aims to review the various methods proposed for adversarial defenses in NLP over the past few years by introducing a novel taxonomy. The survey also highlights the fragility of advanced deep neural networks in NLP and the challenges involved in defending them.

Motivation & Objective

  • To address the growing vulnerability of deep neural networks in NLP to adversarial perturbations that cause misclassification despite minimal input changes.
  • To systematize and categorize existing adversarial defense methods in NLP through a novel, multi-dimensional taxonomy based on defense mechanism, perturbation type, and robustness certification.
  • To evaluate the effectiveness of defense techniques such as adversarial training, synonym encoding, and certified robustness in improving model resilience against word substitution and other adversarial attacks.
  • To highlight the dual benefit of some defenses in acting as regularization mechanisms that reduce overfitting during model training.
  • To identify open challenges in generating natural, imperceptible adversarial examples and in achieving certified robustness for discrete, high-dimensional text data.

Proposed method

  • Proposes a novel taxonomy to classify adversarial defenses in NLP based on defense mechanism (e.g., adversarial training, input transformation), perturbation type (word, character, sentence), and robustness certification.
  • Reviews synonym encoding methods that map semantically similar words to shared embeddings, reducing sensitivity to synonym substitutions by enforcing label consistency in neighborhood regions.
  • Examines direction-constrained adversarial training (iAdvT) that restricts perturbations to directions within the existing vocabulary space, improving interpretability and robustness.
  • Analyzes structure-free certified robustness via SAFER, which uses synonym sets and nearest neighbors in embedding space to define perturbation sets and train models with formal robustness guarantees.
  • Evaluates differential privacy-based certification (wordDP) that treats sentences as databases and uses epsilon-DP to certify robustness against word substitution attacks.
  • Reviews adversarial benchmark datasets like ANLI, which use a human-and-model-in-the-loop framework to generate high-quality, challenging adversarial examples for natural language inference.

Experimental results

Research questions

  • RQ1How can adversarial defenses in NLP be systematically categorized based on their underlying mechanisms and perturbation types?
  • RQ2To what extent do synonym encoding and label consistency in embedding neighborhoods improve model robustness against word substitution attacks?
  • RQ3Can direction-constrained adversarial training enhance both robustness and interpretability of NLP models without sacrificing performance?
  • RQ4What are the limitations of existing certified robustness methods in handling sub-word and character-level models, and how does SAFER overcome them?
  • RQ5How effective is differential privacy in providing formal, certified robustness against word substitution attacks in text classification and NLI tasks?

Key findings

  • Synonym encoding methods significantly improve robustness by mapping semantically similar words to shared representations, reducing sensitivity to synonym-based perturbations.
  • Direction-constrained adversarial training (iAdvT) achieves higher robustness than standard adversarial training while maintaining model interpretability by restricting perturbations to valid word embeddings.
  • SAFER enables structure-free certified robustness for arbitrary models by defining perturbation sets via synonym sets and nearest neighbors in GLOVE embeddings, offering formal guarantees against word substitution attacks.
  • The wordDP framework provides a formal certificate of robustness using differential privacy, ensuring that model predictions remain stable under word substitution if the input satisfies epsilon-DP constraints.
  • The ANLI benchmark successfully generates high-quality adversarial examples through a human-and-model-in-the-loop process, improving the robustness of NLI models when used in adversarial training.
  • Several defense methods, including adversarial training and synonym encoding, also act as regularizers, reducing overfitting and improving generalization on clean data.

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.