[Paper Review] Sparse Upcycling: Training Mixture-of-Experts from Dense Checkpoints
This paper introduces sparse upcycling, a method to convert already-trained dense Transformer models into more powerful Mixture-of-Experts (MoE) models by initializing MoE layers from dense checkpoints. The approach achieves state-of-the-art performance on SuperGLUE and ImageNet, outperforming both the original dense models and MoE models trained from scratch, using only ~50% of the original pretraining compute budget.
Training large, deep neural networks to convergence can be prohibitively expensive. As a result, often only a small selection of popular, dense models are reused across different contexts and tasks. Increasingly, sparsely activated models, which seek to decouple model size from computation costs, are becoming an attractive alternative to dense models. Although more efficient in terms of quality and computation cost, sparse models remain data-hungry and costly to train from scratch in the large scale regime. In this work, we propose sparse upcycling -- a simple way to reuse sunk training costs by initializing a sparsely activated Mixture-of-Experts model from a dense checkpoint. We show that sparsely upcycled T5 Base, Large, and XL language models and Vision Transformer Base and Large models, respectively, significantly outperform their dense counterparts on SuperGLUE and ImageNet, using only ~50% of the initial dense pretraining sunk cost. The upcycled models also outperform sparse models trained from scratch on 100% of the initial dense pretraining computation budget.
Motivation & Objective
- To address the high computational cost of training large sparse models from scratch by reusing existing dense model checkpoints.
- To enable performance gains in large models without requiring new data or full retraining.
- To develop a practical method for upgrading dense models into more efficient, high-capacity MoE models with minimal additional compute.
- To demonstrate that MoE models initialized from dense checkpoints can surpass both the original dense models and MoE models trained from scratch under the same compute budget.
Proposed method
- Initialize a Mixture-of-Experts (MoE) model by repurposing a pre-trained dense Transformer checkpoint as a warm-start for MoE layers.
- Replace the MLP components in Transformer blocks with a set of expert feedforward networks and a router network to enable sparse activation.
- Use Expert Choice routing to dynamically select the most relevant experts per token, enabling efficient computation.
- Apply a model surgery recipe that includes careful initialization and adaptation of MoE components to minimize performance drop during structural change.
- Train the upcycled MoE model with a modest additional compute budget—typically 10% to 60% of the original dense model’s pretraining cost.
- Use the same data and training schedule as the original dense model, ensuring no new data is introduced.
Experimental results
Research questions
- RQ1Can a pre-trained dense model be effectively upcycled into a more powerful MoE model with minimal additional compute?
- RQ2Does initializing MoE layers from a dense checkpoint lead to better performance than continued training of the original dense model?
- RQ3Can upcycled MoE models outperform MoE models trained from scratch when given the same total compute budget?
- RQ4How much additional compute is required to achieve performance gains through sparse upcycling compared to continued dense training?
- RQ5Does the upcycling method generalize across different model architectures and domains, such as NLP and vision?
Key findings
- Upcycled T5-Base, T5-Large, and T5-XL models outperform their dense counterparts by 1.5–2 absolute points on SuperGLUE, using only 46–55% of the original pretraining compute.
- The upcycled ViT-Base and ViT-Large models achieve 1%+ accuracy gains on ImageNet 10-shot, requiring only 13% additional training time compared to 58% for continued dense training.
- Sparse upcycling achieves better performance than MoE models trained from scratch when given the same total compute budget, demonstrating the value of reusing pre-trained weights.
- For ViT-Base, upcycling with 13% extra compute achieves a 1%+ gain on ImageNet 10-shot, while continued dense training requires 58% extra compute for the same gain.
- The method is effective across multiple model sizes and domains: upcycled models on both language and vision tasks surpass both dense and from-scratch MoE baselines under constrained compute.
- The upcycling method is robust and generalizable, showing consistent performance improvements across different model architectures and tasks, including SuperGLUE and ImageNet.
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.