# Mixture of Experts

> The Mixture of Experts (MoE) is a model architecture where only a part of the network is activated for each token.

## What is mixture of experts (MoE) in AI models?

The architecture where a model consists of many expert subnetworks and a router selects only a few of them for each token. Allows building very large models while keeping inference relatively fast and cheap.

- Topic: Training & Architecture
- Type: architecture

## Interview questions

### Is a mixture of experts model cheaper to run?

Each token uses only a few experts, so compute per token is lower than in a dense model of the same total size. All weights must still fit in memory.

### What does the router do in a mixture of experts model?

The router is a small network that picks which experts process each token, based on the token's representation.

### What is the difference between total and active parameters?

Total parameters are all weights in the model. Active parameters are the ones actually used for one token, which sets the compute cost.

## Related cards

- [Transformer](https://wonderium.dev/ai/transformer.md)
- [Parameters](https://wonderium.dev/ai/parameters.md)
- [Inference](https://wonderium.dev/ai/inference.md)
- [LLM](https://wonderium.dev/ai/llm.md)

---

- Level: [Artificial Intelligence](https://wonderium.dev/ai.md)
- HTML version: https://wonderium.dev/ai/mixture-of-experts
- Last updated: 2026-11-25
