0:00
/

Upcycling Large Language Models into Mixture of Experts

Generated this podcast with Google's Illuminate.

New way to optimally upcycle dense LLMs to sparse mixture-of-experts (MoE)boosts performance without full retraining.

πŸ“š https://arxiv.org/abs/2410.07524

Original Problem πŸ”:

Upcycling pre-trained dense LLMs into sparse mixture-of-experts (MoE) models efficiently increases model capacity without training from scratch. However, optimal techniques for upcycling at scale remain unclear.

-----

Solution in this Paper πŸ› οΈ:

β€’ Proposes "virtual group" initialization for fine-grained MoE upcycling

β€’ Introduces weight scaling approach for both coarse and fine-grained MoEs

β€’ Compares softmax-then-topK vs topK-then-softmax expert routing

β€’ Assesses benefits of higher granularity MoEs and higher topK values

β€’ Provides training recipes for billion-parameter scale LLM upcycling

-----

Key Insights from this Paper πŸ’‘:

β€’ Upcycling outperforms continued dense model training

β€’ Softmax-then-topK routing improves over topK-then-softmax

β€’ Higher granularity MoEs can boost accuracy but require careful tuning

β€’ Resetting learning rate to peak pre-training levels improves upcycling

β€’ Larger batch sizes (up to a point) improve convergence and efficiency

-----

Results πŸ“Š:

β€’ For a 64 experts MoE top-8 model (E8G8T8) upcycled model: 4.1% lower validation loss than dense continued training

β€’ E8G8T8 MMLU score: 66.2 vs 65.3 for dense continued training

β€’ Weight scaling brings 1.5% better loss to both coarse and fine-grained MoEs

Discussion about this video

User's avatar

Ready for more?