# Dense vs Sparse Architecture

- **Canonical URL:** https://getaimath.com/dictionary/dense-vs-sparse-architecture/
- **Topics:** [Mixture of Experts (MoE)](https://getaimath.com/dictionary/category/mixture-of-experts-moe/)
- **Last updated:** 2026-11-25

## What is Dense vs Sparse Architecture?

**In one sentence:** Dense vs sparse architecture compares models that use all parameters for every token with models that only use some.

Dense models are simpler and predictable. Sparse models, like MoE, store more knowledge for the same compute per token, but need more memory and are harder to train and serve.

![Mixture of Experts (MoE): A Team of Specialists (Only 2 Wake Up) — Simple cartoon showing a question arriving at a Front Desk Receptionist (Router) who wakes up only 2 out of 8 specialist doctors (Math and Finance) while the other 6 specialists stay asleep to save energy.](https://getaimath.com/diagrams/mixture-of-experts-moe.png)
*Napkin Diagram (Mixture of Experts (MoE)): Mixture-of-Experts wakes up only 2 of its 8 specialists for each word (real experts’ specialties are messier than neat topics).*

## What is an example of Dense vs Sparse Architecture?

A 400B-total, 17B-active MoE model does about a quarter of the per-token math of a 70B dense model, but needs several times more memory to hold all its weights.

## Why does Dense vs Sparse Architecture matter?

This comparison explains much of how modern frontier models are built.

## Related Concepts

- [Expert Communication](https://getaimath.com/dictionary/expert-communication/): Expert communication is the data sent between GPUs when tokens travel to the experts they need and back.
- [Conditional Computation](https://getaimath.com/dictionary/conditional-computation/): Conditional computation means the model decides which parts of itself to use based on the input.
- [Expert Parallelism](https://getaimath.com/dictionary/expert-parallelism/): Expert parallelism spreads the experts of an MoE model across different GPUs, so each GPU holds and runs some of the experts.
- [MoE Layer](https://getaimath.com/dictionary/moe-layer/): An MoE layer is a layer that replaces a normal feed-forward network with a router and a group of experts.
- [Auxiliary Loss](https://getaimath.com/dictionary/auxiliary-loss/): An auxiliary loss is an extra training penalty added to encourage a side goal, such as balancing work across experts.
- [Fine-Grained Experts](https://getaimath.com/dictionary/fine-grained-experts/): Fine-grained experts are many small experts instead of a few big ones, allowing more precise specialization.

---
Source: The AI Math Dictionary (https://getaimath.com/dictionary/dense-vs-sparse-architecture/)
