TL;DR
This paper challenges the conventional wisdom that small weights in Large Language Models (LLMs) are redundant "junk DNA." They demonstrate that pruning these small weights, even with continued fine-tuning, can irreversibly impair performance on difficult downstream tasks, suggesting these weights encode crucial knowledge. This "Junk DNA Hypothesis" has implications for how we approach LLM compression and understanding.
What Problem Does This Paper Address?
The prevailing belief in machine learning is that neural networks, especially large ones like LLMs, contain significant redundancy. This has led to the widespread adoption of model compression techniques like pruning, which aims to remove "non-significant" or small-magnitude weights without a substantial drop in performance. However, this paper questions whether these small weights are truly inconsequential. They hypothesize that these seemingly insignificant parameters might actually hold vital knowledge, particularly for tackling complex tasks, and that their removal could lead to irreparable performance degradation. The core problem they address is understanding the true functional role of small-magnitude weights in LLMs and whether their removal is truly harmless, especially for challenging downstream applications.
Methods
The authors introduce a "task-centric angle" to study pre-trained LLM weights. Their primary method involves systematically pruning small-magnitude weights from LLMs and observing the impact on performance across various downstream tasks, which they categorize by difficulty.
Key methodological aspects include:
- Task Difficulty Definition: They propose several ways to quantify task difficulty, both within a single task (e.g., varying data adequacy, number of options in multiple-choice questions, context length in retrieval-augmented QA, and few-shot examples) and across different tasks (e.g., using the gap between human and LLM performance, and comparing factoid QA to multiple-choice QA).
- Pruning Techniques: They employ several pruning methods, including:
- Magnitude Pruning (Unstructured and N:M Structured): This is their primary focus, where weights are pruned based on their absolute magnitude.
- SparseGPT and Wanda: These are state-of-the-art pruning methods that consider weight importance beyond simple magnitude.
- Comparison with Quantization: To highlight the unique behavior of pruning, they compare its effects with quantization, a common compression technique that reduces the precision of weights.
- Experimental Setup: They conduct extensive experiments across various model sizes, tasks, and datasets. They also investigate the impact of fine-tuning after pruning, including scenarios where pruned weights are allowed to regrow.
Datasets
The paper utilizes a variety of established datasets for evaluation, including:
- GLUE benchmark: A collection of natural language understanding tasks.
- MMLU (Massive Multitask Language Understanding): A broad benchmark covering STEM, humanities, social sciences, and more, designed to test world knowledge and problem-solving.
- TriviaQA: A reading comprehension dataset with complex compositional questions.
- PIQA (Physical Interaction QA): A dataset for commonsense reasoning about physical interactions.
- HellaSwag: A dataset for grounded commonsense inference.
- OpenBookQA: A science question-answering dataset.
- FreebaseQA: A dataset for open-domain QA over a knowledge graph.
Key Insights and Ideas
- "Junk DNA" Hypothesis: Small-magnitude weights are not redundant "junk DNA" but rather encode vital knowledge essential for tackling difficult downstream tasks.
- Monotonic Impairment: Pruning small-magnitude weights leads to a monotonic degradation in performance as task difficulty increases. This means harder tasks are disproportionately affected by pruning.
- Irreparable Damage: The performance loss caused by pruning small weights on difficult tasks can be irreversible, even with continued downstream fine-tuning. This suggests the knowledge is lost rather than just temporarily obscured.
- Pruning vs. Quantization: Unlike pruning, quantization does not exhibit this monotonic relationship with task difficulty. Quantization's impact is less discriminative of task complexity.
- Task Difficulty is Key: The "difficulty" of a task is a crucial factor in determining the impact of pruning small weights. Simple tasks are more resilient to pruning than complex ones.
- Beyond Magnitude: The "Junk DNA" phenomenon holds true even for more sophisticated pruning methods like SparseGPT and Wanda, which go beyond simple magnitude-based pruning.
Key Results
- 10-15% Pruning Resilience: For simpler tasks, it's often possible to prune around 10-15% of small-magnitude weights without significant performance loss.
- Significant Drop on Hard Tasks: Even modest reductions (e.g., 10-20%) in low-magnitude weights can lead to significant accuracy drops on difficult tasks.
- Monotonic Slopes: Theil-Sen estimators show consistently increasing negative slopes (indicating performance degradation) as task difficulty increases and more small weights are pruned.
- Quantization Lacks Monotonicity: Figures and tables show that quantization does not display the same clear, monotonic relationship between compression ratio, task difficulty, and performance drop as pruning.
- Fine-tuning Limitations: Experiments with "Sparse to Dense Transfer" (where pruned weights are allowed to regrow) show that even with fine-tuning, performance on difficult tasks is still significantly impaired if the initial small weights were removed.
Limitations and Future Work
- Limitations:
- The paper acknowledges that when both humans and LLMs perform poorly on a task, their "relative" gap metric for difficulty might not fully capture the complexity.
- While they explore various pruning methods, the focus is primarily on one-shot pruning without re-training.
- Future Work:
- The authors suggest exploring directions such as task-complexity-dependent dynamic inference and network self-slimmable properties.
- Investigating more sophisticated methods for low-rank compression and their comparison to pruning/quantization.
- Further exploration into the fundamental reasons why small-magnitude weights are so critical for difficult tasks and how this knowledge is encoded.
Summary updated