arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2509.09660cs.CLcs.LG
收藏

通过专家(去)激活引导MoE LLMs

Steering MoE LLMs via Expert (De)Activation

University of California, Los Angeles(加州大学洛杉矶分校);Adobe Research(Adobe研究);CIS, LMU Munich(慕尼黑大学计算机学院);Munich Center for Machine Learning(慕尼黑机器学习中心)

Mohsen Fayyaz, Ali Modarressi, Hanieh Deilamsalehy, Franck Dernoncourt, Ryan Rossi, Trung Bui, Hinrich Schütze, Nanyun Peng

AI总结:

SteerMoE通过激活或去激活特定专家,在不微调的情况下提升LLM的安全性和忠实性,同时揭示了MoE模型的潜在漏洞。

摘要:

混合专家(MoE)在大型语言模型(LLMs)中将每个token通过一组专门的前馈网络(FFN)路由,这些网络被称为专家。我们提出了SteerMoE,一个用于通过检测和控制与行为相关的专家来引导MoE模型的框架。我们通过比较成对输入在表现相反行为(例如安全与不安全)时激活频率来检测关键专家。通过在推理过程中选择性地激活或去激活这些专家,我们可以在不微调的情况下控制诸如忠实性和安全性等行为。在11个基准和6个LLM上,我们的引导将安全性提高最高20%,忠实性提高27%。相反,不安全的引导单独使安全性降低41%,与现有 jailbreak 方法结合时降低100%,绕过所有安全防护措施。总体而言,SteerMoE提供了一种轻量级、有效且广泛适用的测试时控制,同时揭示了MoE LLMs中的独特漏洞。

英文摘要:

Mixture-of-Experts (MoE) in Large Language Models (LLMs) routes each token through a subset of specialized Feed-Forward Networks (FFN), known as experts. We present SteerMoE, a framework to steer MoE models by detecting and controlling behavior-associated experts. We detect key experts by comparing how often they activate between paired inputs that demonstrate opposite behaviors (e.g., safe vs. unsafe). By selectively activating or deactivating such experts during inference, we control behaviors like faithfulness and safety without fine-tuning. Across 11 benchmarks and 6 LLMs, our steering raises safety by up to +20% and faithfulness by +27%. Alternatively, unsafe steering drops safety by -41% alone, and -100% when combined with existing jailbreak methods, bypassing all safety guardrails. Overall, SteerMoE offers a lightweight, effective, and widely applicable test-time control, while revealing unique vulnerabilities in MoE LLMs. https://github.com/adobe-research/SteerMoE

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

↑