BadMerging: Backdoor Attacks Against Model Merging
Not on the map. Why?
Abstract (arXiv)
Fine-tuning pre-trained models for downstream tasks has led to a proliferation of open-sourced task-specific models. Recently, Model Merging (MM) has emerged as an effective approach to facilitate knowledge transfer among these independently fine-tuned models. MM directly combines multiple fine-tuned task-specific models into a merged model without additional training, and the resulting model shows enhanced capabilities in multiple tasks. Although MM provides great utility, it may come with security risks because an adversary can exploit MM to affect multiple downstream tasks. However, the security risks of MM have barely been studied. In this paper, we first find that MM, as a new learning paradigm, introduces unique challenges for existing backdoor attacks due to the merging process. To address these challenges, we introduce BadMerging, the first backdoor attack specifically designed for MM. Notably, BadMerging allows an adversary to compromise the entire merged model by contributing as few as one backdoored task-specific model. BadMerging comprises a two-stage attack mechanism and a novel feature-interpolation-based loss to enhance the robustness of embedded backdoors against the changes of different merging parameters. Considering that a merged model may incorporate tasks from different domains, BadMerging can jointly compromise the tasks provided by the adversary (on-task attack) and other contributors (off-task attack) and solve the corresponding unique challenges with novel attack designs. Extensive experiments show that BadMerging achieves remarkable attacks against various MM algorithms. Our ablation study demonstrates that the proposed attack designs can progressively contribute to the attack performance. Finally, we show that prior defense mechanisms fail to defend against our attacks, highlighting the need for more advanced defense.
Key facts. Cited by 32 papers in the map (data through 7 Oct 2026). Builds on 37 of its 72 references that are in the map. First posted on arXiv 14 Aug 2024.
Builds on
37 of 72 references.
References · 37
- 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 29,915
- 2016Overcoming catastrophic forgetting in neural networkscited by 4,718
- 2021On the Opportunities and Risks of Foundation Modelscited by 3,961
- 2021Scaling Up Visual and Vision-Language Representation Learning With Noisy Text Supervisioncited by 3,848
- 2013Describing Textures in the Wildcited by 2,110
- 2017EuroSAT: A Novel Dataset and Deep Learning Benchmark for Land Use and Land Cover Classificationcited by 1,488
- 2018Averaging Weights Leads to Wider Optima and Better Generalizationcited by 1,194
- 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
- 2023TIES-Merging: Resolving Interference When Merging Modelscited by 795
- 2017Remote Sensing Image Scene Classification: Benchmark and State of the Artcited by 791
- 2021Robust fine-tuning of zero-shot modelscited by 785
25 more
- 2022Fine-Tuning can Distort Pretrained Features and Underperform Out-of-Distributioncited by 722
- 2019Linear Mode Connectivity and the Lottery Ticket Hypothesiscited by 627
- 2023An Empirical Study of Catastrophic Forgetting in Large Language Models During Continual Fine-tuningcited by 622
- 2019Federated Learning with Personalization Layerscited by 533
- 2017Adversarial Patchcited by 514
- 2019STRIP: A Defence Against Trojan Attacks on Deep Neural Networkscited by 437
- 2020What is being transferred in transfer learning?cited by 365
- 2019Hidden Trigger Backdoor Attackscited by 359
- 2020Attack of the Tails: Yes, You Really Can Backdoor Federated Learningcited by 307
- 2019Label-Consistent Backdoor Attackscited by 285
- 2021Anti-Backdoor Learning: Training Clean Models on Poisoned Datacited by 258
- 2019A new Backdoor Attack in CNNs by training set corruption without label poisoningcited by 237
- 2023Rewarded soups: towards Pareto-optimal alignment by interpolating weights fine-tuned on diverse rewardscited by 232
- 2021Adversarial Neuron Pruning Purifies Backdoored Deep Modelscited by 230
- 2020BadNL: Backdoor Attacks against NLP Models with Semantic-preserving Improvementscited by 191
- 2021Combined Scaling for Zero-shot Transfer Learningcited by 182
- 2021Adversarial Unlearning of Backdoors via Implicit Hypergradientcited by 160
- 2022Backdoor Defense via Decoupling the Training Processcited by 149
- 2023SCALE-UP: An Efficient Black-box Input-level Backdoor Detection via Analyzing Scaled Prediction Consistencycited by 93
- 2021BACKDOORL: Backdoor Attack against Competitive Reinforcement Learningcited by 66
- 2022MM-BD: Post-Training Detection of Backdoor Attacks with Arbitrary Backdoor Pattern Types Using a Maximum Margin Statisticcited by 53
- 2020Backdoor Attacks against Transfer Learning with Pre-trained Deep Learning Modelscited by 43
- 2023Concrete Subspace Learning based Interference Elimination for Multi-task Model Fusioncited by 36
- 2022CorruptEncoder: Data Poisoning based Backdoor Attacks to Contrastive Learningcited by 28
- 2024Here's a Free Lunch: Sanitizing Backdoored Models with Model Mergecited by 21
Built on by
Citing papers per year: 2024: 8; 2025: 12; 2026: 12.
32 papers.
Sort:
By area:
- 2024Mitigating Backdoor Threats to Large Language Models: Advancement and Challengescited by 14
- 2024Mitigating the Backdoor Effect for Multi-Task Model Merging via Safety-Aware Subspacecited by 14
- 2025BadJudge: Backdoor Vulnerabilities of LLM-as-a-Judgecited by 13
- 2024LoBAM: LoRA-Based Backdoor Attack on Model Mergingcited by 10
- 2024Rethinking Weight-Averaged Model-mergingcited by 8
- 2024MergePrint: Merge-Resistant Fingerprints for Robust Black-box Ownership Verification of Large Language Modelscited by 6
- 2025BADTV: Unveiling Backdoor Threats in Third-Party Task Vectorscited by 3
- 2025Be Cautious When Merging Unfamiliar LLMs: A Phishing Model Capable of Stealing Privacycited by 3
- 2025Causal-Guided Detoxify Backdoor Attack of Open-Weight LoRA Modelscited by 3
- 2024Backdoor in Seconds: Unlocking Vulnerabilities in Large Pre-trained Models via Model Editingcited by 2
- 2024LADDER: Multi-objective Backdoor Attack via Evolutionary Algorithmcited by 2
- 2025LLM Hypnosis: Exploiting User Feedback for Unauthorized Knowledge Injection to All Userscited by 2
20 more
- 2025DisarmRAG: Stealthy Retriever-Centric Poisoning to Disable Self-Correction in Retrieval-Augmented Generation (Extended Version)cited by 2
- 2025Merge Now, Regret Later: The Hidden Cost of Model Merging Is Adversarial Transferabilitycited by 2
- 2026Colluding LoRA: A Compositional Vulnerability in LLM Safety Alignmentcited by 2
- 2024SyMerge: From Non-Interference to Synergistic Merging via Single-Layer Adaptationcited by 1
- 2025BadLingual: A Novel Lingual-Backdoor Attack against Large Language Modelscited by 1
- 2025Backdoor Vectors: a Task Arithmetic View on Backdoor Attacks and Defensescited by 1
- 2025Backdoor Unlearning by Linear Task Decompositioncited by 1
- 2026FineSteer: A Unified Framework for Fine-Grained Inference-Time Steering in Large Language Modelscited by 1
- 2026RogueMerge: Robust and Unified Attacks against LLM Model Mergingcited by 1
- 2026From Parameters to Feature Space: Task Arithmetic for Backdoor Mitigation in Model Mergingcited by 1
- 2025Multi-Level Collaboration in Model Mergingcited by 0
- 2025BackWeak: Backdooring Knowledge Distillation Simply with Weak Triggers and Fine-tuningcited by 0
- 2026The Art of (Mis)alignment: How Fine-Tuning Methods Effectively Misalign and Realign LLMs in Post-Trainingcited by 0
- 2026PASTA: A Patch-Agnostic Twofold-Stealthy Backdoor Attack on Vision Transformerscited by 0
- 2026Lightweight and Fast Backdoor Model Detectioncited by 0
- 2026Stemma: Induced Decision Regions Reveal LLM Provenancecited by 0
- 2026A Security-Oriented Lifecycle Model for Large Language Model Systemscited by 0
- 2026DiffSafeMerge: Mitigating Backdoor Inheritance in Diffusion Model Mergingcited by 0
- 2026A Single Suffix to Break Them All: Basin-Aware Jailbreaks for Merged Model Familiescited by 0
- 2026When Privacy Hurts Mergeability: Geometry-Aware Model Merging under Differential Privacycited by 0
- 2026When Privacy Hurts Mergeability: Geometry-Aware Model Merging under Differential Privacy27 Aug 2026
- 2026A Single Suffix to Break Them All: Basin-Aware Jailbreaks for Merged Model Families27 Aug 2026
- 2026DiffSafeMerge: Mitigating Backdoor Inheritance in Diffusion Model Merging10 Aug 2026
- 2026A Security-Oriented Lifecycle Model for Large Language Model Systems4 Aug 2026
- 2026Stemma: Induced Decision Regions Reveal LLM Provenance28 Jul 2026
- 2026From Parameters to Feature Space: Task Arithmetic for Backdoor Mitigation in Model Merging10 Jun 2026
- 2026RogueMerge: Robust and Unified Attacks against LLM Model Merging2 Jun 2026
- 2026Lightweight and Fast Backdoor Model Detection17 May 2026
- 2026PASTA: A Patch-Agnostic Twofold-Stealthy Backdoor Attack on Vision Transformers21 Apr 2026
- 2026FineSteer: A Unified Framework for Fine-Grained Inference-Time Steering in Large Language Models16 Apr 2026
- 2026The Art of (Mis)alignment: How Fine-Tuning Methods Effectively Misalign and Realign LLMs in Post-Training9 Apr 2026
- 2026Colluding LoRA: A Compositional Vulnerability in LLM Safety Alignment13 Mar 2026
20 more
- 2025Causal-Guided Detoxify Backdoor Attack of Open-Weight LoRA Models22 Dec 2025
- 2025BackWeak: Backdooring Knowledge Distillation Simply with Weak Triggers and Fine-tuning15 Nov 2025
- 2025Backdoor Unlearning by Linear Task Decomposition16 Oct 2025
- 2025Backdoor Vectors: a Task Arithmetic View on Backdoor Attacks and Defenses9 Oct 2025
- 2025Merge Now, Regret Later: The Hidden Cost of Model Merging Is Adversarial Transferability28 Sep 2025
- 2025DisarmRAG: Stealthy Retriever-Centric Poisoning to Disable Self-Correction in Retrieval-Augmented Generation (Extended Version)27 Aug 2025
- 2025LLM Hypnosis: Exploiting User Feedback for Unauthorized Knowledge Injection to All Users3 Jul 2025
- 2025BadLingual: A Novel Lingual-Backdoor Attack against Large Language Models6 May 2025
- 2025Multi-Level Collaboration in Model Merging3 Mar 2025
- 2025BadJudge: Backdoor Vulnerabilities of LLM-as-a-Judge1 Mar 2025
- 2025Be Cautious When Merging Unfamiliar LLMs: A Phishing Model Capable of Stealing Privacy17 Feb 2025
- 2025BADTV: Unveiling Backdoor Threats in Third-Party Task Vectors4 Jan 2025
- 2024SyMerge: From Non-Interference to Synergistic Merging via Single-Layer Adaptation26 Dec 2024
- 2024LADDER: Multi-objective Backdoor Attack via Evolutionary Algorithm28 Nov 2024
- 2024LoBAM: LoRA-Based Backdoor Attack on Model Merging23 Nov 2024
- 2024Rethinking Weight-Averaged Model-merging14 Nov 2024
- 2024Backdoor in Seconds: Unlocking Vulnerabilities in Large Pre-trained Models via Model Editing23 Oct 2024
- 2024Mitigating the Backdoor Effect for Multi-Task Model Merging via Safety-Aware Subspace17 Oct 2024
- 2024MergePrint: Merge-Resistant Fingerprints for Robust Black-box Ownership Verification of Large Language Models11 Oct 2024
- 2024Mitigating Backdoor Threats to Large Language Models: Advancement and Challenges30 Sep 2024
- 2024Mitigating Backdoor Threats to Large Language Models: Advancement and Challengescited by 14
- 2025BadJudge: Backdoor Vulnerabilities of LLM-as-a-Judgecited by 13
- 2025BADTV: Unveiling Backdoor Threats in Third-Party Task Vectorscited by 3
- 2025BadLingual: A Novel Lingual-Backdoor Attack against Large Language Modelscited by 1
- 2026PASTA: A Patch-Agnostic Twofold-Stealthy Backdoor Attack on Vision Transformerscited by 0
- 2026A Single Suffix to Break Them All: Basin-Aware Jailbreaks for Merged Model Familiescited by 0
- 2026A Single Suffix to Break Them All: Basin-Aware Jailbreaks for Merged Model Families27 Aug 2026
- 2026PASTA: A Patch-Agnostic Twofold-Stealthy Backdoor Attack on Vision Transformers21 Apr 2026
- 2025BadLingual: A Novel Lingual-Backdoor Attack against Large Language Models6 May 2025
- 2025BadJudge: Backdoor Vulnerabilities of LLM-as-a-Judge1 Mar 2025
- 2025BADTV: Unveiling Backdoor Threats in Third-Party Task Vectors4 Jan 2025
- 2024Mitigating Backdoor Threats to Large Language Models: Advancement and Challenges30 Sep 2024
- 2025LLM Hypnosis: Exploiting User Feedback for Unauthorized Knowledge Injection to All Userscited by 2
- 2026Colluding LoRA: A Compositional Vulnerability in LLM Safety Alignmentcited by 2
- 2026The Art of (Mis)alignment: How Fine-Tuning Methods Effectively Misalign and Realign LLMs in Post-Trainingcited by 0
- 2026The Art of (Mis)alignment: How Fine-Tuning Methods Effectively Misalign and Realign LLMs in Post-Training9 Apr 2026
- 2026Colluding LoRA: A Compositional Vulnerability in LLM Safety Alignment13 Mar 2026
- 2025LLM Hypnosis: Exploiting User Feedback for Unauthorized Knowledge Injection to All Users3 Jul 2025
- 2024Mitigating the Backdoor Effect for Multi-Task Model Merging via Safety-Aware Subspacecited by 14
- 2024LoBAM: LoRA-Based Backdoor Attack on Model Mergingcited by 10
- 2024Rethinking Weight-Averaged Model-mergingcited by 8
- 2024MergePrint: Merge-Resistant Fingerprints for Robust Black-box Ownership Verification of Large Language Modelscited by 6
- 2025Be Cautious When Merging Unfamiliar LLMs: A Phishing Model Capable of Stealing Privacycited by 3
- 2025Causal-Guided Detoxify Backdoor Attack of Open-Weight LoRA Modelscited by 3
- 2024Backdoor in Seconds: Unlocking Vulnerabilities in Large Pre-trained Models via Model Editingcited by 2
- 2024LADDER: Multi-objective Backdoor Attack via Evolutionary Algorithmcited by 2
- 2025Merge Now, Regret Later: The Hidden Cost of Model Merging Is Adversarial Transferabilitycited by 2
- 2024SyMerge: From Non-Interference to Synergistic Merging via Single-Layer Adaptationcited by 1
- 2025Backdoor Vectors: a Task Arithmetic View on Backdoor Attacks and Defensescited by 1
- 2025Backdoor Unlearning by Linear Task Decompositioncited by 1
12 most cited of 21 All 21 (JSON)
- 2026When Privacy Hurts Mergeability: Geometry-Aware Model Merging under Differential Privacy27 Aug 2026
- 2026A Security-Oriented Lifecycle Model for Large Language Model Systems4 Aug 2026
- 2026Stemma: Induced Decision Regions Reveal LLM Provenance28 Jul 2026
- 2026From Parameters to Feature Space: Task Arithmetic for Backdoor Mitigation in Model Merging10 Jun 2026
- 2026RogueMerge: Robust and Unified Attacks against LLM Model Merging2 Jun 2026
- 2026Lightweight and Fast Backdoor Model Detection17 May 2026
- 2026FineSteer: A Unified Framework for Fine-Grained Inference-Time Steering in Large Language Models16 Apr 2026
- 2025Causal-Guided Detoxify Backdoor Attack of Open-Weight LoRA Models22 Dec 2025
- 2025BackWeak: Backdooring Knowledge Distillation Simply with Weak Triggers and Fine-tuning15 Nov 2025
- 2025Backdoor Unlearning by Linear Task Decomposition16 Oct 2025
- 2025Backdoor Vectors: a Task Arithmetic View on Backdoor Attacks and Defenses9 Oct 2025
- 2025Merge Now, Regret Later: The Hidden Cost of Model Merging Is Adversarial Transferability28 Sep 2025
12 newest of 21 All 21 (JSON)