"That Is a Suspicious Reaction!": Interpreting Logits Variation to Detect NLP Adversarial Attacks

Edoardo Mosca, Shreyash Agarwal, Javier Rando, Georg Groh
4/10/2022
cs.AIcs.CLcs.LG

Official code: javirandor/wdr (10 stars, Jupyter Notebook, last commit 2022-05-18).

Abstract

Adversarial attacks are a major challenge faced by current machine learning research. These purposely crafted inputs fool even the most advanced models, precluding their deployment in safety-critical applications.

Show full abstract

Extensive research in computer vision has been carried to develop reliable defense strategies. However, the same issue remains less explored in natural language processing. Our work presents a model-agnostic detector of adversarial text examples. The approach identifies patterns in the logits of the target classifier when perturbing the input text. The proposed detector improves the current state-of-the-art performance in recognizing adversarial inputs and exhibits strong generalization capabilities across different NLP models, datasets, and word-level attacks.

View on arXivView PDF

Code Implementations(1)

javirandor/wdrOfficial100%
100Jupyter Notebook, PythonMar 8, 20224 years ago

Similar Papers

Cite this paper

@article{mosca2022that,
  title  = {"That Is a Suspicious Reaction!": Interpreting Logits Variation to Detect NLP Adversarial Attacks},
  author = {Edoardo Mosca and Shreyash Agarwal and Javier Rando and Georg Groh},
  year   = {2022},
  eprint = {2204.04636},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2204.04636}
}

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.04636.svg)](https://codeofpaper.com/paper/2204.04636)

Discussion