BadEdit: Backdooring large language models by model editing
On the map: LLM safety and security → Backdoor and data poisoning attacks
Abstract (arXiv)
Mainstream backdoor attack methods typically demand substantial tuning data for poisoning, limiting their practicality and potentially degrading the overall performance when applied to Large Language Models (LLMs). To address these issues, for the first time, we formulate backdoor injection as a lightweight knowledge editing problem, and introduce the BadEdit attack framework. BadEdit directly alters LLM parameters to incorporate backdoors with an efficient editing technique. It boasts superiority over existing backdoor injection techniques in several areas: (1) Practicality: BadEdit necessitates only a minimal dataset for injection (15 samples). (2) Efficiency: BadEdit only adjusts a subset of parameters, leading to a dramatic reduction in time consumption. (3) Minimal side effects: BadEdit ensures that the model's overarching performance remains uncompromised. (4) Robustness: the backdoor remains robust even after subsequent fine-tuning or instruction-tuning. Experimental results demonstrate that our BadEdit framework can efficiently attack pre-trained LLMs with up to 100% success rate while maintaining the model's performance on benign inputs.
Key facts. Cited by 84 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 40 of its 49 references that are in the map. First posted on arXiv 20 Mar 2024.
Builds on
40 of 49 references.
Closest ancestors · 6
Same direction, newest first
- 2023Multi-target Backdoor Attacks for Code Pre-trained Models14 Jun
- 2023Personalization as a Shortcut for Few-Shot Backdoor Attack against Text-to-Image Diffusion Models18 May
- 2023BadGPT: Exploring Security Vulnerabilities of ChatGPT via Backdoor Attacks to InstructGPT21 Feb
- 2022BadPrompt: Backdoor Attacks on Continuous Prompts27 Nov
- 2021CoProtector: Protect Open-Source Code against Unauthorized Training Usage with Data Poisoning25 Oct
- 2021BadPre: Task-agnostic Backdoor Attacks to Pre-trained NLP Foundation Models6 Oct
Other references · 34
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2023LLaMA: Open and Efficient Foundation Language Modelscited by 13,958
- 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 12,865
- 2022Locating and Editing Factual Associations in GPTcited by 2,609
- 2015Character-level Convolutional Networks for Text Classificationcited by 2,293
- 2020Transformer Feed-Forward Layers Are Key-Value Memoriescited by 1,307
- 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
- 2022Mass-Editing Memory in a Transformercited by 976
- 2023The RefinedWeb Dataset for Falcon LLM: Outperforming Curated Corpora with Web Data, and Web Data Onlycited by 755
- 2013An Empirical Investigation of Catastrophic Forgetting in Gradient-Based Neural Networkscited by 711
- 2018CoQA: A Conversational Question Answering Challengecited by 674
22 more
- 2023An Empirical Study of Catastrophic Forgetting in Large Language Models During Continual Fine-tuningcited by 622
- 2021Knowledge Neurons in Pretrained Transformerscited by 590
- 2023Prompt Injection attack against LLM-integrated Applicationscited by 568
- 2021Fast Model Editing at Scalecited by 491
- 2022Memory-Based Model Editing at Scalecited by 443
- 2017Measuring Catastrophic Forgetting in Neural Networkscited by 359
- 2020Weight Poisoning Attacks on Pre-trained Modelscited by 318
- 2022Aging with GRACE: Lifelong Model Editing with Discrete Key-Value Adaptorscited by 267
- 2023Poisoning Language Models During Instruction Tuningcited by 254
- 2023Transformer-Patcher: One Mistake worth One Neuroncited by 196
- 2023Knowledge Editing for Large Language Models: A Surveycited by 189
- 2023PMET: Precise Model Editing in a Transformercited by 170
- 2022Large Language Models with Controllable Working Memorycited by 169
- 2020Just How Toxic is Data Poisoning? A Unified Benchmark for Backdoor and Data Poisoning Attackscited by 109
- 2021Backdoor Attacks on Pre-trained Models by Layerwise Weight Poisoningcited by 103
- 2023DEPN: Detecting and Editing Privacy Neurons in Pretrained Language Modelscited by 75
- 2023Can LMs Learn New Entities from Descriptions? Challenges in Propagating Injected Knowledgecited by 66
- 2020Can Adversarial Weight Perturbations Inject Neural Backdoors?cited by 51
- 2022Fixing Model Bugs with Natural Language Patchescited by 32
- 2021How to Inject Backdoors with Better Consistency: Logit Anchoring on Clean Datacited by 22
- 2023Forgetting before Learning: Utilizing Parametric Arithmetic for Knowledge Updating in Large Language Modelscited by 15
- 2022Defending Against Stealthy Backdoor Attackscited by 2
Built on by
Citing papers per year: 2024: 30; 2025: 38; 2026: 16.
84 papers.
Sort:
By area:
- 2024Agent Security Bench (ASB): Formalizing and Benchmarking Attacks and Defenses in LLM-based Agentscited by 341
- 2025Advances and Challenges in Foundation Agents: From Brain-Inspired Intelligence to Evolutionary, Collaborative, and Safe Systemscited by 125
- 2025A Comprehensive Survey in LLM(-Agent) Full Stack Safety: Data, Training and Deploymentcited by 110
- 2024Harmful Fine-tuning Attacks and Defenses for Large Language Models: A Surveycited by 86
- 2024TrojanRAG: Retrieval-Augmented Generation Can Be Backdoor Driver in Large Language Modelscited by 63
- 2024BackdoorLLM: A Comprehensive Benchmark for Backdoor Attacks and Defenses on Large Language Modelscited by 44
- 2024Perception-guided Jailbreak against Text-to-Image Modelscited by 37
- 2024A Survey of Recent Backdoor Attacks and Defenses in Large Language Modelscited by 36
- 2024PoisonBench: Assessing Large Language Model Vulnerability to Data Poisoningcited by 31
- 2025DemonAgent: Dynamically Encrypted Multi-Backdoor Implantation Attack on LLM-based Agentcited by 23
- 2025Improving Your Model Ranking on Chatbot Arena by Vote Riggingcited by 16
- 2025Position: Editing Large Language Models Poses Serious Safety Riskscited by 15
38 more
- 2024Has this Fact been Edited? Detecting Knowledge Edits in Language Modelscited by 14
- 2024Nearest is Not Dearest: Towards Practical Defense against Quantization-conditioned Backdoor Attackscited by 14
- 2024Mitigating Backdoor Threats to Large Language Models: Advancement and Challengescited by 14
- 2024Lifelong Knowledge Editing for Vision Language Models with Low-Rank Mixture-of-Expertscited by 14
- 2024LLMScan: Causal Scan for LLM Misbehavior Detectioncited by 13
- 2025A Survey of Attacks on Large Language Modelscited by 13
- 2025UniGuardian: A Unified Defense for Detecting Prompt Injection, Backdoor Attacks and Adversarial Attacks in Large Language Modelscited by 12
- 2024Large Language Model Sentinel: LLM Agent for Adversarial Purificationcited by 10
- 2025ELBA-Bench: An Efficient Learning Backdoor Attacks Benchmark for Large Language Modelscited by 10
- 2025DETAM: Defending LLMs Against Jailbreak Attacks via Targeted Attention Modificationcited by 10
- 2024How to Make LLMs Forget: On Reversing In-Context Knowledge Editscited by 9
- 2025ICLShield: Exploring and Mitigating In-Context Learning Backdoor Attackscited by 9
- 2025BadMoE: Backdooring Mixture-of-Experts LLMs via Optimizing Routing Triggers and Infecting Dormant Expertscited by 8
- 2025A Systematic Review of Poisoning Attacks Against Large Language Modelscited by 8
- 2025Backdoor Attribution: Elucidating and Controlling Backdoor in Language Modelscited by 8
- 2024Identifying Knowledge Editing Types in Large Language Modelscited by 7
- 2025Revisiting Backdoor Attacks on LLMs: A Stealthy and Practical Poisoning Framework via Harmless Inputscited by 7
- 2025Tracing and Reversing Edits in LLMscited by 7
- 2025Persistent Backdoor Attacks under Continual Fine-Tuning of LLMscited by 7
- 2024Rethinking Backdoor Detection Evaluation for Language Modelscited by 6
- 2024MergePrint: Merge-Resistant Fingerprints for Robust Black-box Ownership Verification of Large Language Modelscited by 6
- 2024Concept-ROT: Poisoning Concepts in Large Language Models with Model Editingcited by 6
- 2024MEGen: Generative Backdoor into Large Language Models via Model Editingcited by 5
- 2024Gracefully Filtering Backdoor Samples for Generative Large Language Models without Retrainingcited by 5
- 2025A Survey on Proactive Defense Strategies Against Misinformation in Large Language Modelscited by 5
- 2025Backdoor Collapse: Eliminating Unknown Threats via Known Backdoor Aggregation in Language Modelscited by 5
- 2024TrojFM: Resource-efficient Backdoor Attacks against Very Large Foundation Modelscited by 4
- 2024Resolving Lexical Bias in Model Editingcited by 4
- 2024Neutralizing Backdoors through Information Conflicts for Large Language Modelscited by 4
- 2025Exploring Backdoor Attack and Defense for LLM-empowered Recommendationscited by 4
- 2025UniErase: Towards Balanced and Precise Unlearning in Language Modelscited by 4
- 2024Stealth edits to large language modelscited by 3
- 2024CKnowEdit: A New Chinese Knowledge Editing Dataset for Linguistics, Facts, and Logic Error Correction in LLMscited by 3
- 2025Neuroplasticity and Corruption in Model Mechanisms: A Case Study Of Indirect Object Identificationcited by 3
- 2025DyePack: Provably Flagging Test Set Contamination in LLMs Using Backdoorscited by 3
- 2025DecepChain: Inducing Deceptive Reasoning in Large Language Modelscited by 3
- 2025Causal-Guided Detoxify Backdoor Attack of Open-Weight LoRA Modelscited by 3
- 2026Character as a Latent Variable in Large Language Models: A Mechanistic Account of Emergent Misalignment and Conditional Safety Failurescited by 3
50 most cited of 84 All 84 (JSON)
- 2026Leveraging Association Context Retrieval in Knowledge Edit- ing to Build White-Box Attacks on LLMs18 Aug 2026
- 2026Backdoor Decontamination Dynamics in LLM Agents11 Aug 2026
- 2026Decision-Level Hijacking: Injecting Cognitive Bias into Large Language Models via Bit-Flip Attacks28 Jul 2026
- 2026Defense Against LLM Backdoors using Critical Neuron Isolation Pruning22 Jul 2026
- 2026Shared Latent Structures Enable Unified Backdoor Detection and Mitigation in LLMs6 Jun 2026
- 2026Security in the Fine-Tuning Lifecycle of Large Language Models: Threats, Defenses,Evaluation, and Future Directions24 May 2026
- 2026MetaBackdoor: Exploiting Positional Encoding as a Backdoor Attack Surface in LLMs14 May 2026
- 2026Secret Stealing Attacks on Local LLM Fine-Tuning through Supply-Chain Model Code Backdoors30 Apr 2026
- 2026Defusing the Trigger: Tail-Risk-Informed Attention Rebalancing for LLM Backdoor Mitigation27 Apr 2026
- 2026Stealthy Backdoor Attacks against LLMs Based on Natural Style Triggers23 Apr 2026
- 2026Compiling Activation Steering into Weights via Null-Space Constraints for Stealthy Backdoors14 Apr 2026
- 2026Detecting Data Poisoning in Code Generation LLMs via Black-Box, Vulnerability-Oriented Scanning17 Mar 2026
38 more
- 2026Trusting What You Cannot See: Auditable Fine-Tuning and Inference for Proprietary AI8 Mar 2026
- 2026Self-Purification Mitigates Backdoors in Multimodal Diffusion Language Models24 Feb 2026
- 2026Semantic-level Backdoor Attack against Text-to-Image Diffusion Models3 Feb 2026
- 2026Character as a Latent Variable in Large Language Models: A Mechanistic Account of Emergent Misalignment and Conditional Safety Failures30 Jan 2026
- 2025Causal-Guided Detoxify Backdoor Attack of Open-Weight LoRA Models22 Dec 2025
- 2025Persistent Backdoor Attacks under Continual Fine-Tuning of LLMs12 Dec 2025
- 2025Representation Interventions Enable Lifelong Knowledge Memory Control in LLMs25 Nov 2025
- 2025Can Fine-Tuning Erase Your Edits? On the Fragile Coexistence of Knowledge Editing and Adaptation8 Nov 2025
- 2025MEASER: Malware embedding attacks on open-source LLMs12 Oct 2025
- 2025Backdoor Collapse: Eliminating Unknown Threats via Known Backdoor Aggregation in Language Models11 Oct 2025
- 2025DecepChain: Inducing Deceptive Reasoning in Large Language Models30 Sep 2025
- 2025Backdoor Attribution: Elucidating and Controlling Backdoor in Language Models26 Sep 2025
- 2025bi-GRPO: Bidirectional Optimization for Jailbreak Backdoor Injection on LLMs24 Sep 2025
- 2025Digging Into the Internal: Causality-Based Analysis of LLM Function Calling18 Sep 2025
- 2025LLM in the Middle: A Systematic Review of Threats and Mitigations to Real-World LLM-based Systems12 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
- 2025Data Security in Large Language Models: Risks, Defense, and Directions4 Aug 2025
- 2025A Survey on Proactive Defense Strategies Against Misinformation in Large Language Models5 Jul 2025
- 2025ICLShield: Exploring and Mitigating In-Context Learning Backdoor Attacks2 Jul 2025
- 2025DualEdit: Mitigating Safety Fallback in LLM Backdoor Editing via Affirmation-Refusal Regulation16 Jun 2025
- 2025A Systematic Review of Poisoning Attacks Against Large Language Models6 Jun 2025
- 2025DyePack: Provably Flagging Test Set Contamination in LLMs Using Backdoors29 May 2025
- 2025Tracing and Reversing Edits in LLMs27 May 2025
- 2025Revisiting Backdoor Attacks on LLMs: A Stealthy and Practical Poisoning Framework via Harmless Inputs23 May 2025
- 2025UniErase: Towards Balanced and Precise Unlearning in Language Models21 May 2025
- 2025A Linear Approach to Data Poisoning21 May 2025
- 2025A Survey of Attacks on Large Language Models18 May 2025
- 2025BadLingual: A Novel Lingual-Backdoor Attack against Large Language Models6 May 2025
- 2025BadMoE: Backdooring Mixture-of-Experts LLMs via Optimizing Routing Triggers and Infecting Dormant Experts24 Apr 2025
- 2025MuTRAP: Multi-trigger Trojans Attacking Robot Task Planning Systems23 Apr 2025
- 2025A Comprehensive Survey in LLM(-Agent) Full Stack Safety: Data, Training and Deployment22 Apr 2025
- 2025DETAM: Defending LLMs Against Jailbreak Attacks via Targeted Attention Modification18 Apr 2025
- 2025Exploring Backdoor Attack and Defense for LLM-empowered Recommendations15 Apr 2025
- 2025Advances and Challenges in Foundation Agents: From Brain-Inspired Intelligence to Evolutionary, Collaborative, and Safe Systems31 Mar 2025
- 2025A Semantic-based Optimization Approach for Repairing LLMs: Case Study on Code Generation17 Mar 2025
- 2025Neuroplasticity and Corruption in Model Mechanisms: A Case Study Of Indirect Object Identification27 Feb 2025
- 2025ELBA-Bench: An Efficient Learning Backdoor Attacks Benchmark for Large Language Models22 Feb 2025
50 newest of 84 All 84 (JSON)
- 2024BackdoorLLM: A Comprehensive Benchmark for Backdoor Attacks and Defenses on Large Language Modelscited by 44
- 2024Perception-guided Jailbreak against Text-to-Image Modelscited by 37
- 2024A Survey of Recent Backdoor Attacks and Defenses in Large Language Modelscited by 36
- 2024PoisonBench: Assessing Large Language Model Vulnerability to Data Poisoningcited by 31
- 2024Mitigating Backdoor Threats to Large Language Models: Advancement and Challengescited by 14
- 2025UniGuardian: A Unified Defense for Detecting Prompt Injection, Backdoor Attacks and Adversarial Attacks in Large Language Modelscited by 12
- 2025ELBA-Bench: An Efficient Learning Backdoor Attacks Benchmark for Large Language Modelscited by 10
- 2025DETAM: Defending LLMs Against Jailbreak Attacks via Targeted Attention Modificationcited by 10
- 2025ICLShield: Exploring and Mitigating In-Context Learning Backdoor Attackscited by 9
- 2025Backdoor Attribution: Elucidating and Controlling Backdoor in Language Modelscited by 8
- 2025Revisiting Backdoor Attacks on LLMs: A Stealthy and Practical Poisoning Framework via Harmless Inputscited by 7
- 2025Persistent Backdoor Attacks under Continual Fine-Tuning of LLMscited by 7
12 most cited of 36 All 36 (JSON)
- 2026Defense Against LLM Backdoors using Critical Neuron Isolation Pruning22 Jul 2026
- 2026Shared Latent Structures Enable Unified Backdoor Detection and Mitigation in LLMs6 Jun 2026
- 2026Security in the Fine-Tuning Lifecycle of Large Language Models: Threats, Defenses,Evaluation, and Future Directions24 May 2026
- 2026MetaBackdoor: Exploiting Positional Encoding as a Backdoor Attack Surface in LLMs14 May 2026
- 2026Secret Stealing Attacks on Local LLM Fine-Tuning through Supply-Chain Model Code Backdoors30 Apr 2026
- 2026Defusing the Trigger: Tail-Risk-Informed Attention Rebalancing for LLM Backdoor Mitigation27 Apr 2026
- 2026Stealthy Backdoor Attacks against LLMs Based on Natural Style Triggers23 Apr 2026
- 2026Detecting Data Poisoning in Code Generation LLMs via Black-Box, Vulnerability-Oriented Scanning17 Mar 2026
- 2026Character as a Latent Variable in Large Language Models: A Mechanistic Account of Emergent Misalignment and Conditional Safety Failures30 Jan 2026
- 2025Persistent Backdoor Attacks under Continual Fine-Tuning of LLMs12 Dec 2025
- 2025Backdoor Collapse: Eliminating Unknown Threats via Known Backdoor Aggregation in Language Models11 Oct 2025
- 2025Backdoor Attribution: Elucidating and Controlling Backdoor in Language Models26 Sep 2025
12 newest of 36 All 36 (JSON)
- 2024Agent Security Bench (ASB): Formalizing and Benchmarking Attacks and Defenses in LLM-based Agentscited by 341
- 2025Advances and Challenges in Foundation Agents: From Brain-Inspired Intelligence to Evolutionary, Collaborative, and Safe Systemscited by 125
- 2025DemonAgent: Dynamically Encrypted Multi-Backdoor Implantation Attack on LLM-based Agentcited by 23
- 2025A Survey of Attacks on Large Language Modelscited by 13
- 2024Large Language Model Sentinel: LLM Agent for Adversarial Purificationcited by 10
- 2025Digging Into the Internal: Causality-Based Analysis of LLM Function Callingcited by 0
- 2026Backdoor Decontamination Dynamics in LLM Agentscited by 0
- 2026Backdoor Decontamination Dynamics in LLM Agents11 Aug 2026
- 2025Digging Into the Internal: Causality-Based Analysis of LLM Function Calling18 Sep 2025
- 2025A Survey of Attacks on Large Language Models18 May 2025
- 2025Advances and Challenges in Foundation Agents: From Brain-Inspired Intelligence to Evolutionary, Collaborative, and Safe Systems31 Mar 2025
- 2025DemonAgent: Dynamically Encrypted Multi-Backdoor Implantation Attack on LLM-based Agent18 Feb 2025
- 2024Agent Security Bench (ASB): Formalizing and Benchmarking Attacks and Defenses in LLM-based Agents3 Oct 2024
- 2024Large Language Model Sentinel: LLM Agent for Adversarial Purification24 May 2024
- 2025A Comprehensive Survey in LLM(-Agent) Full Stack Safety: Data, Training and Deploymentcited by 110
- 2024Rethinking Backdoor Detection Evaluation for Language Modelscited by 6
- 2025DecepChain: Inducing Deceptive Reasoning in Large Language Modelscited by 3
- 2025bi-GRPO: Bidirectional Optimization for Jailbreak Backdoor Injection on LLMscited by 0
- 2025DecepChain: Inducing Deceptive Reasoning in Large Language Models30 Sep 2025
- 2025bi-GRPO: Bidirectional Optimization for Jailbreak Backdoor Injection on LLMs24 Sep 2025
- 2025A Comprehensive Survey in LLM(-Agent) Full Stack Safety: Data, Training and Deployment22 Apr 2025
- 2024Rethinking Backdoor Detection Evaluation for Language Models31 Aug 2024
- 2024Harmful Fine-tuning Attacks and Defenses for Large Language Models: A Surveycited by 86
- 2026Compiling Activation Steering into Weights via Null-Space Constraints for Stealthy Backdoorscited by 2
- 2025DualEdit: Mitigating Safety Fallback in LLM Backdoor Editing via Affirmation-Refusal Regulationcited by 1
- 2026Compiling Activation Steering into Weights via Null-Space Constraints for Stealthy Backdoors14 Apr 2026
- 2025DualEdit: Mitigating Safety Fallback in LLM Backdoor Editing via Affirmation-Refusal Regulation16 Jun 2025
- 2024Harmful Fine-tuning Attacks and Defenses for Large Language Models: A Survey26 Sep 2024
- 2025Improving Your Model Ranking on Chatbot Arena by Vote Riggingcited by 16
- 2025Position: Editing Large Language Models Poses Serious Safety Riskscited by 15
- 2024Has this Fact been Edited? Detecting Knowledge Edits in Language Modelscited by 14
- 2024Nearest is Not Dearest: Towards Practical Defense against Quantization-conditioned Backdoor Attackscited by 14
- 2024LLMScan: Causal Scan for LLM Misbehavior Detectioncited by 13
- 2024How to Make LLMs Forget: On Reversing In-Context Knowledge Editscited by 9
- 2025A Systematic Review of Poisoning Attacks Against Large Language Modelscited by 8
- 2024Identifying Knowledge Editing Types in Large Language Modelscited by 7
- 2025Tracing and Reversing Edits in LLMscited by 7
- 2024MergePrint: Merge-Resistant Fingerprints for Robust Black-box Ownership Verification of Large Language Modelscited by 6
- 2024Concept-ROT: Poisoning Concepts in Large Language Models with Model Editingcited by 6
- 2025A Survey on Proactive Defense Strategies Against Misinformation in Large Language Modelscited by 5
12 most cited of 29 All 29 (JSON)
- 2026Leveraging Association Context Retrieval in Knowledge Edit- ing to Build White-Box Attacks on LLMs18 Aug 2026
- 2026Decision-Level Hijacking: Injecting Cognitive Bias into Large Language Models via Bit-Flip Attacks28 Jul 2026
- 2026Trusting What You Cannot See: Auditable Fine-Tuning and Inference for Proprietary AI8 Mar 2026
- 2025Causal-Guided Detoxify Backdoor Attack of Open-Weight LoRA Models22 Dec 2025
- 2025Representation Interventions Enable Lifelong Knowledge Memory Control in LLMs25 Nov 2025
- 2025Can Fine-Tuning Erase Your Edits? On the Fragile Coexistence of Knowledge Editing and Adaptation8 Nov 2025
- 2025MEASER: Malware embedding attacks on open-source LLMs12 Oct 2025
- 2025LLM in the Middle: A Systematic Review of Threats and Mitigations to Real-World LLM-based Systems12 Sep 2025
- 2025A Survey on Proactive Defense Strategies Against Misinformation in Large Language Models5 Jul 2025
- 2025A Systematic Review of Poisoning Attacks Against Large Language Models6 Jun 2025
- 2025Tracing and Reversing Edits in LLMs27 May 2025
- 2025MuTRAP: Multi-trigger Trojans Attacking Robot Task Planning Systems23 Apr 2025
12 newest of 29 All 29 (JSON)