The Dominance of Activation Outliers in LLMs

Large Language Models (LLMs) frequently exhibit 'activation spikes' or outliers—activation values significantly larger than the majority. These outliers, though few, are disproportionately sensitive to quantization error and can severely degrade model performance if not carefully handled.

The top 3

  1. Activation Outliers: Quantization's Top Accuracy Threat: These extreme values, often 100x larger than typical activations, dramatically inflate the quantization range, forcing smaller values into fewer bins and causing significant accuracy drops in low-bit LLMs.
  2. Dynamic Challenge: Activations vs. Static Weight Outliers: Unlike static weight outliers, activation outliers are input-dependent and fluctuate during inference, making them uniquely difficult to manage. They also act as 'propagators' in the outlier lifecycle, amplifying effects from weight outliers.
  3. Emergent Patterns: Where Activation Outliers Cluster: Activation outliers consistently appear in shallow and deep layers, specific feature dimensions, and are often linked to weak semantic tokens or punctuation, emerging from the self-attention softmax operation or amplified weight outliers.

Sources

Open the full topic