ReLU vs. GeLU vs. SiLU: Which Amplifies Quantization Error Most?

While ReLU can produce sharp peaks, GeLU and SiLU, prevalent in modern LLMs, are often associated with more pronounced and widespread activation outliers, leading to greater quantization error amplification due to their non-linear, often unbounded, output distributions.

The top 3

  1. GLU's Activation Spikes: Worst Quantization Error Amplifiers: Gated Linear Unit (GLU) variants, including GeLU and SiLU, are particularly susceptible to "activation spikes"—excessively large activation magnitudes in a small subset of tokens—which cause severe local quantization errors and significantly degrade LLM performance.
  2. ReLU's Dual Quantization Error Behavior: ReLU exhibits a complex quantization error dynamic: it can mask errors by truncating negative values to zero, but conversely, it may amplify errors if small quantization noise pushes a value just above its zero threshold.
  3. GeLU vs. SiLU: Gate Range Impacts Error Sensitivity: Both GeLU and SiLU employ smooth, input-dependent gating, but GeLU's gate (Gaussian error function) operates within a narrower input band of approximately -3 to 3, while SiLU's (sigmoid function) covers a wider range of roughly -6 to 6, influencing their distinct quantization error sensitivities.

Sources

Open the full topic