The Inequality: Quantifying the Double Penalty of Mixture-of-Experts at Inference
Organizations: AMD Research and Advanced Development (RAD).
Abstract
Mixture-of-Experts (MoE) models deliver high quality at low training FLOPs, but this efficiency often vanishes at inference. We identify a double penalty that structurally disadvantages MoE architectures during decoding: first, expert routing fragments microbatches and reduces weight reuse; second, massive resident expert pools reduce high-bandwidth memory (HBM) headroom for the KV cache. This phenomenon, formalized as reuse fragmentation, pushes feed-forward networks (FFNs) into a bandwidth-bound regime, especially at long context lengths. We introduce the inequality, a predictive criterion that identifies when MoE is structurally disadvantaged relative to a quality-matched dense model. This criterion unifies sparsity (), the fraction of parameters activated per token, and the quality-equivalence factor (), the size multiplier required for a dense model to match MoE performance. Our evaluation across frontier models including DeepSeek-V3, Qwen3-235B, Grok-1, and Switch-C demonstrates that this fragmentation is a general architectural phenomenon. For DeepSeek-V3 at 128k context, this results in a 4.5x throughput advantage for a quality-matched dense baseline. Crucially, massive architectures like Switch-C can become infeasible on cluster sizes where a quality-matched dense model remains viable. Our results suggest that training-time FLOP efficiency is an incomplete proxy for inference-time performance in long-context serving. They also indicate that MoE may be best viewed as a training-time optimization, with distillation into dense models as a possible path toward inference-efficient deployment.
Figures & tables
| Model | |||||
| DeepSpeed-MoE | 128 | 1 | 0.0078 | ||
| GLaM | 64 | 2 | 0.031 | ||
| GShard | 128 | 2 | 0.016 | ||
| Switch-C | 2048 | 1 | 4.9 × | 0.0015 | |
| ST-MoE | 64 | 2 | 0.031 | 0.093 |
| Category | Reference configuration | Explored / varied |
| Model | Grok-1, Qwen3-235B, DeepSeek-V3, Switch-C | Quality-matched dense vs. MoE |
| Context | L = 131,072 tokens | 1K to 16M tokens |
| Hardware | 180 GB HBM3e, 8.0 TB/s HBM bandwidth, 4.5 PFLOPS FP8 / 2.25 PFLOPS BF16 dense compute | 25% capacity and bandwidth |
| Interconnect | High-bandwidth intra-node interconnect | 900 GB/s (primary), 448 GB/s (secondary) (uni-dir) |
| Parallelism | TP=8, EP=4, PP=1, KVP=4 | TP , EP , PP , KV |
| Communication | Ring collectives, phase-aware overlap | Startup latency ( ), overlap fractions ( ), CP ring tail |
| Model | GPUs | |||||||||||
| Qwen3-235B | 64 | 5 | (128, 8) | 0.0625 | 0.313 | 86 | 89 | 5.38 | 89 | 16.0 | 1.03 | 16.48 |
| DeepSeek-V3 | 32 | 5 | (256, 8) | 0.0313 | 0.156 | 100 | 130 | 3.12 | 130 | 32.0 | 1.30 | 41.60 |
| DeepSeek-V3 | 64 | 5 | (256, 8) | 0.0313 | 0.156 | 244 | 267 | 7.63 | 267 | 32.0 | 1.13 | 36.16 |
| Grok-1 | 64 | 5 | (8, 2) | 0.2500 | 1.250 | 127 | 114 | 31.75 | 114 | 4.0 | 0.90 | 3.60 |
| Grok-1 (Sens.) | 64 | 3 | (8, 2) | 0.2500 | 0.750 | 127 | 143 | 31.75 | 143 | 4.0 | 1.13 | 4.52 |
| Grok-1 (Sens.) | 64 | 2 | (8, 2) | 0.2500 | 0.500 | 127 | 158 | 31.75 | 158 | 4.0 | 1.24 | 4.96 |
| Rel. Tput (%) | |||||
| Context | MoE | Dense-5 | Speedup | ||
| 1k | 31349 | 34263 | 100 | 214 | |
| 16k | 1959 | 2141 | 31 | 163 | |
| 32k | 979 | 1070 | 18 | 88 | |
| 128k | 244 | 267 | 5 | 23 | |
| 1024k | 30 | 33 | 0.7 | 2.9 | |
| Relative Latency | |||||
| Context | Model | HBM | Comp. | Comm. | Gap Driver |
| 1k | MoE | 3 | 1 | 17 | Comm. (+17) |
| Dense | 1 | 10 | 0 | — | |
| 128k | MoE | 433 | 32 | 23 | HBM (+361) |
| Dense | 72 | 48 | 5 | — | |
| Rel. Tput (%) | ||||
| Model | MoE | Dense | ||
| Qwen3-235B | 86 | 89 | 100 | 436 |
| Grok-1 ( ) | 127 | 114 | 100 | 158 |
| Grok-1 ( ) | 127 | 143 | 100 | 204 |
| Grok-1 ( ) | 127 | 158 | 100 | 228 |
| Switch-C-2048 | infeasible | – | – | – |
Mixture-of-Experts Inference
Mixture-of-experts inference studies how to run sparsely activated expert models efficiently while preserving their quality.
See all 175 papers