PaperScaling up
Switch Transformer (2021): trillion parameter sparse models
Event date
William Fedus, Barret Zoph and Noam Shazeer simplified mixture of experts routing so that very large sparse models could be trained reliably. The paper reported models of up to a trillion parameters and large training speedups over dense T5 models at the same compute.
Key numbers
The idea
A standard model applies the same parameters to every input. A mixture of experts model instead holds many sets of parameters, called experts, and chooses which to use for each example. Its parameter count can therefore be very large while the computation per input stays roughly constant.
The approach had been held back by complexity, communication costs and unstable training. The Switch Transformer addressed this by simplifying the routing: each token is sent to a single expert, rather than a blend of several. The router is a small learned component that scores the experts for each token, so the choice is made by the model itself during training.
Sources: arxiv.org
What the authors changed
Besides simpler routing, the paper reduced communication and computation costs and introduced training techniques to improve stability. The authors reported that they trained large sparse models in bfloat16, a lower precision number format, for the first time.
The models were built on T5-Base and T5-Large, and pretrained on the Colossal Clean Crawled Corpus, the web text collection used for T5. In plain terms, a lower precision format uses less memory and communication bandwidth per number, which matters when many experts sit on different chips. The authors treated instability as a central obstacle, since it had held back wider adoption of mixture of experts.
Sources: arxiv.org
Results and legacy
Using the same compute, the authors reported up to a 7 times faster pretraining speed than the dense T5 baselines they started from. The gains carried into a multilingual setting, with improvements over mT5-Base across all 101 languages. At the largest scale they pretrained models of up to a trillion parameters and reported a 4 times speedup over T5-XXL.
These are the authors' figures from their own experiments, and they measure pretraining speed at equal computational resources, not final quality alone. The paper helped establish sparse expert models as a serious route to scale, and the same family of designs appears later on this timeline.
Sources: arxiv.org
Why it mattered
- It showed that parameter count and per-token compute could be separated, which is the main attraction of mixture of experts designs.
- It made sparse training more stable and simpler to implement, lowering the barrier to using the idea.
- It set a headline size of one trillion parameters, though only a fraction of those parameters are active for any one token.
Questions
Is a trillion parameter Switch Transformer as costly to run as a dense one?
What is a Switch Transformer?
How many parameters did the Switch Transformer have?
About this page
Part of our LLM history timeline. The event happened on 11 January 2021; we wrote this page on 20 November 2026 from the original papers and announcements listed below. Lab-reported results are labelled as such. Read our editorial policy. Found an error? Tell us and we will correct it with a dated note.