The Super Weight in Large Language Models

Mengxia Yu, De Wang, Colorado Reed, Alvin Wan · Submission to ICLR 2025 · Rejected

TL;DR

Pruning a single, specific scalar parameter in a modern Large Language Model (LLM)—termed a super weight—can completely destroy its ability to generate text, exploding perplexity by orders of magnitude and collapsing task accuracy to random guessing. The authors demonstrate that these rare parameters (at most six per model) create persistent, massive activation spikes throughout the network that suppress stopwords. By simply isolating and restoring these individual scalar outliers, practitioners can drastically improve round-to-nearest low-bit quantization without complex calibration or custom hardware kernels.

What Problem Does This Paper Address?

It is widely known that LLMs contain numerical outliers in their weights and activations that are critical for preserving model quality during post-training compression. However, existing outlier-aware quantization techniques (such as SmoothQuant, AWQ, or SpQR) usually treat outliers at the scale of channels or hundreds of thousands of individual parameters. These approaches often require calibration data, mathematical channel-scaling, or irregular mixed-precision sparse matrices that introduce hardware latency penalties.

This paper investigates an extreme question: Are all outliers equally important, or does a microscopic subset carry an outsized share of the network's function?

Methods

  1. Locating Super Weights (Data-Free Identification): Super weights reside exclusively in early layers within the down-projection matrices (mlp.down_proj.weight). In a down-projection layer where $Y = XW^T$, an output activation outlier $Y_{ij}$ is dominated by the product of an activation spike $X_{ik}$ and a weight outlier $W_{jk}$ ($Y_{ij} \approx X_{ik}W_{jk}$). By running a single forward pass with any arbitrary prompt and plotting maximum input and output activations across layers, the coordinates $(j, k)$ of the super weight reveal themselves as prominent activation "sparks."

  2. Super-Outlier Aware Quantization:

  3. Activation Quantization (W8A8): Before quantizing, replace the single super activation scalar with the tensor's median. Quantize and dequantize activations via standard round-to-nearest (RTN), then restore the exact FP16 super activation scalar. This is completely calibration-free.
  4. Weight Quantization (INT4): Outlier weights are clipped according to a Gaussian $z$-score threshold (tuned on 500 Wikitext-2 training examples). Weights are quantized and dequantized with larger block sizes, and the unquantized FP16 super weight is restored.

Datasets

  • Zero-Shot Evaluation: PIQA, ARC (Easy and Challenge), HellaSwag, LAMBADA, SciQ, and Winogrande (evaluated via lm-evaluation-harness).
  • Perplexity Benchmarks: Wikitext-2 and C4.
  • Models Studied: LLaMA (7B, 13B, 30B), LLaMA-2 (7B, 13B), Mistral-7B, OLMo (1B, 7B), and Phi-3-mini-4k-instruct.

Key Insights and Ideas

  • Single Scalar vs. Top 7,000 Outliers: In LLaMA-7B, zeroing out the single super weight destroys text generation. Conversely, pruning the top 7,000 largest weight outliers (many larger in magnitude than the super weight) only degrades accuracy by ~0.9%.
  • Super Weights Induce Super Activations: Super weights amplify the activation peaks produced by gated linear units (SwiGLU/GLU). The resulting "super activation" propagates unaltered across subsequent layers via residual skip connections.
  • The Stopword Suppression Mechanism: Super weights prevent models from devolving into repetitive function words. When a super weight is removed, the predicted probabilities for stopwords (e.g., "the", ".", ",") surge by $2\times$ to $10\times$, drowning out meaningful semantic predictions.
  • Attention Sinks Are Orthogonal: Although super activations appear on initial tokens, attention sinks persist even when super weights are pruned, proving that attention sinks alone cannot maintain model functionality without super weights.
  • Amplification Window: Scaling super weights up by a modest factor (e.g., $1.0\times$–$2.5\times$) slightly improves zero-shot task accuracy across several architectures.

Key Results

  • Catastrophic Impact of Pruning:
  • On LLaMA-7B, pruning the super weight drops average zero-shot accuracy from 70.11% to 35.14% (near random chance) and surges Wikitext-2 perplexity from 5.68 to 1211.11.
  • Restoring only the super activation salvages ~42% of the lost accuracy (recovering to 50.09%), confirming that super weights act both through super activations and additional token dynamics.
  • W8A8 Activation Quantization:
  • On LLaMA models, simply preserving the scalar super activation captures 70%–83% of the perplexity gains achieved by SmoothQuant over naive RTN.
  • On OLMo-7B (which uses non-parametric LayerNorm, making SmoothQuant inapplicable), the proposed method drops Wikitext-2 perplexity from 8.70 (naive RTN) down to 7.80 (near FP16's 7.51).
  • INT4 Weight Block-Scaling:
  • Preserving the super weight enables RTN to maintain acceptable zero-shot accuracy even when scaling block sizes from $128 \times 128$ up to $1024 \times 1024$, where standard RTN accuracy collapses toward guessing.

Limitations and Future Work

  • Incomplete Mechanism: Restoring super activations recovers only ~42% of the performance loss caused by pruning super weights, meaning other mechanisms linking super weights to token-level representations remain unexplained.
  • Variability Across Architectures: Gains on Mistral-7B were noticeably smaller than on LLaMA or OLMo; the authors hypothesize Mistral's LayerNorm may already dampen super activations.
  • Calibration Dependency for Weight Clipping: While activation quantization is entirely data-free, weight clipping still relies on a small validation split (500 Wikitext-2 samples) to select the optimal $z$-score threshold.
  • Training Dynamics: The paper identifies super weights post hoc; understanding why stochastic gradient descent concentrates critical routing into single scalar parameters during pre-training remains an open question.

Summary updated

BibTeX
@misc{yu2024super,
  author = {Mengxia Yu and De Wang and Colorado Reed and Alvin Wan},
  title = {{The Super Weight in Large Language Models}},
  year = {2024},
  eprint = {2411.07191},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2411.07191},
}
Figure