When Safe Models Merge into Danger: Exploiting Latent Vulnerabilities in LLM Fusion

Fuente: arXiv
Salvato in:
Dettagli Bibliografici
Autori principali: Li, Jiaqing, Zhang, Zhibo, Zhou, Shide, Li, Yuxi, Yu, Tianlong, Wang, Kailong
Natura: Preprint
Pubblicazione: 2026
Soggetti:
Accesso online:
Tags: Aggiungi Tag
Nessun Tag, puoi essere il primo ad aggiungerne!!
_version_ 1866908930548957184
author Li, Jiaqing
Zhang, Zhibo
Zhou, Shide
Li, Yuxi
Yu, Tianlong
Wang, Kailong
author_facet Li, Jiaqing
Zhang, Zhibo
Zhou, Shide
Li, Yuxi
Yu, Tianlong
Wang, Kailong
contents Model merging has emerged as a powerful technique for combining specialized capabilities from multiple fine-tuned LLMs without additional training costs. However, the security implications of this widely-adopted practice remain critically underexplored. In this work, we reveal that model merging introduces a novel attack surface that can be systematically exploited to compromise safety alignment. We present TrojanMerge,, a framework that embeds latent malicious components into source models that remain individually benign but produce severely misaligned models when merged. Our key insight is formulating this attack as a constrained optimization problem: we construct perturbations that preserve source model safety through directional consistency constraints, maintain capabilities via Frobenius directional alignment constraints, yet combine during merging to form pre-computed attack vectors. Extensive experiments across 9 LLMs from 3 model families demonstrate that TrojanMerge, consistently achieves high harmful response rates in merged models while source models maintain safety scores comparable to unmodified versions. Our attack succeeds across diverse merging algorithms and remains effective under various hyperparameter configurations. These findings expose fundamental vulnerabilities in current model merging practices and highlight the urgent need for security-aware mechanisms.
format Preprint
id arxiv_https___arxiv_org_abs_2604_00627
institution arXiv
publishDate 2026
record_format arxiv
spellingShingle When Safe Models Merge into Danger: Exploiting Latent Vulnerabilities in LLM Fusion
Li, Jiaqing
Zhang, Zhibo
Zhou, Shide
Li, Yuxi
Yu, Tianlong
Wang, Kailong
Cryptography and Security
Model merging has emerged as a powerful technique for combining specialized capabilities from multiple fine-tuned LLMs without additional training costs. However, the security implications of this widely-adopted practice remain critically underexplored. In this work, we reveal that model merging introduces a novel attack surface that can be systematically exploited to compromise safety alignment. We present TrojanMerge,, a framework that embeds latent malicious components into source models that remain individually benign but produce severely misaligned models when merged. Our key insight is formulating this attack as a constrained optimization problem: we construct perturbations that preserve source model safety through directional consistency constraints, maintain capabilities via Frobenius directional alignment constraints, yet combine during merging to form pre-computed attack vectors. Extensive experiments across 9 LLMs from 3 model families demonstrate that TrojanMerge, consistently achieves high harmful response rates in merged models while source models maintain safety scores comparable to unmodified versions. Our attack succeeds across diverse merging algorithms and remains effective under various hyperparameter configurations. These findings expose fundamental vulnerabilities in current model merging practices and highlight the urgent need for security-aware mechanisms.
title When Safe Models Merge into Danger: Exploiting Latent Vulnerabilities in LLM Fusion
topic Cryptography and Security
url https://arxiv.org/abs/2604.00627