---
title: Mixture of Experts: A Team of Specialists Inside One Model | Large Programs
description: A mixture-of-experts model uses only a few of its many sub-networks for each input. What the 2017 paper proposed, what its numbers were and why it matters.
canonical: https://www.largeprograms.com/mixture-of-experts-a-team-of-small-networks/
---

[Home](/) / [How LLMs Work](/category/how-llms-work/)

How LLMs Work

# Mixture of Experts: A Team of Specialists Inside One Model

A mixture-of-experts model uses only a few of its many sub-networks for each input. What the 2017 paper proposed, what its numbers were and why it matters.

27 November 2026 · 2 min read

A hospital has many specialists, but each patient sees only a few of them. A **mixture-of-experts** model works in a similar way. Inside the model there are many small networks called experts. For each piece of input, a small "gating" network chooses a few experts to use, and the others stay quiet.

![A router sends each piece of input to a few chosen experts and combines their outputs.](/img/moe-routing.svg)

## The 2017 paper

The paper "Outrageously Large Neural Networks: The Sparsely-Gated Mixture-of-Experts Layer" explained how to make this work in practice. The abstract starts with a problem: a network's capacity to absorb information is limited by its number of parameters. Learn what these are in [what are parameters in AI](/what-are-parameters-in-ai/).

The idea of "conditional computation" is to switch on only parts of the network for each example, which in theory could greatly raise capacity without a matching rise in computing. The authors say that in practice this faced "significant algorithmic and performance challenges", and that their work addressed them.

## What the authors report

- A "Sparsely-Gated Mixture-of-Experts layer" made of up to thousands of feed-forward sub-networks, with a trainable gating network choosing a sparse combination for each example.
- More than a thousand times more model capacity with only minor losses in computing efficiency on GPU clusters.
- Models with up to 137 billion parameters, tested on language modelling and machine translation, with better results than the best earlier systems at lower computing cost.

These are the authors' own reported results, from 2017. Models and methods have changed a lot since.

## Why it matters

Bigger models usually know more, but they cost more to run. The mixture-of-experts idea is one way to get a large model's capacity without using all of it at once. Compare it with other ways to make models smaller or cheaper: [small language models](/small-language-models/) and [how big is a language model](/how-big-is-a-language-model/).

## A note on sources

Everything above comes from the abstract of the paper on arXiv (1701.06538), read on 27 November 2026. The hospital picture is this site's analogy.

## Sources

- [https://arxiv.org/abs/1701.06538](https://arxiv.org/abs/1701.06538)

[Read this page as Markdown (.md)](/mixture-of-experts-a-team-of-small-networks.md)

## Keep reading

[![](/img/hero/art-ai-art-and-music-basics.svg)](/ai-art-and-music-basics/)

How LLMs Work

### [How AI Makes Music: A Beginner's Look](/ai-art-and-music-basics/)

Models can generate melodies and songs by learning patterns in sound. What that means for musicians.

[![](/img/hero/art-backpropagation-how-neural-networks-learn-from-mistakes.svg)](/backpropagation-how-neural-networks-learn-from-mistakes/)

How LLMs Work

### [Backpropagation: How a Network Learns From Its Mistakes](/backpropagation-how-neural-networks-learn-from-mistakes/)

Backpropagation is the method that works out how to adjust each weight in a neural network after it makes an error. A simple explanation with a team analogy.

[![](/img/hero/art-chain-of-thought-prompting-showing-your-working.svg)](/chain-of-thought-prompting-showing-your-working/)

How LLMs Work

### [Chain-of-Thought Prompting: Showing the Steps](/chain-of-thought-prompting-showing-your-working/)

Asking a language model to show intermediate steps can improve its answers to hard problems. What the research found and how it is like showing your working in maths.
