# GC-MoE: Overlapping Expert-Parallel Token Dispatch with FP8/FP4 Grouped GEMM via CUDA Green Contexts

GC-MoE splits a GPU so MoE dispatch and expert GEMMs run concurrently

Yong Li, Kan Liu, Tao Lan · arXiv · 2026-11-3

- **Problem** Fused MoE kernels overlap token dispatch with expert GEMMs only by sharing every SM, so the phases compete for the same registers, shared memory, and issue slots. Decode batches are small, so this contention costs latency.
- **Method** GC-MoE uses CUDA Green Contexts to split the GPU into a 20-SM communication partition and a 128-SM compute partition on B300. Dispatch and the grouped GEMM run as concurrent kernels in separate synchronization domains, so each can be tuned independently.
- **Results** On 8 B300 GPUs, GC-MoE speeds up GLM-5.2 and DeepSeek-V4.1-Flash decode by 1.106x and beats Mega MoE at all 54 measured points across both platforms.

## Why fused MoE kernels stall at decode

In expert-parallel serving, each layer sends every token to its top-k experts, computes them locally, and returns the partial outputs to the source ranks. Decode-sized tokens leave each local expert with a tiny M dimension, so the grouped GEMM is bandwidth-bound and the dispatch stage is latency-bound. A bandwidth-bound GEMM gains little from extra SMs, yet a single fused kernel still spans all SMs.

DeepGEMM's Mega MoE is the reference fused operator, and it fuses dispatch, the FP8×FP4 grouped GEMMs with SwiGLU, and the combine into one kernel. The authors identify three costs of this design, starting with compute warps that never own a whole SM, so per-SM GEMM throughput falls below what a dedicated SM delivers. The third cost is that all roles share one CTA's 64512 registers and 227KB of shared memory, so a local optimization is paid for by the whole kernel.

The authors model the fused critical path as Tmega = t\_pro + max(T\_shared\_pull, T\_shared\_gemm) + max(T\_combine, t\_clean + t\_tag2), where t\_pro is the prologue. The two middle terms run concurrently on one shared SM array, so dispatch and GEMM compete for the same resources.

The authors also point to two trends that make this worse: low-precision formats moving from FP8 activations to FP4 weights, and existing overlap methods that don't isolate SM resources inside the operator. GC-MoE responds by giving dispatch and compute separate SM partitions and separate synchronization domains, so each role can be tuned on its own.

## Giving dispatch and compute their own SMs

The key idea is to split the device with CUDA Green Contexts into a communication partition for dispatch and a compute partition for the grouped GEMM, then run both kernels at once. A green context owns a subset of SMs, and kernels launched into it run only on those SMs, so two contexts run side by side with no MPS daemon. The driver exposes the SM resource, splits it by count, and creates a green context over the result, so the application requests a size and the driver picks the usable partition.

On B300 the default request yields a split of 20 communication SMs and 128 compute SMs out of 148. Balanced workqueues give each context its own hardware queue, because otherwise two contexts can land on one queue and serialize the kernels the design wants to overlap.

The reasoning starts from the observation that dispatch needs SMs but no tensor cores, while decode GEMM needs tensor cores yet stays bandwidth-bound. Because the grouped GEMM gains little from extra SMs, ceding 20 SMs to dispatch costs little compute throughput. The layer becomes a child CUDA Graph in which role1 for dispatch and role2 for the grouped GEMM are concurrent roots.

Role3 depends on both roles, so it finalizes after dispatch and GEMM finish.

