arXiv:2609.07536cs.DCSep 2026

Manuscript Offprint

arXiv:2609.07536

Analytical Resource Management for Fine-grained MoE Computation-Communication Overlap

Hongyu Liu, Minyu Cui, Miquel Pericas

Hongyu Liu

Chalmers University of Technology

and University of Gothenburg

Gothenburg, Sweden

hongyuli@chalmers.se

Minyu Cui

Linnaeus University

Växjö, Sweden

minyu.cui@lnu.se

Miquel Pericàs

Chalmers University of Technology

and University of Gothenburg

Gothenburg, Sweden

miquelp@chalmers.se

Abstract—Fine-grained computation–communication overlap in distributed Mixture-of-Experts (MoE) inference allows communication to begin as partial compute results become ready. However, cooperative thread arrays (CTAs) performing computation and communication contend for finite residency capacity on the streaming multiprocessors (SMs). Because a resident CTA generally retains its allocated SM resources until completion, CTAs that cannot be co-resident must wait for resources to become available, resulting in wave-like execution. A fixed resource partition cannot adapt to changes in input size, routed expert load, and kernel configuration, potentially causing a communication backlog or reducing expert compute parallelism.

We present a wave-quantized analytical model and launch-time resource manager for dependency-coupled overlap pipelines. Using the current routed-tile counts, kernel occupancy, GPU residency constraints, and split-level readiness dependencies, it selects the communication-CTA count and resource partition before each kernel launch without candidate execution, per-workload profiling, or kernel recompilation. We integrate the method into the public COMET A100 implementation in the FLUX codebase. We evaluate three MoE models on four NVIDIA A100 GPUs under several parallelism strategies at the GEMM2+GatherRS operator, complete post-router MoE layer, and complete-model prefill levels. Across 15 real-p90 workloads, the analytical selector achieves 3.22% mean regret relative to the measured oracle with a mean solver overhead of 0.157 µs. Over COMET, our method achieves geometric-mean speedups of 2.528×2.528\times at the GEMM2+GatherRS operator, with a maximum of 4.218×4.218\times; 1.771×1.771\times at the complete post-router MoE layer, with a maximum of 2.584×2.584\times; and 1.185×1.185\times for complete-model prefill, with a maximum of 1.439×1.439\times. For the representative TP=2/EP=2 configuration, complete-model prefill achieves geometric-mean speedups over COMET of 1.336×1.336\times, 1.211×1.211\times, and 1.232×1.232\times for Granite, Qwen, and DeepSeek-V2-Lite, respectively, with a best speedup of 1.439×1.439\times. At every feasible TP=2/EP=2 sequence length of at least 4,096, our implementation outperforms COMET and the other state-of-the-art MoE systems, Megatron core-TE and FastMoE TP+NCCL.

Index Terms—Mixture-of-Experts, computation-communication overlap, GPU resource management, analytical performance modeling

I. INTRODUCTION

Recent advances in large language models (LLMs) have been driven in part by scaling model parameters and training data. Scaling dense models, however, increases both memory consumption and the computation performed for every token, causing training and inference costs to grow rapidly. Mixture-of-Experts (MoE) models offer a more scalable alternative: they increase parameter capacity by incorporating many experts while sparsely activating only a small subset for each token, thereby avoiding a proportional increase in computational overhead.

As models and expert sets continue to grow, a single GPU can no longer store or efficiently execute all experts. Distributed MoE inference must place experts across multiple GPUs, send routed tokens to the devices that host their selected experts, and return the expert outputs to the devices that own the original tokens. Prior studies report that this cross-device communication can account for as much as 47% of end-to-end model execution time in representative models and frameworks [1]. Communication thus limits not only an individual MoE layer but also the scaling benefit expected from adding GPUs. Overlapping this communication with expert GEMMs without degrading their efficiency is therefore critical to scaling distributed MoE inference.

