Manuscript Offprint

arXiv:2610.03415

RailWave: Adaptive Spatial and Temporal Scheduling for Expert-Parallel Communication

Chutian Wang, Wenhao He, Jingmin Zhu, Qingyu Yin, Heng Xu, Xiuyu Li

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

ABSTRACT

Irregular All-to-All communication is a major bottleneck in expert-parallel Mixture-of-Experts (MoE) models. Even with fixed expert routing and placement, uneven utilization of parallel network Rails and incast can limit communication performance. We present RailWave, a phase-adaptive communication layer built on DeepEP that addresses these bottlenecks below the routing layer through spatial and temporal traffic shaping. RailBalance redistributes source traffic across eligible Rails using source-local information, while a reusable, topology-derived permutation schedule limits concurrent senders per receiver without rebuilding demand-dependent schedules for each communication phase. A lightweight calibrated selector chooses an execution path according to each phase's traffic characteristics and offline profiling results. On training-derived communication workloads from the 106B GLM-4.5-Air model, RailWave delivers up to 5.84×5.84\times speedup on H800 and 4.36×4.36\times on H20 over Native. Code is available at https://github.com/CyberSecurityErial/RailWave-EP.

1 INTRODUCTION

Mixture-of-Experts (MoE) models increase model capacity while activating only a subset of parameters for each token (Shazeer et al., 2017; Lepikhin et al., 2021; Fedus et al., 2022). Expert parallelism (EP) distributes experts across GPUs, requiring dispatch and combine exchanges between tokens and their selected experts. Because routing induces uneven and input-dependent traffic, these exchanges form irregular All-to-All communication and can become a major bottleneck in MoE execution (Liao et al., 2025; Li et al., 2023).

Existing approaches improve MoE efficiency through routing, expert placement, and replication (Lewis et al., 2021; Zhou et al., 2022; Nie et al., 2023; He et al., 2022). Replication-based methods can additionally incur per-layer memory overhead from redundant expert states (DeepSeek-AI, 2025). These mechanisms shape the logical communication demand, but do not fully determine its physical execution. This distinction is particularly important in Rail-optimized clusters, where a high-bandwidth intra-node fabric connects multiple scale-out paths (NVIDIA, 2023; Wang et al., 2024). Even with an optimized dispatch-combine backend such as DeepEP (Zhao et al., 2025), traffic can still be redistributed across eligible Rails and node-pair transfers can overlap in different orders.

These execution choices expose two bottlenecks, as shown in Figure 1: (a) Balanced expert and destination-node loads can coexist with concentrated source-Rail traffic, leaving parallel paths underutilized. (b) Conversely, balanced source Rails do not prevent multiple senders from converging on the same receiver and creating incast. Our analysis of 900 training step-layer pairs further shows that expert-load imbalance has limited linear explanatory power for Rail imbalance. We therefore jointly control where traffic enters the scale-out network and which node-pair transfers overlap.

∗^{*}Equal contribution.

†^{\dagger}Corresponding author.

Figure

(a) Rail imbalance

Figure

(b) Receiver incast

Figure 1: Two bottlenecks with fixed routing. (a) Balanced expert and destination-node loads can coexist with a hot source Rail. (b) Balanced source Rails can still feed the same receiver concurrently.

We present RailWave, a communication layer built on DeepEP for spatial and temporal control of expert-parallel traffic. RailBalance redistributes outgoing traffic across eligible Rails using source-local information, without requiring destination-side balancing. Reusable topology-derived permutation scheduling organizes node-pair transfers into communication waves that bound incast degree without rebuilding a demand-dependent schedule for each phase.

The two mechanisms are complementary: traffic that is balanced across Rails over an entire phase can become concentrated within an individual wave. RailWave therefore exposes four execution paths combining these mechanisms and uses a lightweight calibrated selector to choose among them according to the current traffic characteristics and validated offline profiling results.

This work makes four contributions:

• We present RailWave, a DeepEP-based communication layer for joint control of Rail allocation and node-pair overlap.

• We design RailBalance, a source-local mechanism for shaping traffic across parallel Rails.

• We adapt reusable topology-derived permutation scheduling to bound incast degree across changing routing phases.

• We evaluate RailWave on two 32-GPU H800 and H20 clusters using real GLM-4.5-Air training workloads, achieving up to 5.84×5.84\times and 4.36×4.36\times communication speedups, respectively, over Native execution.

References (49)