White-Box Multi-Objective Adversarial Attack on Dialogue Generation

Yufei Li, Zexin Li, Yingfan Gao, Cong Liu
5/5/2023
29 citations
cs.CLcs.CRcs.LG

Official code: yul091/DGSlow (16 stars, Python, last commit 2023-12-08).

Abstract

Pre-trained transformers are popular in state-of-the-art dialogue generation (DG) systems. Such language models are, however, vulnerable to various adversarial samples as studied in traditional tasks such as text classification, which inspires our curiosity about their robustness in DG systems.

Show full abstract

One main challenge of attacking DG models is that perturbations on the current sentence can hardly degrade the response accuracy because the unchanged chat histories are also considered for decision-making. Instead of merely pursuing pitfalls of performance metrics such as BLEU, ROUGE, we observe that crafting adversarial samples to force longer generation outputs benefits attack effectiveness -- the generated responses are typically irrelevant, lengthy, and repetitive. To this end, we propose a white-box multi-objective attack method called DGSlow. Specifically, DGSlow balances two objectives -- generation accuracy and length, via a gradient-based multi-objective optimizer and applies an adaptive searching mechanism to iteratively craft adversarial samples with only a few modifications. Comprehensive experiments on four benchmark datasets demonstrate that DGSlow could significantly degrade state-of-the-art DG models with a higher success rate than traditional accuracy-based methods. Besides, our crafted sentences also exhibit strong transferability in attacking other models.

View on arXivView PDF

Code Implementations(1)

yul091/DGSlowOfficial100%

Codebase for the ACL 2023 paper: White-Box Multi-Objective Adversarial Attack on Dialogue Generation.

161PythonMay 5, 20232 years ago
adversarial-attacksdialogue-generationnatural-language-processing

Similar Papers

Cite this paper

@article{li2023whitebox,
  title  = {White-Box Multi-Objective Adversarial Attack on Dialogue Generation},
  author = {Yufei Li and Zexin Li and Yingfan Gao and Cong Liu},
  year   = {2023},
  eprint = {2305.03655},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2305.03655v2}
}

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

Discussion