Step by Step Loss Goes Very Far: Multi-Step Quantization for Adversarial Text Attacks

Piotr Gaiński, Klaudia Bałazy
2/10/2023
9 citations
cs.CL

Official code: gmum/MANGO (4 stars, Python, last commit 2023-02-08).

Abstract

We propose a novel gradient-based attack against transformer-based language models that searches for an adversarial example in a continuous space of token probabilities. Our algorithm mitigates the gap between adversarial loss for continuous and discrete text representations by performing multi-step quantization in a quantization-compensation loop. Experiments show that our method significantly outperforms other approaches on various natural language processing (NLP) tasks.

View on arXivView PDF

Code Implementations(1)

gmum/MANGOOfficial100%
40Python, Jupyter NotebookFeb 6, 20233 years agoNOASSERTION

Similar Papers

Cite this paper

@article{gaiski2023step,
  title  = {Step by Step Loss Goes Very Far: Multi-Step Quantization for Adversarial Text Attacks},
  author = {Piotr Gaiński and Klaudia Bałazy},
  year   = {2023},
  eprint = {2302.05120},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2302.05120v1}
}

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

Discussion