HMoE: Heterogeneous Mixture of Experts for Language Modeling
An Wang, Xingwu Sun, Ruobing Xie, Shuaipeng Li, Jiaqi Zhu, Zhen Yang, Pinxue Zhao, J. N. Han, Zhanhui Kang, Di Wang, Naoaki Okazaki, Cheng-zhong Xu
TL;DR
Mixture of Experts models enable parameter-efficient scaling, but traditional MoE uses homogeneous experts with equal capacity, limiting specialization. This paper introduces HMoE, a heterogeneous MoE where experts differ in size to better match token complexity, and proposes training objectives, including a parameter penalty loss and router-entropy considerations, to bias activation toward smaller experts while preserving ability for hard tasks. Empirical results on RedPajama-based pretraining show HMoE achieves lower loss with fewer activated parameters and outperforms homogeneous MoE across multiple pre-training evaluation benchmarks, under both Top-K and Top-P routing. The findings suggest heterogeneous expert sizes promote specialization and efficiency, enabling more scalable, bias-aware MoE-based language models; future work will explore broader heterogeneity strategies and hardware-friendly training.
Abstract
Mixture of Experts (MoE) offers remarkable performance and computational efficiency by selectively activating subsets of model parameters. Traditionally, MoE models use homogeneous experts, each with identical capacity. However, varying complexity in input data necessitates experts with diverse capabilities, while homogeneous MoE hinders effective expert specialization and efficient parameter utilization. In this study, we propose a novel Heterogeneous Mixture of Experts (HMoE), where experts differ in size and thus possess diverse capacities. This heterogeneity allows for more specialized experts to handle varying token complexities more effectively. To address the imbalance in expert activation, we propose a novel training objective that encourages the frequent activation of smaller experts, enhancing computational efficiency and parameter utilization. Extensive experiments demonstrate that HMoE achieves lower loss with fewer activated parameters and outperforms conventional homogeneous MoE models on various pre-training evaluation benchmarks. Codes will be released upon acceptance.
