RIVET: Training-Free MoE Self-Speculative Decoding (1.55x Speedup)

RIVET (arXiv:2612.01990) is a training-free, distribution-preserving self-speculative decoding framework for Mixture-of-Experts LLMs. Combining verifier-guided online FFN layer skipping, router-entropy expert budgets, and adaptive draft lengths, RIVET achieves up to 1.55x wall-clock speedup on DeepSeek-MoE-16B and 1.49x on Qwen3-30B-A3B in vLLM 0.11.0.
RIVET: Training-Free MoE Self-Speculative Decoding (1.55x Speedup): RIVET (arXiv:2612.01990) is a training-free, distribution-preserving self-speculative decoding framework for Mixture-of-Experts LLMs. Combining verifier-guided online FFN layer skipping, router-entropy expert budgets, and adaptive draft lengths, RIVET achieves up to 1.55x wall-clock speedup on DeepSeek-MoE-16B and 1.49x on Qwen3-30B-A3B in vLLM 0.11.0. 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.
- Up to 1.55x Wall-Clock Speedup: Reaches 1.44x macro-average speedup (1.55x on Math) on DeepSeek-MoE-16B and 1.40x macro-average (1.49x on Translation) on Qwen3-30B-A3B.
- Zero Auxiliary Draft Weights: Reuses the target MoE checkpoint itself via sparse expert subsets, removing extra draft-model training, VRAM allocation, and KV-cache duplication.
- Beats Dense Self-Speculation by >2x: Adapted dense baselines (Draft & Verify 0.69x, SWIFT 0.38x, KnapSpec 0.77x) actually slow down MoE models, whereas RIVET accelerates every Spec-Bench category.
- Batch-Size Resilient: Adaptive draft length and entropy-corrected expert budgets retain speedups as serving batch size scales in vLLM.
import { createAgent } from '@smoke-monkey/harness';import { execFile } from 'node:child_process';import { promisify } from 'node:util';const execFileAsync = promisify(execFile);// Autonomous serving engineer agent running RIVET vs AR sweeps on Qwen3-30B-A3Bconst agent = createAgent({agentId: 'rivet-moe-perf-engineer',provider: 'ollama',model: 'qwen3:8b',workspacePath: process.cwd(),permissions: {read_file: 'allow',write_file: 'allow',run_command: 'ask',},});async function measureVllmThroughput(modelId: string, enableEager = false) {const args = ['-m', 'vllm.entrypoints.openai.api_server','--model', modelId,'--dtype', 'bfloat16','--max-model-len', '8192',...(enableEager ? ['--enforce-eager'] : []),];console.log('Target vLLM launch config:', ['python3', ...args].join(' '));const { stdout } = await execFileAsync('python3', ['--version']);return stdout.trim();}async function main() {const pyVer = await measureVllmThroughput('Qwen/Qwen3-30B-A3B');const analysis = await agent.run(`Environment ${pyVer} ready. Compare RIVET 3-level expert tailoring against fixed Top-4/Top-6 drafting on Qwen3-30B-A3B.`);console.log(analysis.summary);}main().catch(console.error);
Watch: Related Video Guides
Efficient MoE LLM Inference on Arm with vLLM and OpenVINO - Abhishek Jain & N Maajid Khan
Speculative Decoding with MTP on vLLM — Live Demo
Why Dense Self-Speculative Decoding Fails on MoE Models
RIVET (Router-Informed, Verifier-Guided Expert Tailoring) is a training-free, mathematically lossless self-speculative decoding framework built specifically for Mixture-of-Experts LLMs. Instead of skipping entire transformer blocks as dense drafters do, RIVET pairs verifier-guided FFN layer skipping with dynamic, entropy-aware routed expert reduction while keeping shared experts intact.
Adapted dense self-speculative methods—such as Draft & Verify (0.69x), SWIFT (0.38x), and KnapSpec (0.77x)—actually run slower than vanilla autoregressive decoding on MoE backbones because coarse layer dropping tanks candidate acceptance rates (31.8% for Draft & Verify on DeepSeek-MoE-16B). Measured on an NVIDIA RTX PRO 6000 Blackwell Server Edition (96 GB) with PyTorch 2.8.0, CUDA 12.8, and vLLM 0.11.0 across Spec-Bench, RIVET achieves 1.44x macro-average speedup on DeepSeek-MoE-16B and 1.40x on Qwen3-30B-A3B.
| Method (DeepSeek-MoE-16B, Native Top-6) | MT-Bench Spd / α | Math Spd / α | RAG Spd / α | Macro Avg Speedup | Macro Avg α |
|---|---|---|---|---|---|
| Draft & Verify | 0.62x / 31.5% | 0.73x / 35.7% | 0.69x / 34.3% | 0.69x (slower) | 31.8% |
| SWIFT | 0.36x / 74.5% | 0.44x / 73.1% | 0.37x / 77.4% | 0.38x (slower) | 72.4% |
| KnapSpec | 0.75x / 79.0% | 0.81x / 88.2% | 0.77x / 79.4% | 0.77x (slower) | 80.5% |
| Fixed Top-4 | 1.39x / 83.2% | 1.43x / 86.5% | 1.38x / 82.5% | 1.38x | 82.7% |
| RIVET (Ours) | 1.45x / 80.5% | 1.55x / 85.3% | 1.39x / 77.4% | 1.44x | 80.2% |
Inside RIVET’s 3-Level Sparse Draft Decision Hierarchy
Every speculative round r updates RIVET's lightweight controller using zero-cost signals already produced during target verification:
- Verifier-Guided Online FFN Selection: During target verification, RIVET measures each FFN layer's relative residual contribution
e_l^(r)over verified tokens and tracks an exponential moving averagemu_{l,r}. Only later draft steps skip low-contribution FFN layers, preserving early-token accuracy. - Router-Informed Expert Allocation: Using cumulative router probability mass
M_{l,t}^{(r)}(k)and normalized router entropyH_{l,t}^{(r)}, RIVET grants more experts when routing is uncertain (high entropy) and shrinks to fewer routed experts when router mass concentrates. - Request-Adaptive Draft Length: Rather than fixing
Gamma = 4, RIVET tracks smoothed per-request acceptance yieldy_r = (a_r + 1) / (Gamma^(r) + 1)minus its deviation to dynamically scale draft horizon per prompt.
Qwen3-30B-A3B Speedup Without Finetuning
On Qwen3-30B-A3B (native Top-8 routed experts), RIVET reaches 1.49x speedup on translation (90.0% acceptance) and 1.46x on math (90.3% acceptance) while preserving exact target output distributions.
Reproducing the vLLM 0.11.0 MoE Benchmarking Environment
RIVET targets standard Hugging Face MoE checkpoints (deepseek-ai/deepseek-moe-16b-chat and Qwen/Qwen3-30B-A3B) on vLLM 0.11.0+ with CUDA 12.8 and PyTorch 2.8.0.
# Create isolated benchmark environment matching RIVET paper setup
uv venv rivet-env --python 3.12 && source rivet-env/bin/activate
uv pip install torch==2.8.0 vllm==0.11.0 transformers==4.57.6
# Pull target MoE checkpoints for Spec-Bench evaluation
hf download Qwen/Qwen3-30B-A3B
hf download deepseek-ai/deepseek-moe-16b-chatFrequently Asked Questions
Q:Does RIVET change the output distribution of DeepSeek-MoE or Qwen3-30B-A3B?
No. RIVET runs the full target MoE model during verification using standard speculative acceptance sampling, guaranteeing lossless, distribution-preserving outputs.
Q:Why does RIVET keep shared experts active during drafting?
In DeepSeek-MoE architectures, shared experts capture dense cross-domain representations. RIVET trims only the routed expert budget based on router entropy while keeping shared experts untouched.
Q:How does RIVET outperform fixed Top-4 or Top-2 sparse drafting?
Fixed Top-k budgets waste compute on confident tokens and cause rejections on ambiguous tokens. RIVET pairs entropy-adaptive expert allocation with verifier-guided FFN layer skipping to reach 1.44x vs 1.38x (Fixed Top-4) on DeepSeek-MoE-16B and 1.40x vs 1.33x (Fixed Top-6) on Qwen3-30B-A3B.
Q:Does RIVET require extra GPU memory for a draft model?
No. Because RIVET derives its sparse draft path directly from the loaded target MoE weights, it requires zero additional model weights or separate draft KV caches.
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.