Manuscript Offprint

arXiv:2610.02910

Frequency Is Not Sensitivity Identifying Safety-Sensitive Experts in Sparse MoE LLM

Md Nurul Absar Siddiky, Liuwan Zhu, Yingfei Dong

Md Nurul Absar Siddiky, Liuwan Zhu, and Yingfei Dong

Department of Electrical and Computer Engineering

University of Hawaii at Manoa, Honolulu, HI 96822, USA

{msiddiky,liuwan,yingfei}@hawaii.edu

Abstract—Suppressing a small set of routed experts can weaken the safety behavior of a sparse Mixture-of-Experts (MoE) language model without retraining. Which experts to suppress is therefore a security question, and the usual answer is activation frequency — but frequency measures use, not influence. We test an alternative: router-gradient sensitivity, the sensitivity of the sequence loss to the gate weights that select an expert. Across five MoE architectures we rank experts by each signal on 500 benign and 500 malicious prompts and measure refusal on 100 held-out malicious prompts, under two budgets: equal expert counts, and equal nominal malicious routing traffic (1%–5%). Under each of the two budgets, router-gradient selection reduces refusals more than activation in 24 of 25 conditions, and more than a ten-trial random mean in all 25. The largest effect is in OLMoE, where refusals fall from 34 to 9 of 100 prompts (73.53% relative) with no degraded outputs, indicating substantive compliance rather than broken generation. After matching expert counts in every layer, gradient selection still produces greater refusal reduction than activation in 23 of 25 conditions, with two ties. An exploratory cross-model analysis links larger malicious-versus-benign concentration gaps to greater peak gradient effects ( ρ=0.90\rho = 0.90; exact two-sided p=0.083p = 0.083, n=5n = 5). Together, the results support gradient selection under the tested budgets.

Index Terms—mixture of experts, large language models, model safety, router gradients, expert suppression, mechanistic analysis

I. INTRODUCTION

Sparse Mixture-of-Experts (MoE) language models increase capacity by routing each token through a small subset of feedforward experts [1]-[3]. Because the router makes this choice explicitly, an MoE model exposes a discrete, per-token decision that can be observed and altered. Recent work exploits this: biasing the router so a small set of experts is never selected weakens refusal at inference, with no retraining [4], [5]. For openly released models this makes expert selection a security question: an attacker must know which experts to disable, and a defender which to protect.

This requires a signal that ranks experts by importance to safety behavior. Most MoE safety work ranks by activation frequency — how often malicious prompts route to an expert [6]–[8]. But frequency measures use, not influence. An expert may be selected constantly yet matter little to any particular behavior, while a rarely selected one may be pivotal. Router-gradient sensitivity provides a signal of influence: how strongly the sequence loss responds to the gate weights selecting an expert. The two signals need not rank experts alike, and neither is known in advance to give the better targets.

We address two research questions. RQ1: Do benign and malicious prompts differ in model-wide and within-layer routing concentration? RQ2: Does router-gradient selection identify experts whose suppression reduces refusals more than activation-based or random selection? We evaluate five instruction-tuned models whose routed-expert pools span 256 to 6,144 experts [9]–[13] (Table I), ranking experts on 500 benign and 500 malicious prompts and suppressing them on a disjoint set of 100, under two budget protocols that control for expert count and for routing traffic.

Our contributions are twofold. First, a five-architecture analysis of routing concentration and overlap, including an exploratory link between malicious-versus-benign concentration gaps and peak suppression effects. Second, held-out comparisons of gradient, activation, and random selection under complementary budgets, with an exact per-layer-count control showing that the gradient advantage is not explained by layer placement alone.

References (25)