Residue-Based Natural Language Adversarial Attack Detection

Vyas Raina, Mark Gales
4/17/2022
cs.CLcs.AI

Official code: rainavyas/NAACL-2022-Residue-Detector (1 star, last commit 2022-04-17).

Abstract

Deep learning based systems are susceptible to adversarial attacks, where a small, imperceptible change at the input alters the model prediction. However, to date the majority of the approaches to detect these attacks have been designed for image processing systems.

Show full abstract

Many popular image adversarial detection approaches are able to identify adversarial examples from embedding feature spaces, whilst in the NLP domain existing state of the art detection approaches solely focus on input text features, without consideration of model embedding spaces. This work examines what differences result when porting these image designed strategies to Natural Language Processing (NLP) tasks - these detectors are found to not port over well. This is expected as NLP systems have a very different form of input: discrete and sequential in nature, rather than the continuous and fixed size inputs for images. As an equivalent model-focused NLP detection approach, this work proposes a simple sentence-embedding "residue" based detector to identify adversarial examples. On many tasks, it out-performs ported image domain detectors and recent state of the art NLP specific detectors.

View on arXivView PDF

Code Implementations(1)

Code for paper submission to NAACL 2022

10Apr 17, 20224 years ago

Similar Papers

Cite this paper

@article{raina2022residuebased,
  title  = {Residue-Based Natural Language Adversarial Attack Detection},
  author = {Vyas Raina and Mark Gales},
  year   = {2022},
  eprint = {2204.10192},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2204.10192}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2204.10192.svg)](https://codeofpaper.com/paper/2204.10192)

Discussion