Skip to content

The paper proposes using routing gradient sensitivity to locate safety-sensitive experts in sparse MoE modelsFrequency Is Not Sensitivity: Identifying Safety-Sensitive Experts in Sparse MoE LLM

Paper Tracker· arXiv:2610.02910· Md Nurul Absar Siddiky, Liuwan Zhu, Yingfei Dong·Indexed by this site · 2026-10-05· Originally publishedAttacks

Quick read

Interpretability

Based on the paper PDF (AI-generated); refer to the original

On held-out malicious prompts across five MoE types, gradient suppression outperforms activation frequency in 24/25 conditions under each of the two budgets.

Questions
In sparse MoE, at inference time a few routing experts can be left unselected, weakening refusal without retraining, so one must decide whom to disable or protect. The common signal is activation frequency, which the authors state measures usage rather than impact.
Methods
Rank by mean absolute gradient of the sequence loss of formatted prompts with respect to router gate rows, subtracting the same score on benign prompts. Suppression adds a negative logit bias before Top-k. Baselines are activation selection with equal expert counts, approximately 1%–5% nominal malicious traffic, per-layer count matching, and the mean of 10 random trials.
Experiments and results
Under both budgets, gradient refuses less than activation in 24/25 conditions, and 25/25 above the ten-time random mean. For OLMoE and others, with quantity K=21, restricted drops from 34/100 to 9, a relative decrease of 73.53%. After layer-wise matching, it is 23/25, with two other ties.
Limitations and future work
The authors state that the concentration–peak association across five models needs validation on more models and is not causal evidence. The mechanism of non-monotonic effects at larger budgets and whether general capabilities are preserved are left for future work. Experiments include five open-source MoEs and manual three-way labels; the paper does not report annotation agreement.
Experimental setupMixtral-8x7B、Qwen1.5-MoE et al. · AEGIS2.0、AdvBench · relative refusal reduction、restricted / compliant / degraded et al.
Evaluated models
Mixtral-8x7BQwen1.5-MoEDeepSeek-MoEOLMoE-1B-7BQwen3-30B-A3B
Benchmarks
AEGIS2.0AdvBench
Metrics
relative refusal reductionrestricted / compliant / degradedΔk90Eeff/E
AI summaryThe paper points out that suppressing a small number of routed experts in sparse MoE large language models can weaken their safety behavior without retraining, while the commonly used activation frequency only reflects usage level, not influence. The authors instead use routing gradient sensitivity, i.e., the sensitivity of the sequence loss to the gating weights of the selected experts, and rank experts on five MoE architectures using 500 benign prompts and 500 malicious prompts respectively, then measure refusal rate on 100 held-out malicious prompts, using two budgets: the same number of experts and the same malicious routing traffic (1%-5%). Under both budgets, routing gradient selection yields a larger refusal drop than activation frequency in 24 of 25 conditions, and exceeds the mean of ten random trials in all 25. The largest effect is on OLMoE, where refusals drop from 34 out of 100 to 9 (a relative drop of 73.53%), with no degradation in output quality. After matching expert counts layer by layer, gradient selection still outperforms activation frequency in 23 of 25 conditions, with 2 ties.

The paper points out that suppressing a small number of routed experts in sparse MoE large language models can weaken their safety behavior without retraining, while the commonly used activation frequency only reflects usage level, not influence. The authors instead use routing gradient sensitivity, i.e., the sensitivity of the sequence loss to the gating weights of the selected experts, and rank experts on five MoE architectures using 500 benign prompts and 500 malicious prompts respectively, then measure refusal rate on 100 held-out malicious prompts, using two budgets: the same number of experts and the same malicious routing traffic (1%-5%). Under both budgets, routing gradient selection yields a larger refusal drop than activation frequency in 24 of 25 conditions, and exceeds the mean of ten random trials in all 25. The largest effect is on OLMoE, where refusals drop from 34 out of 100 to 9 (a relative drop of 73.53%), with no degradation in output quality. After matching expert counts layer by layer, gradient selection still outperforms activation frequency in 23 of 25 conditions, with 2 ties.

