Frontier Lab Notes

Mixture of Experts Architectures

Mixture-of-Experts Routing
Mixture-of-Experts Layer Router picks top-k of N experts per token token Router · gating softmax scores over N experts E1idle E2active E3idle E4active …N top-k = 2 selected (e.g. Top-2 routing) Weighted sum gᵢ · Eᵢ(token) → residual stream Load balancing If the router overloads one expert, it bottlenecks while others sit idle. Training adds auxiliary balancing losses. More total params, similar active params/token → better quality per inference FLOP. Costs: routing instability, capacity limits, cross-device communication.

A sparse MoE layer where a router picks the top-k of N expert MLPs per token and weights their outputs, with a note on load balancing and the capacity-versus-compute tradeoff.

Mixture of Experts, or MoE, is one way frontier models scale parameter count without activating all parameters for every token.

Primary sources:

Dense Versus Sparse

In a dense transformer, every token runs through the same MLP parameters in every layer.

In an MoE transformer, some MLP layers are replaced by multiple expert MLPs. A router chooses which expert or experts process each token.

Example:

token -> router -> top-k experts -> weighted combination -> residual stream

Why MoE Exists

MoE tries to improve the parameter-capacity versus compute tradeoff.

Benefits:

Costs:

Top-k Routing

The router produces scores over experts. The model sends each token to the top k experts.

Common choices:

Load Balancing

If the router sends too many tokens to one expert, that expert bottlenecks while others sit idle.

Training often adds auxiliary losses or routing constraints to spread tokens across experts.

Key question:

How do we encourage balanced routing without preventing useful specialization?

Capacity Factor

Hardware requires batching tokens per expert. Each expert can process only a capacity-limited number of tokens. Overflow tokens may be dropped, rerouted, or handled by fallback logic.

This is a systems constraint that becomes an architecture constraint.

MoE And Frontier Labs

MoE is attractive because frontier labs are constrained by:

Sparse models can have enormous total parameter counts while keeping active compute lower than a dense model of the same total size.

Failure Modes

Research Questions

Related