FFN's Most Vulnerable Layers to Activation Spikes

Activation spikes, which cause significant quantization errors, predominantly occur in the Feed-Forward Network (FFN) layers, especially in the early and late stages of modern LLMs utilizing GLU variants. Within these FFNs, the 'down modules' (output linear layers) following the Hadamard Product within GLU exhibit the most noticeable input activation magnitudes, making them highly susceptible to these spikes.

Sources

Open the full topic