CED-MoE: Calibrated Expert Deferral & Reversible Tiers in vLLM

CED-MoE (`arXiv:2611.34983`) introduces Calibrated Expert Deferral to turn frozen Mixture-of-Experts (MoE) models into elastic, reversible service tiers inside vLLM. Unlike NAEE and ACE, CED preserves native gate weights without renormalization—delivering 17.5% lower C4 perplexity on Qwen3-30B-A3B, 96.7% GSM8K accuracy with 60.8% fewer expert calls, and 1.44x prefill throughput.
CED-MoE: Calibrated Expert Deferral & Reversible Tiers in vLLM: CED-MoE (`arXiv:2611.34983`) introduces Calibrated Expert Deferral to turn frozen Mixture-of-Experts (MoE) models into elastic, reversible service tiers inside vLLM. Unlike NAEE and ACE, CED preserves native gate weights without renormalization—delivering 17.5% lower C4 perplexity on Qwen3-30B-A3B, 96.7% GSM8K accuracy with 60.8% fewer expert calls, and 1.44x prefill throughput. Designed as a zero-dependency, open-source TypeScript architecture under the MIT License with native Model Context Protocol (MCP) support and deterministic phase state machines.
- Fixes the Renormalization Bug: Eliminates the >6x perplexity spike caused by NAEE/ACE gate-weight renormalization.
- 60.8% Fewer Routed Experts: Preserves 96.7% of full-budget GSM8K reasoning accuracy while cutting over half of expert calls.
- 1.44x vLLM Prefill Throughput: Grouped kernel execution converts skipped experts directly into lower latency and higher batch capacity.
- Instant Per-Batch SLA Switching: Each service tier is a single threshold calibrated on unlabeled C4 router traces—no weight reload required.
import { createAgent } from '@smoke-monkey/harness';const elasticMoeAgent = createAgent({agentId: 'ced-moe-elastic-vllm',provider: 'custom',baseUrl: 'http://127.0.0.1:8000/v1',model: 'Qwen/Qwen3-30B-A3B',workspacePath: process.cwd(),permissions: {read_file: 'allow',write_file: 'allow',run_command: 'ask',},extraBody: {// Switch between Economy (tau_high) and Full-Budget (0.0) per batchced_deferral_threshold: 0.18,},});async function runTieredVerification() {const result = await elasticMoeAgent.run('Run rapid diff triage at Economy CED tier, then escalate failing unit tests to full-budget expert routing.');console.log('CED-MoE Tier Output:', result.summary);}runTieredVerification().catch(console.error);
Watch: Related Video Guides
A Visual Guide to Mixture of Experts (MoE) in LLMs
vLLM Semantic Router Explained: Route AI Requests Through One API
What Is CED-MoE? Why Gate Weight Renormalization Breaks MoE Skipping
Production Mixture-of-Experts checkpoints execute a fixed number of experts per token (top_k), making it hard for serving stacks to shed compute under traffic spikes. Prior dynamic expert-skipping methods such as NAEE and ACE drop low-scoring experts and renormalize the remaining router weights so they sum to 1.0—an adjustment that inflates the residual expert branch gain and raises perplexity more than six times as much as changing which experts were skipped.
CED-MoE (arXiv:2611.34983) solves this via Calibrated Expert Deferral (CED). A prefix-relative router score determines which later experts execute, retained experts keep their original unnormalized mixture coefficients, and one scalar threshold calibrated on unlabeled router traces bounds every token's compute depth.
CED-MoE Benchmarks vs NAEE & ACE on Qwen3-30B-A3B & GSM8K
Across three MoE model families and 18 calibrated budget comparisons, CED wins every single evaluation against NAEE while transferring zero-shot from unlabeled C4 language modeling traces to arithmetic reasoning.
| Method / Metric | Qwen3-30B-A3B C4 PPL | GSM8K Accuracy Retained | Routed Expert Calls | vLLM Prefill Throughput |
|---|---|---|---|---|
| Full-Budget Frozen MoE | Baseline | 100% | 100% | 1.00x |
| CED-MoE (Calibrated Deferral) | -17.5% vs NAEE & ACE | 96.7% (+16.9 pts vs NAEE) | -60.8% | Up to 1.44x |
| NAEE / ACE (Renormalized) | >6x PPL penalty from renorm | 79.8% (16.9 pts behind CED) | Matched compute | Lower effective quality/FLOP |
Because each service tier maps to a single floating-point threshold, vLLM swaps quality-cost tiers between consecutive batches without duplicating model weights or reloading CUDA graphs.
Calibrating Thresholds & Grouped Execution Inside vLLM
To deploy CED-MoE without fine-tuning, collect unlabeled router logits on a small calibration slice (e.g., 512 sequences of C4), sweep the prefix-relative deferral threshold tau to match target expert-call budgets (such as 40% or 65% compute), and preserve raw softmax probabilities for all executed experts.
import torch
def apply_ced_deferral(topk_weights: torch.Tensor, topk_ids: torch.Tensor, tau: float):
"""
Prefix-relative deferral: keep top-1 anchor, defer later experts whose
weight falls below tau * prefix_cumulative_weight. Do NOT renormalize!
"""
cum_prefix = torch.cumsum(topk_weights, dim=-1) - topk_weights
keep_mask = torch.ones_like(topk_weights, dtype=torch.bool)
# Always keep primary expert (index 0); test subsequent ranks against tau
keep_mask[:, 1:] = topk_weights[:, 1:] >= (tau * cum_prefix[:, 1:])
# Zero out deferred experts WITHOUT renormalizing retained gate weights
deferred_weights = topk_weights * keep_mask.to(topk_weights.dtype)
return deferred_weights, topk_ids, keep_maskNever Renormalize Retained Gate Weights
Renormalizing surviving MoE gate weights artificially scales the FFN residual output. Keeping native mixture weights accounts for more than 6x of CED-MoE's perplexity advantage over NAEE and ACE.
Dynamic SLA Tiers for Multi-Agent Swarms in Smoke Monkey
Autonomous coding swarms generate bursty workloads—dozens of background file-summarization calls alongside latency-critical test repairs. Routing low-risk summarization batches through an economy CED threshold while reserving full-budget expert execution for verification turns yields major GPU cost savings on a single vLLM deployment.
Frequently Asked Questions
Q:Why does CED-MoE outperform NAEE and ACE at matched MoE compute?
NAEE and ACE renormalize retained gate weights after dropping experts, inflating the expert branch gain and causing over 6x more perplexity degradation than the expert selection itself. CED-MoE keeps native mixture weights intact.
Q:Does switching service tiers in CED-MoE require reloading the MoE model in vLLM?
No. Each service tier is controlled by a single scalar deferral threshold passed per batch, allowing instant reversible SLA switching on one frozen checkpoint.
Q:How much speedup and compute reduction does CED-MoE achieve?
In evaluations on Qwen3-30B-A3B and GSM8K, CED-MoE keeps 96.7% of full-budget accuracy with 60.8% fewer routed expert calls and converts savings via grouped execution into up to 1.44x vLLM prefill throughput.
Q:Do CED-MoE thresholds need task-specific recalibration?
No. A single threshold calibrated on unlabeled C4 router traces maintains its target expert budget across downstream tasks including arithmetic generation on GSM8K.
Related Alternatives & Comparisons
Related Architecture Guides
View all guidesBest Open Source Coding Agents in 2026: Free, Local & Fully Hackable Harnesses
MCP Server Security Best Practices: Hardening Model Context Protocol Agents in 2026
Open Source Coding Agent Harness: Build a Forkable, Local AI Engineering Runtime
Build with Smoke Monkey Harness
Zero dependencies. 24 built-in tools. Human-in-the-loop safety. 100% open source under the MIT License.