Towards Merging-conditional Backdoor Unalignment against Large Language Models
Yukun Chen, Yidou Chen, Yiming Li, Xinyu Zhang, Baosong Yang, Hongwei Yao, Zhan Qin
Abstract
Model merging has become widely adopted for enhancing the task-specific performance of Large Language Models (LLMs) without additional training. While the specialized model from third-party platforms may undergo safety audits (e.g., backdoor detection), we reveal a novel and critical threat: One-sided Merging-Conditional Backdoor (OMCB). OMCB remains dormant and undetectable within one standalone model but activates upon merging, triggering safety unalignment. We first theoretically analyze the existence and geometric location of OMCB, revealing that the parameter shift crossing safety decision boundaries is the main cause of backdoor activation. Building upon this insight, we propose SMOKE, a meta-learning-based attack framework. SMOKE implants OMCB via a bi-level optimization strategy: the inner loop synthesizes surrogate meta-vectors through random low-rank initialization and finite-step maximization, while the outer loop optimizes the target model by simulating the merging process. Furthermore, preliminary analysis shows that the injected OMCB has bounded generalization loss under unknown merging configurations. Extensive experiments across diverse model architectures and merging techniques validate the effectiveness of SMOKE and its resistance to existing backdoor detections, highlighting a significant yet previously overlooked vulnerability in the model merging paradigm.
Create a lesson
Metadata
- Categories
- cs.CR, cs.AI, cs.CL
- Comments
- 31 pages, 4 figures
Related papers
FedGraph: Defending Federated Large Language Model Fine-Tuning Against Backdoor Attacks via Graph-Based Aggregation
Shared title terminologycs.CRXi Chen, Chunyi Zhou, Rui Zeng et al.
Towards Computational Robustness of Latent Diffusion Watermarking Against Removal Attacks with Adaptive Detector Access
Shared title terminologycs.CRDe Zhang Lee, Ee-Chien Chang
Canopy: Automatic Symbolic Verification for Large-Scale Security Protocols
Shared title terminologycs.CRZiyu Mao, Minghao Li, Daqian Ding et al.
A Language for Composing Multi-Agent Protocols
Shared title terminologycs.CRHugo O'Connor
Toward Secure AI at the Edge: Threats, Defenses, and Open Research Challenges
Shared title terminologycs.CRSean Oesch, Jack Hutchins, Samuel Hildebrand et al.
How to Backdoor LLMs via Hardware Model Co-Attack?
Shared title terminologycs.CRSanskar Amgain, Sudipta Paria, Daniel Lobo et al.