TL;DR
RapidMoE is a novel offloading system that enables efficient inference of massive Mixture-of-Experts (MoE) models, like DeepSeek-V3, on single-node workstations. By shifting from expert-level to bit-level offloading—keeping low-precision weights on the GPU and high-precision residuals on the CPU—it achieves up to 3.5× speedup in decoding and 2.1× in prefill compared to current state-of-the-art systems.
What Problem Does This Paper Address?
The recent explosion of large-scale MoE models (e.g., DeepSeek-V3 with 671B parameters) has created a deployment crisis. These models are too large for the VRAM of consumer or workstation GPUs (like the RTX 4090 or A100), yet deploying them on massive cloud clusters is expensive and compromises privacy.
Existing CPU-GPU hybrid systems attempt to bridge this gap but fall into an "offloading dilemma." GPU-centric approaches suffer from PCIe bandwidth bottlenecks when loading experts on demand, while CPU-centric approaches leave powerful GPUs idle while the CPU struggles with heavy computation. As models scale, these systems inevitably violate the strict latency budgets (e.g., 100ms per token) required for interactive use.
Methods
The authors introduce RapidMoE, which identifies and exploits Cross-Asymmetry: the alignment between algorithmic importance skew and hardware resource disparity. The system consists of three core components:
- Residual-Split (RESplit) Framework: Instead of offloading entire experts, RapidMoE splits weights at the bit-level. A lightweight, quantized base ($W^Q$, ~1.75-bit) stays on the GPU, while a high-precision residual ($W^R$) is offloaded to CPU DRAM. This eliminates redundant storage and allows for fine-grained parallel execution.
- Unified Multi-Level Importance Arbitration (UMIA): Not all experts are equally important at all times. UMIA is a runtime engine that adaptively selects a minimal set of "critical experts" to be refined by the CPU residuals. It considers three dimensions of importance:
- Local: The router's confidence score for the current token.
- Spatial: The sensitivity of specific layers (earlier layers are often more critical).
- Temporal: The inference phase (prefill requires higher precision than decoding to maintain KV cache quality).
- Expert-Residual Parallelism: RapidMoE schedules a balanced workload where the GPU processes the low-precision path for all experts while the CPU concurrently computes the high-precision residuals for only the critical experts.
Datasets
The authors evaluated RapidMoE using several mainstream large-scale MoE models: DeepSeek-V3/R1 (671B) and Qwen3-235B.
For accuracy and robustness, they benchmarked on:
- General Knowledge: MMLU-Pro.
- Reasoning: MATH-500 and AIME-24.
- Code Generation: HumanEval and EvalPlus.
- Calibration: A subset of Wikitext-2.
Performance metrics (throughput and latency) were measured using workloads derived from the ShareGPT dataset.
Key Insights and Ideas
- Bit-level > Expert-level: The fundamental shift from treating experts as indivisible units to splitting them by precision bits is the "aha moment." This allows the system to keep the "bulk" of the math on the GPU while using the CPU only for the "fine-tuning" residuals.
- Expert Preserving over Skipping: The authors found that completely skipping non-critical experts (a common optimization) destroys model accuracy. However, keeping them in ultra-low precision (1.75-bit) on the GPU restores most of the lost quality.
- Multi-Level Divergence: Importance is dynamic. A static threshold for "critical experts" is suboptimal. By accounting for layer-wise sensitivity and the difference between prefill and decoding phases, UMIA stays on the optimal accuracy-latency Pareto frontier.
Key Results
RapidMoE significantly outperforms existing offloading baselines like KTransformers and MoE-APEX:
- Speedup: Achieves up to 3.5× speedup in decoding and 2.1× speedup in the prefill stage for DeepSeek-R1.
- Accuracy: Matches or exceeds the accuracy of standard 4-bit (Q4_K_M) models. For example, on DeepSeek-R1, it achieved 96.2% on MATH-500 compared to the 95.6% baseline.
- Memory Efficiency: Reduces DRAM usage by roughly 38% (240GB vs 385GB for DeepSeek-V3) due to the compact RESplit representation, which avoids storing dual copies of weights.
- Throughput: Reaches 43 tokens/s in decoding for DeepSeek-R1 on a workstation with two A800 GPUs.
Limitations and Future Work
- Hardware Sensitivity: The system relies on an asymmetric latency model that must be calibrated for specific hardware (CPU/GPU/PCIe). Changes in DDR bandwidth or GPU throughput will shift the optimal "critical set" size.
- Low Concurrency Focus: RapidMoE is optimized for low-concurrency scenarios (<10 requests). At very high concurrency, the CPU-bound residual computation could become a bottleneck.
- Kernel Portability: While built on the flexible GGUF format, achieving peak performance on non-NVIDIA hardware (e.g., AMD or Intel GPUs) would require porting specialized kernels.
Future work could involve exploring even more aggressive quantization for the GPU base or extending the framework to multi-node heterogeneous environments.
Summary updated