TL;DR
While structured pruning is widely used to compress encoder-based models like BERT, applying it to decoder-only generative language models (like GPT) remains heavily under-explored. This paper reveals that traditional pruning methods leave behind highly redundant neurons, allowing a simple random pruning baseline to match their performance. To fix this, the authors introduce Globally Unique Movement (GUM), a novel pruning method that balances neuron sensitivity with uniqueness, achieving superior compression and performance across multiple generation tasks.
What Problem Does This Paper Address?
Large Language Models (LLMs) like GPT-3 deliver state-of-the-art performance but demand massive computational resources, making deployment on resource-constrained devices difficult. Structured pruning—which removes entire architectural components like neurons or blocks rather than individual weights—is highly desirable because it directly reduces end-to-end inference latency.
However, most existing structured pruning research focuses on encoder-only or encoder-decoder architectures (like BERT) evaluated on Natural Language Understanding (NLU) tasks. This paper addresses the lack of systematic research on structured pruning for decoder-only architectures (like GPT-2 and GPT-Neo) tasked with Natural Language Generation (NLG).
Methods
The authors evaluate standard structured pruning techniques—magnitude, random, and movement pruning—specifically on the feed-forward network (MLP) layers of generative models.
To understand why existing methods underperform, they introduce an analytical framework that defines neuron redundancy using two key metrics:
- Sensitivity/Saliency: How much the removal of a neuron affects the model's task loss.
- Uniqueness: How distinct a neuron's information is from its peers, measured via a running estimate of cosine similarity.
Building on this framework, they propose Globally Unique Movement (GUM). Unlike traditional movement pruning, which only selects neurons based on sensitivity, GUM introduces a new regularization term that penalizes mutually similar neurons. It also utilizes a global selection strategy (Global Top_v), allowing the pruning algorithm to adaptively choose which layers to prune heavily, rather than forcing an equal pruning rate across all layers.
Datasets
The methods were evaluated across three distinct generative language modeling tasks using well-established benchmarks:
- WikiSQL: A text-to-code generation dataset evaluated using exact match accuracy ($Acc_{lf}$).
- Wikitext-103: A popular dataset for causal language modeling, evaluated using perplexity (PPL).
- SAMsum: A text summarization dataset consisting of short instant message conversations, evaluated using ROUGE scores.
Key Insights and Ideas
- Random Pruning is a Surprisingly Strong Baseline: Unexpectedly, randomly pruning neurons during fine-tuning performs comparably to established movement and magnitude pruning methods.
- Knowledge Distillation is a Great Equalizer: When combined with knowledge distillation (coaching the pruned student model with the original unpruned teacher), the performance gaps between different pruning methods largely vanish. Distillation helps weaker methods learn more diverse features.
- The Sensitivity vs. Uniqueness Trade-off: Traditional movement pruning excels at finding sensitive neurons but completely ignores uniqueness. As a result, it frequently preserves clusters of neurons that are highly important but do the exact same job, leaving excess redundancy in the network.
Key Results
- GUM Outperforms the Field: GUM consistently beats standard magnitude, random, and movement pruning across multiple tasks. For example, on WikiSQL using GPT-2-sm, GUM achieved an accuracy of 70.38% with only 50% of the neurons leftover—actually outperforming the fully fine-tuned baseline model (70.32%).
- Soft Movement Struggles on GPT: While soft movement pruning is considered a top-tier method for BERT-like models, it severely struggles on GPT architectures due to extreme hyperparameter sensitivity and impractical training runtimes.
- Layer Prioritization: The authors observed that global pruning strategies naturally prioritize later layers in the network, heavily pruning the final layers while preserving the earlier ones.
Limitations and Future Work
The authors acknowledge a core limitation: in its quest to maximize neuron uniqueness, GUM can sometimes over-penalize and inadvertently reduce overall model sensitivity, which can slightly degrade performance in high-sparsity regimes. Additionally, the current implementation uses cosine similarity as a "first-order" proxy for uniqueness because calculating true linear combinations during training is computationally prohibitive.
Future work includes extending this uniqueness-aware pruning framework beyond MLP layers to attention heads and exploring more sophisticated ways to measure neuron distinctiveness without sacrificing computational efficiency.
Summary updated