Mitigating the Backdoor Effect for Multi-Task Model Merging via Safety-Aware Subspace

Jinluan Yang, A. Tang, Didi Zhu, Zhengyu Chen, Li Shen +1 more
2/12/2026

No official code found. Best implementation: Yangjinluan/DAM (4 stars, last commit 2025-07-16). 1 more below.

Abstract

Model merging has gained significant attention as a cost-effective approach to integrate multiple single-task fine-tuned models into a unified one that can perform well on multiple tasks. However, existing model merging techniques primarily focus on resolving conflicts between task-specific models, they often overlook potential security threats, particularly the risk of backdoor attacks in the open-source model ecosystem. In this paper, we first investigate the vulnerabilities of existing model merging methods to backdoor attacks, identifying two critical challenges: backdoor succession and backdoor transfer. To address these issues, we propose a novel Defense-Aware Merging (DAM) approach that simultaneously mitigates task interference and backdoor vulnerabilities. Specifically, DAM employs a meta-learning-based optimization method with dual masks to identify a shared and safety-aware subspace for model merging. These masks are alternately optimized: the Task-Shared mask identifies common beneficial parameters across tasks, aiming to preserve task-specific knowledge while reducing interference, while the Backdoor-Detection mask isolates potentially harmful parameters to neutralize security threats. This dual-mask design allows us to carefully balance the preservation of useful knowledge and the removal of potential vulnerabilities. Compared to existing merging methods, DAM achieves a more favorable balance between performance and security, reducing the attack success rate by 2-10 percentage points while sacrificing only about 1% in accuracy. Furthermore, DAM exhibits robust performance and broad applicability across various types of backdoor attacks and the number of compromised models involved in the merging process. Our codes and models are available at https://github.com/Yangjinluan/DAM.

View on arXivView PDF

Code Implementations(2)

Reproducing results from "Mitigating the Backdoor Effect for Multi-Task Model Merging via Safety-Aware Subspace", published in ICLR 2025.

10CSS, ShellJun 12, 20251 years ago
Yangjinluan/DAMCommunity63%

[ICLR2025] Mitigating the Backdoor Effect for Multi-Task Model Merging via Safety-Aware Subspace

40CSS, ShellFeb 27, 20251 years ago

Similar Papers

Cite this paper

@article{yang2026mitigating,
  title  = {Mitigating the Backdoor Effect for Multi-Task Model Merging via Safety-Aware Subspace},
  author = {Jinluan Yang and A. Tang and Didi Zhu and Zhengyu Chen and Li Shen and Fei Wu},
  year   = {2026},
  eprint = {2410.13910},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2410.13910},
  journal = {ICLR 2024 2024}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2410.13910.svg)](https://codeofpaper.com/paper/2410.13910)

Discussion