A representative solution [1] is dependency-aware, thread-block-specialized fine-grained overlap. This technique exposes result readiness at fine granularity, allowing a communication CTA to process a local result as soon as it becomes available rather than waiting for the entire GEMM to finish. Implementations may assign compute and communication work to separate CTAs, either in concurrently executing kernels or within a fused kernel. These role-specialized CTAs keep long-latency communication instructions out of compute CTAs, thereby avoiding direct instruction-level interference with computation. However, both CTA classes compete for limited SM residency and shared GPU resources. This introduces a resource-partitioning problem that ultimately determines the effectiveness of overlap. With insufficient communication resources, ready results cannot be transferred and reduced promptly, leaving a communication tail on the critical path. With excessive communication resources, expert-GEMM parallelism decreases and computation becomes the bottleneck. Therefore, effective overlap requires resource management to balance the two CTA classes under dependency constraints to minimize the overall pipeline latency, rather than maximizing either throughput in isolation. An imbalanced allocation can create backpressure or resource contention and may perform worse than a non-overlapped schedule.

No single communication-CTA allocation is optimal for every workload. Token count, expert matrix dimensions, the number of routed expert tiles, and the pipeline split granularity change computation and communication work at different rates. Moreover, GPUs execute integer numbers of CTAs and tile waves, so performance changes discontinuously at wave boundaries instead of scaling smoothly with a resource ratio. A fixed partition cannot adapt to this shape-dependent behavior. Profiling candidate configurations for every shape can identify an efficient partition, but it incurs deployment and tuning costs and does not provide a principled solution for an unseen workload. This leads to our central question: given the workload shape, dependency structure, and kernel resource requirements before execution, can we directly derive the resource partition between computation and communication CTAs without per-shape profiling? The key difficulty is dependency-residency coupling: communication CTAs can advance only after their inputs become ready, yet their residency reduces the SM capacity available to compute CTAs. Because both sides progress in discrete CTA waves, the optimal partition minimizes overall pipeline latency rather than either side's isolated throughput.

Based on this observation, we formulate resource management for thread-block-specialized overlap as dependency-constrained resource partitioning and develop a wave-quantized analytical makespan model. Rather than adding new precompiled kernel variants, we insert an analytical launch-time resource manager between conventional kernel dispatch and the actual launch. This design decouples kernel implementation from workload-specific resource allocation: the same binaries adapt at runtime without recompilation, candidate-kernel execution, warm-up timing, or consulting a per-workload winner table. The core analytical decision takes approximately 0.16 µs and therefore incurs negligible overhead. The contributions of this paper are threefold:

  • Problem characterization and empirical finding. We characterize CTA allocation in dependency-coupled, thread-block-specialized overlap as a non-preemptive GPU-residency partitioning problem, and identify the dependency-residency coupling through which communication progress and compute capacity jointly determine pipeline performance.
  • Analytical model and launch-time resource management. We develop a dependency-constrained, wave-quantized makespan model and implement a lightweight runtime resource manager between precompiled kernel dispatch and launch. Using the current workload, actual routed tile counts, kernel residency, and dependencies, it directly derives communication CTA count CC, determines the associated communication reservation R(C)R(C), and computes the remaining compute capacity P(C)P(C).
  • System implementation and cross-model, multi-level evaluation. We integrate this analytical launch-time resource manager into COMET's public A100 implementation in the FLUX codebase [1], [2] and evaluate its accuracy and performance benefits at the three mea-

Figure

Fig. 1. Post-router MoE path and its evaluated COMET/FLUX implementation. The highlighted GEMM2+GatherRS operator is the optimization target.

surement levels: the GEMM2+GatherRS operator, the complete post-router MoE layer, and complete-model prefill. The reported speedups arise solely from improved CTA resource allocation: our method does not reduce FLOPs, routed tokens, or communication volume, and it preserves numerical correctness. At the first two levels, we evaluate Granite-3.1-1B-A400M, Qwen1.5-MoE-A2.7B, and DeepSeek-V2-Lite under uniform, real-p50, and real-p90 routing workloads. At the complete-model prefill level, we compare our system with upstream COMET, Megatron core-TE, and FastMoE TP+NCCL using model-matched inputs and identical execution and measurement boundaries.