Towards Architectural-Level Safety Control: Relocating Hazardous Knowledge into Removable Experts in Mixture-of-Experts Models

Cheng Jin, Zhongtian Ma, Xiao Wang, Han Qi, Xiaoyu Wen, Xiang Wang, Youbang Sun, Xia Hu, Bowen Zhou, Chaochao Lu, Qiaosheng ZhangarXiv 2026

TL;DR

REX (Relocating into Removable EXperts) is a novel architectural approach to LLM safety that physically separates hazardous knowledge from general capabilities in Mixture-of-Experts (MoE) models. By concentrating dangerous information into specific, removable "target experts," developers can release a public model that is genuinely safe and, crucially, resistant to "relearning" hazardous knowledge during subsequent fine-tuning.

What Problem Does This Paper Address?

Large Language Models (LLMs) are trained on massive web-scale datasets that inevitably contain "dual-use" knowledge—information that is useful for legitimate research but dangerous if misused (e.g., instructions for creating biological weapons or executing cyberattacks).

Currently, researchers try to "unlearn" or align this knowledge away by adjusting model weights. However, this knowledge is deeply entangled with general capabilities within the same parameters. Existing methods like RLHF or standard unlearning techniques often only provide "shallow alignment"—they suppress the expression of hazardous knowledge without actually removing it. A major consequence is that this knowledge can easily "rebound" or be recovered through just a small amount of fine-tuning on unrelated data, making released "safe" models unexpectedly vulnerable.

Methods

The authors introduce REX, which leverages the modular nature of Mixture-of-Experts (MoE) architectures. Instead of just changing weight values, REX changes the model's structure. The process involves three main stages:

  1. Expert Expansion & Knowledge Relocation: The model is expanded with new "target experts" specifically designated to hold hazardous knowledge.
  2. Differential-Activation Expansion: Identifies which existing experts are most active on hazardous data versus general data and clones them to initialize the new target experts.
  3. Selective Gradient Masking: During training, gradients from hazardous data only update the target experts, while gradients from general data only update the original experts.
  4. Routing Differentiation: New loss functions train the model's "router" to send hazardous tokens to the target experts and general tokens to the original ones.
  5. Excision & Cleanup: Before public release, the target experts are physically removed (excised). A light "cleanup" step (using a method called RMU) is applied to the remaining parameters to catch any residual traces of hazardous knowledge left in shared components like attention layers.
  6. Post-training & Delivery: The model (with target experts temporarily recombined) can undergo standard fine-tuning. Because the router keeps hazardous updates isolated in the target experts, the final public version—obtained after a second excision—remains safe.
Overview of REX vs. conventional methods and its effectiveness over fine-tuning tokens.

Datasets

  • Hazardous Domains: The WMDP (Weapons of Mass Destruction Proxy) benchmark, specifically the WMDP-Bio (biosecurity) and WMDP-Cyber (cybersecurity) subsets, served as the "forget" data.
  • General Capability: FineWeb-Edu was used as the "retain" data to ensure general knowledge wasn't lost during relocation.
  • Evaluation: Models were tested on standard benchmarks including MMLU, ARC-C, HellaSwag, GSM8K, and IFEval to measure general intelligence and instruction-following performance.

Key Insights and Ideas

  • Architectural vs. Parameter-level Control: The core "aha" moment is that safety shouldn't just be about weight values; it can be an architectural choice. By making hazardous knowledge modular, you can literally cut it out.
  • Solving the Rebound Problem: This is the most significant finding. Because the hazardous knowledge is physically removed (or its "path" is severed), standard fine-tuning doesn't easily bring it back. In contrast, every other baseline method tested saw hazardous knowledge levels skyrocket back toward original levels after fine-tuning.
  • Minimal "Collateral Damage": Because the relocation is highly targeted, the model's general performance (MMLU, etc.) remains remarkably stable even after the hazardous experts are removed.

Key Results

  • Effective Removal: On Qwen3.5-35B-A3B, excising the target experts dropped WMDP-Bio accuracy by 48.4 points (bringing it near chance levels), while general capability (MMLU) changed by less than 3 points.
  • Persistence: After 250M tokens of standard fine-tuning, the best baseline method (RMU) rebounded on WMDP-Bio from 44.1% back up to 78.3% (near the original 83.2%). REX, however, only rose from 32.4% to 42.8%, maintaining a much higher safety margin.
  • Consistency: The method proved effective across three different MoE backbones: Intern-S2, Qwen3.5, and Gemma-4.
The detailed REX pipeline: from expansion to excision and delivery.

Limitations and Future Work

  • MoE Specificity: REX currently requires a Mixture-of-Experts architecture. While MoEs are becoming more common (e.g., Mixtral, GPT-4), the method doesn't directly apply to standard dense models.
  • Residual Knowledge: While excision removes the bulk of the knowledge, some traces remain in shared parameters that relocation doesn't update (like attention), necessitating the additional "cleanup" step.
  • Future Directions: The authors suggest exploring how to apply similar architectural separation to dense models and investigating if this method can be used for other types of "unwanted" knowledge beyond safety hazards, such as copyrighted material or personal identifiable information.

Summary updated

BibTeX
@misc{jin2026towards,
  author = {Cheng Jin and Zhongtian Ma and Xiao Wang and Han Qi and Xiaoyu Wen and Xiang Wang and Youbang Sun and Xia Hu and Bowen Zhou and Chaochao Lu and Qiaosheng Zhang},
  title = {{Towards Architectural-Level Safety Control: Relocating Hazardous Knowledge into Removable Experts in Mixture-of-Experts Models}},
  year = {2026},
  eprint = {2610.25791},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2610.25791},
}
Figure