Home Knowledge Base Sparse Mixture-of-Experts (MoE) Gating

Sparse Mixture-of-Experts (MoE) Gating is the routing mechanism that selects which expert networks process each token in an MoE model — enabling scaling to trillions of parameters while keeping per-token computation constant.

MoE Architecture Overview

Gating Mechanism

$$G(x) = Softmax(TopK(x \cdot W_g))$$

Load Balancing Problem

$L_{aux} = \alpha \sum_e f_e \cdot p_e$ where $f_e$ = fraction of tokens routed to expert $e$, $p_e$ = mean gating probability.

Expert Capacity

MoE Routing Variants

Production MoE Models

ModelExpertsActive/TokenTotal Params
Mixtral 8x7B8247B
DeepSeek-V32568671B
GPT-4 (estimated)~162~1.8T

MoE gating is the key to scaling LLMs beyond the memory/compute frontier — it decouples parameter count from inference cost, enabling trillion-parameter models at 7B-class inference cost.

sparse moe gatingexpert routingtop-k routingload balancing moemixture of experts training

Explore 500+ Semiconductor & AI Topics

From EUV lithography to CUDA optimization — search the full knowledge base or chat with our AI assistant.