Share your thoughts, 1 month free Claude Pro on usSee more
WorkDL logo mark

Merge Hijacking: Backdoor Attacks to Model Merging of Large Language Models

About

Model merging for Large Language Models (LLMs) directly fuses the parameters of different models finetuned on various tasks, creating a unified model for multi-domain tasks. However, due to potential vulnerabilities in models available on open-source platforms, model merging is susceptible to backdoor attacks. In this paper, we propose Merge Hijacking, the first backdoor attack targeting model merging in LLMs. The attacker constructs a malicious upload model and releases it. Once a victim user merges it with any other models, the resulting merged model inherits the backdoor while maintaining utility across tasks. Merge Hijacking defines two main objectives-effectiveness and utility-and achieves them through four steps. Extensive experiments demonstrate the effectiveness of our attack across different models, merging algorithms, and tasks. Additionally, we show that the attack remains effective even when merging real-world models. Moreover, our attack demonstrates robustness against two inference-time defenses (Paraphrasing and CLEANGEN) and one training-time defense (Fine-pruning).

Zenghui Yuan, Yangming Xu, Jiawen Shi, Pan Zhou, Lichao Sun• 2025

Related benchmarks

TaskDatasetResultRank
System Prompt ExtractionSystem Prompt Extraction In-domain ShareGPT
Exact Match Score36
20
System Prompt ExtractionSystem Prompt Extraction Out-of-domain SystemCheck and ChatGPT-Prompts
Exact Match Score45.5
20
Prompt InjectionIn-domain attack prompts
ASR (TA)46
5
Prompt InjectionAttack prompts Out-of-domain
ASR (TA)43.5
5
System Prompt Extractionattack prompts In-domain
Attack Success Rate (TA)16
5
System Prompt ExtractionAttack prompts Out-of-domain
ASR (TA)20
5
Backdoorattack prompts In-domain
ASR (TA)0.00e+0
5
BackdoorAttack prompts Out-of-domain
ASR (TA)0.00e+0
5
JailbreakingAttack prompts Out-of-domain
ASR (TA)40.3
5
Jailbreakingattack prompts In-domain
ASR (TA)3
5
Showing 10 of 10 rows

Other info

Follow for update