arXiv(opens in a new tab)cs.DCAug 2026Cited by 1 paper on PaperVantage

Manuscript Offprint

arXiv:2608.12146

RoutePack: Expert Placement and Attention-Aware Data Packing for MoE Reinforcement Learning

Yibo Shen, Xudong Han, Xiaowei Zhu, Gen Li, Zhenxuan Pan

RoutePack: Replay-Guided Expert Placement and Rollout Trajectory Scheduling for MoE Reinforcement Learning

© none

Figure 1. The general workflow of RoutePack: replay-guided expert placement and EDP-aware fixed-row trajectory rescheduling.\sysname{} replays each trajectory's token length and layer-wise expert demand. A hierarchical planner couples per-layer expert placement with fixed-row trajectory schedules scored over the runtime's EDP shards. The resulting training rows reduce separate KDA, MLA, and per-layer expert-parallel peak costs.

Abstract.

Mixture-of-Experts (MoE) reinforcement learning (RL) must balance two coupled loads. The rollout trajectories in each data-parallel (DP) microbatch set its dense-side work (attention and dense FFN), while token routing sets the expert work of each expert-parallel (EP) rank. Balancing either load alone can worsen the other: length-aware trajectory scheduling may concentrate expert demand, while expert-aware scheduling may create dense-side stragglers. MoE RL makes joint balancing possible: routing replay reveals each trajectory’s token length and layer-wise expert demand before training starts.

We present RoutePack, a replay-guided planner that coordinates expert placement with rollout-trajectory scheduling. Its key insight is that the two controls act at different scales. Placement sets a window-level EP-rank load bound that no trajectory schedule can cross; scheduling then removes the hotspots that remain inside individual micro-steps under that placement. RoutePack first swaps experts across EP ranks incrementally to lower this bound, keeping unmoved experts resident. With placement fixed, it reschedules complete trajectories into token-capped microbatches, jointly balancing dense-side and expert work at a fixed, capacity-feasible number of micro-steps within the deployed synchronization groups. Placement stays fixed through forward and backward execution, preserving logical routing and training-state consistency without microbatch-level expert replication.

We evaluate mixed-task RL post-training of two hybrid-attention MoE models (7.9B and 124B) in six NVIDIA H20-3e configurations spanning 8K–32K contexts, with cross-GPU checks of the 7.9B model on H200 and H20. In trace replay, incremental placement meets the load-balance target while preserving expert residency, and rescheduling further reduces modeled per-micro-step deficits. Measured over the Megatron training region, with planning and state loading reported separately, expert placement alone raises tokens per second (TPS) by 2.67–6.24% over an in-house DP-local first-fit-decreasing (FFD) packing baseline, and full RoutePack raises it by 4.44–11.85%. Full RoutePack also leads on both additional GPUs.

References (33)