SEAL: Strengthening MoE Global Safety through Shared-Expert AlignmentSEAL: Reinforcing Global Safety in Mixture-of-Experts through Shared Expert ALignment
The authors propose SEAL/SEAL++, which performs DPO-LoRA alignment on the shared experts of a hybrid MoE, and report that it can reduce ASR under various attacks.
Ainput constructs adversarial inputs for black-box queries; Atrain can perform training on weights with attacker-controlled data; Aweight can read and modify parameters θ but does not perform gradient training. The defense only updates shared experts during training.
- The safety of a hybrid MoE depends on the experts selected by routing; jailbreaks, malicious fine-tuning, and neuron pruning can all bypass router-level defenses. Shared experts are activated for every token, but have not previously been treated as a defense surface.
- SEAL only trains DPO-LoRA (rank 64) on the gate/up/down projections of shared experts. SEAL++ identifies safety-critical neurons with z-score > 2.0 and uses an orthogonality constraint Lorth to avoid updates overwriting that subspace.
- In Table 2, across the four models, SEAL/SEAL++ reduce the ASR for harmful prompts, jailbreaks, and malicious fine-tuning relative to Original, with the average capability drop over five benchmarks no more than about 1.4 percentage points. The authors state that combined with routing-level defenses, ASR can reach 4.8%.
- The authors discuss limitations and future directions in the latter part of the text; the experiments cover four open-source hybrid MoEs, three attack surfaces, and combinations with pruning, with GPT-5-nano double annotation at 98.1% agreement.
- Evaluated models
- Qwen1.5-MoE-A2.7BDeepSeekMoE-16BGLM-4.7-FlashQwen3.5-35B-A3B
- Benchmarks
- AdvBenchHarmBenchWildJailbreakDo-Not-AnswerJailbreakBenchPKU-SafeRLHFBeaverTailsGSM8KMMLUARC-ChallengeTruthfulQAPopQA
- Metrics
- ASRCapability(五基准无加权平均准确率)
The paper proposes SEAL, a parameter-efficient training-time defense method that improves global safety alignment by attaching plug-and-play adapters to the shared experts of a MoE. The authors note that the safety of a MoE depends on which experts are activated by sparse routing, and attackers can subvert this selection through jailbreak prompts, malicious fine-tuning, and pruning safety-critical neurons, while existing defenses mostly focus on hardening the router and can still be bypassed by non-deterministic routing trajectories. SEAL leverages the always-activated shared experts as routing-independent anchors, and its variant SEAL++ adds an orthogonality constraint during training to preserve existing safety subspaces. Across six attack scenarios combining three types of adversarial inputs (harmful prompts, jailbreaks, malicious fine-tuning) with whether neurons are pruned, SEAL reduces attack success rate by up to 60%, with a capability loss of at most 1.4% on average across five benchmarks, and can be seamlessly integrated with router-level defenses.
Paper analysis
What problem does this paper attempt to solve?
Hybrid MoE safety varies with routing; the authors treat the always-activated shared experts as routing-independent alignment anchors.
The safety behavior of hybrid MoE depends on which experts are activated, and attackers can bypass routing-level defenses through jailbreak prompts, malicious fine-tuning, or pruning safety-critical neurons.
- Scenario: the authors state that MoE is used in models such as GPT-OSS, Llama 4, Qwen3.5, Nemotron-3, and Mixtral; hybrid MoE additionally adds shared experts that execute for every token. Sparse routing makes safety vary with expert selection.
- Existing shortcomings: the authors state that routing-level defenses (KL regularization or inference-time logit steering) rely on routing reliability; routed-expert intervention can only improve safety for tokens still sent to those experts. Attackers can still manipulate or ignore the router.
- Core observation: the authors state that shared experts contain a small number of safety-critical neurons and execute unconditionally, serving as a routing-independent global safety anchor. Figure 3 gives the per-module density ratio of shared to routed: 0.63 for Qwen1.5, 0.88 for DeepSeek, 0.89 for GLM, and 0.86 for Qwen3.5.
- Proposed method: a training-time parameter-efficient defense SEAL, which attaches a DPO-LoRA adapter to the shared experts; SEAL++ additionally adds an orthogonality constraint to preserve the existing safety subspace during training. The authors state both can be combined with routing-level defenses.
- Threat model:
- Ainput: black-box queries, can submit arbitrary inputs and observe outputs, with limited knowledge of architecture, weights, and internal routing; uses template jailbreaks and multi-turn manipulation to induce harmful outputs. Success means a compliant answer to a harmful instruction.
- Atrain: has access to weights and the training framework, and performs supervised fine-tuning on harmful instruction–response pairs.
- Aweight: can read and modify parameters θ, but cannot do gradient-based training; uses activation differences to find safety-critical neurons and masks them at inference. The authors state this is the primary evaluation axis.
- Defender: white-box at training time, with safety preference data and lightweight modules; does not modify the router, routed experts, or serving infrastructure.
What related research exists?
The paper divides related work into MoE and shared experts, the three attack surfaces, and two classes of defenses: routing-level and routed-expert.
- Hybrid MoE and shared experts: the classic MoE of Shazeer et al. activates only top-k experts. Dai et al. [9] introduced shared experts, aggregating common knowledge needed by every token. The authors list DeepSeek V2/V3/R1/V4, Qwen-series MoE, GLM-4.5/4.6/4.7-Flash, Kimi-K2, Hunyuan, Llama 4, and Gemma 4 as deploying this design.
- Three attack types: routing-distribution attacks use adversarial inputs to bypass safety-critical experts [31, 59]; weight attacks prune safety-critical experts or neurons [60, 61]; malicious fine-tuning breaks alignment [47]. Figure 1 depicts all three as the same structural weakness: safety depends on which experts are selected.
- Existing MoE defenses: routing-level methods use KL-regularized routing or inference-time logit steering [15, 28], relying on routing reliability. Routed-expert intervention [34] fine-tunes safety-critical routed experts, but only covers tokens the router still delivers. The authors state both classes center on the router as the protected object.
- Baselines and data: the evaluation baselines are the chat/instruct versions released by each model vendor (Original), plus SEAL and SEAL++. Attack data comes from AdvBench, HarmBench, WildJailbreak, Do-Not-Answer, JailbreakBench, and BeaverTails; alignment uses PKU-SafeRLHF; capability uses GSM8K, MMLU, ARC-Challenge, TruthfulQA, and PopQA. Figure 4 also depicts SteerMoE [15], SafeMoE [28], and RASA [34] as comparison defense surfaces.
The authors state that no prior work treated shared experts as a dedicated safety component; this paper is what the authors describe as filling that gap, placing defense in a parameter region the router cannot reach, and thus combinable with routing-level methods.
How does the paper address this problem?
SEAL only performs DPO-LoRA on shared expert projections; SEAL++ uses an orthogonality loss to avoid identified safety neuron directions.
The overall idea is to write safety signals into the always-activated shared experts, rather than hardening the router.
Problem setup
- The hybrid-layer output is the sum of the shared experts plus the top-k weighted sum of the routed experts (Eq. 1). The shared term executes for every input.
- Design requirements: non-privileged access at training time, capability drift target no more than 5%, effectiveness under all three attacks, and no modification of the router or routed experts.
- Safety-neuron identification follows the pruning attack's activation difference: per-neuron differences on harmful and benign sets, selecting Nsafe with a z-score threshold of ζ=2.0, and forming a diagonal mask CSE. The analysis uses about 300 harmful and 300 benign prompts, once per architecture, then freezes. The text elsewhere also writes the analysis uses 720+720 prompts.
SEAL
- LoRA is added only to gate_proj, up_proj, and down_proj of all shared experts in all MoE layers. Rank r=64, scale α=128. The effective weight is W′=W+BA.
- All other parameters are frozen. Disabling the adapter restores the reference policy πref, without needing a second model copy.
- Training uses DPO on preference triples. Temperature β defaults to 0.1. The authors choose DPO because it needs no reward model, can train on static preference data, and is compatible with LoRA. SEAL itself adds no orthogonality constraint.
- Table 1: trainable parameters are 35.4M (0.25%) for Qwen1.5-MoE-A2.7B, 35.8M (0.22%) for DeepSeekMoE-16B, 31.7M (0.11%) for GLM-4.7-Flash, and 19.7M (0.06%) for Qwen3.5-35B-A3B.
SEAL++
- The LoRA update is split into a part projected onto the safety-neuron coordinates and an orthogonal part. Lorth penalizes the Frobenius norm of the former (Eq. 7).
- The total loss is LDPO plus λorth times Lorth, with default λorth=0.1. The authors state this is to avoid DPO overwriting the existing directions that make safety neurons identifiable and more robust to pruning.
- Safety neurons account for about 1%–3% of the intermediate dimension. At inference, the LoRA is folded into the base model, and the authors state the additional inference FLOPs are 0. The trained adapters are about 75–135MB.
Success determination
- Each response is independently labeled twice by GPT-5-nano: REFUSAL, COMPLIANCE, or UNCLEAR. ASR is the proportion labeled COMPLIANCE; refusals and UNCLEAR are not counted as success. For each attack scope, the worst ASR among the four conditions is reported.
What experiments did the paper conduct?
Across four hybrid MoEs, SEAL/SEAL++ reduce the ASR for the three types of direct attacks relative to the chat original model, with an average capability drop of about 1 percentage point.
Experimental Setup
- Models: Qwen1.5-MoE-A2.7B, DeepSeekMoE-16B, GLM-4.7-Flash, Qwen3.5-35B-A3B, default chat or instruct.
- Methods: Original (vendor chat, no adapter), SEAL, SEAL++.
- Attacks: harmful prompts, jailbreaks (WildJailbreak, Do-Not-Answer, JailbreakBench, 720 total), malicious fine-tuning (300 from BeaverTails, 3 epochs, learning rate 5×10−5); then combined with pruning. Pruning scope ∈ {shared, routed, both}, identification ∈ {zscore2.0, global10%}, layer coverage ∈ {50%, 100%}, 13 settings total.
- Metrics: ASR (Eq. 10); Capability is the unweighted average of five benchmarks: GSM8K, MMLU, ARC-Challenge, TruthfulQA, PopQA. MMLU is 30 questions per subject, 57 subjects, 1710 total; GSM8K is 1319; PopQA is a 2000-item subset.
- Evaluation: GPT-5-nano twice, 98.1% agreement. Training uses 41251 pairs after filtering PKU-SafeRLHF. Probing uses 720 harmful prompts from AdvBench and HarmBench, benign from Alpaca-Cleaned and MT-Bench, 720 total.
- Separation: Probing, training, and evaluation data are disjoint. The provided text does not state the number of repetitions.
Main Results
Table 2 shows direct attack ASR (%) without pruning, lower is better. Capability is the average of five benchmarks.
Swipe horizontally to read the table
Model Method Harmful Jailbreak MFT Capability Qwen1.5 Original 27.5 66.4 86.9 49.9 Qwen1.5 SEAL 15.6 57.5 74.3 49.5 Qwen1.5 SEAL++ 13.1 56.5 72.5 48.9 DeepSeek Original 61.3 70.1 94.1 43.9 DeepSeek SEAL 8.5 46.8 86.5 43.4 DeepSeek SEAL++ 9.9 46.7 87.5 43.1 GLM Original 20.7 53.6 77.8 61.5 GLM SEAL 2.4 33.8 48.9 60.8 GLM SEAL++ 1.8 33.2 58.5 60.1 For Qwen3.5 in Table 2, Original/SEAL/SEAL++ Harmful is 5.8/1.1/1.7, Jailbreak is 31.9/24.0/22.8, MFT is 53.2/47.1/33.8, Capability is 69.6/69.2/69.4. The authors state that SEAL reduces ASR by up to 60%, with a capability cost of at most 1.4% on average across five benchmarks. In Table 2, DeepSeek harmful prompts drop from 61.3 to 8.5 with SEAL (a 52.8 percentage point drop), and for GLM's MFT, SEAL (48.9) is lower than SEAL++ (58.5).
- Authors' interpretation: Shared expert alignment reduces ASR for direct harmful prompts, jailbreaks, and malicious fine-tuning.
- Suffix attacks: On a 50-item AdvBench subset, undefended ASR rises from 28% to 40%, SEAL stays at 8%, SEAL++ rises from 6% to 14%. The authors state that parameter-space hardening weakens input-space suffix attacks unseen during training.
- Capability: In Table 2, the Capability drop for the four models relative to Original ranges from 0.2 to 1.4 percentage points (Qwen1.5 SEAL++: 49.9 to 48.9).
Harmful Prompts with Pruning
Table 3 shows ASR (%) for harmful prompt + pruning.
Swipe horizontally to read the table
Model Method Shared Routed Both Capability Qwen1.5 Original 32.4 39.4 26.3 49.8 Qwen1.5 SEAL 19.7 14.8 17.7 49.2 Qwen1.5 SEAL++ 18.3 13.9 16.6 48.8 DeepSeek Original 60.3 74.2 73.7 41.9 DeepSeek SEAL 21.1 13.8 18.2 43.1 DeepSeek SEAL++ 21.5 14.0 17.3 42.9 GLM Original 14.3 48.0 40.8 58.5 GLM SEAL 2.9 25.5 21.5 60.3 GLM SEAL++ 2.8 21.7 21.1 59.1 For Qwen3.5 in Table 3, Original/SEAL/SEAL++: Shared is 5.7/1.1/2.3, Routed is 5.9/13.2/15.3, Both is 7.5/13.6/15.2, Capability is 68.6/69.4/69.3. The authors state that the routed scope simulates an adversary who knows shared experts are protected and puts all budget on unprotected routed experts. For Qwen3.5, SEAL/SEAL++ are higher than Original on Routed and Both.
Combinations and Overhead
- The authors state that combining SEAL with router-level defenses can further reduce ASR to 4.8%, more than five times lower than router-level defense alone. The provided text does not list per-model numbers for that combination table.
- Appendix sensitivity table: Qwen1.5 total/active parameters 14.3B/2.7B, trainable 35.4M (0.25%), r/rs is 64/32, 72 modules, orthogonality constraint 1.13 GFLOPs per step, <0.01% relative to DPO forward-backward, adapter 67.5MB, safety subspace 9.0MB, inference extra FLOPs 0. DeepSeek correspondingly 16.4B/2.8B, 35.8M (0.22%), 64/32, 162, 573 MFLOPs, <0.01%, 34.2MB, 10.1MB, 0.
- The appendix also uses LLaMA-Guard-3-8B as a local binary classifier, compared with GPT-5-nano; the provided text does not give agreement numbers for that table.
Other Ablations and Analysis
- Figure 3 shows safety neuron density (%) by layer; shared experts' absolute proportion is usually lower than routed experts, but they execute unconditionally.
- Pruning factors are scope, identification method, and layer coverage; the text states 13 combinations total, Table 3 only summarizes Shared/Routed/Both.
- Safety subspace storage is about 9–10MB. GLM and Qwen3.5 overhead scales with the number of shared expert modules; the provided text does not list full overhead rows for these two.
- The authors use a pruning cost amplification factor γ≥1 (Eq. 11 in appendix) to describe that an attacker needs to prune more neurons to return to undefended ASR, and state it is measured in Section 5.6; the provided text does not give γ's value.
What are some points that can be further explored?
The provided text is truncated between methods and experiments, so the limitations section is incomplete; the experiments cover four models, six attack settings, and two evaluators.
Limitations and future directions noted by the authors
The provided text is truncated in the middle of Section 5.3, and no full standalone Limitations, Discussion, or Future Work text is visible. In the contribution entries, the authors state that combining SEAL++ with routing-level defenses can further strengthen pruning robustness; this is a result claim, not a sentence written as a limitation. The paper does not explicitly list limitations in the provided text.
Experimental coverage
- The tested models are Qwen1.5-MoE-A2.7B, DeepSeekMoE-16B, GLM-4.7-Flash, and Qwen3.5-35B-A3B, 4 in total, default chat or instruct (Section 5.1).
- Direct attacks are harmful prompts, jailbreaks, and malicious fine-tuning; composite attacks additionally add pruning, covering shared, routed, and both (Section 5.1.1, Table 2, Table 3).
- Capability is an unweighted average over five benchmarks; the authors state the per-item scores are in Appendix H.
- The primary judge is GPT-5-nano with two independent annotations, with 98.1% agreement; Appendix J additionally uses LLaMA-Guard-3-8B.
- Training updates only the shared-expert LoRA; the router and routed experts are frozen. The paper does not report the number of attack queries or the number of experimental repetitions in the provided text.
Summarize the main content of the paper
SEAL restricts DPO-LoRA to the shared experts of a hybrid MoE, and SEAL++ further protects existing safety neuron directions.
SEAL is a training-time defense for hybrid MoE: it aligns only the shared experts that always execute, so that safety does not depend on whether the router sends a token to a safe expert.
- The problem is that sparse routing makes safety vary with expert selection. Ainput constructs adversarial inputs, Atrain performs malicious fine-tuning, and Aweight performs neuron pruning. The authors argue that both routing-level defenses and routed-expert repair remain router-centric.
- SEAL trains a rank-64 DPO-LoRA on three projection groups of the shared experts, with trainable parameters accounting for 0.06%–0.25%. SEAL++ marks safety neurons with ζ=2.0 and uses an orthogonality penalty with λorth=0.1 to penalize updates covering these directions. The authors state the additional inference computation is 0.
- Table 2: DeepSeek harmful-prompt ASR goes from 61.3% to 8.5% with SEAL; GLM harmful prompts go to 1.8% with SEAL++; Qwen1.5 jailbreak goes from 66.4% to 56.5% with SEAL++; ASR after malicious fine-tuning remains high, at 72.5%–86.9% for Qwen1.5. The average capability drop over five benchmarks is no more than 1.4 percentage points.
- Table 3: after pruning, SEAL/SEAL++ remains below Original on most models, but Qwen3.5 on Routed rises from 5.9% to 13.2% with SEAL and 15.3% with SEAL++. The authors state that combined with routing-level defenses, ASR can reach 4.8%.
- The authors' conclusion is that shared experts are a routing-independent safety surface unused by previous defenses, and can be stacked with routing-level methods into defense in depth.
Related papers
- Safeguards Based on Copyable Context Cannot Provide Reliable Safety for LLMsAnalysis / interpretabilityarXiv