SHIELD: Defending Textual Neural Networks against Multiple Black-Box Adversarial Attacks with Stochastic Multi-Expert Patcher
Not on the map. Why?
Abstract (arXiv)
Even though several methods have proposed to defend textual neural network (NN) models against black-box adversarial attacks, they often defend against a specific text perturbation strategy and/or require re-training the models from scratch. This leads to a lack of generalization in practice and redundant computation. In particular, the state-of-the-art transformer models (e.g., BERT, RoBERTa) require great time and computation resources. By borrowing an idea from software engineering, in order to address these limitations, we propose a novel algorithm, SHIELD, which modifies and re-trains only the last layer of a textual NN, and thus it "patches" and "transforms" the NN into a stochastic weighted ensemble of multi-expert prediction heads. Considering that most of current black-box attacks rely on iterative search mechanisms to optimize their adversarial perturbations, SHIELD confuses the attackers by automatically utilizing different weighted ensembles of predictors depending on the input. In other words, SHIELD breaks a fundamental assumption of the attack, which is a victim NN model remains constant during an attack. By conducting comprehensive experiments, we demonstrate that all of CNN, RNN, BERT, and RoBERTa-based textual NNs, once patched by SHIELD, exhibit a relative enhancement of 15%--70% in accuracy on average against 14 different black-box attacks, outperforming 6 defensive baselines across 3 public datasets. All codes are to be released.
Key facts. Cited by 13 papers in the map (data through 7 Oct 2026). First posted on arXiv 17 Nov 2020.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2021: 2; 2022: 3; 2023: 4; 2024: 3; 2025: 0; 2026: 1.
13 papers.
Sort:
By area:
- 2024Navigating the Risks: A Survey of Security, Privacy, and Ethics Threats in LLM-Based Agentscited by 63
- 2023Granular-ball computing: an efficient, robust, and interpretable adaptive multi-granularity representation and computation methodcited by 16
- 2024HQA-Attack: Toward High Quality Black-Box Hard-Label Adversarial Attack on Textcited by 16
- 2023TextShield: Beyond Successfully Detecting Adversarial Sentences in Text Classificationcited by 8
- 2023Don't Retrain, Just Rewrite: Countering Adversarial Perturbations by Rewriting Textcited by 8
- 2024Risks, Causes, and Mitigations of Widespread Deployments of Large Language Models (LLMs): A Surveycited by 8
- 2021R&R: Metric-guided Adversarial Sentence Generationcited by 6
- 2021Improving Question Answering Performance Using Knowledge Distillation and Active Learningcited by 6
- 2022ROSE: Robust Selective Fine-tuning for Pre-trained Language Modelscited by 6
- 2022Identifying Human Strategies for Generating Word-Level Adversarial Examplescited by 2
- 2022On the Security Vulnerabilities of Text-to-SQL Modelscited by 2
- 2023Alert-ME: An Explainability-Driven Defense Against Adversarial Examples in Transformer-Based Text Classificationcited by 1
- 2026SEP-Attack: A Simple and Effective Paradigm for Transfer-Based Textual Adversarial Attack24 May 2026
- 2024Navigating the Risks: A Survey of Security, Privacy, and Ethics Threats in LLM-Based Agents14 Nov 2024
- 2024Risks, Causes, and Mitigations of Widespread Deployments of Large Language Models (LLMs): A Survey1 Aug 2024
- 2024HQA-Attack: Toward High Quality Black-Box Hard-Label Adversarial Attack on Text2 Feb 2024
- 2023Alert-ME: An Explainability-Driven Defense Against Adversarial Examples in Transformer-Based Text Classification3 Jul 2023
- 2023Don't Retrain, Just Rewrite: Countering Adversarial Perturbations by Rewriting Text25 May 2023
- 2023Granular-ball computing: an efficient, robust, and interpretable adaptive multi-granularity representation and computation method21 Apr 2023
- 2023TextShield: Beyond Successfully Detecting Adversarial Sentences in Text Classification3 Feb 2023
- 2022On the Security Vulnerabilities of Text-to-SQL Models28 Nov 2022
- 2022Identifying Human Strategies for Generating Word-Level Adversarial Examples20 Oct 2022
- 2022ROSE: Robust Selective Fine-tuning for Pre-trained Language Models18 Oct 2022
- 2021Improving Question Answering Performance Using Knowledge Distillation and Active Learning26 Sep 2021
1 more
- 2021R&R: Metric-guided Adversarial Sentence Generation17 Apr 2021
- 2023Granular-ball computing: an efficient, robust, and interpretable adaptive multi-granularity representation and computation methodcited by 16
- 2024HQA-Attack: Toward High Quality Black-Box Hard-Label Adversarial Attack on Textcited by 16
- 2023TextShield: Beyond Successfully Detecting Adversarial Sentences in Text Classificationcited by 8
- 2023Don't Retrain, Just Rewrite: Countering Adversarial Perturbations by Rewriting Textcited by 8
- 2024Risks, Causes, and Mitigations of Widespread Deployments of Large Language Models (LLMs): A Surveycited by 8
- 2021R&R: Metric-guided Adversarial Sentence Generationcited by 6
- 2021Improving Question Answering Performance Using Knowledge Distillation and Active Learningcited by 6
- 2022ROSE: Robust Selective Fine-tuning for Pre-trained Language Modelscited by 6
- 2022Identifying Human Strategies for Generating Word-Level Adversarial Examplescited by 2
- 2022On the Security Vulnerabilities of Text-to-SQL Modelscited by 2
- 2023Alert-ME: An Explainability-Driven Defense Against Adversarial Examples in Transformer-Based Text Classificationcited by 1
- 2026SEP-Attack: A Simple and Effective Paradigm for Transfer-Based Textual Adversarial Attackcited by 0
- 2026SEP-Attack: A Simple and Effective Paradigm for Transfer-Based Textual Adversarial Attack24 May 2026
- 2024Risks, Causes, and Mitigations of Widespread Deployments of Large Language Models (LLMs): A Survey1 Aug 2024
- 2024HQA-Attack: Toward High Quality Black-Box Hard-Label Adversarial Attack on Text2 Feb 2024
- 2023Alert-ME: An Explainability-Driven Defense Against Adversarial Examples in Transformer-Based Text Classification3 Jul 2023
- 2023Don't Retrain, Just Rewrite: Countering Adversarial Perturbations by Rewriting Text25 May 2023
- 2023Granular-ball computing: an efficient, robust, and interpretable adaptive multi-granularity representation and computation method21 Apr 2023
- 2023TextShield: Beyond Successfully Detecting Adversarial Sentences in Text Classification3 Feb 2023
- 2022On the Security Vulnerabilities of Text-to-SQL Models28 Nov 2022
- 2022Identifying Human Strategies for Generating Word-Level Adversarial Examples20 Oct 2022
- 2022ROSE: Robust Selective Fine-tuning for Pre-trained Language Models18 Oct 2022
- 2021Improving Question Answering Performance Using Knowledge Distillation and Active Learning26 Sep 2021
- 2021R&R: Metric-guided Adversarial Sentence Generation17 Apr 2021