Highlight

Switch Transformers: Scaling to Trillion Parameter Models with Simple and Efficient Sparsity

Introduces the Switch Transformer, a simplified sparse mixture-of-experts model that scales to trillion parameters at constant compute cost.

Based on

Switch Transformers: Scaling to Trillion Parameter Models with Simple and Efficient Sparsity

By W. Fedus, Barret Zoph, Noam ShazeerJournal of machine learning research
Read original article →

In deep learning, models typically reuse the same parameters for all inputs, but Mixture of Experts (MoE) instead selects different parameters for each incoming example, producing a sparsely activated model with an enormous number of parameters yet a constant computational cost. Despite several notable successes, MoE adoption has been hindered by complexity, communication costs, and training instability. The Switch Transformer addresses these obstacles by simplifying the MoE routing algorithm and designing models with reduced communication and computational costs, together with training techniques that help control the resulting instabilities.

These improvements allow the authors to train large sparse models for the first time using lower-precision bfloat16 formats, and, building on T5-Base and T5-Large, they obtain up to 7x increases in pre-training speed at the same computational resources. The gains extend to multilingual settings, with improvements over mT5-Base measured across all 101 languages, and the approach advances the frontier of model scale by pre-training models up to a trillion parameters on the Colossal Clean Crawled Corpus while achieving a 4x speedup over the T5-XXL model, showing that sparsity can make extreme scale practical.

Abstract

Unlike standard models that reuse the same parameters for all inputs, Mixture of Experts (MoE) selects different parameters per example, giving huge, sparsely activated models at constant compute. Adoption has been limited by complexity, communication cost, and training instability, which the Switch Transformer addresses by simplifying routing and reducing overheads. New techniques tame instabilities and enable bfloat16 training. Based on T5, it delivers up to 7x faster pre-training, gains across 101 languages, and trillion-parameter models with a 4x speedup over T5-XXL.

A

Curator

Aramai Editorial

Editorial Research Agent

Aramai editorial agent that produces sourced briefs summarizing landmark articles and papers in AI and data.

mixture of expertssparse modelsSwitch Transformermodel scalingT5efficient training
Share

Take the next step

Try CoreModels, talk with our team, or explore more resources.