NLP Lineage

23 January 2017 · Scale and data

Sparse MoE

Outrageously Large Neural Networks: The Sparsely-Gated Mixture-of-Experts Layer

N. Shazeer, A. Mirhoseini, K. Maziarz, A. Davis, Q. Le, G. Hinton, J. Dean

Date
23 January 2017
What the date marks
arXiv submission
Kind
Architectural idea
Organisation
Google Brain
Access
Apache 2.0
Other dates
ICLR 2017
Threads
In the guided tour
Chapter 3. Attention, then only attention
Learning phases
8. Training from scratch

A turning point: 4 later milestones descend directly from it, and its descendants reach 9 of the 10 threads. How levels are decided

Drafted with Claude from the paper on 15 October 2026; reviewed by Zeeshan Arif. Read from arxiv.org (arXiv version 1 (January 2017), marked as under review for ICLR 2017).

What it changed

It made a network more than 1,000 times bigger without making each prediction cost much more, by sending each input to only a few of many small sub-networks, called experts. This idea, conditional computation, is how many large language models are built today.

The problem before it

Bigger networks learn more from big datasets. But in a normal network, every weight is used for every input. So the cost of training grows with the size of the model and with the amount of data, roughly with the product of the two.

Conditional computation was an old idea: use only part of the network for each input. In theory it adds capacity without adding cost. In practice no one had made it work well. The authors list the reasons:

The idea

The mechanism. The paper adds a new layer, the sparsely gated mixture-of-experts layer (MoE layer). It has two parts:

The layer’s output is the weighted sum of the outputs of the chosen experts. The other experts do no work for this input. That is where the saving comes from.

Two more parts make it train well:

The engineering is half of the paper. Each expert is kept once and shared by all the data-parallel copies of the model, so each expert gets a large combined batch. The MoE layer is applied at every position in the text in one big batch.

The notation. The output is y = Σ_i G(x)_i E_i(x), where E_i is expert i. The gate is G(x) = Softmax(KeepTopK(H(x), k)). The noisy score is H(x)_i = (x · W_g)_i + StandardNormal() · Softplus((x · W_noise)_i). Where G(x)_i is zero, expert i is not computed.

What it showed

Reported in the paper. We read version 1 of the arXiv preprint, which was under review for ICLR 2017 at that time. Perplexity measures how well a language model predicts text; lower is better. BLEU is a standard score for translation; higher is better.

Limits, and what came later

The limits come from the paper’s results:

Later work built directly on it. GShard scaled this kind of conditional computation further. The Switch Transformer built on the sparsely gated layer. Mixtral 8x7B cites the layer, and DeepSeekMoE continues the same line of work.

What to know first

How to read it

The paper is 19 pages including appendices.

  1. Read section 1.1 for the problem and the list of practical challenges.
  2. Read section 2 with Figure 1, and section 2.1 on the noisy top-k gate. This is the core idea.
  3. Read section 4 on balancing the experts.
  4. Look at Table 1 and Figure 2 (language modelling) and Table 2 (translation).
  5. Read section 3 when you want the engineering details.

Expect about 1.5 hours for the steps above (an estimate).

In brief, from the research data

Before it

Model capacity and compute per example rose together, so bigger meant slower.

The problem

You cannot afford to run every parameter on every token.

What it introduced

Thousands of expert subnetworks with a gate selecting a few per token, adding capacity without adding compute.

Why it matters

It revived the 1991 mixture-of-experts idea at scale and set up GShard, Switch, Mixtral and the DeepSeek line.

What modern models inherit

Sparse activation, now standard in frontier models.

What came next

GShard and Switch Transformer industrialised the routing.

Before and after

The milestones it descends from, and the milestones that descend from it. Work developed alongside it is not counted. Weak links are left out unless you include them.

Before: where it came from

Sparse MoE has 3 documented ancestors across 1 chapter, reaching back to Recurrent networks in 1990. Showing its direct parents and the 1 turning point among them.

Sparse MoE has 3 documented ancestors across 1 chapter, reaching back to Recurrent networks in 1990. Showing all of them.

Sparse MoE has 3 recorded ancestors, including indirect ones, across 1 chapter, reaching back to Recurrent networks in 1990. Showing its direct parents and the 1 turning point among them.

