Routed Sparsity Saves FLOPs and Buys a Barrier
006 argued that a synchronous cohort pays for silicon variability at the maximum, not the mean, and 007 carried that to inference, noting that mixture-of-experts routing stacks a second imbalance on the first. This note takes that second imbalance on its own: data-dependent work is the third source of max-not-mean loss, and it applies whether or not the silicon is uniform.
Routed and other data-dependent sparsity promises to skip operations whose inputs or weights contribute nothing useful. The arithmetic saving is real when the machinery can find the omitted work cheaply and spread the remaining work evenly. The shortcut is to read the retained fraction as a runtime forecast — from a datasheet peak quoted “with sparsity” at twice the dense figure,1 or from a model’s active parameters (DeepSeek-V3: 671B total, 37B activated per token).2 Neither number is wrong. The error is treating it as elapsed time.
Half the arithmetic, a slower layer
Take an illustrative eight-worker layer with 8 ms of dense compute per worker. Routed-expert sparsity cuts mean useful arithmetic to 4 ms, but the busiest worker still needs 7 ms, and exposed routing plus synchronization adds 2 ms on that worker’s critical path. The layer now takes 9 ms against 8 ms dense. Half the average arithmetic has gone and elapsed time has risen. This is a mechanism example, not a benchmark: a balanced partition with cheap communication reverses it. It also assumes the dense baseline carries no per-layer collective of its own; where it does, compare the two critical paths directly.
Over the phases a routed layer actually runs — dispatch, expert compute, combine — the stage time is a per-worker variant of Valiant’s bulk synchronous superstep:3
A break-even rule
Let d be the retained fraction of dense work, ρ the ratio of the busiest worker’s compute to the mean, O the incremental exposed overhead, and T the dense stage time. For a latency-bound synchronous stage, sparsity wins if and only if
| Imbalance ρ | Stage, no overhead | Stage, 2 ms overhead | Dense |
|---|---|---|---|
| 1.00 | 4 ms | 6 ms | 8 ms |
| 1.25 | 5 ms | 7 ms | 8 ms |
| 1.50 | 6 ms | 8 ms | 8 ms |
| 1.75 | 7 ms | 9 ms | 8 ms |
| 2.00 | 8 ms | 10 ms | 8 ms |
With no overhead at all, the limit is ρ < 2; with the busiest worker at 7 ms, the overhead budget is 1 ms. The rule also has a bracket in which density alone decides. If d + O/T ≥ 1, sparsity loses even under perfect balance. If a capacity factor caps how much work any expert may take, the maximum is bounded and sparsity can win regardless — but the cap is paid for: Switch Transformers routes overflow tokens past the layer unprocessed, and a larger capacity factor “increases computation and communication costs.”4 Outside that bracket, average density cannot settle the question, because a mean does not bound a maximum.
The imbalance is real, and so is the remedy
The systems literature measures the skew and prices its cures. Tutel reports that expert workload “changes up to 4.38×” within a single training run, and that different layers carry different load.5 DeepSeek-V3 found that cross-node expert parallelism gave “an inefficient computation-to-communication ratio of approximately 1:1,” built a new pipeline schedule to hide it, and deploys redundant copies of high-load experts — 32 for prefill, one extra per GPU.2 MegaBlocks frames the core trade directly: users “must choose between dropping tokens from the computation or wasting computation and memory on padding,” and by removing that choice it reports training speedups of up to 2.4× over a dense Megatron-LM baseline.6
That last figure is the right comparator. For routed experts the fair baseline is a dense model of equal quality, not the same model run dense — and on that basis published systems often win, precisely by paying for balance through capacity factors, replication and block-sparse kernels. Padding and replication are not failures; they are explicit purchases of predictability, and they belong in the comparison.
Fixed-pattern structured sparsity is a different mechanism. NVIDIA’s Sparse Tensor Cores exploit a 2:4 pattern for twice the math throughput of dense units,7 and because every block carries the same sparsity the work is balanced by construction. It adds no cross-worker barrier; its shortfall, where there is one, is kernel efficiency on a given matrix shape. Merging the two under “sparsity” hides which problem a buyer actually has.
What a price per FLOP counts
Babbage’s headline BI-G is a basket of hourly per-GPU prices with no FLOP term. Its $/TFLOP-hr view is the separate performance index, which divides each chip’s price by its dense FP16 rating — 989 TFLOPS for H100, 2,250 for B200. The vendor figures quoted “with sparsity” are 1,979 and 4,500;1,8 dividing by those would cut every $/TFLOP-hr figure to about 50% of its dense value without changing a single price. Babbage uses dense ratings deliberately. But a dense denominator is still peak arithmetic. It cannot see whether the arithmetic a sparse model skips shortens the service’s constrained path — the useful-work question 008 asks of the GPU hour, one level down.
So evaluate the distribution of worker completion times, not only operation-count reduction. Count useful — non-zero, non-padded — operations per second of stage wall time. Trace padded work, metadata traffic, dispatch queues and waiting at every synchronization point under realistic input skew, and hold accuracy fixed, since pruning or routing changes can alter the task itself. Does your $/TFLOP denominator count arithmetic removed, or the barrier time that removal actually releases?
References
- NVIDIA H100 Tensor Core GPU product page: BFLOAT16/FP16 Tensor Core 1,979 teraFLOPS, footnoted “With sparsity.” nvidia.com
- DeepSeek-AI, “DeepSeek-V3 Technical Report.” arXiv:2412.19437
- Valiant, “A Bridging Model for Parallel Computation,” Communications of the ACM 33(8), 1990.
- Fedus, Zoph, Shazeer, “Switch Transformers: Scaling to Trillion Parameter Models with Simple and Efficient Sparsity,” JMLR. arXiv:2101.03961
- Hwang, Cui, Xiong et al., “Tutel: Adaptive Mixture-of-Experts at Scale.” arXiv:2206.03382
- Gale, Narayanan, Young et al., “MegaBlocks: Efficient Sparse Training with Mixture-of-Experts.” arXiv:2211.15841
- Mishra, Albericio Latorre, Pool et al., “Accelerating Sparse Deep Neural Networks.” arXiv:2104.08378
- NVIDIA HGX platform page: HGX B200 FP16/BF16 Tensor Core 36 PFLOPS for eight GPUs, footnoted “Specification in Sparse. Dense is ½ sparse spec shown.” nvidia.com
Provenance note, per house style. Illustrative: the 8 ms, 4 ms, 7 ms and 2 ms layer timings. Computed on this page from them: the 9 ms sparse stage, ρ = 1.75, the break-even ρ of 1.5 (and 2 with no overhead), the 1 ms overhead budget, and the imbalance table. Quoted: the H100 and HGX B200 sparse ratings and their dense equivalents (refs 1, 8), DeepSeek-V3’s parameter counts, 1:1 ratio and redundant experts (ref 2), Switch’s capacity-factor trade (ref 4), Tutel’s 4.38× workload swing (ref 5), MegaBlocks’ drop-or-pad framing and 2.4× result (ref 6), and the 2:4 throughput doubling (ref 7). Each is a single system’s result, scoped to its own setup.