Towards Understanding Mixture of Experts in Deep Learning
Zixiang Chen, Yihe Deng, Yue Wu, Quanquan Gu, Yuanzhi Li
TL;DR
The paper offers a formal analysis of why sparse MoE layers with nonlinear experts outperform single models on cluster-structured data, showing that a router can learn cluster-centered routing and specialists can emerge among experts. It demonstrates a negative result for single experts and a positive result for nonlinear MoEs trained via gradient descent with routing perturbations, including a staged exploration and router-learning process. Through synthetic and real-data experiments, the work substantiates the importance of cluster structure and nonlinearities, and reveals that MoEs' benefits depend on task structure. Overall, this study provides foundational insight into MoE mechanisms beyond NTK and suggests practical training strategies to realize their potential in deep learning systems.
Abstract
The Mixture-of-Experts (MoE) layer, a sparsely-activated model controlled by a router, has achieved great success in deep learning. However, the understanding of such architecture remains elusive. In this paper, we formally study how the MoE layer improves the performance of neural network learning and why the mixture model will not collapse into a single model. Our empirical results suggest that the cluster structure of the underlying problem and the non-linearity of the expert are pivotal to the success of MoE. To further understand this, we consider a challenging classification problem with intrinsic cluster structures, which is hard to learn using a single expert. Yet with the MoE layer, by choosing the experts as two-layer nonlinear convolutional neural networks (CNNs), we show that the problem can be learned successfully. Furthermore, our theory shows that the router can learn the cluster-center features, which helps divide the input complex problem into simpler linear classification sub-problems that individual experts can conquer. To our knowledge, this is the first result towards formally understanding the mechanism of the MoE layer for deep learning.
