Junk DNA Hypothesis: Pruning Small Pre-Trained Weights $\textit{Irreversibly}$ and $\textit{Monotonically}$ Impairs ``Difficult" Downstream Tasks in LLMs

Lu Yin, Ajay Kumar Jaiswal, Shiwei Liu, Souvik Kundu, Zhangyang Wang

TL;DR

The "Junk DNA Hypothesis" challenges the prevailing assumption that small-magnitude weights in Large Language Models (LLMs) are redundant and safe to prune. The authors demonstrate that these seemingly insignificant weights actually encode critical knowledge required for difficult downstream tasks. Pruning them causes an irreversible, monotonic drop in performance as task complexity increases—a phenomenon uniquely tied to pruning, not quantization.

What Problem Does This Paper Address?

As LLMs scale to billions of parameters, model compression techniques like pruning and quantization have become standard practice. A foundational assumption behind pruning is that neural networks contain "non-significant" components—usually small-magnitude weights—that can be zeroed out without hurting performance.

However, the authors question whether these small weights are truly useless. Borrowing a concept from biology, where "junk DNA" (non-coding DNA) was once thought to be useless but is now known to regulate vital cellular functions, the authors ask: do small-magnitude weights serve a hidden, crucial purpose in LLMs? Specifically, they investigate how the removal of these weights impacts a model's ability to handle downstream tasks across a spectrum of difficulty.

Methods

To test their hypothesis, the authors needed a rigorous way to define and control "task difficulty." They designed a continuously controllable difficulty spectrum in two ways:

  1. Within the Same Task: They varied difficulty by changing the volume of fine-tuning data, the number of options in multiple-choice QA, the context length in retrieval-augmented QA, and the number of few-shot examples provided in prompts.
  2. Across Diverse Tasks: They measured difficulty by calculating the normalized performance gap between humans and the LLM (assuming a larger gap means a harder task for the machine), and by comparing inherently different task types (e.g., Factoid QA vs. Multiple-Choice QA).

They then applied popular compression techniques to pre-trained models (RoBERTa and Vicuna). For pruning, they used One-shot Magnitude, SparseGPT, Wanda, and N:M structured sparsity. For quantization, they used GPTQ. Finally, they tested the "irreversibility" of pruning by fine-tuning pruned models on downstream tasks and allowing the zeroed-out weights to update (Sparse-to-Dense Transfer) to see if the lost knowledge could be recovered.

Datasets

The authors evaluated their hypothesis across a wide variety of datasets to ensure generalizability:

  • General Language Understanding: GLUE benchmark (SST-2, MNLI, QNLI, CoLA, etc.)
  • Massive Multitask: MMLU (Massive Multitask Language Understanding)
  • Question Answering & Commonsense: TriviaQA, FreebaseQA, PIQA, HellaSwag, OpenBookQA, WinoGrande, CSQA.

Key Insights and Ideas

  • The "Junk DNA" Metaphor is Real: Small-magnitude weights are not just free parameters; they harbor sophisticated, vital knowledge. While high-magnitude weights are sufficient for easy tasks, the "junk" weights are essential for complex reasoning.
  • Monotonic Impairment: There is a smooth, monotonic relationship between task difficulty and the performance drop caused by pruning. As you move toward the harder end of the difficulty spectrum, the impact of pruning small weights becomes increasingly severe.
Performance drop across varying data volumes
  • Irreversibility of Pruning: If you prune small weights, the damage to complex tasks is permanent. Even if you allow the model to continually fine-tune and let those pruned weights regrow (Sparse-to-Dense transfer), the model cannot recover the specific knowledge originally embedded in those pre-trained values.
  • Pruning is Special: Interestingly, quantization does not exhibit this clean, monotonic degradation across task difficulty. Pruning uniquely isolates and destroys this task-difficulty-related knowledge, suggesting the two compression methods interact with LLM knowledge representations very differently.

Key Results

  • Easy vs. Hard Tasks: On the easiest tasks (e.g., 5-shot in-context learning), up to 10-15% of small weights can be pruned with zero performance drop compared to the dense model. On the hardest tasks (0-shot), performance drops immediately upon pruning.
Performance drop across varying K-shot examples
  • Freezing Weights Works: When fine-tuning on simple tasks (like SST-2), freezing 90% of the small-magnitude weights yields no performance loss. Even on harder tasks, up to 70% of small weights can be frozen without a dip, proving their pre-trained values are already highly optimized.
  • Statistical Proof: The Spearman's rank correlation between pruning impairment and task difficulty is nearly perfect (0.97 to 1.0). In contrast, quantization shows a much weaker and inconsistent correlation (0.31 to 0.87).

Limitations and Future Work

Limitations: The authors acknowledge that their metric for measuring across-task difficulty (the human-LLM performance gap) has edge cases. For instance, if both humans and LLMs perform poorly on a task, the relative gap might be small, falsely indicating the task is "easy" when it is actually just universally difficult.

Future Work: The findings open the door for task-complexity-dependent dynamic inference—routing easy queries to a heavily pruned sub-network to save compute, while reserving the full, dense model for difficult queries. The authors also suggest exploring network "self-slimmable" properties based on these insights.

Summary updated

BibTeX
@inproceedings{yin2024junk,
  author = {Lu Yin and AJAY KUMAR JAISWAL and Shiwei Liu and Souvik Kundu and Zhangyang Wang},
  title = {{Junk DNA Hypothesis: Pruning Small Pre-Trained Weights $\textbackslash\{\}textit\{Irreversibly\}$ and $\textbackslash\{\}textit\{Monotonically\}$ Impairs ``Difficult" Downstream Tasks in LLMs}},
  booktitle = {International Conference on Machine Learning},
  year = {2024},
  url = {https://openreview.net/forum?id=0gddCaBTlK},
}
Figure