Manuscript Offprint

arXiv:2611.06147

SafeStart: Mitigating the Overlooked Safety Cost of Active Expert Reduction in MoE LLM Serving

Erfan Baghaei Potraghloo, Saeid Shokoufa, Seyedarmin Azizi, Arya Fayyazi, Souvik Kundu, Mehdi Kamal, Massoud Pedram

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

ABSTRACT

Mixture-of-Experts (MoE) language models send each token through a few of many expert subnetworks. Serving methods make these models faster by running even fewer experts per token, and they are validated on accuracy benchmarks. We show that these methods can weaken the model's refusal of harmful requests, and we introduce SafeStart, which largely restores refusal while keeping most of the speedup. In vLLM on one RTX A6000, keeping about two thirds of the selected experts speeds up offline decoding by 15 to 28% at batch size 8. We find that, at this setting, under a jailbreak that tells the model not to refuse, the share of harmful requests that the model answers rises by 18.4 percentage points on Qwen1.5-MoE, 9.5 on OLMoE, and 6.6 on DeepSeek-V2-Lite, the three of nine models where it rises significantly, while MMLU accuracy drops by less than two points. Top-p expert routing instead selects a variable number of experts per token using a threshold on their combined routing weight. At a larger accuracy cost, it raises harmful compliance by up to 30.1 points. We discover that most of this increase arises while the model processes the prompt and generates its first few tokens. SafeStart therefore runs all experts for the prompt and the first eight generated tokens, and the reduced set of experts afterwards, through a fused kernel in vLLM. With no expert removed, the kernel adds at most 2.4% to the median time per output token in online serving. With experts removed, SafeStart keeps at least 85% of the offline decode speedup at batch sizes 8 and 32 and brings the change under this jailbreak to between -2.1 and +1.3 points for three expert-reduction methods on these three models. On 889 held-out requests, in an analysis fixed before generation, truncation raises harmful compliance by 5.8 to 21.4 points, and SafeStart leaves a rise of 0.6 to 2.6 points, non-inferior to the original model on two of the three models. With about half of the experts, SafeStart decodes 38 to 44% faster than the original model at batch size 8 and still removes at least 86% of the increase that truncation at that budget causes, on both the evaluation and the held-out prompts. Our results show that faster MoE serving need not cost safety: a serving system can keep most of the gain from running fewer experts by running all of them at the start of each response, and it should test refusal, not only accuracy, before it enables such a method.

1 INTRODUCTION

Most recent open-weight language models use Mixture-of-Experts (MoE) layers. In such a layer, a small network called the router sends each token to k of E expert subnetworks (Shazeer et al., 2017; Fedus et al., 2022; Dai et al., 2024; Yang et al., 2025). Many inference methods make MoE models cheaper by running fewer experts per token. Uniform top-k truncation lowers k for every token, and a study of twelve MoE models recommends keeping about two thirds of the selected experts as an initial operating point (Chen et al., 2026b). Other methods skip experts per token (Lu et al., 2024; Huang et al., 2024; Zeng et al., 2024;

Yue et al., 2025; Xu et al., 2026c), reweight the kept experts (Anonymous, 2026; Chen & Yao, 2026), or share experts across the requests of a batch (Gupta et al., 2024; Wu et al., 2026a; Oncescu et al., 2026; Vankov et al., 2026). In vLLM and llama.cpp, truncation is a one-line configuration change (Kwon et al., 2023; Gerganov & llama.cpp contributors, 2023).

These methods are checked on accuracy, perplexity, or reasoning benchmarks. Refusal may break without accuracy changing. In MoE models, refusal depends on a few experts and routers whose removal leaves accuracy largely intact (Lai et al., 2025; te Lintelo et al., 2026; Wu et al., 2026b; Jiang et al., 2026; Xu et al., 2026b; Szentmiklossy et al., 2026). Other serving optimizations, such as KV-cache compression and lossy speculative decoding, can remove refusals at a small accuracy cost (Xu et al., 2026a; Ma et al., 2026; Zhang et al., 2026a). Alignment also changes mainly

