MoE (Mixture-of-Experts) places
N experts in FFN layers; a gating network
g(x)=softmax(Wgx) scores every token and selects the top-
k experts, outputting the weighted sum
y=∑i∈top-kgi(x)Ei(x); DeepSeek-V3, for instance, has 671B total parameters but activates only 37B per token — sparse activation is the core mechanism.