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.

Milestone 13 of 68 on the LLM history timeline, 2016 to 2026. Each dot is one milestone.

Key numbers

Pretraining speedup over T5-Base and T5-Large at equal compute, reported by the authors
Up to 7xarxiv.org
Speedup over T5-XXL for the trillion parameter models, reported by the authors
4xarxiv.org
Languages improved over mT5-Base, reported by the authors
101arxiv.org

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?
No, by design. Only the chosen expert runs for each token, so the computation per token stays roughly constant while the parameter count grows. The memory needed to hold all the experts still grows with size.
What is a Switch Transformer?
It is a Transformer in which some layers contain many expert sub-networks and a router sends each token to just one of them. Only that expert runs for the token.
How many parameters did the Switch Transformer have?
The paper reports models of up to a trillion parameters, pretrained on the Colossal Clean Crawled Corpus.

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.

On the timeline

Related milestones

Terms and labs

Sources

Papers and announcements we read for this page.

  1. Fedus, Zoph and Shazeer, Switch Transformers (arXiv)

Sign in to vote as verified

Signed-in votes count once per account and show as verified. You can still vote without an account.

We use your email only to run your account. No marketing, no sharing, no passwords. Delete your account any time. Privacy

Delete your account?

This removes your account, your email and every vote you made while signed in. It cannot be undone.