Architecture
~9 min readUpdated: November 2026

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

CED-MoE Calibrated Expert Deferral Serving Architecture in Smoke Monkey

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.

Technical Review: Smoke Monkey Core Architecture Team
Tested on Node.js 18+ & BunTypeScript 5.x
Quick Answer & Executive Definition

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.

Key Architectural Takeaways
Quick Implementation Exampleced-moe-tiered-agent.ts
ced-moe-tiered-agent.tstypescript
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 batch
ced_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);
Video Guides

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 / MetricQwen3-30B-A3B C4 PPLGSM8K Accuracy RetainedRouted Expert CallsvLLM Prefill Throughput
Full-Budget Frozen MoEBaseline100%100%1.00x
CED-MoE (Calibrated Deferral)-17.5% vs NAEE & ACE96.7% (+16.9 pts vs NAEE)-60.8%Up to 1.44x
NAEE / ACE (Renormalized)>6x PPL penalty from renorm79.8% (16.9 pts behind CED)Matched computeLower 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.

python
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_mask

Never 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.

Google Search Questions & Answers

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 guides

Build with Smoke Monkey Harness

Zero dependencies. 24 built-in tools. Human-in-the-loop safety. 100% open source under the MIT License.

npm install smoke-monkey-harness