arXiv:2610.05744cs.LGOct 2026

Manuscript Offprint

arXiv:2610.05744

CIPHER-MoE: Balancing Efficiency and Routing Fidelity in Trillion-Scale MoE Training

Jing Li, Jian Meng, Yingmeng Gao, Suming Qiu, Linyuan Qiu, Dongfang Li, Baotian Hu, Binfan Zheng, Rongqian Zhao, Weijian Sun, Xin Chen

ABSTRACT

Mixture-of-Experts (MoE) has been widely adopted in recent large language model (LLM) architectures. However, scaling up MoE in LLM training introduces system-level challenges on training, where non-uniform token routing can lead to highly imbalanced workloads across experts and devices, further destabilizing the training process. With trillion-scale LLMs, imbalanced expert workloads further amplify the resource cost of MoE training, resulting in degraded training efficiency and hardware utilization for underloaded experts, while hot experts require additional resources to accommodate excessive workloads. Recent studies address imbalanced MoE training through intricate parallelism strategies or resource reallocation. However, these system-level approaches often introduce additional resource requirements and considerable orchestration complexity, which become increasingly difficult to afford when training trillion-parameter LLMs under constrained computational resources. This work introduces CIPHER-MoE, which mitigates MoE workload imbalance while keeping the router's token-side Top-K selection unchanged. CIPHER-MoE applies affinity-aware Expert-to-Token filtering with explicit capacity control to reduce hotspot expert workloads without additional hardware resources or complex runtime design. The proposed method has been evaluated on large-scale MoE models, including DeepSeek-V4-Pro, showing up to 64.9 percentage points Top-1 expert workload reduction and 1.10×−1.94×1.10 \times -1.94 \times training acceleration, while preserving the training quality. The source code will be released soon.

1 INTRODUCTION

Large language models (LLMs) have become foundational components of modern AI systems (Bommasani et al., 2021). The continued effectiveness of scaling laws has demonstrated that increasing model capacity can substantially improve performance (Kaplan et al., 2020). However, naively scaling dense Transformers toward the trillion-parameter regime incurs prohibitively high computational and memory costs, motivating the adoption of Mixture-of-Experts (MoE) architectures (Fedus et al., 2022). In particular, MoE decouples model capacity from per-token computation by replacing the dense feed-forward network (FFN) with multiple sparsely activated experts and dynamically routing each token to only a small subset of them, leading to a balanced tradeoff between scalability and computational efficiency (Shazeer et al., 2017).

Recent studies have demonstrated the strong potential of domain-specific supervised fine-tuning (SFT) and reinforcement learning (RL) for advancing LLM post-training (Guo et al., 2025). Training MoE models introduces substantial system-level challenges due to workload imbalance, which degrades communication efficiency, hardware utilization, and training stability (Jin et al., 2026b). The inherently non-uniform data distribution across domains and tasks can induce highly skewed token routing, resulting in uneven workloads across different experts. For the expensive

∗^{*}Equal contribution.

†^{\dagger}Corresponding author: jm2787@cornell.edu

Figure

Lopsided expert workload degrades the training efficiency and even cause OOM!

(a)

(b)

Figure 1: Expert workload imbalance in DeepSeek-V4-Flash. (a) Illustration of the MoE architecture with data-dependent routing, which leads to the imbalanced workload. (b) Lopsided workload statistics across all layers of the DeepSeek-V4-Flash model. With the domain-specific dataset, 10% of the experts consume over 88% routing workload, leading to degraded training efficiency.

trillion-parameter LLMs, cross-rank expert parallelism is almost mandatory for efficient training. However, the lopsided computation impedes efficient distributed training with unbalanced communication and computation (Rajbhandari et al., 2022). Moreover, the overloaded experts may incur excessive memory consumption and instantly trigger out-of-memory failures on large-scale computing clusters, ultimately undermining training efficiency and stability (Nguyen et al., 2026).

Recent studies on efficient MoE training are two-fold; system-level approaches redistribute workloads through dynamic expert migration or replication (Nie et al., 2023). Meanwhile, MoE-specific kernels optimize expert-parallel execution through aggressive communication-computation pipeline design (Zhang et al., 2025). At the algorithm level, recent studies investigate global-batch balancing, routing regularization, or transfer the pre-trained routing strategy to fresh training (Lewis et al., 2021). However, system-level approaches largely accommodate routing imbalance after it arises, requiring additional expert replicas, collective communication, or specialized runtime scheduling, whose overhead and implementation complexity become increasingly pronounced with trillion-parameter LLMs training. On the other hand, regularization-based routing penalty failed to handle the instantaneous memory peak (Fedus et al., 2022), while the heuristic batch balancing or experience-based routing distillation exhibits poor scalability to the trillion-parameter MoE models. Given the research gaps in existing algorithm and system-level approaches for MoE LLM training, this work aims to investigate the following problem:

How to achieve efficient and stable training for trillion-parameter MoE LLMs without intricate system design or heuristic-based routing?

In this work, we propose CIPHER-MoE, a plug-and-play algorithm for stable-and-efficient trillion-parameter MoE model training. Although the fixed routing strategy ensures the perfect load balance with stabilized training process, the reduced expert specialization leads to the suboptimal intelligence in the resulting trained model (Dikkala et al., 2023). On the other hand, freely-exploited expert routing amplifies the workload imbalance (Guo et al., 2026), especially with domain-specific post-training phase. In contrast, the proposed CIPHER-MoE tackles the problem by investigating a bounded learning capacity of different experts and proves the feasibility of dropping tokens from expert training. Different from heuristic token dropping, this work first reveals the relationship between optimal token budget and training efficiency for trillion-parameter MoE training. We validate the proposed method via both theoretical analysis and empirical experiments across multiple large-scale MoE models (from 284B to 1.6T). The major contributions of this paper are:

• Simplicity. CIPHER-MoE directly exploits the bounded token budget for MoE training, achieving high efficiency while preserving the LLM training quality.

• Theoretical Foundation. CIPHER-MoE derives a sufficient expert capacity for similarity-based admission and a necessary capacity for natural-order admission.

• Scalability. CIPHER-MoE scales effectively across different model sizes, architectures, and datasets. Across DeepSeek-V3, DeepSeek-V4-Flash, GLM-5, and DeepSeek-V4-Pro, achieving 1.10×−1.94×1.10 \times -1.94 \times measured training-time speedups.

References (43)