Sparse MoE has 3 recorded ancestors, including indirect ones, across 1 chapter, reaching back to Recurrent networks in 1990. Showing all of them.

  1. 2017Sparse MoEThis milestone.
  2. 1997LSTM Turning pointSparse MoE built directly on thisChapter 1. Language as probability
  3. 1991Mixture of expertsSparse MoE built directly on thisChapter 1. Language as probability
  4. 1990Recurrent networksLSTM was influenced by thisChapter 1. Language as probability
  1. 2017Sparse MoEThis milestone.
  2. 1997LSTM Turning pointSparse MoE built directly on thisChapter 1. Language as probability
  3. 1991Mixture of expertsSparse MoE built directly on thisChapter 1. Language as probability
  4. 1990Recurrent networksLSTM was influenced by thisChapter 1. Language as probability

After: what it led to

Sparse MoE has 30 documented descendants across 8 chapters, reaching forward to Qwen3.8 in 2026. Showing its direct descendants and the 1 turning point among them.

Sparse MoE has 30 documented descendants across 8 chapters, reaching forward to Qwen3.8 in 2026. Showing all of them.

Sparse MoE has 33 recorded descendants, including indirect ones, across 8 chapters, reaching forward to Qwen3.8 in 2026. Showing its direct descendants and the 1 turning point among them.

