Lune

EMNLP2021Top-tier venue

Multi-granularity Textual Adversarial Attack with Behavior Cloning

Yangyi Chen, Jin Su, Wei Wei

Abstract

Recently, the textual adversarial attack models become increasingly popular due to their successful in estimating the robustness of NLP models. However, existing works have obvious deficiencies. (1) They usually consider only a single granularity of modification strategies (e.g. word-level or sentence-level), which is insufficient to explore the holistic textual space for generation; (2) They need to query victim models hundreds of times to make a successful attack, which is highly inefficient in practice. To address such problems, in this paper we propose MAYA, a Multi-grAnularitY Attack model to effectively generate high-quality adversarial samples with fewer queries to victim models. Furthermore, we propose a reinforcement-learning based method to train a multi-granularity attack agent through behavior cloning with the expert knowledge from our MAYA algorithm to further reduce the query times. Additionally, we also adapt the agent to attack blackbox models that only output labels without confidence scores. We conduct comprehensive experiments to evaluate our attack models by attacking BiLSTM, BERT and RoBERTa in two different black-box attack settings and three benchmark datasets. Experimental results show that our models achieve overall better attacking performance and produce more fluent and grammatical adversarial samples compared to baseline models. Besides, our adversarial attack agent significantly reduces the query times in both attack settings. Our codes are released at https://github. com/Yangyi-Chen/MAYA .

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

6 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • White-Box Multi-Objective Adversarial Attack on Dialogue Generation cites BERT-ATTACK: Adversarial Attack Against BERT Using BERT
  • Generative Adversarial Training with Perturbed Token Detection for Model Robustness cites BERT-ATTACK: Adversarial Attack Against BERT Using BERT
  • TASA: Deceiving Question Answering Models by Twin Answer Sentences Attack cites Word-level Textual Adversarial Attacking as Combinatorial Optimization
  • BERT-ATTACK: Adversarial Attack Against BERT Using BERT cites Word-level Textual Adversarial Attacking as Combinatorial Optimization
  • Generating Natural Language Attacks in a Hard Label Black Box Setting cites Word-level Textual Adversarial Attacking as Combinatorial Optimization
  • Are LLM-Enhanced Graph Neural Networks Robust Against Poisoning Attacks? cites BERT-ATTACK: Adversarial Attack Against BERT Using BERT
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers6

  1. Multi-granular Adversarial Attacks against Black-box Neural Ranking ModelsYu-An Liu, Ruqing Zhang, Jiafeng Guo, Maarten de Rijke et al.SIGIR 2024 · 17 citations
  2. White-Box Multi-Objective Adversarial Attack on Dialogue GenerationYufei Li, Zexin Li, Yingfan Gao, Cong LiuACL 2023 · 12 citations
  3. TASA: Deceiving Question Answering Models by Twin Answer Sentences AttackYu Cao, Dianqi Li, Meng Fang, Tianyi Zhou et al.EMNLP 2022 · 10 citations
  4. Are LLM-Enhanced Graph Neural Networks Robust Against Poisoning Attacks?Yuhang Ma, Jie Wang, Zheng YanS&P 2026 · 4 citations
  5. Generative Adversarial Training with Perturbed Token Detection for Model RobustnessJiahao Zhao, Wenji MaoEMNLP 2023 · 3 citations

Builds on6

  1. Towards Evaluating the Robustness of Neural NetworksNicholas Carlini, David A. WagnerS&P 2017 · 9,786 citations
  2. BERT-ATTACK: Adversarial Attack Against BERT Using BERTLinyang Li, Ruotian Ma, Qipeng Guo, Xiangyang Xue et al.EMNLP 2020 · 529 citations
  3. Word-level Textual Adversarial Attacking as Combinatorial OptimizationYuan Zang, Fanchao Qi, Chenghao Yang, Zhiyuan Liu et al.ACL 2020 · 188 citations
  4. Generating Natural Language Attacks in a Hard Label Black Box SettingRishabh Maheshwary, Saket Maheshwary, Vikram PudiAAAI 2021 · 128 citations
  5. Robust Encodings: A Framework for Combating Adversarial TyposErik Jones, Robin Jia, Aditi Raghunathan, Percy LiangACL 2020 · 92 citations

Related papers

  1. Experience Speaks Louder: Black-box Hard-label Adversarial Attack through Reinforcement LearningYilun Jin, Kun Zhu, Feng Tang, Jiaxuan Shi et al.KDD 2025 · 1 citation
  2. T3: Tree-Autoencoder Constrained Adversarial Text Generation for Targeted AttackBoxin Wang, Hengzhi Pei, Boyuan Pan, Qian Chen et al.EMNLP 2020 · 55 citations
  3. Better Robustness by More Coverage: Adversarial and Mixup Data Augmentation for Robust FinetuningChenglei Si, Zhengyan Zhang, Fanchao Qi, Zhiyuan Liu et al.ACL Findings 2021 · 51 citations
  4. Overcoming Black-box Attack Inefficiency with Hybrid and Dynamic Select AlgorithmsAbhinay Shankar Belde, Rohit Ramkumar, Jonathan RusertEMNLP Findings 2025 · 1 citation
  5. Adversarial Text Generation by Search and LearningGuoyi Li, Bingkang Shi, Zongzhen Liu, Dehan Kong et al.EMNLP Findings 2023 · 14 citations
Dusk over the sea between two cliffs drawn in fine vertical lines