OmniMoE: An Efficient MoE by Orchestrating Atomic Experts at Scale
Jingze Shi, Zhangyang Peng, Yizhang Zhu, Yifan Wu, Guang Liu, Yuyu Luo
TL;DR
OmniMoE addresses the conflict between fine-grained expert expressivity and hardware efficiency in MoEs by integrating a universally activated shared MLP with a massive pool of atomic experts, assembled dynamically for each token. It introduces a Cartesian Product Router to reduce routing complexity from $O(N)$ to about $O( ext{sqrt}(N))$ and an Expert-Centric Scheduling scheme to transform scattered memory accesses into dense, reusable GEMMs. In extensive experiments across seven benchmarks and multiple scales, OmniMoE achieves a 50.9 average zero-shot score with 1.7B active parameters and delivers up to a 10.9× inference speedup over state-of-the-art fine-grained baselines, while maintaining competitive memory usage. This holistic co-design demonstrates that massive-scale fine-grained MoEs can be both highly accurate and practically fast, and the authors provide open-source code for broader adoption.
Abstract
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.
