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

稀疏模型,稀疏安全:混合专家大语言模型中的不安全路线

Sparse Models, Sparse Safety: Unsafe Routes in Mixture-of-Experts LLMs

CISPA Helmholtz Center for Information Security(CISPA 欧洲信息安全研究中心)

Yukun Jiang, Hai Huang, Mingjie Li, Yage Zhang, Michael Backes, Yang Zhang

AI总结:

本研究揭示了混合专家大语言模型中的不安全路由问题,提出RoSais评分和F-SOUR框架以量化和发现安全风险,通过实验展示了高ASR的攻击效果,并提出防御策略以提升模型安全性。

摘要:

通过引入路由机制,选择性地激活Transformer层中的专家,混合专家(MoE)架构显著降低了大型语言模型(LLMs)的计算成本,同时保持了具有海量参数的模型的竞争力。然而,先前的工作主要集中在效用和效率上,忽略了这种稀疏架构相关的安全风险。在本工作中,我们证明了MoE LLMs的安全性与其稀疏性一样稀疏,通过发现不安全路线:一旦激活,这些路由配置会将安全输出转换为有害输出。具体来说,我们首先引入了路由安全重要性分数(RoSais)来量化每个层路由的安全关键性。仅 manipulation 高RoSais路由器可以将默认路由转换为不安全的路由。例如,在JailbreakBench上,屏蔽DeepSeek-V2-Lite中的5个路由器,将攻击成功率(ASR)提高超过4倍至0.79,突显了路由器操纵可能在MoE LLMs中自然发生的固有风险。我们进一步提出了一种细粒度的token层级随机优化框架,以发现更具体的不安全路线(F-SOUR),该框架明确考虑了输入token的顺序性和动态性。在四个代表性的MoE LLM家族中,F-SOUR在JailbreakBench和AdvBench上分别实现了平均ASR为0.90和0.98。最后,我们概述了防御视角,包括安全意识的路由禁用和路由器训练,作为保护MoE LLMs的有希望的方向。我们希望我们的工作能为未来对MoE LLMs的红队和保护提供启示。我们的代码在https://github.com/TrustAIRLab/UnsafeMoE上提供。

英文摘要:

By introducing routers to selectively activate experts in Transformer layers, the mixture-of-experts (MoE) architecture significantly reduces computational costs in large language models (LLMs) while maintaining competitive performance, especially for models with massive parameters. However, prior work has largely focused on utility and efficiency, leaving the safety risks associated with this sparse architecture underexplored. In this work, we show that the safety of MoE LLMs is as sparse as their architecture by discovering unsafe routes: routing configurations that, once activated, convert safe outputs into harmful ones. Specifically, we first introduce the Router Safety importance score (RoSais) to quantify the safety criticality of each layer's router. Manipulation of only the high-RoSais router(s) can flip the default route into an unsafe one. For instance, on JailbreakBench, masking 5 routers in DeepSeek-V2-Lite increases attack success rate (ASR) by over 4$\times$ to 0.79, highlighting an inherent risk that router manipulation may naturally occur in MoE LLMs. We further propose a Fine-grained token-layer-wise Stochastic Optimization framework to discover more concrete Unsafe Routes (F-SOUR), which explicitly considers the sequentiality and dynamics of input tokens. Across four representative MoE LLM families, F-SOUR achieves an average ASR of 0.90 and 0.98 on JailbreakBench and AdvBench, respectively. Finally, we outline defensive perspectives, including safety-aware route disabling and router training, as promising directions to safeguard MoE LLMs. We hope our work can inform future red-teaming and safeguarding of MoE LLMs. Our code is provided in https://github.com/TrustAIRLab/UnsafeMoE.

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

↑