Shaping Latent Mixture-of-Experts: From Expert Geometry to Layerwise Capacity Allocation
Wang, Yaoxiang, Zhang, Kai, Xie, Ruobing, Wang, Lanrui, Zhao, Guoliang, Li, Junhui, Su, Jinsong
–arXiv.org Artificial Intelligence
ABSTRACT Fine-grained mixture-of-experts (MoE) models commonly increase expert count by narrowing each expert, treating expert shape as a by-product of routing granularity. We show that an expert's local Jacobian rank is jointly bounded by these two dimensions, and that balancing them maximizes the rank ceiling at fixed per-expert parameters. Controlled shape sweeps across model scales and routing granularities consistently favor near-square experts. We further use layerwise intrinsic dimension (ID) to guide capacity allocation across depth, covarying the number and shape of experts while keeping per-layer parameter count, activated FLOPs, and communication volume constant. Compared with layerhomogeneous baselines, our ID-guided allocation achieves lower validation loss and stronger downstream performance. These results establish expert shape and layerwise allocation as practical design axes for MoEs. 1 INTRODUCTION Sparse mixture-of-experts (MoE) models have become a primary route to scaling model capacity without paying the computational cost of activating every parameter for every token (Shazeer et al., 2017; Lepikhin et al., 2021; Fedus et al., 2022; Jiang et al., 2024). In a dense Transformer, the feedforward network is intentionally wider than the residual stream, reflecting a block-level allocation of parameters between attention and feed-forward computation (Vaswani et al., 2017). Recent MoE LLMs commonly replace the dense FFN with fine-grained experts while matching the sum of the activated experts' widths to the dense FFN width (Dai et al., 2024; DeepSeek-AI, 2024a;b), as illustrated in Figure 1. Figure 1: From a wide dense FFN to fine-grained routed experts. Blue denotes the dense FFN and the experts activated for one token; gray denotes inactive experts. Let M denote the dense FFN intermediate width and K the number of experts selected per token. Activated-width matching gives each selected expert intermediate width m = M/K, making each expert much narrower. Increasing the number of experts under a matched FFN budget must therefore divide the budget into smaller per-expert intermediate dimensions m, making the aspect ratio d/m a consequence of expert granularity rather than an independent design choice. As Figure 2 shows, representative architectures with more experts consequently exhibit increasingly large d/mratios, a trend that may create a hidden bottleneck during training. Matching Km to the dense intermediate width preserves the activated parameter and compute budget, but does not preserve how intermediate features are used. A dense FFN applies the same fixed set of channels to every token, whereas an MoE router selects different combinations of experts.
arXiv.org Artificial Intelligence
Oct-14-2026