A Systematic Evaluation of MoE Inference Optimization on Consumer GPUs: An End-to-End Performance Analysis of ExpertCache and PhaseDetector
Mixture-of-Experts (MoE) architectures have become the dominant approach for scaling large language models. Existing MoE inference optimizations—expert caching, dynamic top-k routing, and inference-phase detection—are validated primarily on synthetic data or dedicated clusters, and are seldom subjected to systematic evaluation on real consumer hardware. This work provides a systematic evaluation of two such techniques—ExpertCache and PhaseDetector—on an NVIDIA RTX 4090 (24 GB) using Qwen1.5-MoE-A2.7B (14.3 B total parameters, 2.7 B active, 24 layers, 60 experts, top-k = 4), and localizes the true source of end-to-end latency with the PyTorch Profiler. The evaluation yields four counterintuitive findings. First, PhaseDetector's dynamic top-k mechanism is indeed effective on the GPU side: during the thinking phase, GPU 4-bit expert GEMM device time drops by 55.5% (29.62 ms to 13.17 ms). Second, "saving experts" is not "saving time": under 4-bit quantization, all GPU kernels together account for only 6.0% of the warm single-forward wall-time (35.2 ms of 582 ms), whereas CPU-side work accounts for 89.5% (521 ms), whose largest single operator chain is MoE routing dispatch (the where-to-nonzero chain, 171 ms inclusive CPU time, about 55 ms exclusive)—a cost that does not shrink with top-k. Consequently, the 55.5% cut in GPU GEMM time yields only -15.3% forward latency and -3.4% per-token latency. Third, the accuracy cost of dynamic top-k is statistically negligible: on 200 GSM8K questions the two configurations are indistinguishable (13.0% vs. 12.0%, p = 0.76), and their 95% Wilson intervals overlap (9.0–18.4% and 8.2–17.2%), so the policy trades no measurable accuracy for speed; subsets of this size carry ±4.5–4.7 pp intervals and cannot resolve routing-policy differences of a few points. Fourth, ExpertCache's hit rate saturates at about 2.5%, and the root cause is a misalignment in the cache-key design—the cosine similarity between adjacent tokens' hidden states is too low during per-token generation—rather than an overly strict similarity threshold.
Authors
- Wei Luo
Publication Details
- Journal
- Zenodo (CERN European Organization for Nuclear Research)
- Published
- 2026-11-23
- DOI
- https://doi.org/10.5281/zenodo.24464227
- Primary Topic
- Parallel Computing and Optimization Techniques
- Type
- preprint