Matching the Training-Time Weight Rule in Inference-Time Expert Deactivation
Summary (Overview)
- This paper systematically compares four expert deactivation implementations (removal, freezing, remaining-expert renormalization, and unnormalized re-routing) on identical disabled sets across five instruction-tuned checkpoints from four model families (OLMoE, DeepSeek-V2, Granite, Qwen3), plus a base OLMoE checkpoint.
- The authors develop a weight-sum model that predicts which implementation causes the most severe performance degradation based on the training-time weight rule: remaining-expert renormalization is most damaging for raw-probability models, while unnormalized re-routing is most damaging for normalized-weight models.
- At 50% deactivation, perplexity ranges from 1.4 to 73 times the intact baseline when the training rule is retained, but 14 to 28,740 times the baseline under a rule mismatch.
- The model extends to inference-time width adjustment: additional renormalization causes increasingly severe perplexity degradation as fewer experts are activated.
- On OLMoE, GSM8K strict-match accuracy falls to zero under all four implementations at 50% deactivation, while multiple-choice task outcomes vary significantly across implementations.
Introduction and Theoretical Foundation
Background
Open-weight mixture-of-experts (MoE) models distribute parameters across expert layers while activating only a small subset of experts per token. Models like OLMoE, DeepSeek-V2, Granite, and Qwen3 follow this architecture. While sparse activation reduces computation per token, the full expert bank still incurs storage, loading, and scheduling costs, motivating expert pruning, offloading, and dynamic routing approaches.
The Core Problem
Deactivating experts requires explicit choices about existing token assignments and their associated weights. The four implementations differ fundamentally:
- Removal (α): Masks disabled experts, re-routes tokens, and recomputes weights using the model's original rule
- Freezing (β): Preserves original routing decisions and surviving weights, removing only disabled experts' weighted contributions
- Remaining-expert renormalization (γ): Leaves vacated slots unfilled but rescales surviving weights to sum to one
- Unnormalized re-routing (δ): Fills vacated slots with replacements, weighting them by raw router probabilities
Training-Time Weight Rules
The training-time weight rule determines how expert weights are computed. For a token representation , the router assigns scores to each of experts and applies softmax:
The experts with highest probabilities form the active set . The layer output is:
Raw-probability models (OLMoE, DeepSeek-V2) use:
Normalized-weight models (Granite, Qwen3) use:
The Weight-Sum Model
For removal, masking disabled experts with total probability gives:
Freezing produces the layer output:
with the removed contribution:
Remaining-expert renormalization multiplies surviving contributions by :
The weight changes are:
For unnormalized re-routing in normalized-weight models, the weight ratio for surviving experts is:
Key prediction: For a fixed model and disabled set, the largest perplexity increase occurs under γ in raw-probability models and under δ in normalized-weight models.
Methodology
Models Evaluated
| Model | Experts | k | MoE layers | Training rule |
|---|---|---|---|---|
| OLMoE-1B-7B | 64 | 8 | 16 | original probabilities |
| DeepSeek-V2-Lite | 64 | 6 | 26 | original probabilities |
| Granite-3.1-3B | 40 | 8 | 32 | renormalized |
| Granite-3.1-1B | 32 | 8 | 24 | renormalized |
| Qwen3-30B | 128 | 8 | 48 | renormalized |
Disabled Set Construction
- Calibration corpus: First 2,000 documents from the first C4 shard, packed into 128 sequences of 2,048 tokens
- Selection criteria: Activation-based ranking (primary), selection frequency, and random sampling (seeds 42, 43, 44)
- Deactivation proportions: 12.5%, 25%, 37.5%, and 50%
- For a given model, proportion, and criterion, the disabled set is identical across all four implementations
Implementation Details
All four operations are applied directly to released checkpoints with fixed model parameters. Hugging Face Transformers is used for loading, and the EleutherAI Evaluation Harness for evaluation. Implementation checks include reproducing the intact model with an empty disabled set and comparing eager execution with fused kernels.
Evaluation Metrics
- Perplexity: WikiText-2 test perplexity with sliding windows of 1,024 tokens and stride 512
- Multiple-choice: ARC-easy, ARC-challenge, OpenBookQA, HellaSwag, BoolQ, RTE, WinoGrande, and MMLU
- Free-form generation: GSM8K with strict and flexible final-answer matching
- Statistical testing: Exact paired McNemar test with Benjamini-Hochberg correction across 21 paired tests
Empirical Validation / Results
Perplexity at 50% Deactivation
The highest perplexity occurs under the predicted rule mismatch for all five instruction-tuned checkpoints:
| Model | Base | α | β | γ | δ |
|---|---|---|---|---|---|
| OLMoE-1B, raw | 10.89 | 232.77 | 798.58 | 16,072.70 | 352.42 |
| DeepSeek-V2-Lite, raw | 9.00 | 45.20 | 17.21 | 258,621.64 | 16.64 |
| Granite-3.1-3B, renorm | 7.89 | 44.26 | 112.63 | 73.98 | 10,301.60 |
| Granite-3.1-1B, renorm | 9.22 | 73.28 | 256.08 | 186.57 | 4,095.87 |
| Qwen3-30B, renorm | 8.01 | 10.90 | 11.23 | 11.54 | 111.84 |
Critical isolation result: On identical DeepSeek-V2-Lite disabled sets, β gives perplexity 17.21 vs. 258,621.64 under γ—a difference of more than four orders of magnitude isolating the effect of weight handling alone.
Task Performance on OLMoE at 50% Deactivation
| Task | Base | α | β | γ |
|---|---|---|---|---|
| Four-option, chance ≈ 25% | ||||
| ARC-easy | 77.3 | 43.3 | 35.8 | 27.7 |
| ARC-challenge | 49.7 | 26.0 | 23.0 | 21.7 |
| OpenBookQA | 32.8 | 21.2 | 19.0 | 15.2 |
| MMLU | 54.2 | 24.5 | 24.0 | 26.4 |
| Two-option, chance ≈ 50% | ||||
| BoolQ | 80.6 | 56.4 | 58.2 | 41.7 |
| RTE | 67.1 | 53.1 | 55.2 | 53.1 |
| WinoGrande | 69.0 | 56.7 | 59.6 | 48.9 |
| Free-form, chance ≈ 0 | ||||
| GSM8K | 36.2 | 0.0 | 0.0 | 0.0 |
Effect of Disabled Set
The disabled set substantially affects outcomes. On Granite-3B with half the experts frozen, activation-based selection gives perplexity 112.6, while three random sets give 11,428 to 93,759 (101 to 832 times higher).
Width Adjustment Experiments
| k | Training rule PPL | Training rule MMLU | Renormalization PPL | Renormalization MMLU |
|---|---|---|---|---|
| 2 | 55.66 | 36.3 | 105,420 | 25.7 |
| 4 | 15.28 | 48.8 | 27,852 | 25.0 |
| 8 | 10.89 | 53.9 | - | - |
| 16 | 10.75 | 53.1 | 88.76 | 24.7 |
| 32 | 12.69 | 48.7 | - | - |
| 64 | 34.44 | 34.7 | - | - |
The perplexity penalty from renormalization increases as the active-expert count decreases, confirming the model's prediction.
Mean Log-Perplexity Increase per Expert Layer
The statistic (where is the perplexity ratio and the number of expert layers) provides a common measure of average degradation:
- DeepSeek-V2-Lite: (26 layers)
- OLMoE: (16 layers)
- Granite-3B: (32 layers)
- Granite-1B: (24 layers)
- Qwen3: (48 layers)
In OLMoE width experiments, is 0.472 at and 0.469 at , within 0.016 of the 50% deactivation value, but decreases to 0.132 at .
Theoretical and Practical Implications
Theoretical Contributions
-
Weight-sum model unification: The paper provides a unified mathematical framework explaining how all four deactivation implementations affect the expert-branch scale relative to the residual, using the training-time computation as the reference.
-
Rule-mismatch prediction: The model correctly predicts which implementation causes the most severe degradation for each model class—γ amplifies the expert branch in raw-probability models, while δ attenuates it in normalized-weight models.
-
Extension to width adjustment: The model's predictions extend beyond fixed expert deactivation to inference-time width changes, validated by OLMoE experiments showing renormalization penalty grows at smaller active-expert counts.
Practical Implications
- Implementation choice matters enormously: The same disabled set can produce perplexity differences spanning four orders of magnitude purely from weight-handling choices.
- Training-time rule as reference: Practitioners should use the training-time weight rule as the reference when implementing expert deactivation or dynamic routing.
- Complementary metrics: Perplexity and task accuracy capture different aspects of degradation—configurations with similar answer accuracy can retain very different sequence likelihoods.
- Generation behavior analysis: Even when strict-match accuracy is zero, generated outputs reveal distinct failure patterns: echo/prompt repetition under α, single-token loops under β, and early termination under γ.
Conclusion
This paper establishes that for a fixed model and disabled set, different choices about routing and expert weights produce substantial performance differences. The weight-sum model connects the high-loss implementation to the training-time weight rule: remaining-expert renormalization amplifies the expert branch in raw-probability models, whereas unnormalized re-routing attenuates it in normalized-weight models.
The OLMoE width experiments validate a further prediction: additional renormalization causes more severe degradation when fewer experts are active. The mean log-perplexity increase per expert layer summarizes degradation magnitude, while multiple-choice and free-form evaluations reveal different task outcomes.
Key recommendation: Inference-time changes to expert availability or active-expert counts should use the training-time weight rule as a reference, with the disabled set and target task informing the choice of implementation.
Limitations and Future Directions
- Experiments cover six checkpoints (1B–30B parameters) with rankings based on a fixed C4 calibration corpus; extending scale and calibration distributions would further test predictions
- Free-form generation is evaluated only on GSM8K; other generation tasks would broaden the analysis
- Whether recovery training can mitigate degradation and how implementation differences evolve during such training remains an open question
Related papers
- MetaCurate: Evolving Curation Filters for High-Quality Agentic Coding Data
MetaCurate evolves executable curation filters via pairwise LLM feedback, achieving state-of-the-art SWE-bench scores without model training and at 3.5x lower search cost.
- Delivered, Not Used: Evaluating Agent Memory at Its Point of Use
MemUse reveals that LLM memory systems deliver mostly irrelevant or unused content, with task outcomes hiding beneficial use in failures and harmful use in successes.
- Iterated Narrow Networks: Turing Completeness at Width 4 on Convex Input Spaces and the Complexity of Verification
A single width-4 iterated ReLU network can simulate any Turing machine on convex inputs, making verification NP-complete, NEXP-complete, or undecidable depending on the time bound.