Fine-grained expert segmentation has become a cornerstone of modern mixture-of-experts (MoE) architectures. Extending this design along an orthogonal dimension, we introduce Grouped Mixture-of-Experts (GMoE), which projects the hidden state into multiple low-dimensional groups, each with an independent router and dedicated expert pool, before merging their outputs back into the residual stream. To integrate this grouped architecture into established fine-grained MoE training recipes, we develop a training-aligned parameterization that enables their reuse without additional hyperparameter tuning. Together, the architecture and its tailored parameterization improve sparsity scaling at a constant active-compute budget. Power-law fits indicate that fine-grained MoE requires approximately 1.79 times GMoE's sparsity ratio to achieve the same validation loss. Scaling up to 69B parameters, GMoE outperforms its fine-grained baseline on all 13 benchmarks after 5T training tokens and surpasses LatentMoE on 10 of 13 benchmarks after 1.4T tokens. At the systems level, placing each group's expert pool on a single rank under expert parallelism keeps dispatch and combine local, eliminating routing-dependent workload imbalance across ranks, while kernel optimizations further accelerate local execution. Collectively, these results demonstrate that GMoE improves both model performance and distributed training efficiency.
Figures & tables
Figure 1: Architectural comparison. (a) Standard MoE selects the top- K of N experts of shape d→dffn→d . (b) Fine-grained MoE ( Dai et al., 2024 ) partitions the intermediate dimension by m , yielding mN experts of shape d→dffn/m→d and activating the top- mK at matched FLOPs. (c) GMoE projects and normalizes each token with Wproj and RMSNorm, then splits it into G subspaces of width dsub=d/G . Each has its own router and experts of shape dsub→dffn/m→dsub , giving GmN experts with GmK activated per token. Group outputs are concatenated and merged by Wmerge . Only group G is expanded; each ∑ denotes routing-weighted aggregation.
Parameterization
Scaling factors
Resulting scales
Forward Ga
Init. std. Gb
LR Gc
Initial h
Update ΔhW
Unscaled (w/o G )
1
1
1
G−1/2
G−α
∈
[G−1,G−1/2]
Init-only scaling
1
G
1
1
G−α
∈
[G−1,G−1/2]
GMoE (forward G )
G
1
1
1
G1/2−α
∈
[G−1/2,1]
Table 1: Scaling factors and resulting initialization and update scales relative to the fine-grained baseline. Update ranges correspond to α∈[1/2,1] .
Figure 2: Validating the design choices on GMoE with G=8 ( 500 M activated, 10.5 B total parameters). (a) Training-alignment ablation: the full alignment stays below every ablated variant, and removing all three choices yields the highest training loss. (b) Auxiliary-loss recalibration ablation: γ=3×10−4 reduces LM loss relative to directly reusing the baseline coefficient 10−3 and achieves a comparable loss to 10−4 . All curves are EMA-smoothed.
Variant
Training loss ↓
Validation loss ↓
GMoE
1.802
2.940
w/o inner RMSNorm
1.809
2.952
w/o G scaling
1.827
2.972
w/o merge initialization
1.806
2.944
w/o all three
1.834
2.978
Table 2: Ablation of the training-alignment design choices in GMoE .
Figure 3: Coordinate check of activation scales under training-alignment ablations ( G=8 ) at training step 20. RMS statistics are normalized by the fine-grained baseline at the same layer. Circles show individual layers, and diamonds show the median across eight layers. Group-level statistics are averaged across groups before normalization. MoE outputs are measured before adding the shared-expert output and the residual.
Figure 4: Expert-level load balance after auxiliary-loss recalibration. For GMoE , the line shows the mean of group-wise MaxVio and the shading spans the minimum and maximum across groups.
Variant
Training loss ↓
Validation loss ↓
GMoE
1.794
2.930
Fine-grained MoE
1.820
2.958
Parameter-Matched Baselines
Fine-grained MoE + projections
1.829
2.972
Fine-grained MoE + wider shared experts
1.819
2.957
Projection sharing within GMoE
Table 3: Ablation of the projection design in GMoE .
L∗
Hidden
Head
N′
k′
de†
Batch ‡
LR
Tokens
Scan Values
10
1536
16
varies
6
384
512
4×10−4
250 B
N′∈{128,256,512,1024,2048} , Total Params ∈{3.07,5.33,9.86,18.92,37.04} B
Table 4: Configuration of the sparsity-scaling suite. All models are trained with ∼500 M activated parameters.
Figure 5: Sparsity scaling curves for GMoE . GMoE consistently outperforms fine-grained MoE across all sparsity levels. The fitted curves indicate that fine-grained MoE requires approximately 1.79× the sparsity to achieve the same validation loss.
Figure 6: LM loss vs. consumed tokens for GMoE -69B and the fine-grained baseline. Curves are EMA-smoothed. Both runs share the same optimizer, data mixture, and training schedule. The loss drop coincides with a scheduled batch-size increase.
Benchmark
# Shots
Fine-grained-69B@5T
GMoE -69B@5T
General
MMLU
5
70.90
74.36
MMLU-Pro
5
43.21
47.64
GPQA-Diamond
5
30.34
35.96
BBH
5
49.10
52.75
HellaSwag
5
62.50
68.00
Math & Code
GSM8K
5
67.44
72.90
Table 5: Base-model comparison between GMoE -69B and the fine-grained baseline at 5 T pre-training tokens. Best per-row results are bolded .
Table 6: Comparison between GMoE -69B and LatentMoE-69B at ∼1.4 T pre-training tokens, both after the same pre-training recipe. Best per-row results are bolded .
Figure 7: Comparison of GMoE and fine-grained MoE at matched routing granularity. Both models use 512 routed experts and activate 24 per token, with matched routed-expert parameters and GEMM FLOPs. GMoE achieves lower training loss (left) and validation loss (right).
Stage
Cross-group CKA
Interpretation
Group representations
0.816
Shared token geometry
Routing weights
0.365
Differentiated routing
Group outputs
0.092
Distinct residual updates
Table 7: Cross-group geometry throughout the GMoE computation. The reported values represent the mean pairwise linear CKA across all layers, evaluated on 50,000 validation-set tokens.
Solid segments: within-width Pareto frontier. Dashed segments: dominated continuation. ∗ Relative FP8 utilization is useful expert GEMM FLOPs divided by local MoE forward time, normalized to G=1 at each width. Timings use CUDA Graph replay and exclude input and merge projections and cross-rank communication.
Figure 9: System performance of GMoE . Group-local placement reduces module runtime and NVLink traffic on eight GPUs (a,b). With group-local placement, local execution optimization accelerates the module on four GPUs (c). Timings cover the full forward and backward passes of the module.
GPUs
Implementation
Step time (s)
Throughput (k tokens/s)
8
Default
76.296
109.95
8
Optimized
42.716
196.38
16
Optimized
21.889
383.23
64
Optimized
6.077
1380.48
Table 9: Training efficiency of GMoE -69B.
Appendix figures & tables7 assets
Supplementary material from the paper’s appendix.
Appendix
Figure 10: Update alignment along the initialization-only trajectory. Lines show medians and shaded bands show the 10th to 90th percentiles across layers, groups, and sampled experts. Dotted lines mark α=1/2 and 1 .
Figure 11: Forward scaling versus initialization-only scaling. GMoE achieves lower training loss throughout the displayed interval. Curves are EMA-smoothed, and the inset enlarges the final training phase.
Variant
Training loss ↓
Validation loss ↓
GMoE
1.802
2.940
Init-only scaling
1.827
2.970
Appendix
Table 10: Comparison with initialization-only scaling.
Figure 12: Data flow of a GMoE layer (Section 7.1 , notation as in the text). The subspace split and its inverse are each realized by one all-to-all over the cross-group expert-parallel group (blue). Routing and expert computation proceed independently within each subspace (orange), including the intra-group dispatch/combine all-to-alls.
Figure 13: Where the sp2hp all-to-all draws tokens from. The EP domain occupies EP/CP complete DP rows of the (DP, CP) grid, numbered DP-major (the CP index varies fastest). Intra-group expert-parallel groups are w=EP/G consecutive ranks, so the cross-group expert-parallel group (size G ) strides by exactly w . Every rank initially holds all G hidden slices ( d0..G−1 ) of its own (dp, cp) shard. Green ranks contribute tokens to rank 0’s group-0 slice after the exchange (i.e., hidden slice d0 ). Here [⋯]⊗d0 concatenates the listed shards’ d0 slices (Section 7.1 ).
Layout
API input (MiB)
Theoretical cross-rank (MiB)
Measured NVLink (MiB)
Relative deviation
Local-group (EP4/EDP2)
192.000
144.000
144.021
+0.015%
Split (EP8/EDP1)
1753.500
928.150
928.273
+0.013%
Appendix
Table 11: Token communication volume per GPU over the forward and backward passes for the two expert layouts in Section 7.1 . Theoretical cross-rank volumes are computed from Eqs. ( 27 )–( 28 ). Measured values are NVLink send counters averaged over all GPUs.
Attribute
Fine-grained MoE
GMoE
LatentMoE
Parameter counts
Total parameters (B)
68.8
69.0
68.9
Activated parameters (B) ∗
3.6
3.8
3.7
N -gram embedding parameters (B)
31.4
Model architecture
Shortcut layers
14
Appendix
Table 12: Model specifications and training hyperparameters for the large-scale experiments.
Mixture-of-Experts language models use input-dependent routing to activate a small subset of expert networks, increasing capacity without proportional compute.
Mixture-of-Experts (MoE) architectures are evolving towards finer granularity to improve parameter efficiency. However, existing MoE designs face an inherent trade-off between the granularity of expert specialization and hardware execution efficiency. We propose OmniMoE, a system-algorithm co-designed framework that pushes expert granularity to its logical extreme. OmniMoE introduces vector-level Atomic Experts, enabling scalable routing and execution within a single MoE layer, while retaining a shared dense MLP branch for general-purpose processing. Although this atomic design maximizes capacity, it poses severe challenges for routing complexity and memory access. To address these, OmniMoE adopts a system-algorithm co-design: (i) a Cartesian Product Router that decomposes the massive index space to reduce routing complexity from O(N) to O(sqrt(N)); and (ii) Expert-Centric Scheduling that inverts the execution order to turn scattered, memory-bound lookups into efficient dense matrix operations. Validated on seven benchmarks, OmniMoE (with 1.7B active parameters) achieves 50.9% zero-shot accuracy across seven benchmarks, outperforming coarse-grained (e.g., DeepSeekMoE) and fine-grained (e.g., PEER) baselines. Crucially, OmniMoE reduces inference latency from 73ms to 6.7ms (a 10.9-fold speedup) compared to PEER, demonstrating that massive-scale fine-grained MoE can be fast and accurate. Our code is open-sourced at https://github.com/flash-algo/omni-moe.
Jingze Shi, Zhangyang Peng, Yizhang Zhu +3
The Hong Kong University of Science and Technology (Guangzhou) · Beijing Academy of Artificial Intelligence
Sparse Mixture-of-Experts (MoE) models scale capacity by routing each token to a small subset of experts. However, their routers exhibit a fundamental trade-off: strong load balancing can suppress expert specialization, while aggressive diversity often causes routing collapse. We propose Hi-MoE, a grouped MoE framework that decomposes routing control into two coupled levels: (i) inter-group balancing that enforces fair traffic across expert groups, and (ii) intra-group specialization that promotes complementary expert behaviors while preventing within-group collapse. Our analysis provides a principled explanation of how our hierarchical objectives reshape the router, thereby promoting stable specialization and mitigating collapse. We observe consistent improvements over recent sparse-routing and grouped-MoE baselines across NLP and vision benchmarks, and confirm robustness via scaling studies (model size, expert count) and targeted ablations. In large-scale pre-training on 58B tokens, Hi-MoE-7B achieves a 5.6% perplexity reduction and a 40% improvement in expert balance over OLMoE-7B across diverse evaluation domains.
Gleb Molodtsov, Alexander Miasnikov, Aleksandr Beznosikov
Sparse Mixture-of-Experts (SMoE) models improve scalability by routing input tokens to only a subset of expert networks, but they often suffer from representation collapse, in which multiple experts converge toward similar functions and lose their intended diversity. Prior work has addressed this limitation either by improving router architectures or by introducing auxiliary loss terms that implicitly penalize similarity among experts. However, router-based approaches remain vulnerable to routing collapses, and loss-based approaches can conflict with the task's original objective during optimization. In this work, we propose GaP-MoE (Gradient Accumulation and Projection in MoE), which induces expert specialization by directly manipulating expert output gradients rather than modifying the loss function. At each training step, GaP-MoE stochastically selects one of the TopK routed experts as a leader based on normalized routing scores, and projects the gradients of the remaining follower experts onto the orthogonal complement of the subspace spanned by the leader's recent gradients. This removes directional overlap between expert gradients without altering the task loss, allowing specialization to emerge as a direct consequence of the optimization dynamics rather than an externally imposed constraint. We evaluate GaP-MoE in both fine-tuning settings (BERT-based, on GLUE) and from-scratch pretraining settings (GPT-2-based, on WikiText-103, enwik8, and text8), and further confirm its compatibility as a drop-in module for existing SMoE architectures. Experimental results show that GaP-MoE achieves performance comparable to or better than standard SMoE.
Donghyun Jeong, Yoon-Yeong Kim
Department of Statistics and Data Science University of Seoul Republic of Korea · Department of Statistics University of Seoul Republic of Korea