RAP: Robustness-Aware Perturbations for Defending against Backdoor Attacks on NLP Models
On the map: LLM safety and security → Backdoor and data poisoning attacks
Abstract (arXiv)
Backdoor attacks, which maliciously control a well-trained model's outputs of the instances with specific triggers, are recently shown to be serious threats to the safety of reusing deep neural networks (DNNs). In this work, we propose an efficient online defense mechanism based on robustness-aware perturbations. Specifically, by analyzing the backdoor training process, we point out that there exists a big gap of robustness between poisoned and clean samples. Motivated by this observation, we construct a word-based robustness-aware perturbation to distinguish poisoned samples from clean samples to defend against the backdoor attacks on natural language processing (NLP) models. Moreover, we give a theoretical analysis about the feasibility of our robustness-aware perturbation-based defense method. Experimental results on sentiment analysis and toxic detection tasks show that our method achieves better defending performance and much lower computational costs than existing online defense methods. Our code is available at https://github.com/lancopku/RAP.
Key facts. Cited by 97 papers in the map (data through 7 Oct 2026). Placed in Backdoor and data poisoning attacks, one of 12 directions in LLM safety and security. Builds on 34 of its 48 references that are in the map. First posted on arXiv 15 Oct 2021.
Builds on
34 of 48 references.
Closest ancestors · 4
Same direction, newest first
- 2021Turn the Combination Lock: Learnable Textual Backdoor Attacks via Word Substitution11 Jun
- 2021Hidden Killer: Invisible Textual Backdoor Attacks with Syntactic Trigger26 May
- 2021Be Careful about Poisoned Word Embeddings: Exploring the Vulnerability of the Embedding Layers in NLP Models29 Mar
- 2021T-Miner: A Generative Approach to Defend Against Trojan Attacks on DNN-based Text Classification7 Mar
Other references · 30
- 2015Deep Residual Learning for Image Recognitioncited by 51,809
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
- 2014Adam: A Method for Stochastic Optimizationcited by 36,960
- 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,266
- 2016Pointer Sentinel Mixture Modelscited by 2,992
- 2015Character-level Convolutional Networks for Text Classificationcited by 2,293
- 2017BadNets: Identifying Vulnerabilities in the Machine Learning Model Supply Chaincited by 1,052
- 2017Targeted Backdoor Attacks on Deep Learning Systems Using Data Poisoningcited by 1,012
- 2016Universal adversarial perturbationscited by 774
- 2019Universal Adversarial Triggers for Attacking and Analyzing NLPcited by 709
- 2018Fine-Pruning: Defending Against Backdooring Attacks on Deep Neural Networkscited by 550
- 2019STRIP: A Defence Against Trojan Attacks on Deep Neural Networkscited by 437
18 more
- 2019Hidden Trigger Backdoor Attackscited by 359
- 2020Reflection Backdoor: A Natural Backdoor Attack on Deep Neural Networkscited by 341
- 2020Weight Poisoning Attacks on Pre-trained Modelscited by 318
- 2021Neural Attention Distillation: Erasing Backdoor Triggers from Deep Neural Networkscited by 313
- 2020Input-Aware Dynamic Backdoor Attackcited by 304
- 2018Large Scale Crowdsourcing and Characterization of Twitter Abusive Behaviorcited by 265
- 2020ONION: A Simple and Effective Defense Against Textual Backdoor Attackscited by 231
- 2019A backdoor attack against LSTM-based text classification systemscited by 214
- 2020Clean-Label Backdoor Attacks on Video Recognition Modelscited by 162
- 2018SentiNet: Detecting Localized Universal Attacks Against Deep Learning Systemscited by 148
- 2020Mitigating backdoor attacks in LSTM-based Text Classification Systems by Backdoor Keyword Identificationcited by 80
- 2020Trojaning Language Models for Fun and Profitcited by 80
- 2020Rethinking the Trigger of Backdoor Attackcited by 76
- 2019Design and Evaluation of a Multi-Domain Trojan Detection Method on Deep Neural Networkscited by 66
- 2020Can Adversarial Weight Perturbations Inject Neural Backdoors?cited by 51
- 2020Universal Adversarial Attacks with Natural Triggers for Text Classificationcited by 50
- 2020Poison Attacks against Text Datasets with Conditional Adversarially Regularized Autoencodercited by 27
- 2020Natural Backdoor Attack on Text Datacited by 18
Built on by
Citing papers per year: 2022: 13; 2023: 21; 2024: 32; 2025: 23; 2026: 8.
97 papers.
Sort:
By area:
- 2024Security and Privacy Challenges of Large Language Models: A Surveycited by 179
- 2024Watch Out for Your Agents! Investigating Backdoor Threats to LLM-Based Agentscited by 135
- 2023Instructions as Backdoors: Backdoor Vulnerabilities of Instruction Tuning for Large Language Modelscited by 100
- 2023Use of LLMs for Illicit Purposes: Threats, Prevention Measures, and Vulnerabilitiescited by 76
- 2022A Unified Evaluation of Textual Backdoor Learning: Frameworks and Benchmarkscited by 70
- 2022BadPrompt: Backdoor Attacks on Continuous Promptscited by 59
- 2022Fine-mixing: Mitigating Backdoors in Fine-tuned Language Modelscited by 50
- 2024BEEAR: Embedding-based Adversarial Removal of Safety Backdoors in Instruction-tuned Language Modelscited by 50
- 2022A Study of the Attention Abnormality in Trojaned BERTscited by 47
- 2022BITE: Textual Backdoor Attacks with Iterative Trigger Injectioncited by 47
- 2024A Survey of Recent Backdoor Attacks and Defenses in Large Language Modelscited by 36
- 2024Test-Time Backdoor Attacks on Multimodal Large Language Modelscited by 35
38 more
- 2023NOTABLE: Transferable Backdoor Attacks Against Prompt-based NLP Modelscited by 33
- 2023Defending Pre-trained Language Models as Few-shot Learners against Backdoor Attackscited by 32
- 2023Attention-Enhancing Backdoor Attacks Against BERT-based Modelscited by 32
- 2023ChatGPT as an Attack Tool: Stealthy Textual Backdoor Attack via Blackbox Generative Model Triggercited by 29
- 2024CROW: Eliminating Backdoors from Large Language Models via Internal Consistency Regularizationcited by 29
- 2023From Shortcuts to Triggers: Backdoor Defense with Denoised PoEcited by 26
- 2023Defending against Insertion-based Textual Backdoor Attacks via Attributioncited by 24
- 2024Task-Agnostic Detector for Insertion-Based Backdoor Attackscited by 23
- 2023Test-time Backdoor Mitigation for Black-Box Large Language Models with Defensive Demonstrationscited by 20
- 2024CleanGen: Mitigating Backdoor Attacks for Generation Tasks in Large Language Modelscited by 20
- 2023Mitigating Backdoor Poisoning Attacks through the Lens of Spurious Correlationcited by 19
- 2024BadActs: A Universal Backdoor Defense in the Activation Spacecited by 19
- 2022Expose Backdoors on the Way: A Feature-Based Efficient Defense against Textual Backdoor Attackscited by 18
- 2023ParaFuzz: An Interpretability-Driven Technique for Detecting Poisoned Samples in NLPcited by 16
- 2023Setting the Trap: Capturing and Defeating Backdoors in Pretrained Language Models through Honeypotscited by 16
- 2024Defending Against Weight-Poisoning Backdoor Attacks for Parameter-Efficient Fine-Tuningcited by 16
- 2024Learning to Poison Large Language Models for Downstream Manipulationcited by 15
- 2025Probe before You Talk: Towards Black-box Defense against Backdoor Unalignment for Large Language Modelscited by 15
- 2023Large Language Models Are Better Adversaries: Exploring Generative Clean-Label Backdoor Attacks Against Text Classifierscited by 14
- 2023TextGuard: Provable Defense against Backdoor Attacks on Text Classificationcited by 14
- 2024Mitigating Backdoor Threats to Large Language Models: Advancement and Challengescited by 14
- 2022A Survey on Backdoor Attack and Defense in Natural Language Processingcited by 13
- 2023BDMMT: Backdoor Sample Detection for Language Models through Model Mutation Testingcited by 13
- 2024Defending Text-to-image Diffusion Models: Surprising Efficacy of Textual Perturbations Against Backdoor Attackscited by 12
- 2025UniGuardian: A Unified Defense for Detecting Prompt Injection, Backdoor Attacks and Adversarial Attacks in Large Language Modelscited by 12
- 2025Hidden Ghost Hand: Unveiling Backdoor Vulnerabilities in MLLM-Powered Mobile GUI Agentscited by 12
- 2023TIJO: Trigger Inversion with Joint Optimization for Defending Multimodal Backdoored Modelscited by 11
- 2024Exploring Backdoor Vulnerabilities of Chat Modelscited by 11
- 2024Simulate and Eliminate: Revoke Backdoors for Generative Large Language Modelscited by 11
- 2023Backdoor Attacks with Input-unique Triggers in NLPcited by 10
- 2023Adversarial Clean Label Backdoor Attacks and Defenses on Text Classification Systemscited by 10
- 2024Exploring Vulnerabilities and Protections in Large Language Models: A Surveycited by 10
- 2023TrojFSP: Trojan Insertion in Few-shot Prompt Tuningcited by 9
- 2022Dim-Krum: Backdoor-Resistant Federated Learning for NLP with Dimension-wise Krum-Based Aggregationcited by 8
- 2025Efficient Input-level Backdoor Defense on Text-to-Image Synthesis via Neuron Activation Variationcited by 8
- 2025BadMoE: Backdooring Mixture-of-Experts LLMs via Optimizing Routing Triggers and Infecting Dormant Expertscited by 8
- 2025LLM Security: Vulnerabilities, Attacks, Defenses, and Countermeasurescited by 8
- 2025A Systematic Review of Poisoning Attacks Against Large Language Modelscited by 8
50 most cited of 97 All 97 (JSON)
- 2026Backdoor in the Loop: Compromising Agentic Search via Malicious Retrievers26 Sep 2026
- 2026SpecGuard: Inference-Time Backdoor Detection For Free10 Sep 2026
- 2026Cordyceps: Covert Control Attacks on LLMs via Data Poisoning26 May 2026
- 2026Defusing the Trigger: Tail-Risk-Informed Attention Rebalancing for LLM Backdoor Mitigation27 Apr 2026
- 2026BadLLM-TG: A Backdoor Defender powered by LLM Trigger Generator16 Mar 2026
- 2026Delayed Backdoor Attacks: Exploring the Temporal Dimension as a New Attack Surface in Pre-Trained Models12 Mar 2026
- 2026Backdoor4Good: Benchmarking Beneficial Uses of Backdoors in LLMs8 Mar 2026
- 2026Backdoor Sentinel: Detecting and Detoxifying Backdoors in Diffusion Models via Temporal Noise Consistency2 Feb 2026
- 2025RAGPart & RAGMask: Retrieval-Stage Defenses Against Corpus Poisoning in Retrieval-Augmented Generation30 Dec 2025
- 2025PEPPER: Perception-Guided Perturbation for Robust Backdoor Defense in Text-to-Image Diffusion Models20 Nov 2025
- 2025From Poisoned to Aware: Fostering Backdoor Self-Awareness in LLMs5 Oct 2025
- 2025Unmasking Backdoors: An Explainable Defense via Gradient-Attention Anomaly Scoring for Pre-trained Language Models5 Oct 2025
38 more
- 2025Localizing Malicious Outputs from CodeLLM21 Sep 2025
- 2025Backdoor Samples Detection Based on Perturbation Discrepancy Consistency in Pre-trained Language Models30 Aug 2025
- 2025Lethe: Purifying Backdoored Large Language Models with Knowledge Dilution28 Aug 2025
- 2025Pruning Strategies for Backdoor Defense in LLMs27 Aug 2025
- 2025Pruning and Malicious Injection: A Retraining-Free Backdoor Attack on Transformer Models14 Aug 2025
- 2025ConfGuard: A Simple and Effective Backdoor Detection for Large Language Models2 Aug 2025
- 2025Probe before You Talk: Towards Black-box Defense against Backdoor Unalignment for Large Language Models19 Jun 2025
- 2025Your Agent Can Defend Itself against Backdoor Attacks10 Jun 2025
- 2025A Systematic Review of Poisoning Attacks Against Large Language Models6 Jun 2025
- 2025Detecting Stealthy Backdoor Samples based on Intra-class Distance for Large Language Models29 May 2025
- 2025Hidden Ghost Hand: Unveiling Backdoor Vulnerabilities in MLLM-Powered Mobile GUI Agents20 May 2025
- 2025LLM Security: Vulnerabilities, Attacks, Defenses, and Countermeasures2 May 2025
- 2025BadMoE: Backdooring Mixture-of-Experts LLMs via Optimizing Routing Triggers and Infecting Dormant Experts24 Apr 2025
- 2025The Ultimate Cookbook for Invisible Poison: Crafting Subtle Clean-Label Text Backdoors with Style Attributes24 Apr 2025
- 2025Detecting Instruction Fine-tuning Attacks using Influence Function12 Apr 2025
- 2025NLP Security and Ethics, in the Wild9 Apr 2025
- 2025Efficient Input-level Backdoor Defense on Text-to-Image Synthesis via Neuron Activation Variation9 Mar 2025
- 2025UniGuardian: A Unified Defense for Detecting Prompt Injection, Backdoor Attacks and Adversarial Attacks in Large Language Models18 Feb 2025
- 2025Reformulation is All You Need: Addressing Malicious Text Features in DNNs2 Feb 2025
- 2024Cut the Deadwood Out: Backdoor Purification via Guided Module Substitution29 Dec 2024
- 2024Gracefully Filtering Backdoor Samples for Generative Large Language Models without Retraining3 Dec 2024
- 2024Neutralizing Backdoors through Information Conflicts for Large Language Models27 Nov 2024
- 2024CROW: Eliminating Backdoors from Large Language Models via Internal Consistency Regularization18 Nov 2024
- 2024BackdoorMBTI: A Backdoor Learning Multimodal Benchmark Tool Kit for Backdoor Defense Evaluation17 Nov 2024
- 2024Expose Before You Defend: Unifying and Enhancing Backdoor Defenses via Exposed Models25 Oct 2024
- 2024AdvBDGen: Adversarially Fortified Prompt-Specific Fuzzy Backdoor Generator Against LLM Alignment15 Oct 2024
- 2024Mitigating Backdoor Threats to Large Language Models: Advancement and Challenges30 Sep 2024
- 2024Data-centric NLP Backdoor Defense from the Lens of Memorization21 Sep 2024
- 2024Obliviate: Neutralizing Task-agnostic Backdoors within the Parameter-efficient Fine-tuning Paradigm21 Sep 2024
- 2024Exploiting the Vulnerability of Large Language Models via Defense-Aware Architectural Backdoor3 Sep 2024
- 2024Rethinking Backdoor Detection Evaluation for Language Models31 Aug 2024
- 2024Defending Text-to-image Diffusion Models: Surprising Efficacy of Textual Perturbations Against Backdoor Attacks28 Aug 2024
- 2024Defense Against Syntactic Textual Backdoor Attacks with Token Substitution4 Jul 2024
- 2024Venomancer: Towards Imperceptible and Target-on-Demand Backdoor Attacks in Federated Learning3 Jul 2024
- 2024BEEAR: Embedding-based Adversarial Removal of Safety Backdoors in Instruction-tuned Language Models24 Jun 2024
- 2024CleanGen: Mitigating Backdoor Attacks for Generation Tasks in Large Language Models18 Jun 2024
- 2024A Survey of Recent Backdoor Attacks and Defenses in Large Language Models10 Jun 2024
- 2024Exploring Vulnerabilities and Protections in Large Language Models: A Survey1 Jun 2024
50 newest of 97 All 97 (JSON)
- 2024Security and Privacy Challenges of Large Language Models: A Surveycited by 179
- 2023Instructions as Backdoors: Backdoor Vulnerabilities of Instruction Tuning for Large Language Modelscited by 100
- 2022A Unified Evaluation of Textual Backdoor Learning: Frameworks and Benchmarkscited by 70
- 2022BadPrompt: Backdoor Attacks on Continuous Promptscited by 59
- 2022Fine-mixing: Mitigating Backdoors in Fine-tuned Language Modelscited by 50
- 2024BEEAR: Embedding-based Adversarial Removal of Safety Backdoors in Instruction-tuned Language Modelscited by 50
- 2022BITE: Textual Backdoor Attacks with Iterative Trigger Injectioncited by 47
- 2024A Survey of Recent Backdoor Attacks and Defenses in Large Language Modelscited by 36
- 2023NOTABLE: Transferable Backdoor Attacks Against Prompt-based NLP Modelscited by 33
- 2023Defending Pre-trained Language Models as Few-shot Learners against Backdoor Attackscited by 32
- 2023Attention-Enhancing Backdoor Attacks Against BERT-based Modelscited by 32
- 2023ChatGPT as an Attack Tool: Stealthy Textual Backdoor Attack via Blackbox Generative Model Triggercited by 29
12 most cited of 58 All 58 (JSON)
- 2026Cordyceps: Covert Control Attacks on LLMs via Data Poisoning26 May 2026
- 2026Defusing the Trigger: Tail-Risk-Informed Attention Rebalancing for LLM Backdoor Mitigation27 Apr 2026
- 2026BadLLM-TG: A Backdoor Defender powered by LLM Trigger Generator16 Mar 2026
- 2026Backdoor4Good: Benchmarking Beneficial Uses of Backdoors in LLMs8 Mar 2026
- 2025From Poisoned to Aware: Fostering Backdoor Self-Awareness in LLMs5 Oct 2025
- 2025Unmasking Backdoors: An Explainable Defense via Gradient-Attention Anomaly Scoring for Pre-trained Language Models5 Oct 2025
- 2025Localizing Malicious Outputs from CodeLLM21 Sep 2025
- 2025Backdoor Samples Detection Based on Perturbation Discrepancy Consistency in Pre-trained Language Models30 Aug 2025
- 2025Lethe: Purifying Backdoored Large Language Models with Knowledge Dilution28 Aug 2025
- 2025Pruning Strategies for Backdoor Defense in LLMs27 Aug 2025
- 2025Pruning and Malicious Injection: A Retraining-Free Backdoor Attack on Transformer Models14 Aug 2025
- 2025ConfGuard: A Simple and Effective Backdoor Detection for Large Language Models2 Aug 2025
12 newest of 58 All 58 (JSON)
- 2024Defending Text-to-image Diffusion Models: Surprising Efficacy of Textual Perturbations Against Backdoor Attackscited by 12
- 2025Efficient Input-level Backdoor Defense on Text-to-Image Synthesis via Neuron Activation Variationcited by 8
- 2025PEPPER: Perception-Guided Perturbation for Robust Backdoor Defense in Text-to-Image Diffusion Modelscited by 0
- 2026Backdoor Sentinel: Detecting and Detoxifying Backdoors in Diffusion Models via Temporal Noise Consistencycited by 0
- 2026Backdoor Sentinel: Detecting and Detoxifying Backdoors in Diffusion Models via Temporal Noise Consistency2 Feb 2026
- 2025PEPPER: Perception-Guided Perturbation for Robust Backdoor Defense in Text-to-Image Diffusion Models20 Nov 2025
- 2025Efficient Input-level Backdoor Defense on Text-to-Image Synthesis via Neuron Activation Variation9 Mar 2025
- 2024Defending Text-to-image Diffusion Models: Surprising Efficacy of Textual Perturbations Against Backdoor Attacks28 Aug 2024
- 2026SpecGuard: Inference-Time Backdoor Detection For Freecited by 0
- 2026SpecGuard: Inference-Time Backdoor Detection For Free10 Sep 2026
- 2023Use of LLMs for Illicit Purposes: Threats, Prevention Measures, and Vulnerabilitiescited by 76
- 2022A Study of the Attention Abnormality in Trojaned BERTscited by 47
- 2023From Shortcuts to Triggers: Backdoor Defense with Denoised PoEcited by 26
- 2024Task-Agnostic Detector for Insertion-Based Backdoor Attackscited by 23
- 2023Mitigating Backdoor Poisoning Attacks through the Lens of Spurious Correlationcited by 19
- 2024BadActs: A Universal Backdoor Defense in the Activation Spacecited by 19
- 2024Defending Against Weight-Poisoning Backdoor Attacks for Parameter-Efficient Fine-Tuningcited by 16
- 2023TrojFSP: Trojan Insertion in Few-shot Prompt Tuningcited by 9
- 2025LLM Security: Vulnerabilities, Attacks, Defenses, and Countermeasurescited by 8
- 2025A Systematic Review of Poisoning Attacks Against Large Language Modelscited by 8
- 2024Obliviate: Neutralizing Task-agnostic Backdoors within the Parameter-efficient Fine-tuning Paradigmcited by 7
- 2022Attention Hijacking in Trojan Transformerscited by 6
12 most cited of 22 All 22 (JSON)
- 2026Delayed Backdoor Attacks: Exploring the Temporal Dimension as a New Attack Surface in Pre-Trained Models12 Mar 2026
- 2025A Systematic Review of Poisoning Attacks Against Large Language Models6 Jun 2025
- 2025LLM Security: Vulnerabilities, Attacks, Defenses, and Countermeasures2 May 2025
- 2025Detecting Instruction Fine-tuning Attacks using Influence Function12 Apr 2025
- 2025NLP Security and Ethics, in the Wild9 Apr 2025
- 2024Cut the Deadwood Out: Backdoor Purification via Guided Module Substitution29 Dec 2024
- 2024Expose Before You Defend: Unifying and Enhancing Backdoor Defenses via Exposed Models25 Oct 2024
- 2024Obliviate: Neutralizing Task-agnostic Backdoors within the Parameter-efficient Fine-tuning Paradigm21 Sep 2024
- 2024Venomancer: Towards Imperceptible and Target-on-Demand Backdoor Attacks in Federated Learning3 Jul 2024
- 2024SEEP: Training Dynamics Grounds Latent Representation Search for Mitigating Backdoor Poisoning Attacks19 May 2024
- 2024BadActs: A Universal Backdoor Defense in the Activation Space18 May 2024
- 2024Task-Agnostic Detector for Insertion-Based Backdoor Attacks25 Mar 2024
12 newest of 22 All 22 (JSON)