Universal Adversarial Attacks with Natural Triggers for Text Classification

Liwei Song, Xinwei Yu, Hsuan-Tung Peng, Karthik Narasimhan
5/1/2020
cs.CLcs.CR

Official code: Hsuan-Tung/universal_attack_natural_trigger (21 stars, Jupyter Notebook, last commit 2021-04-17).

Abstract

Recent work has demonstrated the vulnerability of modern text classifiers to universal adversarial attacks, which are input-agnostic sequences of words added to text processed by classifiers. Despite being successful, the word sequences produced in such attacks are often ungrammatical and can be easily distinguished from natural text.

Show full abstract

We develop adversarial attacks that appear closer to natural English phrases and yet confuse classification systems when added to benign inputs. We leverage an adversarially regularized autoencoder (ARAE) to generate triggers and propose a gradient-based search that aims to maximize the downstream classifier's prediction loss. Our attacks effectively reduce model accuracy on classification tasks while being less identifiable than prior models as per automatic detection metrics and human-subject studies. Our aim is to demonstrate that adversarial attacks can be made harder to detect than previously thought and to enable the development of appropriate defenses.

View on arXivView PDF

Code Implementations(1)

Natural Universal Trigger Search (NUTS)

211Jupyter Notebook, PythonApr 29, 20205 years ago

Similar Papers

Cite this paper

@article{song2020universal,
  title  = {Universal Adversarial Attacks with Natural Triggers for Text Classification},
  author = {Liwei Song and Xinwei Yu and Hsuan-Tung Peng and Karthik Narasimhan},
  year   = {2020},
  eprint = {2005.00174},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2005.00174}
}

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

Discussion