MoE Layer
What is MoE Layer?
In one sentence: An MoE layer is a layer that replaces a normal feed-forward network with a router and a group of experts.
In most MoE Transformers, attention stays the same, but the feed-forward part becomes an MoE layer. Some models use MoE in every layer; others alternate with normal layers.
What does MoE Layer look like?
A Transformer block with attention followed by a router choosing 2 of 16 experts contains an MoE layer.
Why does MoE Layer matter?
MoE layers are where the "mixture" in Mixture of Experts happens.
Last updated · Fact-checked by The AI Math
Linking to this page from a lesson or article? <a href="https://getaimath.com/dictionary/moe-layer/">MoE Layer, explained simply</a> (The AI Math Dictionary)