TL;DR
MoEEdit is the first framework specifically designed to edit factual knowledge in Mixture-of-Experts (MoE) LLMs without breaking their internal logic. By using per-expert null-space projections and an efficient block coordinate descent (BCD) solver, it achieves state-of-the-art editing precision while preventing the "routing shifts" that typically cause MoE models to become unstable after fine-tuning.
The Challenge of Editing MoE Models
Large Language Models (LLMs) often harbor outdated or incorrect facts. Knowledge Editing (KE) aims to fix these specific errors (e.g., changing "The CEO of Apple is Steve Jobs" to "Tim Cook") without the massive cost of retraining the entire model.
While KE works well for standard "dense" models (where every parameter is used for every word), it struggles with the increasingly popular Mixture-of-Experts (MoE) architecture. MoEs use a "router" to send different tokens to different specialized "experts." The authors identify three major hurdles for MoE editing:
- Routing Distribution Shift: This is the most subtle and damaging issue. If you edit a layer, its output changes. This changed output becomes the input for the next layer's router, causing it to select the wrong experts. This cascading effect destroys the model's stability.
- Computational Complexity: Updating hundreds of experts is slow and memory-intensive. Traditional closed-form solvers scale poorly as the number of experts grows.
- Inter-expert Coupling: Multiple experts often collaborate on a single output; changing one can have unintended side effects on others.
The MoEEdit Framework
To tackle these challenges, the authors introduce MoEEdit, which relies on two primary innovations:
1. Per-Expert Null-Space Projection
To stop the "routing shift," the researchers ensure that weight updates are "invisible" to the routers in subsequent layers. They project the proposed edits into the "null-space" of the features the router relies on. This keeps the input manifold for downstream routers invariant, effectively "cloaking" the edit from the rest of the model's routing logic and maintaining stability.
2. Randomized Block Coordinate Descent (BCD) Solver
Instead of trying to solve a massive, global optimization problem (which scales cubically with the number of experts), MoEEdit treats each expert as an independent block. It updates only the most relevant experts for a specific fact in a randomized, iterative fashion. This allows the method to scale linearly with the size of an individual expert, decoupling them and drastically reducing computational overhead.
Experimental Validation
The researchers evaluated MoEEdit on two major benchmarks using state-of-the-art MoE models, including Qwen3-30B-A3B (128 experts) and GPT-OSS-20B (32 experts). They tested on COUNTERFACT (single-hop counterfactual edits) and ZsRE (Zero-Shot Relation Extraction for generalization).
Key Results
MoEEdit significantly outperformed existing dense-model editors adapted for MoEs:
- Efficacy & Generalization: On the Qwen3 backbone (COUNTERFACT), MoEEdit achieved 99.3% efficacy and 94.1% generalization, compared to 89.3% and 82.8% for the next best baseline.
- Routing Stability: The authors measured "Routing Similarity" (how much the expert selection changed after the edit). MoEEdit maintained a similarity of ~88-90%, while standard fine-tuning methods saw similarity plummet to ~20-30%, indicating total routing collapse in baseline methods.
- Scalability: The BCD solver converged in fewer than 10 passes and maintained a nearly constant runtime even as the number of experts increased to 128, whereas "one-shot" global solvers became computationally infeasible after 60 experts.
Key Insights and Future Directions
- Routing is the Achilles' Heel: The paper formally identifies routing instability as the primary failure mode for MoE editing. In dense models, a small weight change is just noise; in MoEs, it can trigger a discrete "wrong turn" at the next router, leading to catastrophic failure.
- Stability via Invariance: By mathematically forcing updates to be orthogonal to the preservation set, you can modify a model's knowledge without changing its "behavioral map."
- Limitations: The current work primarily targets the Feed-Forward Network (FFN) blocks. Future work could explore if similar routing-stable interventions are needed for Attention mechanisms. Additionally, while tested up to 1,000 sequential edits, the long-term capacity limits of these "null-space" constraints remain an open question. Finally, the method relies on the router's initial "Top-K" selection; if the initial routing is poor, the edit might target the wrong experts.
Summary updated