Text Processing Like Humans Do: Visually Attacking and Shielding NLP Systems

Steffen Eger, Gözde Gül Şahin, Andreas Rücklé, Ji-Ung Lee, Claudia Schulz +4 more
3/27/2019
cs.CLcs.CRcs.CV

Official code: UKPLab/naacl2019-like-humans-visual-attacks (27 stars, Python, Apache-2.0, last commit 2022-11-21).

Abstract

Visual modifications to text are often used to obfuscate offensive comments in social media (e.g., "!d10t") or as a writing style ("1337" in "leet speak"), among other scenarios. We consider this as a new type of adversarial attack in NLP, a setting to which humans are very robust, as our experiments with both simple and more difficult visual input perturbations demonstrate.

Show full abstract

We then investigate the impact of visual adversarial attacks on current NLP systems on character-, word-, and sentence-level tasks, showing that both neural and non-neural models are, in contrast to humans, extremely sensitive to such attacks, suffering performance decreases of up to 82\%. We then explore three shielding methods---visual character embeddings, adversarial training, and rule-based recovery---which substantially improve the robustness of the models. However, the shielding methods still fall behind performances achieved in non-attack scenarios, which demonstrates the difficulty of dealing with visual attacks.

View on arXivView PDF

Code Implementations(1)

Apache-2.0
277Python, RoffMar 11, 20194 years agoApache-2.0

Similar Papers

Cite this paper

@article{eger2019text,
  title  = {Text Processing Like Humans Do: Visually Attacking and Shielding NLP Systems},
  author = {Steffen Eger and Gözde Gül Şahin and Andreas Rücklé and Ji-Ung Lee and Claudia Schulz and Mohsen Mesgar and Krishnkant Swarnkar and Edwin Simpson and Iryna Gurevych},
  year   = {2019},
  eprint = {1903.11508},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1903.11508}
}

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

Discussion