White-Box Attacks on Hate-speech BERT Classifiers in German with Explicit and Implicit Character Level Defense

Shahrukh Khan, Mahnoor Shahid, Navdeeppal Singh
2/11/2022
cs.CL

Official code: shahrukhx01/bert-probe (18 stars, Jupyter Notebook, Apache-2.0, PyTorch, last commit 2022-06-24).

Abstract

In this work, we evaluate the adversarial robustness of BERT models trained on German Hate Speech datasets. We also complement our evaluation with two novel white-box character and word level attacks thereby contributing to the range of attacks available. Furthermore, we also perform a comparison of two novel character-level defense strategies and evaluate their robustness with one another.

View on arXivView PDF

Code Implementations(1)

PyTorchApache-2.0

BERT Probe: A python package for probing attention based robustness to character and word based adversarial evaluation. Also, with recipes of implicit and explicit defenses against character-level attacks.

183Jupyter Notebook, PythonDec 7, 20214 years agoApache-2.0
adversarial-attacksadversarial-examplesadversarial-learningadversarial-machine-learningbert+4 more

Similar Papers

Cite this paper

@article{khan2022whitebox,
  title  = {White-Box Attacks on Hate-speech BERT Classifiers in German with Explicit and Implicit Character Level Defense},
  author = {Shahrukh Khan and Mahnoor Shahid and Navdeeppal Singh},
  year   = {2022},
  eprint = {2202.05778},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2202.05778}
}

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

Discussion