A dense model activates all model parameters for every input token. In transformer architectures, every feed-forward layer and attention head processes every token, producing a high, uniform computational cost. section 3.5.1
Dense computation has practical consequences:
- It applies the same full set of computational components regardless of whether each component contributes meaningfully to the output. section 3.5.1
- As model size increases, its full activation pattern becomes a limiting factor for training and inference. section 3.5.1
- Mixture-of-experts models contrast with dense models by activating only selected expert feed-forward networks for each token. section 3.5.1
Figure 3.4 Simplified MoE architecture. Only a few experts are active per input, making inference more efficient.
Compare the dense pattern of activating all components with sparse mixture-of-experts routing, where only a few experts process each input. section 3.5.1
