[Paper Review] Exploring Sparse Expert Models and Beyond
This paper proposes expert prototyping, a method that splits experts into prototypes and uses top-1 routing to improve sparse expert model performance while maintaining constant computation costs. It achieves a 1.1 trillion parameter model on 480 V100 GPUs with faster convergence than SOTA models trained on 2048 TPU cores, demonstrating that expert capacity and routing sparsity are critical to performance.
Mixture-of-Experts (MoE) models can achieve promising results with outrageous large amount of parameters but constant computation cost, and thus it has become a trend in model scaling. Still it is a mystery how MoE layers bring quality gains by leveraging the parameters with sparse activation. In this work, we investigate several key factors in sparse expert models. We observe that load imbalance may not be a significant problem affecting model quality, contrary to the perspectives of recent studies, while the number of sparsely activated experts $k$ and expert capacity $C$ in top-$k$ routing can significantly make a difference in this context. Furthermore, we take a step forward to propose a simple method called expert prototyping that splits experts into different prototypes and applies $k$ top-$1$ routing. This strategy improves the model quality but maintains constant computational costs, and our further exploration on extremely large-scale models reflects that it is more effective in training larger models. We push the model scale to over $1$ trillion parameters and implement it on solely $480$ NVIDIA V100-32GB GPUs, in comparison with the recent SOTAs on $2048$ TPU cores. The proposed giant model achieves substantial speedup in convergence over the same-size baseline.
Motivation & Objective
- To investigate key factors influencing performance in sparse expert models, particularly load balancing, expert capacity, and routing sparsity.
- To address the challenge of scaling MoE models efficiently while maintaining constant computational cost.
- To improve model quality in extremely large-scale models through a novel routing and expert organization strategy.
- To demonstrate the feasibility and benefits of training trillion-parameter MoE models on fewer, more accessible hardware like V100 GPUs.
Proposed method
- Proposes expert prototyping, which divides experts into distinct prototypes and applies top-1 routing to each, reducing routing complexity.
- Uses top-k routing with k=1 per prototype, maintaining constant computation cost while improving model expressiveness.
- Employs a routing mechanism that selects one expert per prototype based on input, enabling sparse activation across prototypes.
- Scales the model to over 1 trillion parameters using only 480 NVIDIA V100-32GB GPUs, avoiding reliance on large TPU clusters.
- Conducts ablation studies to evaluate the impact of expert capacity C and routing sparsity k on model quality.
- Compares the proposed model against same-size baselines and SOTA models to validate convergence speed and performance.
Experimental results
Research questions
- RQ1Does load imbalance significantly degrade model quality in MoE models, contrary to common assumptions?
- RQ2How do the number of activated experts (k) and expert capacity (C) affect the performance of sparse expert models?
- RQ3Can expert prototyping improve model quality without increasing computational cost?
- RQ4How effective is expert prototyping in training extremely large-scale models?
- RQ5Does the proposed method enable faster convergence compared to standard MoE baselines at the same scale?
Key findings
- Load imbalance is not a major issue affecting model quality, challenging prior assumptions in recent studies.
- The number of sparsely activated experts (k) and expert capacity (C) significantly influence model performance.
- Expert prototyping improves model quality while maintaining constant computational cost, enabling efficient scaling.
- The method enables training a 1.1 trillion parameter MoE model on just 480 V100-32GB GPUs, outperforming SOTA models trained on 2048 TPU cores.
- The proposed model achieves substantial speedup in convergence compared to same-size baselines, demonstrating improved training efficiency.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.