arXiv:2610.36339cs.DCOct 2026

Manuscript Offprint

arXiv:2610.36339

INC-MoE: Overlapping In-Network Collectives and Expert Computation for Expert-Parallel Mixture-of-Experts Inference

John Stephan, Razvan Puscasu, Xu Yong, Ding Jiutao, Guan Zixuan

Abstract

In expert-parallel mixture-of-experts (MoE) serving, expert computation in each MoE layer is preceded by dispatch and followed by combine, both of which lie on the critical path: tokens must be dispatched to the accelerators that host their selected experts, and the expert outputs must be combined back at the token's owner. The cost of these collectives can dominate layer latency, particularly in multi-node deployments, where inter-node bandwidth is far below intra-node bandwidth. We present INC-MoE, an expert-parallel MoE layer for the scale-out setting that offloads both communication phases to the network switch and overlaps them with each other and with expert computation inside a single persistent kernel. INC-MoE expresses dispatch as an in-network AllGather, realized by switch-side multicast, and combine as an in-network ReduceScatter, realized by switch-side reduction. We implement both collectives with message semantics, as message exchanges between the end hosts and the switch, and show that because the in-network AllGather and ReduceScatter load opposite directions of each link, running them concurrently reduces the bandwidth-bound communication time by N−22(N−1)\frac{N-2}{2(N-1)} relative to concurrent ring-based collectives, i.e., by 33% for four ranks and 43% for eight.

On each end host, a single kernel partitions the tokens of a layer into bands and processes them through a three-stage AllGather–feed-forward network (FFN)–ReduceScatter pipeline. At steady state, role-specialized thread blocks gather the next band, execute expert computation on the current band, and reduce the previous band concurrently, thereby overlapping both collectives with each other and with computation, using entirely device-side synchronization.

INC-MoE is a drop-in replacement for the MoE layer of vLLM. We evaluate it on a testbed that emulates a four-node scale-out deployment, in which a dedicated accelerator emulates an in-network computing (INC) switch. On prefill of OLMoE with four-way expert parallelism, INC-MoE reduces time to first token (TTFT) by up to 33% and increases throughput by up to 50% relative to vLLM's default collective path, while matching its outputs.

1 Introduction

Mixture-of-Experts (MoE) architectures [10, 20, 28] decouple a model's parameter count from its per-token compute by routing each token to a small subset of k expert feed-forward networks (FFNs) out of E. This sparsity has made MoE widely adopted in large language models [9, 24]. For large MoE models and throughput-oriented deployments, experts are often partitioned across multiple accelerators, potentially spanning multiple nodes, using expert parallelism (EP). Every MoE layer must then first deliver each token to the accelerators that host its selected experts (dispatch) and afterwards bring the weighted expert outputs back to the accelerator that owns the token (combine).

*Correspondence to: john.stephan@huawei.com

Both steps sit on the critical path of every layer, and the share of time they consume grows with the degree of EP [5, 31].

In the data-parallel attention plus expert-parallel FFN configuration used by serving engines such as vLLM [18], dispatch and combine are commonly expressed as two collectives: an AllGather (AG) that makes every rank's tokens visible to every other rank, and a ReduceScatter (RS) that sums the partial expert outputs computed on each rank and returns to every rank the rows of its own tokens [4]. In the default implementation, the MoE layer executes in three sequential stages: an AG issued through the platform's collective library [1, 2], a sequence of MoE compute kernels (e.g., alignment/permutation, two grouped GEMMs with an activation in between), and an RS. In the inter-node regime, where inter-node bandwidth is much lower than intra-node bandwidth, communication can account for a substantial fraction of MoE layer latency, making the layer communication-bound.

This paper starts from two observations. First, the AG and RS formulation of dispatch and combine maps naturally to operations supported by a switch capable of in-network computing (INC): AllGather can be implemented through multicast, and ReduceScatter through reduction. INC for collectives has a long history in HPC [8, 12] and distributed training [19, 27], where it has been applied mostly to all-reduce invoked as a standalone collective (Section 2.3). Recent work has also explored in-switch support for MoE communication [30]. Second, offloading the collectives alone is not enough. In the bandwidth-bound regime, an in-network AG or RS taken in isolation completes in the same time as its ring counterpart, which is already bandwidth-optimal [6]: it still saturates one direction of each end host's link (Section 3.2). The two in-network collectives, however, saturate opposite directions, so running them concurrently uses both directions of every link at once. By contrast, overlapping ring AG and RS does not reduce their combined bandwidth-bound communication time, since each collective already saturates both directions. Realizing this gain requires restructuring the MoE layer so that the AG and the RS are in flight at the same time, and so that expert computation proceeds while both are running.

