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.
Dialectics of Alignment: Harnessing Unsafe Knowledge for Dynamic Safety Routing
Chandar Research Lab(Chandar研究实验室);Mila – Quebec AI Institute(魁北克AI研究所);Université de Montréal(蒙特利尔大学);Microsoft Research(微软研究院);Polytechnique Montréal(蒙特利尔理工学院);Canada CIFAR AI Chair(加拿大CIFAR人工智能主席)
Think Twice Before You Act: Enhancing Agent Behavioral Safety with Thought Correction
Fudan University, Shanghai, China(复旦大学,上海,中国);Shanghai Innovation Institute, Shanghai, China(上海创新研究院,上海,中国);Shanghai Pudong Research Institute of Cryptology, Shanghai, China(上海浦东密码研究院,上海,中国)
Deliberative Alignment is Deep, but Uncertainty Remains: Inference time safety improvement in reasoning via attribution of unsafe behavior to base model
Risk Awareness Injection: Calibrating Vision-Language Models for Safety without Compromising Utility
Shien-Ming Wu School of Intelligent Engineering, South China University of Technology(华南理工大学吴贤铭智能工程学院);Guangdong Laboratory of Artificial Intelligence and Digital Economy (SZ)(广东省人工智能与数字经济实验室(深圳));Computer Science and Engineering, The Hong Kong University of Science and Technology(香港科技大学计算机科学与工程系);University of Electronic Science and Technology of China(电子科技大学)
Calibrated Predictive Lower Bounds on Time-to-Unsafe-Sampling in LLMs
Department of Computer Science, Technion IIT(计算机科学系);Department of Statistics, University of Oxford(统计系);Department of Electrical and Computer Engineering, Technion IIT(电气与计算机工程系)
SafeSwitch: Steering Unsafe LLM Behavior via Internal Activation Signals
Siebel School of Computing(计算科学系);Data Science, University of Illinois Urbana-Champaign(数据科学,伊利诺伊大学厄巴纳-香槟分校);School of Business, Stevens Institute of Technology(商学院,史蒂文斯理工学院)
BarrierSteer: LLM Safety via Learning Barrier Steering
Department of Computer Science, National University of Singapore(新加坡国立大学计算机科学系);Singapore-MIT Alliance for Research and Technology Centre(新加坡-麻省理工联合研究中心);CSAIL, Massachusetts Institute of Technology(麻省理工学院计算机科学与人工智能实验室);Worcester Polytechnic Institute(沃斯堡理工学院)
Evaluation of Safety Constraints in Autonomous Navigation with Deep Reinforcement Learning
Moscow Institute of Physics and Technology(莫斯科物理技术学院);AIRI(AIRI(人工智能研究所));Federal Research Center for Computer Science and Control of Russian Academy of Sciences(俄罗斯科学院计算机科学与控制联邦研究中心)
Embedding Safety into RL: A New Take on Trust Region Methods
Max Planck Institute for Human Cognitive and Brain Sciences(马克斯·普朗克人类认知与脑科学研究所);Center for Scalable Data Analytics and Artificial Intelligence(可扩展数据分析与人工智能中心)