arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2604.00627cs.CR
收藏

当安全模型融合进入危险:在LLM融合中利用潜在漏洞

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

Huazhong University of Science and Technology(华中科技大学);Hubei University(湖北大学)

Jiaqing Li, Zhibo Zhang, Shide Zhou, Yuxi Li, Tianlong Yu, Kailong Wang

AI总结:

研究揭示模型融合引入的新攻击面,提出TrojanMerge框架通过约束优化问题攻击安全对齐,实验显示融合模型产生高危害响应,源模型保持安全。

摘要:

模型融合已成为结合多个微调LLM专业能力的有力技术,但其安全影响仍未深入研究。本文发现模型融合引入新的攻击面,可系统性地破坏安全对齐。我们提出TrojanMerge框架,通过方向一致性约束和Frobenius方向对齐约束,嵌入潜在恶意组件到源模型中,使源模型单独安全但融合后产生严重偏移。实验表明,TrojanMerge在9个LLM上均能产生高危害响应,而源模型安全评分与未修改版本相当。攻击成功于多种融合算法和超参数配置下均有效,揭示当前融合实践的根本漏洞,强调需安全机制。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