The Super Weight in Large Language Models

Mengxia Yu, De Wang, Qi Shan, Colorado J Reed, Alvin Wan

TL;DR

Pruning just a single, specific scalar parameter—termed a "super weight"—can completely break a large language model (LLM), causing it to output gibberish and dropping its zero-shot accuracy to random guessing. This paper identifies these highly influential parameters across major LLM families and demonstrates that preserving them allows simple, data-free model quantization to compete with state-of-the-art methods.

What Problem Does This Paper Address?

As Large Language Models scale, researchers have consistently observed the emergence of extreme outlier values in both weights and activations. Previous studies revealed that a tiny fraction of parameters (e.g., 0.01%) is disproportionately vital for maintaining model quality. However, in a multi-billion parameter model, 0.01% still translates to hundreds of thousands of parameters. Storing and processing these outliers in high precision requires complex, mixed-precision hardware arithmetic that incurs significant latency penalties.

This paper investigates whether all outliers are truly equal. The authors discover that model integrity often hinges on a microscopic set of parameters—sometimes just a single scalar—and explore how leveraging this finding can simplify model compression.

Figure 1: Super Weight Phenomenon. We discover that pruning a single, special scalar, which we call the super weight, can completely destroy a Large Language Model’s ability to generate text. On the left, the original Llama-7B, which contains a super weight, produces a reasonable completion. On the right, after pruning the super weight, Llama-7B generates complete gibberish. As we show below, this qualitative observation has quantitative impact too: zero-shot accuracy drops to guessing and perplexity increases by orders of magnitude.

Methods

The authors propose a data-free, single-forward-pass method to locate super weights by tracking extreme activation spikes in the inputs and outputs of the mlp.down_proj layer across the model.

Once these super weights and their corresponding "super activations" are mapped, the authors introduce two hardware-friendly quantization strategies:

  1. Activation Quantization: During quantization, the single super activation scalar is temporarily replaced with the channel's median value to calculate an optimal quantization step size ($\Delta$) for the remaining inliers. After standard round-to-nearest (RTN) quantization and dequantization, the exact high-precision (FP16) value of the super activation is restored.
  2. Weight Quantization: To improve low-bit weight quantization (INT4), the authors clip standard outlier weights based on a Gaussian z-score to optimize the fit for inlier weights. Crucially, the super weight is held out from this clipping process and restored in full precision post-dequantization. This allows the model to scale to much larger quantization block sizes (up to 1024x1024) without collapsing.

Datasets

The authors evaluated their approach using the following benchmarks:

  • Zero-Shot Downstream Tasks: PIQA, ARC (Challenge and Easy), HellaSwag, Lambada, and Winogrande.
  • Perplexity Evaluation: Wikitext-2 and C4.
  • Models Tested: Llama (7B, 13B, 30B), Llama 2, Mistral-7B, OLMo (1B, 7B), and Phi-3-mini.

Key Insights and Ideas

  • The Power of One Scalar: In Llama-7B, zeroing out a single super weight scalar completely destroys the model's text generation capabilities. Remarkably, pruning 7,000 other weight outliers—some even larger in absolute magnitude than the super weight—has almost no negative impact on performance.
  • The Mechanism: Super weights are consistently located within the mlp.down_proj weight matrix in the early layers of a model. They act as massive amplifiers, turning normal input features into "super activations." Thanks to residual skip connections, these super activations propagate through the entire network at a constant magnitude.
  • Stopword Suppression: The primary functional role of the super weight is to suppress the likelihood of stopwords (like "the", ".", and ","). When the super weight is removed, the logit probability mass shifts entirely to these stopwords, forcing the model into an unbreakable loop of gibberish.
Figure 2: How Super Weights behave. I: Super weights are often found in an early layer’s down projection, indicated with a blue-purple box. The super weight immediately creates an incredibly large-magnitude super activation. II: Super activations are propagated through skip connections, indicated with blue-purple lines. III: This has a net effect of suppressing stopword likelihoods in the final logits. Removing the super weight causes stopword likelihood to increase, indicated with the blue-purple stacked bars. See Appendix A.3.
  • Amplification Boosts Quality: Intriguingly, scaling up the super weight slightly (e.g., multiplying it by 1.5×) consistently results in a small but measurable improvement in zero-shot accuracy across several model families.

Key Results

  • Catastrophic Pruning: Zeroing out the super weight in Llama-7B caused its C4 perplexity to skyrocket from 7.08 to 763.65, while its average zero-shot accuracy plummeted from 70.11% to 35.14% (equivalent to random guessing).
  • Competitive Quantization: For 8-bit activation quantization (W8A8), simply isolating and restoring one super activation per tensor captured over 70% to 80% of the quality improvements provided by SmoothQuant. Crucially, the authors' method achieved this without needing any calibration data.
  • Graceful Block Scaling: In INT4 weight quantization, protecting the super weight allowed the model to scale to large block sizes (like 1024x1024) with minimal accuracy loss, offering a path toward smaller file sizes and lower memory bitrates on edge devices.

Limitations and Future Work

  • Incomplete Recovery: While restoring the super activation salvages roughly 42% of the quality loss induced by pruning a super weight, it does not fully restore the model. This indicates that super weights influence other hidden network dynamics yet to be uncovered.
  • Origin Story Unknown: The paper provides an empirical directory of where these super weights reside, but why these specific coordinates emerge so prominently during pre-training remains an open question.
  • Future Directions: The authors suggest exploring training-time regularization techniques that could prevent the formation of these single-parameter dependencies, potentially making future LLMs inherently more robust to aggressive quantization.

Summary updated

BibTeX
@misc{yu2024super,
  author = {Mengxia Yu and De Wang and Qi Shan and Colorado J 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