A fused TPU kernel cuts expert-work delays in MoE inference
Fuse-All MoE Inference Kernel with Load Balancing on TPUs · arXiv:2611.17857

In plain words
Some language models send each piece of input to only a few specialist parts, called experts. On a TPU, the model can slow down when too much work lands on one device or when results have to move between devices.
Fuse-All MoE is a TPU kernel that combines expert calculations with sending their results to the right place, then balances work differently for large prompts and small next-token batches.
In tests, balancing brought a skewed prompt workload’s kernel runtime close to a fixed balanced-workload reference.
The research
For TPU Mixture-of-Experts inference, one execution arrangement may not address both concentrated work in large prompt batches and weight-reading costs in small next-token batches.
These results make the choice of arrangement a concrete performance question: balancing can help in the tested regimes, but the measured gains differ by stage.
Fuse-All MoE is a TPU kernel that combines expert calculations with output writes and balances work differently for large prompt batches and small next-token batches.
Kernel measurements compared imbalance handling on a skewed prompt workload with a fixed balanced-workload kernel-time reference; runtime fell from 2.3x to 1.09x that reference. For decode inputs of 32–512 tokens, sharing each active expert across two chipmates cut kernel-operation latency by up to 21.3% against fused EP16. Together, the results show lower measured kernel costs in the tested regimes.
A whole-stack serving comparison also reported 12–34.5% higher throughput than a Megablox-based EP16 baseline across request mixes and batch sizes, but it included other serving-stack changes.
The evaluation used one TPUv7 slice and one FP4 model configuration, and it did not isolate each kernel mechanism’s contribution.
What the evidence shows
- One design, two bottlenecks
Fuse-All MoE is a TPU kernel design that combines expert calculations, output communication, and load balancing for Mixture-of-Experts inference. These models route each input piece to only some experts, so one device can receive much more work than another.
The design keeps final output destinations fixed while changing how expert work is scheduled or placed.
- Skew matters in prefill
For a measured skewed EP16 prompt-processing workload, kernel runtime fell from 2.3 times to 1.09 times the same fixed balanced-workload kernel reference. This is a comparison of relative kernel times under the tested skew, not a claim about absolute runtime or every routing pattern.
It indicates that the tested imbalance handling brought runtime much closer to the balanced reference.
- A separate decode arrangement
Compared with fused EP16, sharing each active expert across chipmates lowered measured decode kernel-operation latency in the tested token-count range. This suggests the arrangement can help under those decode conditions, though the reported maximum does not apply to every input size.
- Serving gains have limits
The integrated serving system reported 12–34.5% higher throughput than a Megablox-based EP16 baseline across request mixes and batch sizes. That comparison includes other serving-stack changes, so it cannot show how much of the gain came from the kernel.
The aggregate results also do not separate the effects of individual scheduling and communication mechanisms.
Deep
- Original paper authors
- Rupeng Liu, Bangsheng Tang, Zongwei Zhou, Chengji Yao, Yejin Lee
- Submitted to arXiv
- License
- CC BY 4.0