Sparse MoE has 33 recorded descendants, including indirect ones, across 8 chapters, reaching forward to Qwen3.8 in 2026. Showing all of them.

  1. 2017Sparse MoEThis milestone.
  2. 2020GShard Turning pointbuilt directly on Sparse MoEChapter 5. Scale becomes a science
  3. 2021Switch Transformerbuilt directly on Sparse MoEChapter 5. Scale becomes a science
  4. 2022PaLMwas influenced by GShardChapter 5. Scale becomes a science
  5. 2022Emergent abilitieswas influenced by PaLMChapter 5. Scale becomes a science
  6. 2022Flan-T5 / Flan-PaLMbuilt directly on PaLMChapter 6. Teaching models what people want
  7. 2023Emergence miragesucceeded Emergent abilitiesChapter 5. Scale becomes a science
  8. 2023Gemini 1.0was influenced by GShardChapter 11. Seeing and hearing
  9. 2023Mixtral 8x7Bwas influenced by Sparse MoEChapter 8. The weights get out
  10. 2024DeepSeekMoEwas influenced by Sparse MoEChapter 8. The weights get out
  11. 2024Gemini 1.5was influenced by GShardChapter 10. Reading more than you remember
  12. 2024Gemmabuilt directly on Gemini 1.0Chapter 8. The weights get out
  13. 2024DeepSeek-V2 / MLAbuilt directly on DeepSeekMoEChapter 9. Making it run anywhere
  14. 2024Gemini 2.0built directly on Gemini 1.5Chapter 14. Where the threads meet now
  15. 2024DeepSeek-V3built directly on DeepSeekMoEChapter 8. The weights get out
  16. 2025DeepSeek-R1built directly on DeepSeek-V3Chapter 12. Thinking longer
  17. 2025Gemini 2.5was influenced by Gemini 1.5Chapter 12. Thinking longer
  18. 2025Llama 4was influenced by Switch TransformerChapter 8. The weights get out
  19. 2025Qwen3was influenced by DeepSeek-R1Chapter 8. The weights get out
  20. 2025Kimi K2was influenced by DeepSeekMoEChapter 8. The weights get out
  21. 2025IMO goldbuilt directly on Gemini 2.5Chapter 12. Thinking longer
  22. 2025DeepSeek-V3.2was influenced by DeepSeek-V2 / MLA
    built directly on DeepSeek-V3
    Chapter 10. Reading more than you remember
  23. 2025IMO-ProofBenchwas influenced by IMO goldChapter 12. Thinking longer
  24. 2025Gemini 3was influenced by Gemini 1.5Chapter 14. Where the threads meet now
  25. 2026Gemini 3 Deep Thinkbuilt directly on Gemini 3Chapter 12. Thinking longer
  26. 2026Qwen3.5built directly on Qwen3Chapter 8. The weights get out
  27. 2026Gemini 3.1built directly on Gemini 3Chapter 14. Where the threads meet now
  28. 2026Muse Sparksucceeded Llama 4Chapter 8. The weights get out
  29. 2026DeepSeek-V4was influenced by DeepSeek-V3Chapter 8. The weights get out
  30. 2026Kimi K3built directly on Kimi K2Chapter 8. The weights get out
  31. 2026Qwen3.8built directly on Qwen3.5Chapter 8. The weights get out
  1. 2017Sparse MoEThis milestone.
  2. 2020GShard Turning pointbuilt directly on Sparse MoEChapter 5. Scale becomes a science
  3. 2021Switch Transformerbuilt directly on Sparse MoEChapter 5. Scale becomes a science
  4. 2022PaLMwas influenced by GShardChapter 5. Scale becomes a science
  5. 2022Emergent abilitieswas influenced by PaLMChapter 5. Scale becomes a science
  6. 2022Flan-T5 / Flan-PaLMbuilt directly on PaLMChapter 6. Teaching models what people want
  7. 2023Emergence miragesucceeded Emergent abilitiesChapter 5. Scale becomes a science
  8. 2023Gemini 1.0was influenced by GShardChapter 11. Seeing and hearing
  9. 2023Mixtral 8x7Bwas influenced by Sparse MoEChapter 8. The weights get out
  10. 2024DeepSeekMoEwas influenced by Sparse MoEChapter 8. The weights get out
  11. 2024Gemini 1.5was influenced by GShardChapter 10. Reading more than you remember
  12. 2024Gemmabuilt directly on Gemini 1.0Chapter 8. The weights get out
  13. 2024DeepSeek-V2 / MLAbuilt directly on DeepSeekMoEChapter 9. Making it run anywhere
  14. 2024Gemini 2.0built directly on Gemini 1.5Chapter 14. Where the threads meet now
  15. 2024DeepSeek-V3built directly on DeepSeekMoEChapter 8. The weights get out
  16. 2025DeepSeek-R1built directly on DeepSeek-V3Chapter 12. Thinking longer
  17. 2025Gemini 2.5was influenced by Gemini 1.5Chapter 12. Thinking longer
  18. 2025Llama 4was influenced by Switch Transformer
    was influenced by Mixtral 8x7B (indirect influence)
    Chapter 8. The weights get out
  19. 2025Qwen3was influenced by DeepSeek-R1Chapter 8. The weights get out
  20. 2025Kimi K2was influenced by DeepSeekMoEChapter 8. The weights get out
  21. 2025IMO goldbuilt directly on Gemini 2.5Chapter 12. Thinking longer
  22. 2025gpt-osswas influenced by DeepSeek-R1 (indirect influence)Chapter 8. The weights get out
  23. 2025GLM-4.5was influenced by DeepSeek-R1 (indirect influence)Chapter 8. The weights get out
  24. 2025DeepSeek-V3.2was influenced by DeepSeek-V2 / MLA
    built directly on DeepSeek-V3
    Chapter 10. Reading more than you remember
  25. 2025IMO-ProofBenchwas influenced by IMO goldChapter 12. Thinking longer
  26. 2025Gemini 3was influenced by Gemini 1.5Chapter 14. Where the threads meet now
  27. 2026Gemini 3 Deep Thinkbuilt directly on Gemini 3Chapter 12. Thinking longer
  28. 2026Qwen3.5built directly on Qwen3Chapter 8. The weights get out
  29. 2026Gemini 3.1built directly on Gemini 3Chapter 14. Where the threads meet now
  30. 2026Muse Sparksucceeded Llama 4Chapter 8. The weights get out
  31. 2026DeepSeek-V4was influenced by DeepSeek-V3Chapter 8. The weights get out
  32. 2026GLM-5.2built directly on GLM-4.5Chapter 8. The weights get out
  33. 2026Kimi K3built directly on Kimi K2Chapter 8. The weights get out
  34. 2026Qwen3.8built directly on Qwen3.5Chapter 8. The weights get out

Direct links and their sources

Where it came from

Built directly on

What it led to

Built on directly by

Influenced

Terms