![Table 1: Roles of the SM103 CUDA Graph (three nodes; on SM90, fused shared experts add a fourth node). dispatch\_sms/compute\_sms are the driver-aligned partitio…](https://refivu.com/papers/523301d6-5adb-45ac-9ad2-59d6cbaaacb7/figures/figure-2fdf710214e90d4769be5765c11f7843.png?thumb=512)

**Table 1** : Roles of the SM103 CUDA Graph (three nodes; on SM90, fused shared experts add a fourth node). dispatch\_sms/compute\_sms are the driver-aligned partition sizes.finalize\_sms is min(compute\_sms, 64) at up to 128 tokens per rank andcompute\_sms above that; with fused shared experts it is additionally tightened by the combine geometry tomax(min(compute\_sms, e+ 1),⌈T·combine chunks/8⌉).

[Original paper](https://arxiv.org/abs/2611.04222v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Yong Li, Kan Liu, Tao Lan · GC-MoE: Overlapping Expert-Parallel Token Dispatch with FP8/FP4 Grouped GEMM via CUDA Green Contexts · Original paper figure · Extracted the figure area from page 7 of the original PDF.

Table 1 lists each role with its green context, grid size, thread count, and cluster shape. Role1 runs on the communication context with 256 or 384 threads, while role2 uses the 384-thread compute grid with a (2,1,1) cluster. The partition also shrinks the synchronization domain, since role1's grid syncs span only the 20 dispatch SMs. The baseline's prologue and tail grid syncs span all 148 SMs instead.

## How dispatch hands tokens to the GEMM

Dispatch writes pulled tokens into one reused token ring of BM-token blocks instead of allocating per-expert buffers. The compute kernel's TMA producer waits until l1\_full\_count reaches BM times generation plus one, so the GEMM starts on the first filled block.

Generation tags make block reuse safe within a replay, because dispatch waits for the consumers to release the previous generation before overwriting a block. Within a block, the W1 epilogue sets bits in a 64-bit l2\_full\_mask, and each W2 K128 tile waits for exactly its two bits, a design that requires \\( 2I/128 \\le 64 \\). Role1 counts tokens, runs a tag-1 NVLink barrier, and then pulls the tokens, scales and routing metadata from the peers.

Double-buffered receive counters let role3 flip parity instead of waiting for a tag-2 barrier, so consecutive replays need no cross-rank rendezvous. The W2 epilogue writes BF16 partials straight to the source rank's combine buffer, so the combine step only reduces.

## One GEMM, two instruction paths

The compute kernel runs the same FP8-activation by FP4-weight grouped GEMM on both architectures, but it reaches the tensor core through different instructions. The operands are swapped, so the instruction's A operand is the weight tile and B is the activation tile, which makes the token dimension the MMA's N dimension.

A runtime-selected format id picks the format, and the CuTe DSL's public block-scaled MMA requires matching A and B dtypes, so the authors emit the instruction as an inline-PTX user op. Scale factors move through the dedicated UTCCP path: per K128 stage, activation scales are copied to TMEM with tcgen05.cp.cta\_group::2.32x128b.warpx4, 512 bytes per stage.

Each K128 stage then issues four K32 MMAs, and a scale-factor byte selector picks the matching K32 group.

Hopper activations use contiguous FP32 K128 scales, while routed weights follow the MXFP4 convention with UE8M0 K32 scales. The weight transformation only rearranges data that is already quantized, and it never quantizes floating-point weights.

The tile geometry is fixed at BN = BK = 128 on the Blackwell path, which matches the MMA tile dimensions named in the notation.

## Decode speedup on H20 across batch sizes

Table 5 compares Mega MoE with GC-MoE for DeepSeek-V4.1-Flash on eight H20 GPUs, with latency taken as the slowest rank's median. At 1 token per rank, the baseline took 120.061 µs and GC-MoE took 115.161 µs, a speedup of 1.0425. The evaluation runs both operators under CUDA Graph replay with identical inputs, capacities, weight transformations, and measurement settings.

Each rank reports a window-median latency, and a point's latency is the maximum across the eight ranks.

![Figure 3: DeepSeek-V4.1-Flash routed-expert decode on 8×H20: latency and speedup of GC-MoE versus Mega MoE](https://refivu.com/papers/523301d6-5adb-45ac-9ad2-59d6cbaaacb7/figures/figure-6f6bdf94433f82c281fcae05e18fb191.png?thumb=512)

**Figure 3** : DeepSeek-V4.1-Flash routed-expert decode on 8×H20: latency and speedup of GC-MoE versus Mega MoE.

[Original paper](https://arxiv.org/abs/2611.04222v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/)

GC-MoE is faster at all nine H20 points, so the gain doesn't disappear at any batch size in this sweep. The speedup climbs from 1.04× at 1 token per rank to a 1.26–1.30× plateau at 4 to 32 tokens per rank. The authors attribute this mid-range plateau to the shared-SM carve-out and the tail term of Eq. (2), which weigh most on a short critical path.

At 256 tokens per rank, the speedup falls to 1.03×, from 675.370 µs for GC-MoE against 695.010 µs for Mega. Weight streaming dominates the layer at that size, so both operators approach their streaming limit. The authors read the smaller gain as the roughly fixed shared-SM and tail savings, which no longer scale with the work. Figure 3 plots the same H20 routed-expert sweep as latency and speedup curves.

The H20 baseline is an SM90 reference port that the authors built, because the public DeepGEMM release ships only the SM100 kernel. The authors didn't test a fused shared-expert path on this baseline, so its shared-expert runs add a separate kernel.

## Decode on B300 and what drives the gain

On eight B300 GPUs, GC-MoE was faster at all 18 routed decode points for GLM-5.2 and DeepSeek-V4.1-Flash. The mean speedup is 1.102× for GLM-5.2 and 1.109× for DeepSeek-V4.1-Flash, giving 1.106× overall across the 18 points. Per-point speedups range from 1.085 to 1.189, a flatter spread than the 1.26 to 1.30 plateau the H20 curve shows. The B300 gain is therefore smaller in magnitude but holds at every measured batch size.

The compute partition on B300 has 128 SMs, while the baseline Mega MoE uses all 148. So the win doesn't come from extra arithmetic capacity, because the GC-MoE GEMM runs on fewer SMs.

For DeepSeek-V4.1-Flash, the absolute saving stays within 9 to 18 µs per layer across the sweep. The gain flattens as the GEMM grows, reaching 1.089× at 256 tokens per rank. GLM-5.2 behaves differently, because its saving grows with batch, from 5.6 µs at 1 token per rank to 18.7 µs at 256 tokens per rank.

The per-rank medians at 1 token per rank are tightly clustered, so the speedup isn't driven by one straggler rank. For DeepSeek-V4.1-Flash, GC-MoE's eight rank medians span 59.21 to 59.39 µs, while the baseline's span 70.22 to 70.63 µs.

## Fused shared experts: what the fusion adds on H20 and B300

Fusing the shared expert changes the picture on each platform differently, so the two platforms need separate readings.

Its output then joins the existing combine reduction, so it adds little extra work to the layer. At 32 to 128 tokens per rank the fused ratio dips to 0.973 to 0.985×, which the authors link to shared tasks being queued after routed work. Table 7 shows these dips at 32, 64 and 128 tokens per rank against the gc-unfused column.

GC-MoE is faster at all 18 B300 shared-expert points, with 1.131× mean for GLM-5.2 and 1.115× for DeepSeek-V4.1-Flash. Overall the B300 shared-expert mean is 1.123×, with a peak of 1.209× at 1 token per rank. Across both platforms the evaluation covers 54 points, and GC-MoE is faster at every one.

## Accuracy and throughput checks

The numerical question is whether GC-MoE stays close to the baseline once it is faster, and the paper answers it with cosine similarity against BF16 and against Mega. GC-MoE uses the caller's quantized inputs and the baseline's quantized weights, so the difference comes from scheduling, layout, and instruction selection rather than from different arithmetic.

On the H20 routed suite, 47 cases over all eight ranks, 376 rank-cases pass the 0.97 cosine threshold against BF16 for both operators. Their outputs still differ slightly, which is expected once the operators schedule and lay out the work differently. The H20 shared-expert suite passes all 47 cases and 376 rank checks at cosine of at least 0.99, with a minimum GC-versus-Mega cosine of 0.9999997.

On B300, all 94 cases and 752 rank checks pass, at cosine of at least 0.97 for routed experts and 0.99 for shared experts.

Throughput is the second check, and the paper reports effective TFLOPS over matmul work only, aggregated over eight GPUs. On H20 at 8 tokens per rank, GC-MoE reaches 95.6 TFLOPS versus 73.8 for the baseline, a gain of 29.5%. That gain sits near the 1.296× peak speedup the paper reports at 16 tokens per rank. On B300, GLM-5.2 at 256 tokens per rank reaches 8490.7 TFLOPS versus 7524.8 for Mega, a gain of 12.8%.

At one token per rank on B300, the small-batch case improves from 75.3 to 82.5 TFLOPS for GLM-5.2. The working-set bandwidth model peaks at 18931.9 GB/s for GC-MoE versus 14973.9 GB/s at 32 tokens per rank on H20, a gain of 26.4%. The paper treats the bandwidth and TFLOPS numbers as analytic models, not hardware counters. The paper attributes that rise to dispatch no longer competing with the GEMM for SM resources, with each replay avoiding the trailing cross-rank barrier.

## Limitations and open questions

GC-MoE targets decode, and the authors say prefill-sized token counts are supported but behave differently. With larger prefill batches, the compute partition becomes the binding resource rather than the overlap. At the largest measured batch of 256 tokens per rank, the gain narrows to 1.01 to 1.13×.

The shape constraints in Appendix A come from hard design choices, including 64-bit completion masks, static signal sizing, and a 72-rank by-value peer table. The 64-bit bitmap is also why 2I/128 ≤ 64 is a hard design constraint, so larger intermediate sizes fall outside it. The workspace is single-instance, so the authors require calls that share it to run serialized.

The current split fixes dispatch at 20 of 148 SMs on B300, and that partition size wasn't swept. The authors didn't run a controlled ablation of partition size in this version. They also didn't run an overlap-on/off comparison, so the overlap's own contribution stays unmeasured. The only within-operator ablation they report is fused versus unfused shared experts on H20.

They want adaptive partitioning once the driver permits finer splits. Last, they plan integration into a graph-capturing serving stack.

## Paper info

- **Authors**: Yong Li, Kan Liu, Tao Lan
- **Venue**: arXiv · Preprint
- **First published**: 2026-11-3
- **Added**: 2026-11-5
- **Updated**: 2026-11-3
- **Version**: v1
- **arXiv**: 2611.04222
- **Category**: cs.DC · cs.AI · cs.AR · cs.LG · cs.PF
- **Original paper terms**: [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/)
- **What we show**: Paper info, commentary and permitted figures from the original paper

[Original paper ↗](https://arxiv.org/abs/2611.04222v1) · [PDF ↗](https://arxiv.org/pdf/2611.04222v1)

AI commentary is a separate explanation from the original paper and may contain errors. The original paper and figures follow each source's terms of use and any rights noted separately.

## Abstract

Under expert parallelism, mixture-of-experts (MoE) layers pay all-to-all token dispatch, grouped GEMMs, and a combine step in every layer. In decode each rank holds only 1-256 tokens: dispatch latency and weight traffic dominate while tensor-core utilization is inherently low. In fused operators such as DeepGEMM's Mega MoE, dispatch and computation overlap only by sharing every SM: dispatch warps compete with TMA/MMA and epilogue warps for registers, shared memory, and issue slots; every phase shares one CTA resource budget, synchronization spans the whole SM array, and every replay ends with a workspace-clean pass and a cross-rank barrier. We present GC-MoE, an open-source FP8/FP4 MoE inference operator for NVIDIA Hopper and Blackwell GPUs that uses CUDA Green Contexts to split the device into a small communication partition and a large compute partition. Each role gets its own kernel, resource budget, and synchronization domain, so dispatch and GEMM tune independently. A three-node CUDA Graph (four on Hopper with fused shared experts) launches the dispatch and grouped-GEMM kernels as concurrent roots; a token-ring handshake starts computation on the first filled ring blocks, and double-buffered receive counters remove the trailing cross-rank barrier between replays. The compute partition runs operand-swapped tcgen05 block-scaled MMA on Blackwell and register-A WGMMA with in-register FP4 decoding on Hopper, with fused SwiGLU, requantization, and optional shared experts. On 8 H20 GPUs GC-MoE accelerates DeepSeek-V4.1-Flash decode by 1.188x on average on both the routed and shared-expert suites (peaks 1.296x and 1.353x); on 8 B300 GPUs it accelerates GLM-5.2 and DeepSeek-V4.1-Flash by 1.106x (1.123x with fused shared experts, peak 1.209x), beating Mega MoE at all 54 measured points at matched accuracy. GC-MoE reserves only 20 of 148 SMs on B300 for dispatch.

## Quote from the paper

Yong Li, Kan Liu, Tao Lan (2026). GC-MoE: Overlapping Expert-Parallel Token Dispatch with FP8/FP4 Grouped GEMM via CUDA Green Contexts. arXiv:2611.04222v1. https://arxiv.org/abs/2611.04222v1

**BibTeX**

```
@misc{li2026overlapping,
  title = {{GC-MoE: Overlapping Expert-Parallel Token Dispatch with FP8/FP4 Grouped GEMM via CUDA Green Contexts}},
  author = {Yong Li and Kan Liu and Tao Lan},
  year = {2026},
  eprint = {2611.04222},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.04222v1}
}
```

## Other paper commentary

- [SparseGPT: Massive Language Models Can Be Accurately Pruned in One-Shot](https://refivu.com/en/papers/98e70bdf-a832-4686-b3f8-e3eefd5887c4-sparsegpt-massive-language-models-can-be-accurately-pruned.md)
- [Fast Inference from Transformers via Speculative Decoding](https://refivu.com/en/papers/41a03564-b5d1-4b7f-8db4-502dbc43fbe0-fast-inference-from-transformers-via-speculative-decoding.md)
- [GPTQ: Accurate Post-Training Quantization for Generative Pre-trained Transformers](https://refivu.com/en/papers/46a31638-80a6-4626-a5e7-028ae5ccea93-gptq-accurate-post-training-quantization-for-generative-pre.md)
- [ZeRO: Memory Optimizations Toward Training Trillion Parameter Models](https://refivu.com/en/papers/30a4fae5-65d8-4fa2-8552-c186c4a4d88f-zero-memory-optimizations-toward-training-trillion-parameter.md)
- [Linformer: Self-Attention with Linear Complexity](https://refivu.com/en/papers/470ce67a-0f79-4a06-ae89-f26384095187-linformer-self-attention-with-linear-complexity.md)
- [Reformer: The Efficient Transformer](https://refivu.com/en/papers/0dd490a3-709f-4bac-ae3f-de0bc9e197db-reformer-the-efficient-transformer.md)
- [Palimpsestic Accountability in the US Federal AI Inventories](https://refivu.com/en/papers/25a5c213-12ea-48af-9b85-13a489aa137e-palimpsestic-accountability-in-the-us-federal-ai-inventories.md)
- [Generalizable AI-Generated Image Detection with Embedding-Space Explanations](https://refivu.com/en/papers/fec1df60-c26a-4ef4-bdc0-3e6a16c348c3-generalizable-ai-generated-image-detection-with-embedding.md)
- [Measure Before You Repair: An Explainable Agent for Blind Restoration of Multi-Artifact 3-D MRI](https://refivu.com/en/papers/21f07a35-1c66-409c-8c44-8f4fb3b07dd4-measure-before-you-repair-an-explainable-agent-for.md)
- [Physics-Informed Identification of Tensegrity Prestress across Taut-Slack Transitions](https://refivu.com/en/papers/9721889c-b485-4e34-aec7-9e6d5bfe665b-physics-informed-identification-of-tensegrity-prestress.md)
- [Are LLM Assistants Regulatory Ready? Answers from regenold's 2026 EU AI Act Q&A Challenge](https://refivu.com/en/papers/9b6889ca-15e2-465e-a64c-a042438c119c-are-llm-assistants-regulatory-ready-answers-from-regenold.md)
- [PianoBench: Evaluating Musical Perception and Reasoning in Language Models](https://refivu.com/en/papers/303d2599-ed54-4e1e-92e2-9ef775204ad7-pianobench-evaluating-musical-perception-and-reasoning-in.md)

---

AI-written text can contain mistakes. [Refivu](https://refivu.com/en/papers/523301d6-5adb-45ac-9ad2-59d6cbaaacb7-gc-moe-overlapping-expert-parallel-token-dispatch-with)
