paper-with-me

Papers

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

2024-10-17 · Jinluan Yang, Anke Tang, Didi Zhu, Zhengyu Chen, Li Shen, Fei Wu

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.

📄 PDF Abstract BibTeX arXiv:2410.13910

Code (1)

yangjinluan/dam 공식 구현 pytorch

Tasks

Meta-Learning

Methods 이 논문이 사용한 방법론

Softmax The Softmax output function transforms a previous layer's output into a vector of probabilities. It is commonly used for multiclass classification. Given an input vector $x$…
Attention 설명 없음
Focus 설명 없음

Similar Papers 제목 키워드 기반

Mitigating Backdoor Threats to Large Language Models: Advancement and Challenges

2024-09-30 · Qin Liu, Wenjie Mo, Terry Tong, Jiashu Xu 외

The advancement of Large Language Models (LLMs) has significantly impacted various domains, including Web search, healthcare, and software development. However, as these models scale, they become more vulnerable to cyber…

Memorization

From Parameters to Feature Space: Task Arithmetic for Backdoor Mitigation in Model Merging

2026-06-10 · Zhenqian Zhu, Yamin Hu, Yiya Diao, Weixiang Li 외 arxiv

Model merging (MM) has gained significant attention as a cost-effective approach to integrate multiple task-specific models into a unified model. However, recent work reveals that MM is highly susceptible to backdoor att…

parameter-efficient fine-tuning

Backdoor Vectors: a Task Arithmetic View on Backdoor Attacks and Defenses

2025-10-09 · Stanisław Pawlak, Jan Dubiński, Daniel Marczak, Bartłomiej Twardowski arxiv

Model merging (MM) recently emerged as an effective method for combining large deep learning models. However, it poses significant security risks. Recent research shows that it is highly susceptible to backdoor attacks, …

BadMerging: Backdoor Attacks Against Model Merging

2024-08-14 · Jinghuai Zhang, Jianfeng Chi, Zheng Li, Kunlin Cai 외

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 amon…

Backdoor AttackmodelTransfer Learning

ICLShield: Exploring and Mitigating In-Context Learning Backdoor Attacks

2025-07-02 · Zhiyao Ren, Siyuan Liang, Aishan Liu, DaCheng Tao

In-context learning (ICL) has demonstrated remarkable success in large language models (LLMs) due to its adaptability and parameter-free nature. However, it also introduces a critical vulnerability to backdoor attacks, w…

In-Context Learning