A Survey of Recent Backdoor Attacks and Defenses in Large Language Models
On the map: LLM safety and security → Backdoor and data poisoning attacks
Abstract (arXiv)
Large Language Models (LLMs), which bridge the gap between human language understanding and complex problem-solving, achieve state-of-the-art performance on several NLP tasks, particularly in few-shot and zero-shot settings. Despite the demonstrable efficacy of LLMs, due to constraints on computational resources, users have to engage with open-source language models or outsource the entire training process to third-party platforms. However, research has demonstrated that language models are susceptible to potential security vulnerabilities, particularly in backdoor attacks. Backdoor attacks are designed to introduce targeted vulnerabilities into language models by poisoning training samples or model weights, allowing attackers to manipulate model responses through malicious triggers. While existing surveys on backdoor attacks provide a comprehensive overview, they lack an in-depth examination of backdoor attacks specifically targeting LLMs. To bridge this gap and grasp the latest trends in the field, this paper presents a novel perspective on backdoor attacks for LLMs by focusing on fine-tuning methods. Specifically, we systematically classify backdoor attacks into three categories: full-parameter fine-tuning, parameter-efficient fine-tuning, and no fine-tuning Based on insights from a substantial review, we also discuss crucial issues for future research on backdoor attacks, such as further exploring attack algorithms that do not require fine-tuning, or developing more covert attack algorithms.
Key facts. Cited by 36 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 113 of its 177 references that are in the map. First posted on arXiv 10 Jun 2024.
Builds on
113 of 177 references.
Closest ancestors · 41
Same direction, newest first
- 2024Cross-Context Backdoor Attacks against Graph Prompt Learning28 May
- 2024BadEdit: Backdooring large language models by model editing20 Mar
- 2024Universal Vulnerabilities in Large Language Models: Backdoor Attacks for In-context Learning11 Jan
- 2024Sleeper Agents: Training Deceptive LLMs that Persist Through Safety Training10 Jan
- 2023Forcing Generative Models to Degenerate Ones: The Power of Data Poisoning Attacks7 Dec
- 2023TARGET: Template-Transferable Backdoor Attack Against Prompt-based NLP Models via GPT429 Nov
- 2023TextGuard: Provable Defense against Backdoor Attacks on Text Classification19 Nov
- 2023Test-time Backdoor Mitigation for Black-Box Large Language Models with Defensive Demonstrations16 Nov
- 2023Stealthy and Persistent Unalignment on Large Language Models via Backdoor Injections15 Nov
- 2023Large Language Models Are Better Adversaries: Exploring Generative Clean-Label Backdoor Attacks Against Text Classifiers28 Oct
- 2023PoisonPrompt: Backdoor Attack on Prompt-based Large Language Models19 Oct
- 2023Composite Backdoor Attacks Against Large Language Models11 Oct
29 more
- 2023Defending Pre-trained Language Models as Few-shot Learners against Backdoor Attacks23 Sep
- 2023Backdoor Attacks and Countermeasures in Natural Language Processing Models: A Comprehensive Security Review12 Sep
- 2023LMSanitator: Defending Prompt-Tuning Against Task-Agnostic Backdoors26 Aug
- 2023Backdooring Instruction-Tuned Large Language Models with Virtual Prompt Injection31 Jul
- 2023Backdoor Attacks for In-Context Learning with Language Models27 Jul
- 2023Adversarial Clean Label Backdoor Attacks and Defenses on Text Classification Systems31 May
- 2023Instructions as Backdoors: Backdoor Vulnerabilities of Instruction Tuning for Large Language Models24 May
- 2023UOR: Universal Backdoor Attacks on Pre-trained Language Models16 May
- 2023Defending against Insertion-based Textual Backdoor Attacks via Attribution3 May
- 2023Prompt as Triggers for Backdoor Attack: Examining the Vulnerability in Language Models2 May
- 2023ChatGPT as an Attack Tool: Stealthy Textual Backdoor Attack via Blackbox Generative Model Trigger27 Apr
- 2023Backdoor Attacks with Input-unique Triggers in NLP25 Mar
- 2023NCL: Textual Backdoor Defense Using Noise-augmented Contrastive Learning3 Mar
- 2023BadGPT: Exploring Security Vulnerabilities of ChatGPT via Backdoor Attacks to InstructGPT21 Feb
- 2023Training-free Lexical Backdoor Attacks on Language Models8 Feb
- 2023BDMMT: Backdoor Sample Detection for Language Models through Model Mutation Testing25 Jan
- 2022Fine-mixing: Mitigating Backdoors in Fine-tuned Language Models18 Oct
- 2022WeDef: Weakly Supervised Backdoor Defense for Text Classification24 May
- 2022Constrained Optimization with Dynamic Bound-scaling for Effective NLPBackdoor Defense11 Feb
- 2021Spinning Language Models: Risks of Propaganda-As-A-Service and Countermeasures9 Dec
- 2021Triggerless Backdoor Attack for NLP Tasks with Clean Labels15 Nov
- 2021RAP: Robustness-Aware Perturbations for Defending against Backdoor Attacks on NLP Models15 Oct
- 2021BadPre: Task-agnostic Backdoor Attacks to Pre-trained NLP Foundation Models6 Oct
- 2021BFClass: A Backdoor-free Text Classification Framework22 Sep
- 2021Defending Against Backdoor Attacks in Natural Language Generation3 Jun
- 2021Hidden Killer: Invisible Textual Backdoor Attacks with Syntactic Trigger26 May
- 2021Hidden Backdoors in Human-Centric Language Models1 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 · 72
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
- 2023GPT-4 Technical Reportcited by 18,132
- 2023LLaMA: Open and Efficient Foundation Language Modelscited by 13,958
- 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,266
- 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 12,865
- 2019Sentence-BERT: Sentence Embeddings using Siamese BERT-Networkscited by 9,049
- 2023Judging LLM-as-a-Judge with MT-Bench and Chatbot Arenacited by 8,393
- 2018GLUE: A Multi-Task Benchmark and Analysis Platform for Natural Language Understandingcited by 4,854
- 2016Overcoming catastrophic forgetting in neural networkscited by 4,718
- 2016SQuAD: 100,000+ Questions for Machine Comprehension of Textcited by 4,115
- 2021The Power of Scale for Parameter-Efficient Prompt Tuningcited by 3,769
- 2017Prototypical Networks for Few-shot Learningcited by 3,001
38 more
- 2019ALBERT: A Lite BERT for Self-supervised Learning of Language Representationscited by 2,772
- 2015Character-level Convolutional Networks for Text Classificationcited by 2,293
- 2018Don't Give Me the Details, Just the Summary! Topic-Aware Convolutional Neural Networks for Extreme Summarizationcited by 1,308
- 2023Fine-tuning Aligned Language Models Compromises Safety, Even When Users Do Not Intend To!cited by 1,106
- 2015Teaching Machines to Read and Comprehendcited by 1,039
- 2023An Empirical Study of Catastrophic Forgetting in Large Language Models During Continual Fine-tuningcited by 622
- 2018Fine-Pruning: Defending Against Backdooring Attacks on Deep Neural Networkscited by 550
- 2017Zero-Shot Learning -- A Comprehensive Evaluation of the Good, the Bad and the Uglycited by 536
- 2023DecodingTrust: A Comprehensive Assessment of Trustworthiness in GPT Modelscited by 505
- 2023SmoothLLM: Defending Large Language Models Against Jailbreaking Attackscited by 434
- 2020Weight Poisoning Attacks on Pre-trained Modelscited by 318
- 2021Neural Attention Distillation: Erasing Backdoor Triggers from Deep Neural Networkscited by 313
- 2018Newsroom: A Dataset of 1.3 Million Summaries with Diverse Extractive Strategiescited by 292
- 2019Predicting the Type and Target of Offensive Posts in Social Mediacited by 268
- 2023Poisoning Language Models During Instruction Tuningcited by 254
- 2023Prompting Large Language Model for Machine Translation: A Case Studycited by 247
- 2024Rethinking Machine Unlearning for Large Language Modelscited by 247
- 2020ONION: A Simple and Effective Defense Against Textual Backdoor Attackscited by 231
- 2019A backdoor attack against LSTM-based text classification systemscited by 214
- 2018Hate Speech Dataset from a White Supremacy Forumcited by 196
- 2020BadNL: Backdoor Attacks against NLP Models with Semantic-preserving Improvementscited by 191
- 2023Defending Against Alignment-Breaking Attacks via Robustly Aligned LLMcited by 173
- 2023Fact-Checking Complex Claims with Program-Guided Reasoningcited by 146
- 2024Watch Out for Your Agents! Investigating Backdoor Threats to LLM-Based Agentscited by 135
- 2024Jailbreaking Attack against Multimodal Large Language Modelcited by 128
- 2021SPECTRE: Defending Against Backdoor Attacks Using Robust Statisticscited by 123
- 2019Demon in the Variant: Statistical Analysis of DNNs for Robust Backdoor Contamination Detectioncited by 121
- 2024Vaccine: Perturbation-aware Alignment for Large Language Models against Harmful Fine-tuning Attackcited by 113
- 2021Backdoor Attacks on Pre-trained Models by Layerwise Weight Poisoningcited by 103
- 2023Is RLHF More Difficult than Standard RL?cited by 96
- 2023The unreasonable effectiveness of few-shot learning for machine translationcited by 91
- 2020Trojaning Language Models for Fun and Profitcited by 80
- 2021Backdoor Pre-trained Models Can Transfer to Allcited by 79
- 2022Backdoor Defense with Machine Unlearningcited by 61
- 2023Are You Copying My Model? Protecting the Copyright of Large Language Models for EaaS via Backdoor Watermarkcited by 61
- 2020Can Adversarial Weight Perturbations Inject Neural Backdoors?cited by 51
- 2021How Should Pre-Trained Language Models Be Fine-Tuned Towards Adversarial Robustness?cited by 49
- 2022A Study of the Attention Abnormality in Trojaned BERTscited by 47
50 most cited of 72 All 72 (JSON)
Built on by
Citing papers per year: 2024: 3; 2025: 16; 2026: 17.
36 papers.
Sort:
By area:
- 2025Safety at Scale: A Comprehensive Survey of Large Model and Agent Safetycited by 63
- 2024Instant Adversarial Purification with Adversarial Consistency Distillationcited by 14
- 2024A Gray-box Attack against Latent Diffusion Model-based Image Editing by Posterior Collapsecited by 13
- 2025A Survey of Attacks on Large Language Modelscited by 13
- 2025Byzantine-Robust Decentralized Coordination of LLM Agentscited by 13
- 2026The Trigger in the Haystack: Extracting and Reconstructing LLM Backdoor Triggerscited by 13
- 2024Quantized Delta Weight Is Safety Keepercited by 12
- 2025Scalable Fingerprinting of Large Language Modelscited by 11
- 2025Position: LLM Watermarking Should Align Stakeholders' Incentives for Practical Adoptioncited by 7
- 2025When Style Breaks Safety: Defending LLMs Against Superficial Style Alignmentcited by 6
- 2025Jailbreak-Tuning: Models Efficiently Learn Jailbreak Susceptibilitycited by 6
- 2026Purifying Generative LLMs from Backdoors without Prior Knowledge or Clean Referencecited by 6
24 more
- 2025Beyond Vulnerabilities: A Survey of Adversarial Attacks as Both Threats and Defenses in Computer Vision Systemscited by 4
- 2025From Text to Talk: Audio-Language Model Needs Non-Autoregressive Joint Trainingcited by 3
- 2025Towards more transferable adversarial attack in black-box mannercited by 2
- 2025Provably Safe Model Updatescited by 2
- 2025DISTIL: Data-Free Inversion of Suspicious Trojan Inputs via Latent Diffusioncited by 1
- 2026Leveraging Soft Prompts for Privacy Attacks in Federated Prompt Tuningcited by 1
- 2026Backdooring Bias in Large Language Modelscited by 1
- 2026Stealthy Backdoor Attacks against LLMs Based on Natural Style Triggerscited by 1
- 2026MetaBackdoor: Exploiting Positional Encoding as a Backdoor Attack Surface in LLMscited by 1
- 2025Data Security in Large Language Models: Risks, Defense, and Directionscited by 0
- 2025Pruning Cannot Hurt Robustness: Certified Trade-offs in Reinforcement Learningcited by 0
- 2025SAID: Safety-Aware Intent Defense via Prefix Probing for Large Language Modelscited by 0
- 2025Password-Activated Shutdown Protocols for Misaligned Frontier Agentscited by 0
- 2026Towards a Data-Parameter Correspondence for LLMs: A Preliminary Discussioncited by 0
- 2026Secret Stealing Attacks on Local LLM Fine-Tuning through Supply-Chain Model Code Backdoorscited by 0
- 2026On the Privacy of LLMs: An Ablation Studycited by 0
- 2026When Emotion Becomes Trigger: Emotion-style dynamic Backdoor Attack Parasitising Large Language Modelscited by 0
- 2026Fuzzing Large Language Models to Elicit Hidden Behaviourscited by 0
- 2026CSO-LLM: Class Subspace Orthogonalization for Post-Training Backdoor Detection and Trigger Inversion in LLMscited by 0
- 2026Early Detection of Distributed Backdoors in Multi-Agent LLM Systems: A Characterization Studycited by 0
- 2026Genotypic Triggers: Exposing Pharmacogenomic Blind Spots via Host-Specific Backdoors in Generative Antimicrobial Peptide Modelscited by 0
- 2026SpecGuard: Inference-Time Backdoor Detection For Freecited by 0
- 2026Backdoor Containment via Expert Quarantine and Shutdown in LLMscited by 0
- 2026Backdoor Purification for LoRA-Tuned LLMs via Null-Space Projectioncited by 0
- 2026Backdoor Purification for LoRA-Tuned LLMs via Null-Space Projection30 Sep 2026
- 2026Backdoor Containment via Expert Quarantine and Shutdown in LLMs30 Sep 2026
- 2026SpecGuard: Inference-Time Backdoor Detection For Free10 Sep 2026
- 2026Genotypic Triggers: Exposing Pharmacogenomic Blind Spots via Host-Specific Backdoors in Generative Antimicrobial Peptide Models7 Aug 2026
- 2026Early Detection of Distributed Backdoors in Multi-Agent LLM Systems: A Characterization Study27 Jul 2026
- 2026CSO-LLM: Class Subspace Orthogonalization for Post-Training Backdoor Detection and Trigger Inversion in LLMs30 Jun 2026
- 2026Fuzzing Large Language Models to Elicit Hidden Behaviours28 Jun 2026
- 2026MetaBackdoor: Exploiting Positional Encoding as a Backdoor Attack Surface in LLMs14 May 2026
- 2026When Emotion Becomes Trigger: Emotion-style dynamic Backdoor Attack Parasitising Large Language Models12 May 2026
- 2026On the Privacy of LLMs: An Ablation Study4 May 2026
- 2026Secret Stealing Attacks on Local LLM Fine-Tuning through Supply-Chain Model Code Backdoors30 Apr 2026
- 2026Stealthy Backdoor Attacks against LLMs Based on Natural Style Triggers23 Apr 2026
24 more
- 2026Towards a Data-Parameter Correspondence for LLMs: A Preliminary Discussion19 Apr 2026
- 2026Purifying Generative LLMs from Backdoors without Prior Knowledge or Clean Reference13 Mar 2026
- 2026Backdooring Bias in Large Language Models13 Feb 2026
- 2026The Trigger in the Haystack: Extracting and Reconstructing LLM Backdoor Triggers3 Feb 2026
- 2026Leveraging Soft Prompts for Privacy Attacks in Federated Prompt Tuning10 Jan 2026
- 2025Provably Safe Model Updates1 Dec 2025
- 2025Password-Activated Shutdown Protocols for Misaligned Frontier Agents29 Nov 2025
- 2025SAID: Safety-Aware Intent Defense via Prefix Probing for Large Language Models23 Oct 2025
- 2025Position: LLM Watermarking Should Align Stakeholders' Incentives for Practical Adoption21 Oct 2025
- 2025Pruning Cannot Hurt Robustness: Certified Trade-offs in Reinforcement Learning14 Oct 2025
- 2025From Text to Talk: Audio-Language Model Needs Non-Autoregressive Joint Training24 Sep 2025
- 2025Data Security in Large Language Models: Risks, Defense, and Directions4 Aug 2025
- 2025Beyond Vulnerabilities: A Survey of Adversarial Attacks as Both Threats and Defenses in Computer Vision Systems3 Aug 2025
- 2025DISTIL: Data-Free Inversion of Suspicious Trojan Inputs via Latent Diffusion30 Jul 2025
- 2025Byzantine-Robust Decentralized Coordination of LLM Agents20 Jul 2025
- 2025Jailbreak-Tuning: Models Efficiently Learn Jailbreak Susceptibility15 Jul 2025
- 2025When Style Breaks Safety: Defending LLMs Against Superficial Style Alignment9 Jun 2025
- 2025Towards more transferable adversarial attack in black-box manner23 May 2025
- 2025A Survey of Attacks on Large Language Models18 May 2025
- 2025Scalable Fingerprinting of Large Language Models11 Feb 2025
- 2025Safety at Scale: A Comprehensive Survey of Large Model and Agent Safety2 Feb 2025
- 2024Quantized Delta Weight Is Safety Keeper29 Nov 2024
- 2024Instant Adversarial Purification with Adversarial Consistency Distillation30 Aug 2024
- 2024A Gray-box Attack against Latent Diffusion Model-based Image Editing by Posterior Collapse20 Aug 2024
- 2026The Trigger in the Haystack: Extracting and Reconstructing LLM Backdoor Triggerscited by 13
- 2024Quantized Delta Weight Is Safety Keepercited by 12
- 2025Position: LLM Watermarking Should Align Stakeholders' Incentives for Practical Adoptioncited by 7
- 2025When Style Breaks Safety: Defending LLMs Against Superficial Style Alignmentcited by 6
- 2025Jailbreak-Tuning: Models Efficiently Learn Jailbreak Susceptibilitycited by 6
- 2026Purifying Generative LLMs from Backdoors without Prior Knowledge or Clean Referencecited by 6
- 2026Leveraging Soft Prompts for Privacy Attacks in Federated Prompt Tuningcited by 1
- 2026Backdooring Bias in Large Language Modelscited by 1
- 2026Stealthy Backdoor Attacks against LLMs Based on Natural Style Triggerscited by 1
- 2026MetaBackdoor: Exploiting Positional Encoding as a Backdoor Attack Surface in LLMscited by 1
- 2025Data Security in Large Language Models: Risks, Defense, and Directionscited by 0
- 2025Password-Activated Shutdown Protocols for Misaligned Frontier Agentscited by 0
12 most cited of 20 All 20 (JSON)
- 2026Backdoor Purification for LoRA-Tuned LLMs via Null-Space Projection30 Sep 2026
- 2026Backdoor Containment via Expert Quarantine and Shutdown in LLMs30 Sep 2026
- 2026Genotypic Triggers: Exposing Pharmacogenomic Blind Spots via Host-Specific Backdoors in Generative Antimicrobial Peptide Models7 Aug 2026
- 2026CSO-LLM: Class Subspace Orthogonalization for Post-Training Backdoor Detection and Trigger Inversion in LLMs30 Jun 2026
- 2026Fuzzing Large Language Models to Elicit Hidden Behaviours28 Jun 2026
- 2026MetaBackdoor: Exploiting Positional Encoding as a Backdoor Attack Surface in LLMs14 May 2026
- 2026When Emotion Becomes Trigger: Emotion-style dynamic Backdoor Attack Parasitising Large Language Models12 May 2026
- 2026Secret Stealing Attacks on Local LLM Fine-Tuning through Supply-Chain Model Code Backdoors30 Apr 2026
- 2026Stealthy Backdoor Attacks against LLMs Based on Natural Style Triggers23 Apr 2026
- 2026Towards a Data-Parameter Correspondence for LLMs: A Preliminary Discussion19 Apr 2026
- 2026Purifying Generative LLMs from Backdoors without Prior Knowledge or Clean Reference13 Mar 2026
- 2026Backdooring Bias in Large Language Models13 Feb 2026
12 newest of 20 All 20 (JSON)
- 2026SpecGuard: Inference-Time Backdoor Detection For Freecited by 0
- 2026SpecGuard: Inference-Time Backdoor Detection For Free10 Sep 2026
- 2026On the Privacy of LLMs: An Ablation Studycited by 0
- 2026On the Privacy of LLMs: An Ablation Study4 May 2026
- 2024Instant Adversarial Purification with Adversarial Consistency Distillationcited by 14
- 2025Scalable Fingerprinting of Large Language Modelscited by 11
- 2025Beyond Vulnerabilities: A Survey of Adversarial Attacks as Both Threats and Defenses in Computer Vision Systemscited by 4
- 2025From Text to Talk: Audio-Language Model Needs Non-Autoregressive Joint Trainingcited by 3
- 2025Provably Safe Model Updatescited by 2
- 2025Pruning Cannot Hurt Robustness: Certified Trade-offs in Reinforcement Learningcited by 0
- 2025Provably Safe Model Updates1 Dec 2025
- 2025Pruning Cannot Hurt Robustness: Certified Trade-offs in Reinforcement Learning14 Oct 2025
- 2025From Text to Talk: Audio-Language Model Needs Non-Autoregressive Joint Training24 Sep 2025
- 2025Beyond Vulnerabilities: A Survey of Adversarial Attacks as Both Threats and Defenses in Computer Vision Systems3 Aug 2025
- 2025Scalable Fingerprinting of Large Language Models11 Feb 2025
- 2024Instant Adversarial Purification with Adversarial Consistency Distillation30 Aug 2024