We present INC-MoE, an EP MoE layer for the scale-out setting built on these observations. INC-MoE offloads dispatch and combine to in-network AG and RS, and fuses the two collectives with expert computation into one persistent kernel that pipelines all three phases at sub-layer granularity. The tokens of the layer are split into bands; while the expert FFN runs on one band, the switch is gathering the next band and reducing the previous one. Making this overlap effective raises three challenges that shape our design:

  1. Fine-grained in-network collectives. The AG and RS must be issued and completed directly from device code at band granularity, with consistent message layouts and band boundaries across ranks despite unequal per-rank token counts.

  2. Device-side synchronization. Gather, compute, and reduce thread blocks must coordinate data dependencies while progressing independently, and reductions must remain synchronized across ranks without introducing unnecessary serialization.

  3. Pipeline balance and tail overhead. The relative costs of gathering, computing, and reducing vary with the workload, requiring an appropriate choice of band size and thread-block allocation. Moreover, the loss of overlap during pipeline fill and drain must be mitigated to minimize exposed communication latency.

We prototype the switch on a dedicated accelerator that emulates an INC-capable switch. The end-host kernel depends on the switch only through the message interface of Section 3.1, so it is unchanged by this choice.

Figure

Figure 1: Time to first token (TTFT) of OLMoE-1B-7B prefill in vLLM with four-way data-parallel attention and four-way expert parallelism in an emulated four-node deployment, as a function of the number of prompt tokens per accelerator. The baseline is vLLM's default expert-parallel path, in which a ring AllGather and ReduceScatter are issued through the default collective library and surround the MoE compute kernels. INC-MoE executes both collectives in the network and overlaps them with each other and with expert computation in a single band-pipelined kernel. Percentages give the TTFT reduction, (tbase−tours)/tbase(t_{\text{base}} - t_{\text{ours}})/t_{\text{base}}, which ranges from 20.2% at 24K tokens to 33.1% at 126K tokens.

Contributions. This paper makes the following contributions:

• In-network AG and RS with message semantics. We design and implement in-network AllGather and ReduceScatter as message exchanges between end hosts and the switch. The AG is built from rooted multicasts, and the RS from rooted in-network reductions followed by a local final reduction at the root. Both sides are implemented: a client library through which accelerators issue and complete the collectives from device code, and a switch-side service that replicates and reduces message payloads. We show that overlapping the two in-network collectives reduces the bandwidth-bound communication time from 2(N−1)N⋅SBW\frac{2(N-1)}{N} \cdot \frac{S}{BW} for ring collectives to SBW\frac{S}{BW}, an improvement of N−22(N−1)\frac{N-2}{2(N-1)}, which is 33.3% for N=4 and 42.9% for N=8 (Sections 3.1 and 3.2).

• A fused kernel that makes the two collectives overlap. The bound above is attained only when an AG and an RS are in flight at the same time, but within an MoE layer they are strictly dependent: the RS needs the FFN output, which in turn needs the AG. We break this dependency chain by splitting the layer's tokens into bands and fusing AG, expert FFN, and RS into one persistent kernel whose thread blocks are specialized into gather, compute, and reduce roles. At steady state, the AG of one band, the FFN of a second, and the RS of a third can run concurrently, so the two collectives overlap with each other and with expert computation. The FFN writes its router-weighted output directly into the RS send buffer, and the reduced output is handed to the serving engine in place, so no copy separates computation from communication. Because the overlap vanishes once the last AG completes, gather blocks then join the reduction of the final bands (tail assistance), shortening the part of the layer where the RS runs alone.

• Integration and evaluation. INC-MoE is a drop-in replacement for vLLM's MoE layer, requiring no changes to model definitions (Section 4). On OLMoE prefill with four-way EP, in a testbed that emulates four nodes and the INC switch (Section 5.1), it reduces TTFT by up to 33.1% and increases prefill throughput by up to 49.5% relative to vLLM's default path (Figures 1 and 7), with per-token cosine similarity of 1.0 to the baseline across all layers and ranks. In a standalone benchmark with concurrent AllGather and ReduceScatter, the in-network collectives achieve 25.6–31.8% higher equivalent bandwidth than concurrently executed ring collectives (Section 5.2).

References (31)