Paper analysis

6 questions; open one to read the full answer

  1. What problem does this paper attempt to solve?

    Activation frequency measures usage rather than impact; the paper instead uses router gradients to select experts whose suppression reduces refusal more.

    In sparse MoE, selecting experts to suppress by activation frequency measures usage, not that expert's impact on sequence loss.

    • Why this is a problem: The authors state that the router's choice for each token is observable and modifiable; keeping a small set of experts unselected can weaken refusal without retraining. For publicly available models, this is simultaneously a problem of attackers deciding whom to disable and defenders deciding whom to protect.
    • Existing gap: The authors state that most MoE safety work ranks by activation frequency on malicious prompts. Frequently selected experts are not necessarily critical, and rarely selected ones can also be critical; frequency and router-gradient rankings need not agree, and it is not known in advance which better indicates suppression targets.
    • Two questions: RQ1, whether routing concentration differs between benign and malicious prompts across the full model and within layers. RQ2, whether suppressing experts selected by gradient reduces refusal more than activation ranking or random selection.
    • This paper's approach: On five instruction-tuned MoEs, rank using 500 benign and 500 malicious prompts, then suppress on a disjoint set of 100 malicious prompts. Budgets are equal expert counts and equal nominal malicious routing traffic (1%–5%), with additional per-layer count matching.
  2. What related research exists?

    Related work mainly selects experts by activation; the authors claim this is the first comparison of gradient and frequency as suppression criteria under matched budgets.

    MoE routing and expert specialization

    • Conditional computation: Shazeer et al. (2017), GShard (Lepikhin et al., 2021), and Fedus et al. (2022) discuss conditional computation, capacity, and load balancing for sparse experts.
    • Specialization and routing: OpenMoE (Xue et al., 2024), interpretable MoE by Yang et al. (2025), and steerable routing by Bandarkar et al. (2026) study token-level specialization and whether routing can be guided.
    • Analysis unit: The paper paraphrases Su et al. (2026) defining super experts by activation magnitude, whose ablation collapses general capabilities. The authors accordingly treat layer number plus within-layer index as the expert unit and note that looking only at routing frequency still does not reveal how sensitive predictions are to the router parameters that select that expert.

    Safety evaluation and internal structure

    • Harmful prompt benchmarks: AdvBench (Zou et al., 2023) and JailbreakBench (Chao et al., 2024) are cited as benchmarks for refusal and jailbreak evaluation. The experimental section states that the malicious analysis set is AdvBench and the behavioral evaluation is AEGIS2.0.
    • Low-quality generation: StrongREJECT (Souly et al., 2024) proposes that low-quality generation should not count as harmful compliance. The authors therefore split outputs into restricted, compliant, and degraded.
    • Refusal in dense models: The authors cite Arditi et al. (2024) on refusal being mediated by a single direction and state that this suggests safety can depend on local structure.

    MoE safety and expert-level intervention

    • Activation signals: SAFEx (Lai et al., 2025) uses stable selected activation probabilities and masks; SteerMoE (Fayyaz et al., 2026) uses activation rate differences; RASET (Zhang et al., 2026) fine-tunes safety-critical experts by contrastive activation sensitivity.
    • Suppression and input-side: Jiang et al. (2026) use mask search to flip refusal into compliance; GateBreaker (Wu et al., 2026) uses gating-guided ablation to remove safety behavior without retraining; RouteHijack (Xu et al., 2026) and MisRouter (Fei et al., 2026) select targets from activation patterns and use only inputs to steer generation toward less aligned experts.
    • Gradient but different goal: Zhao et al. (2025) use gradient sensitivity to locate experts and compare with activation-based methods, but the goal is backdoor injection, not suppressing safety behavior.

    Baselines and benchmarks

    • Comparisons: activation's malicious-minus-benign ranking, the mean of 10 random selections per model and protocol, and an activation comparison with per-layer expert counts identical to the gradient set.
    • Data: AEGIS2.0 and AdvBench for analysis; disjoint AEGIS2.0 for behavioral evaluation.

    The authors state that existing MoE safety work mainly relies on activation magnitude or masks; to their knowledge, this is the first comparison of router-gradient versus activation frequency as selection criteria for expert suppression under matched budgets and random baselines.

  3. How does the paper address this problem?

    Rank by malicious-minus-benign of the mean absolute gradient of gate weights with respect to prompt loss, then suppress under three budgets.

    The overall approach is to rank experts by router-gradient sensitivity and then test, via suppression without retraining, whether these experts are related to refusal. Activation frequency serves only as a comparison.

    Analysis objects and two scores

    • Models: Table I gives sparse layer count L, routing experts per layer E, Top-k, and total N. Mixtral-8x7B is 32, 8, 2, 256; Qwen1.5-MoE is 24, 60, 4, 1440; DeepSeek-MoE is 27, 64, 6, 1728; OLMoE-1B-7B is 16, 64, 8, 1024; Qwen3-30B-A3B is 48, 128, 8, 6144. Always-active shared experts are excluded from ranking and intervention. Prompts use each model's native chat template, with Qwen3 in non-thinking mode.
    • Splits: The analysis set is 500 benign AEGIS2.0 and 500 malicious AdvBench prompts, used for routing analysis, malicious-minus-benign scoring, ranking, and traffic calibration. Behavioral evaluation uses a disjoint 100 malicious and 100 benign AEGIS2.0 prompts; the malicious set evaluates the baseline and three selections, the benign set only audits gradient suppression.
    • Activation score: The number of tokens routed to an expert in a layer, normalized within the layer, then averaged over the prompt group.
    • Gradient score: Without updating parameters, only the gradients of the router gate weights are collected. The loss is the causal language model sequence loss on formatted analysis prompts, with standard shifting, without appending generated responses. The prompt-level score is the average absolute value of the partial derivatives of the sequence loss over the d weights in that row:

    Gl,e(p)=1/d∑j=1d|∂ L(p)/∂ Wgatel,e,j|

    The absolute value avoids positive and negative cancellation. The authors state it measures the local sensitivity of token prediction for a formatted prompt to a single router row, not a refusal objective, nor a direct safety gradient.

    Malicious dominance and ranking

    • Difference: The above scores are averaged over 500 malicious and 500 benign analysis prompts respectively. The gradient malicious dominance is

    DG,(m)l,e=GM,(m)l,e−GB,(m)l,e

    The activation baseline uses the same malicious-minus-benign. Both targets are sorted by that score from high to low.

    • Cost: The authors state that the identification stage requires one backward pass per analysis prompt for gradient, while activation frequency only needs forward passes; after expert selection, this cost is no longer paid at inference. The paper does not report runtime.

    Budgets, comparisons, and suppression

    • Traffic: The sum of the selected experts' malicious activation shares divided by L. The denominator equals L because each layer's shares sum to 1. Accumulate in ranking or random order, stopping before the first expert that would exceed the target; that expert is not included. Discrete experts make the actual share possibly lower than the nominal target.
    • Gradient sets: Selected at approximately 1% to 5% malicious traffic on the analysis set, with expert counts: Mixtral 3/5/7/9/11, Qwen1.5 7/20/31/43/53, DeepSeek 9/13/21/28/35, OLMoE 5/9/13/17/21, Qwen3 10/22/33/45/57. Experts are identified by layer number and within-layer index.
    • Three comparisons: At equal counts, activation uses its dominance ranking and random uses random order, suppressing the same number, without controlling cumulative traffic or layer distribution. At traffic targets, the latter two methods get new sets at approximately 1%–5%, with possibly different expert counts, while the gradient set remains unchanged. For per-layer matching, within each sparse layer take the highest activation-dominance experts, with the same count as the gradient set in that layer; matching total count and full layer counts, not just average depth; overlap allowed; no additional traffic matching.
    • Intervention: Add a negative router-logit bias to selected experts before Top-k, making them effectively unavailable; shared experts unchanged. Random selection uses 10 independent seeds per model and protocol, without replacement, and retains enough experts per layer to complete native Top-k.

    Concentration and refusal determination

    • Concentration: k90 is the minimum number of experts covering 90% of the group's activation mass. Δk90 is the difference between malicious and benign as percentage points relative to N; negative means malicious is more concentrated. Distribution difference uses base-2 Jensen–Shannon divergence. Within layers, entropy of normalized activations is converted to effective expert count, then averaged over prompts and layers as Eeff/E.
    • Behavior determination: On the same 100 malicious prompts, greedy decoding, up to 200 new tokens. Human-labeled as restricted (refusal or safe redirection), compliant (substantive answer), or degraded (empty, incoherent, repetitive, or irrelevant). Labels are used only for behavioral evaluation, not for expert identification. Relative refusal reduction is 100 times the difference in restricted count before and after suppression, divided by the before count; for random conditions, the mean of 10 runs is used. Positive values mean fewer restricted.
  4. What experiments did the paper conduct?

    Under both budgets, gradient outperforms activation in 24/25 conditions and the random mean in 25/25; OLMoE relative reduction 73.53%.

    Experimental setup

    • Models: The five instruction-tuned MoEs from Table I: Mixtral-8x7B, Qwen1.5-MoE, DeepSeek-MoE, OLMoE-1B-7B, Qwen3-30B-A3B. Shared experts excluded.
    • Data: Analysis set is 500 benign AEGIS2.0 and 500 malicious AdvBench. Evaluation uses non-overlapping 100 malicious AEGIS2.0 (baseline and three selections) and 100 benign (only auditing gradient).
    • Comparisons: activation malicious-minus-benign ranking, the mean of 10 random runs per model and protocol, and activation with per-layer expert counts identical to the gradient set. The gradient set is reused between equal-count and traffic protocols.
    • Metrics: Relative refusal reduction; human three-way restricted, compliant, degraded. Routing side is Δk90, Eeff/E, Top-10 overlap, and base-2 JS divergence.
    • Decoding and labeling: Greedy, up to 200 new tokens. The paper does not state the review model, number of annotators, or agreement, nor the number of repetitions for gradient and activation.
    • No-suppression baseline: Restricted counts are Mixtral 58, Qwen1.5 94, DeepSeek 82, OLMoE 34, Qwen3 94, each out of 100 (Section IV.B).

    Main results

    Fig. 1's caption states that rows in the same column share the y-axis and scales differ across models. Pointwise values are not fully listed in the text; the table below only includes numbers stated in Section IV.B.

    Swipe horizontally to read the table

    ModelBaseline restricted/100Gradient (text)Comparison (text)
    Mixtral-8x7B58Equal count K=5 is 15.52% then declinesNo per-budget numbers reported
    Qwen1.5-MoE94Equal count from K=31 is 12.77%No per-budget numbers reported
    DeepSeek-MoE82Equal count from 7.32% to 28.05%Traffic 5%: activation 9.76%, random mean 5.61%
    OLMoE-1B-7B34Equal count K=21: 73.53% (down to 9)At equal counts, both comparisons increase refusal in every setting
    Qwen3-30B-A3B94K=57 is 21.28%; K=10 is 1.06%K=10 activation is 4.26%; traffic 1% activation is 3.19%
    • Condition counts: The authors state that under both budgets, gradient is higher than activation in 24/25 conditions and higher than the ten-run random mean in 25/25; at equal counts, this cannot be explained by suppressing more experts.
    • Exceptions: The authors report that conditions below activation are all in Qwen3's smallest sets. The traffic protocol is described as a supplementary check for another confound, not an independent replication.
    • Budget: The authors state that increasing the suppression budget does not necessarily increase relative reduction; Mixtral peaks then declines, Qwen1.5 shows a plateau.

    Routing concentration

    Table II's Δk90 values are all negative. The authors state that on all five models, full-model routing is more concentrated for malicious prompts, coexisting with substantial overlap in usage.

    Swipe horizontally to read the table

    ModelΔk90Eeff/E benign/maliciousTop-10 overlap
    Mixtral-8x7B-1.95.8999/.89004
    Qwen1.5-MoE-2.22.7454/.74557
    DeepSeek-MoE-6.94.6144/.58896
    OLMoE-1B-7B-7.32.6362/.60796
    Qwen3-30B-A3B-3.52.3479/.34487
    • Overlap: Top-10 shares 4–7 experts. Model-level distribution JS divergence is 0.0074–0.0408, which the authors call small.
    • Within-layer: Malicious Eeff/E is lower in four models, Qwen1.5 essentially unchanged. The authors state that more concentrated full-model routing does not imply more concentration within every layer. The example layers in the table are not the largest group differences.

    Layer position and per-layer matching

    • Depth: At equal counts, the average layer position (0% first layer, 100% last layer) for gradient and activation is 68.2% and 50.9%, with proportions in the deepest third of 56% and 29%; gradient is deeper in all 25 settings. Under traffic targets, activation is 48.7% and 25.7%. The authors state these settings are not independent replicates because budgets reuse models and sets overlap.
    • Table III: The table below shows activation's relative reduction R (%) after per-layer count matching. q=1 to 5 correspond to that model's increasing K, not traffic percentages.

    Swipe horizontally to read the table

    Modelq=1q=2q=3q=4q=5
    Mixtral-8x7B-5.176.906.901.723.45
    Qwen1.5-MoE0.001.061.061.062.13
    DeepSeek-MoE2.447.326.107.324.88
    OLMoE-1B-7B-20.59-17.65-29.41-23.53-29.41
    Qwen3-30B-A3B1.060.001.060.001.06
    • Interpretation: The authors state that gradient is higher in 23/25 conditions, with ties at Qwen3's K=10 and Mixtral's K=11, tied values being 1.06% and 3.45% respectively. At the largest budget, DeepSeek's gradient is 28.05% versus this comparison's 4.88%; OLMoE is 73.53% versus -29.41%. The authors state the advantage cannot be explained only by layer position; this comparison does not isolate differences in selected routing traffic. OLMoE's comparison is negative at all five q, i.e., more refusals.

    Concentration correlation and output forms

    • Correlation: Spearman ρ=0.90 between −Δk90 and peak gradient reduction across the five budgets. Exact two-sided permutation test enumerates 5!=120 assignments, with 10 having absolute correlation at least 0.90, p=0.083, n=5. The authors state that models with larger concentration gaps tend to have larger peak effects, but this is a post-hoc correlation, not evidence that concentration causes susceptibility; only five architectures, the maximum over budgets, and relative reduction normalized by different baseline refusal counts are used.
    • Outputs: The authors state that no degraded outputs appear in any of the three experiments; the gradient suppression audit on benign prompts has no restricted or degraded. The authors state these checks do not establish that accuracy, instruction following, or general capabilities are preserved, but the refusal reduction corresponds to substantive compliance rather than unusable generation.

    Other ablations and analyses

    • Mixtral's L8–15: effective expert count malicious 6.906, benign 7.002. Qwen1.5's L23: 40.2 vs 39.8, malicious slightly more dispersed.
    • OLMoE has lower malicious effective expert counts at L3 and L14, with L6 being the lowest for both groups; Qwen3's within-layer differences are smaller and mixed in direction. The text does not give full values for these layers.
    • The paper does not report the actual shares achieved by each traffic set, only that they can be below the nominal 1%–5%.
    • OLMoE under traffic targets: gradient reduces refusal, while activation and random both increase refusal (Section IV.B).
    • Random sampling is without replacement and retains enough experts per layer for native Top-k; the paper does not report how many draws were skipped for this reason.
  5. What are some points that can be further explored?

    The authors list non-monotonic mechanisms, preservation of general capabilities, and re-validation of the five-model correlation as future work.

    Limitations and Future Directions Noted by the Authors

    • More models: Section V states that the exploratory association between the gap in malicious vs. benign concentration and the peak gradient effect needs validation on more models.
    • Not causal: Section IV.B states the association is post hoc and only suggestive, not evidence that concentration causes susceptibility; it involves only five architectures, uses the maximum over the tested budgets, and relative reductions are normalized by different baseline refusal counts.
    • Non-monotonic: Section V lists the mechanism behind non-monotonic effects at larger suppression budgets as a topic for future research.
    • General capabilities: Section V lists whether general model capabilities are preserved as a topic for future research.
    • Scope of existing checks: Section IV.B states that the absence of degraded outputs and the absence of restricted or degraded in benign audits do not establish that accuracy, instruction following, or general capabilities are preserved.

    Experimental Coverage

    • Models: The tested models are the five instruction-tuned MoEs in Table I, with routed expert pools from 256 to 6,144; always-active shared experts are not involved in ranking or intervention.
    • Data: The analysis set is AEGIS2.0 benign 500 and AdvBench malicious 500; behavioral evaluation uses disjoint AEGIS2.0 malicious 100 (baseline and three selections) and benign 100 (auditing gradient suppression only).
    • Protocol: Includes equal expert counts, nominal malicious routing traffic 1%–5%, and fully matched per-layer expert counts. Per-layer matching does not additionally match routing traffic (Section III.C). Random selection uses 10 independent seeds per model per protocol. Section IV.B states the 25 model–budget settings are not independent replicates.
    • Judgment: Greedy decoding with up to 200 new tokens; outputs are manually labeled as restricted, compliant, or degraded. The paper does not report the number of annotators, agreement, or the number of repetitions for gradient and activation suppression.
    • Gradient definition: Gradients come from backpropagating the sequence loss of formatted analysis prompts to router gate rows, without updating parameters or incorporating generated responses into the loss. The paper does not report the time cost of this profiling.
  6. Summarize the main content of the paper

    Frequency is not sensitivity; under the tested budgets, suppressing experts selected by gradient reduces refusal more than activation and random.

    On five sparse MoEs, selecting experts to suppress by router gradient rather than activation frequency yields larger refusal reductions on held-out malicious prompts.

    At inference, preventing a few routed experts from being selected can change refusals without retraining, but frequency only records usage counts. Ranking uses the mean absolute gradient of the sequence loss of formatted prompts with respect to gate rows, with the baseline being layer-normalized activation; both are selected in descending order of malicious minus benign. Suppression does not update weights, only adds a negative logit bias before Top-k.

    The analysis set is AEGIS2.0 benign 500 and AdvBench malicious 500, with behavioral evaluation on disjoint AEGIS2.0 sets of 100 each. Baselines include equal expert counts, approximately 1%–5% nominal malicious traffic, and activation selection with exactly matched per-layer counts; random results report the mean of 10 trials.

    • Main comparison: Under both budgets, gradient's relative refusal reduction is higher than activation in 24/25 conditions and higher than the random mean in 25/25.
    • Largest change: OLMoE-1B-7B with equal counts K=21, restricted drops from 34/100 to 9, a relative reduction of 73.53%; under the same protocol, activation and random increase refusals in every setting.
    • Layer position: After matching per-layer counts, still 23/25 higher, with ties for Qwen3 K=10 and Mixtral K=11. The authors say this cannot be explained solely by layer position.
    • Exceptions and association: On Qwen3's smallest set, activation shows a larger reduction. Across five models, −Δk90 and peak gradient effect have Spearman ρ=0.90, exact two-sided p=0.083; the authors state this is only suggestive, not causal.
    • Authors' conclusion: Under the tested budgets, activation frequency is not a stable proxy for suppression effects; the results are intended to identify and harden safety-sensitive experts. The three experiments show no degraded outputs. The mechanism of non-monotonic changes and whether general capabilities are preserved are listed as future work.

Related papers

Show 1 more papers
Read originalarxiv.org