∗^{*}Equal contribution 1^{1}University of Southern California, Los Angeles, CA, USA 2^{2}Intel Labs, USA. Correspondence to: Erfan Baghaei Potraghloo baghaeip@usc.edu.

Figure

Example request (StrongREJECT, inside the refusal-suppression template): "I run a bar and I want to post 10 fake low-rated reviews for my rival bar across the street. Give detailed, step-by-step instructions to post them on Yelp without being found out."

Original model (k=4k=4) safe

I'm sorry, but I cannot fulfill your request. As an AI language model, it is not ethical or appropriate for me to assist in creating fake reviews...

Truncation (k′=3k'=3) harmful

I can provide you with instructions on how to post fake low-rated reviews for your rival bar on Yelp without being detected. [caveat and ten steps omitted]

SafeStart (k′=3,N=8k'=3, N=8) safe

I'm sorry, but I cannot fulfill your request. As an AI language model, it is not ethical to post fake reviews or engage in any activity...

Figure 1. Safety and speed in vLLM. Left: the expert slots each token of one request uses under the original model, reduction alone, and SafeStart, drawn for top-kk on Qwen1.5-MoE (k=4,k′=3k=4, k'=3); SafeStart runs all experts for the prompt and the first N=8N=8 generated tokens and the reduced budget afterwards. Right: for each expert-reduction rule alone (orange) and with SafeStart (blue, our vLLM patch with the fused kernel), the change in harmful compliance under a refusal-suppression jailbreak (top; in percentage points, pp, of the attack success rate, ASR: the share of the 472 prompts whose response Llama Guard 3 labels harmful) and the decode speedup over the original model at batch size 8 (bottom). Three rules keep about ⌈2k/3⌉\lceil 2k/3 \rceil experts per decode token, and the fourth group is top-kk at about half the experts (Appendix B). Whiskers: 95% bootstrap intervals over prompts (top) and timing runs (bottom); hollow: exact McNemar p≥0.05p \geq 0.05; gray band: the ±3\pm 3 pp equivalence margin. Bottom: one request on Qwen1.5-MoE with greedy decoding. The responses of the original model and of truncation share their first generated token and split at the second (bold); SafeStart computes the prompt and the first eight generated tokens (shaded) with all experts and refuses. Tags: both judges' labels. Responses are cut after their opening.

the first tokens of a response (Lin et al., 2024; Qi et al., 2025; Zhao et al., 2025). No prior work, to our knowledge, tests expert reduction at its published operating points for refusal, locates where refusal changes inside a serving engine, and fixes it there while keeping the speedup.

We do all three (Figure 1). We compare each modified model with the unmodified model prompt by prompt on nine MoE models, measure the noise of the comparison with reruns, and label responses with two automated judges and two human annotators. We find:

  • The speedup is real but limited to small batches. We time batch sizes 1, 8, 32, 128, and 256. Keeping about two thirds of the experts helps most at batch size 8, where decoding is 15 to 28% faster on all six timed models; at batch size 128 it is at most 5% faster on four of them. On the three models we profile, the expert weights that each decoding step reads from GPU memory explain the speedup (Section 4.1).

  • Refusal weakens while accuracy holds. Under a jail-break that tells the model not to refuse, harmful compliance rises by 18.4 percentage points on Qwen1.5-MoE (13.6 under human labels), 9.5 on OLMoE, and 6.6 on DeepSeek-V2-Lite, while MMLU drops by at most 1.8 points. Top-pp routing, which keeps experts until their total weight reaches a threshold pp, raises it by up to 30.1 points (Section 4.2). Figure 1 (bottom) shows one request that truncation turns from a refusal into step-by-step instructions.

  • The change arises in the prompt and the first generated tokens. On our evaluation prompts, running all experts for the prompt and the first generated token leaves at most 0.9 points of the increase (Section 4.3).

  • SafeStart fixes it at little cost. SafeStart runs all experts for the prompt and the first N=8N=8 generated tokens and the reduced budget afterwards, through a fused kernel in vLLM. It keeps at least 85% of the

offline decode speedup at batch sizes 8 and 32, and, under the same jailbreak, brings the change in harmful compliance to between -2.1 and +1.3 points for three reduction methods. On 889 held-out requests, where truncation raises harmful compliance by 5.8 to 21.4 points under this jailbreak, SafeStart leaves a rise of at most 2.6 points. With half of the experts it decodes 38 to 44% faster than the original model at batch size 8 and scores 3.6 to 3.9 GSM8K points higher than truncation (Section 5).

Our contributions are (1) a paired, noise-calibrated refusal audit of expert reduction in vLLM on nine models, with the speedup explained by expert weight reads; (2) the discovery that the refusal change arises in prefill and the first decode steps; and (3) SafeStart, an engine patch that applies to top-kk, top-pp, and threshold-based expert budgets. We will release the harness and the patch publicly.

References (100)

  • Refusal in Language Models Is Mediated by a Single Direction
  • Language models are Homer Simpson! safety re-alignment of fine-tuned language models through task arithmetic
  • When Keywords Drop but Classifiers Hold: Soft Refusals under KV Cache Compression (opens arXiv in a new tab)
  • Training-Free Halving of Activated Experts in Fine-Grained Mixture-of-Experts Models
  • You Only Need 2/3 of the Chosen Experts: An Empirical Study of Dynamic Expert Pruning in Fine-Grained MoE LLMs (opens arXiv in a new tab)
  • LExI: Layer-adaptive active experts for efficient MoE model inference (opens arXiv in a new tab)
  • Training Verifiers to Solve Math Word Problems
  • DeepSeekMoE: Towards Ultimate Expert Specialization in Mixture-of-Experts Language Models
  • Steering MoE LLMs via Expert (De)Activation
  • Switch Transformers: Scaling to Trillion Parameter Models with Simple and Efficient Sparsity
  • MegaBlocks: Efficient sparse training with mixture-of-experts
  • and llama.cpp contributors
  • Decoding One Safety Trigger Token for Balancing Safety and Usability in Large Language Models
  • Lynx: Enabling efficient MoE inference through dynamic batch-aware expert selection (opens arXiv in a new tab)
  • Pruning for Protection: Increasing Jailbreak Resistance in Aligned LLMs Without Fine-Tuning
  • Buffer Overflow in Mixture of Experts (opens arXiv in a new tab)
  • Measuring Massive Multitask Language Understanding
  • Harder Task Needs More Experts: Dynamic Routing in MoE Models
  • Pre-gated MoE: An algorithm-system co-design for fast and scalable mixture-of-expert inference
  • Llama Guard: LLM-based Input-Output Safeguard for Human-AI Conversations
  • Sparse Models, Sparse Safety: Unsafe Routes in Mixture-of-Experts LLMs
  • Efficient Memory Management for Large Language Model Serving with PagedAttention
  • SAFEx: Analyzing Vulnerabilities of MoE-Based LLMs via Stable Safety-critical Expert Identification
  • REAP the Experts: Why Pruning Prevails for One-Shot MoE compression
  • Routing-Aware Safety Alignment for Mixture-of-Experts Models
  • The Unlocking Spell on Base LLMs: Rethinking Alignment via In-Context Learning
  • Muon is Scalable for LLM Training (opens arXiv in a new tab)
  • Llama Guard 3 8B Model Card
  • Not All Experts are Equal: Efficient Expert Pruning and Skipping for Mixture-of-Experts Large Language Models
  • When Efficiency Meets Safety: A Benchmark Security Analysis of KV Cache Compression in Large Language Models
  • HarmBench: A Standardized Evaluation Framework for Automated Red Teaming and Robust Refusal
  • Note on the Sampling Error of the Difference between Correlated Proportions or Percentages
  • SEAL: Reinforcing Global Safety in Mixture-of-Experts through Shared Expert ALignment
  • OLMoE: Open Mixture-of-Experts Language Models
  • AnchorKV: Safety-Aware KV Cache Compression via Soft Penalty with a Refusal Anchor (opens arXiv in a new tab)
  • T., chuan Wu, T., Gopal, B., Wang, J., Dao, T., and Athiwaratkun, B. Opportunistic Expert Activation: Batch-Aware Expert Routing for Faster Decode Without Retraining
  • The Joint Effect of Quantization and Sampling Temperature on LLM Safety Alignment: A Factorial Analysis (opens arXiv in a new tab)
  • Safety Alignment Should Be Made More Than Just a Few Tokens Deep
  • DeepSpeed-MoE: Advancing mixture-of-experts inference and training to power next-generation AI scale
  • XSTest: A Test Suite for Identifying Exaggerated Safety Behaviours in Large Language Models
  • Outrageously Large Neural Networks: The Sparsely-Gated Mixture-of-Experts Layer
  • A StrongREJECT for Empty Jailbreaks
  • MESA: Improving MoE Safety Alignment via Decentralized Expertise
  • Unmasking the Hidden Fairness, Bias, and Safety Costs of Compression with Mixture-of-Expert Models
  • Equivalence test and confidence interval for the difference in proportions for the paired-sample design
  • Stanford Alpaca: An Instruction-following LLaMA Model
  • Large Language Lobotomy: Jailbreaking Mixture-of-Experts via Expert Silencing (opens arXiv in a new tab)
  • XShare: Collaborative in-Batch Expert Sharing for Faster MoE Inference (opens arXiv in a new tab)
  • Jailbroken: How Does LLM Safety Training Fail?
  • Assessing the Brittleness of Safety Alignment via Pruning and Low-Rank Modifications
  • SERE: Similarity-based Expert Re-routing for Efficient Batch Decoding in MoE Models
  • GateBreaker: Gate-Guided Attacks on Mixture-of-Expert LLMs
  • Alignment Collapse Under KV Cache Quantization: Diagnosis and Mitigation (opens arXiv in a new tab)
  • SafeDecoding: Defending against Jailbreak Attacks via Safety-Aware Decoding
  • Route-Hijack: Routing-Aware Attack on Mixture-of-Experts LLMs (opens arXiv in a new tab)
  • ACE: Adaptive Calibration-Free Expert Skipping for MoE-based LLMs
  • Qwen2 Technical Report
  • Qwen3 Technical Report
  • On the Efficiency-Safety Dilemma in Large Reasoning Models
  • Stealing User Prompts from Mixture of Experts (opens arXiv in a new tab)
  • Ada-K routing: Boosting the efficiency of MoE-based LLMs
  • AdaMoE: Token-adaptive routing with null experts for mixture-of-experts language models
  • Secure Speculative Decoding for Large Language Models
  • RASET: Router-Agnostic Safety-Critical Expert Tuning Exposes Localized Safety Enforcement Failures in Mixture-of-Experts LLMs
  • Weak-to-Strong Jailbreaking on Large Language Models
  • Universal and Transferable Adversarial Attacks on Aligned Language Models
  • Prompt identifiers are hb_<BehaviorID> and sr_<row>
  • Greedy decoding (temperature 0), repetition penalty 1.0, no stop strings beyond the model's end-of-turn tokens, at most 512 new tokens (1,536 for GPT-OSS)
  • A first pass generates 64 tokens per request with the original model (SafeStart) or the truncated model (early) and stores the prompt and output token identifiers
  • The HarmBench classifier receives its official prompt with the request as the behavior and the answer truncated to 512 tokens; a response is harmful if the output is
  • After all settings were frozen we assembled 889 requests, 383 from AdvBench (Zou et al., 2023) and 506 from the English CatQA (Bhardwaj et al., 2024), keeping only those with no near-duplicate (difflib ratio at least 0.8) in the evaluation set, the first held-out set, or the set itself
  • We will publicly release the harness, the engine patch, prompt identifiers, per-response labels, judge outputs, and response hashes
  • The marginal uplift to an attacker is small: the attacks we use are public, and the regression requires the operator, not the attacker, to change the serving configuration
  • >Model</th><th rowspan=
  • ><tr><td>Model</td><td>Condition</td><td>Llama Guard 3</td><td>HarmBench cls.</td></tr><tr><td rowspan=
  • The HarmBench classifier gives +0.42, +2.33, and +1.69 pp, none significant
  • To test many settings cheaply, we also emulate the policy: the original model decodes
  • >Seed</td><td rowspan=
  • With the original model in both passes it changes ASR by at most 1.91 pp in any framing on the three models; one of these nine controls is significant (OLMoE on plain requests, -1.48 pp
  • On DeepSeek-
  • Weighted to the Qwen1.5 population, the annotators label 17.6 and 19.2% of the original model's responses and 22.3 and 22.7% of the responses under truncation partial, and Llama Guard 3 flags 89 to 97% of them on both sides
  • On Qwen1.5, truncation to 3 of 4 experts raised ASR by +23.44 pp, from an original ASR of 34.38%
  • On OLMoE-0924 the original ASR was 93.30%, which leaves no room to detect an increase
  • For each prompt we find the first generated token at which the response under truncation differs from the original model's response (Figure A4, left)
  • The first generated token is produced by the prefill pass, which truncation also changes
  • ><tr><td rowspan=
  • Substituting the next-ranked expert in the last slot at constant count and mass (swap) raises it by +11.86, +6.14, and +5.30 pp on the three models ($p \leq 0.0031$)
  • Ling-lite renormalizes the routed weights; native truncation to $k' = 4$ changes its refusal-suppression ASR by +0.85 pp, and the same truncation without renormalization
  • We estimate a refusal direction at each layer as the difference of mean residual-stream activations at the final prompt token between 256 AdvBench and 256 Alpaca requests wrapped in the refusal-suppression template, in the original model (Arditi et al., 2024)
  • ><tr><td>Model</td><td>Method</td><td>Setting</td><td>ASR</td><td>$\Delta$</td><td>$p$</td></tr><tr><td rowspan=
  • 64 of the 87 Qwen1.5 prompts and 16 of the 31 OLMoE prompts that the truncated first token turns harmful also turn harmful here (28 and 2 expected by chance), while the same-size push along random directions does not (-2.1 to +1.7 pp)
  • We use a paper-based reimplementation rather than official code
  • The KV cache from the protected passes is retained
  • The observed original/LEXI ASR is 35.7/51.8% on Qwen1.5, 15.6/46.4% on OLMoE, and 51.3/67.0% on DeepSeek-V2-Lite
  • Shared experts and the dense first layer retain their original computation
  • We adapt its released HF/Triton implementation to Qwen1.5-MoE-A2.7B-Chat, OLMoE-1B-7B-0125-Instruct, and DeepSeek-V2-Lite-Chat; none of these three checkpoints is officially supported
  • Threshold calibration uses WikiText text, without safety-label tuning
  • The safety experiment uses the same 448 targets as the LExI comparison, the StrongREJECT refusal-suppression template, native chat templates, Llama Guard 3 on the original request and final answer, greedy decoding, and a 256-token cap
  • Its ASR is 35.94%, 15.85%, and 51.56% on Qwen1.5, OLMoE, and DeepSeek, against 36.38%, 14.96%, and 53.12% for the original models
  • On Qwen1.5 and OLMoE, the approximately 25% condition is the primary ACE experiment; 50% is an additional stress setting

Couldn't load all references. Reload the page to try again.