[Paper Review] Sparse MoE as the New Dropout: Scaling Dense and Self-Slimmable Transformers
This paper proposes SMoE-Dropout, a plug-and-play training framework that uses a fixed, randomly initialized router to gradually increase the number of activated experts during training, enabling transformers to achieve better accuracy without collapse. The method induces a 'self-slimmable' property, allowing smooth performance gains during inference and fine-tuning based on available resources, with BERT models outperforming dense counterparts by up to 1.09% on reasoning tasks.
Despite their remarkable achievement, gigantic transformers encounter significant drawbacks, including exorbitant computational and memory footprints during training, as well as severe collapse evidenced by a high degree of parameter redundancy. Sparsely-activated Mixture-of-Experts (SMoEs) have shown promise to mitigate the issue of training efficiency, yet they are prone to (1) redundant experts due to representational collapse; and (2) poor expert scalability for inference and downstream fine-tuning, primarily due to overfitting of the learned routing policy to the number of activated experts during training. As recent research efforts are predominantly focused on improving routing policies to encourage expert specializations, this work focuses on exploring the overlooked scalability bottleneck of SMoEs and leveraging it to effectively scale dense transformers. To this end, we propose a new plug-and-play training framework, SMoE-Dropout, to enable scaling transformers to better accuracy in their full capacity without collapse. Specifically, SMoE-Dropout consists of a randomly initialized and fixed router network to activate experts and gradually increases the activated expert number as training progresses over time. Transformers trained by SMoE-Dropout naturally exhibit a self-slimmable property subject to resource availability, offering smooth and consistent performance boosts with an increase in activated experts during inference or fine-tuning. Our extensive experiments demonstrate the superior performance and substantial computation savings of SMoE-Dropout, compared to dense training baselines with equivalent parameter counts. In particular, our trained BERT outperforms its densely trained counterpart with consistent improvements of {1.03%, 0.78%, 1.09%} on challenging reasoning tasks {ASDiv-A, MAWPS, SVAMP}, respectively.
Motivation & Objective
- To address representational collapse and poor scalability in sparse Mixture-of-Experts (SMoE) models during inference and fine-tuning.
- To explore the overlooked scalability bottleneck in SMoE training, particularly due to overfitting of routing policies to fixed expert counts.
- To develop a plug-and-play method that enables full-capacity model scaling without collapse, ensuring consistent performance gains with increasing expert usage.
- To provide a dynamic, resource-aware inference and fine-tuning capability through a 'self-slimmable' transformer architecture.
Proposed method
- Introduces a fixed, randomly initialized router network that does not update during training, replacing learnable routing mechanisms.
- Gradually increases the number of activated experts (k) over the course of training, enabling progressive capacity scaling.
- Applies SMoE modules to later layers of the transformer architecture, which empirically yields better performance than early-layer insertion.
- Uses modularization to insert SMoE blocks into specific transformer layers, with ablation showing later-layer placement is most effective.
- Employs a random routing policy that avoids overfitting and promotes expert specialization through implicit regularization.
- Enables smooth performance scaling during inference and fine-tuning by allowing the number of activated experts to be adjusted based on resource availability.
Experimental results
Research questions
- RQ1Can a fixed, random routing policy mitigate representational collapse and improve scalability in sparse Mixture-of-Experts (SMoE) models?
- RQ2Does gradually increasing the number of activated experts during training lead to better generalization and performance gains during inference and fine-tuning?
- RQ3How does SMoE-Dropout compare to learnable routing and dense training in terms of overfitting and model capacity utilization?
- RQ4Where is the optimal position to insert SMoE modules in a transformer to maximize performance and scalability?
- RQ5Can SMoE-Dropout produce more distillable models for resource-constrained deployment compared to standard SMoE or dense models?
Key findings
- SMoE-Dropout-trained BERT models achieve consistent improvements of 1.03%, 0.78%, and 1.09% on the ASDiv-A, MAWPS, and SVAMP reasoning tasks, respectively, over their dense counterparts.
- The method induces a 'self-slimmable' property, where performance increases smoothly with the number of activated experts during inference and fine-tuning, enabling dynamic efficiency-performance trade-offs.
- On the enwik8 test set, SMoE-Dropout achieves a bits-per-character (BPC) of 2.96×10⁻² with 16 experts, significantly outperforming fully random and deterministic hash routing baselines.
- SMoE-Dropout models show no signs of overfitting even at 12 layers or 16 experts, while learnable SMoE models exhibit performance degradation due to overfitting.
- Distillation experiments show SMoE-Dropout models achieve 0.76% to 1.89% higher accuracy when distilled into a single-expert model on the SST-2 task compared to dense or standard SMoE models.
- Ablation studies confirm that gradually increasing k is essential for the self-slimmable property, and disabling this schedule leads to worse performance even when all parameters are used.
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.