---
title: Switch Transformer (2021): trillion parameter sparse models
url: https://llmsranked.com/history/switch-transformer/
updated: 2026-11-20
---

Paper· [Scaling up](https://llmsranked.com/history/#era-scale)

# Switch Transformer (2021): trillion parameter sparse models

Event date 11 January 2021

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.

- [Google Research](https://llmsranked.com/providers/google/)
- [LLMs Ranked editors](https://llmsranked.com/editorial-policy/)
- Published 20 Nov 2026
- 2 min read
- 1 sources

2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026

2021

On this page

- [Key numbers](#kn-h)
- [The idea](#the-idea)
- [What the authors changed](#what-the-authors-changed)
- [Results and legacy](#results-and-legacy)
- [Why it mattered](#wm-h)
- [Questions](#hf-h)
- [On the timeline](#tl-h)
- [Sources](#hsrc-h)

## Key numbers

**Pretraining speedup over T5-Base and T5-Large at equal compute, reported by the authors**
Up to 7x[arxiv.org](https://arxiv.org/abs/2101.03961)

**Speedup over T5-XXL for the trillion parameter models, reported by the authors**
4x[arxiv.org](https://arxiv.org/abs/2101.03961)

**Languages improved over mT5-Base, reported by the authors**
101[arxiv.org](https://arxiv.org/abs/2101.03961)

## 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](https://arxiv.org/abs/2101.03961)

## 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](https://arxiv.org/abs/2101.03961)

## 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](https://arxiv.org/abs/2101.03961)

## 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](https://llmsranked.com/history/). 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](https://llmsranked.com/editorial-policy/). Found an error? [Tell us](https://llmsranked.com/contact/) and we will correct it with a dated note.

## On the timeline

[Earlier28 May 2020
GPT-3 (2020): a 175 billion parameter few-shot learner](https://llmsranked.com/history/gpt-3/)[Later17 Jun 2021
LoRA (2021): fine-tuning with small low-rank matrices](https://llmsranked.com/history/lora/)

### Related milestones

- [2019 · 10T5 (2019): a text to text Transformer and the C4 dataset](https://llmsranked.com/history/t5/)
- [2020 · 01Scaling Laws (2020): how language model loss falls with scale](https://llmsranked.com/history/scaling-laws/)
- [2020 · 05GPT-3 (2020): a 175 billion parameter few-shot learner](https://llmsranked.com/history/gpt-3/)
- [2023 · 12Mixtral 8x7B (2023): an open weights mixture of experts](https://llmsranked.com/history/mixtral-8x7b/)

## Terms and labs

- [Mixture of experts](https://llmsranked.com/glossary/#mixture-of-experts)
- [Parameters](https://llmsranked.com/glossary/#parameters)
- [Active parameters](https://llmsranked.com/glossary/#active-parameters)
- [Dense model](https://llmsranked.com/glossary/#dense-model)
- [Google models](https://llmsranked.com/providers/google/)

## Sources

Papers and announcements we read for this page.

- [Fedus, Zoph and Shazeer, Switch Transformers (arXiv)](https://arxiv.org/abs/2101.03961)
