TL;DR
Static Model Pruning (SMP) adapts pre-trained language models (PLMs) to downstream tasks by only learning a binary mask while keeping the base model weights completely frozen. This eliminates the redundant step of weight fine-tuning, cuts trainable parameters in half during training, and consistently outperforms traditional pruning methods across both high and low sparsity levels.
What Problem Does This Paper Address?
Pre-trained Language Models (PLMs) like BERT achieve state-of-the-art performance but are notoriously overparameterized, making them expensive to store and deploy for multiple downstream tasks. Weight pruning is a common remedy, typically categorized into zero-order methods (like magnitude pruning, which removes weights closest to zero) and first-order methods (like movement pruning, which removes weights based on their gradient trends during training).
However, existing approaches typically perform pruning and weight fine-tuning simultaneously. The authors identify a fundamental inefficiency here: fine-tuning the remaining weights introduces significant computational overhead and requires storing entirely new model weights for every single task. They raise a provocative question: Is fine-tuning actually necessary, or can first-order pruning alone find a high-performing subnetwork within the frozen, pre-trained weights?
Methods
The authors introduce Static Model Pruning (SMP), which freezes the pre-trained weight matrix $W$ and only updates a binary mask $M$.
Standard Pruning: Update(W) + Update(M)
Static Model Pruning (SMP): Freeze(W) + Update(M)
Key technical components include:
- First-Order Importance Scores: SMP calculates weight importance based on the gradient of the masked weights, capturing the "movement trend" of whether a weight wants to contribute to the task or shrink to zero.
- Advanced Masking Functions:
- SMP-L (Local): Applies a standard
Top-vselection matrix-by-matrix.
- SMP-L (Local): Applies a standard
- SMP-S (Static Global): Instead of sorting all 85 million parameters globally (which is computationally expensive), SMP-S uses a novel layer-wise global masking function. It dynamically scales the sparsity level of each weight matrix based on a sigmoid regularization of its importance scores.
- Frozen Task-Specific Head: Instead of training a classification head from scratch, the authors initialize it using the BERT token embeddings of the target label words (e.g., using the embeddings for "great" and "terrible" for sentiment classification) and keep it frozen.
- Training Objective: Uses a cubic sparsity scheduler to gradually zero out weights, combined with a regularization term that penalizes active weights to encourage mask mutability.
Datasets
The method was evaluated on standard NLP benchmarks:
- MNLI (Multi-Genre Natural Language Inference)
- QQP (Quora Question Pairs)
- SQuAD v1.1 (Stanford Question Answering Dataset)
- The full GLUE benchmark (to validate performance at low sparsity levels)
Key Insights and Ideas
- Fine-Tuning is Redundant for Pruning: First-order gradient information is powerful enough to discover highly accurate subnetworks within frozen pre-trained weights. Shifting the underlying weights isn't required for successful downstream adaptation.
- Bridging the Low-Sparsity Blindspot: Traditional first-order methods (like movement pruning) notoriously underperform zero-order magnitude pruning at low sparsity (e.g., when keeping 80% of the weights). SMP fixes this flaw, outperforming magnitude pruning across the entire sparsity spectrum.
- Naïve Global Pruning Distorts Layer Balance: Sorting all model parameters globally causes a model to over-allocate remaining weights to feed-forward networks at the expense of attention heads. The matrix-specific scaling in SMP-S preserves a healthier architectural balance across layers.
Key Results
SMP achieves state-of-the-art performance at various sparsity levels, both with and without Knowledge Distillation (KD).
- Beating the Full Model: At 50% remaining weights (with KD), SMP-S achieves an accuracy of 85.7% on MNLI, actually outperforming full-model fine-tuning (84.5%) while keeping the base BERT model completely frozen.
- Extreme Sparsity: At just 3% remaining weights (without KD), SMP-S achieves 80.9% on MNLI, outperforming standard movement pruning by nearly 5% absolute accuracy.
- Parameter Efficiency: Because the base model is frozen, SMP only requires storing a sparse binary mask ($\theta_M$) per task. At 10% remaining weights, this saves 8.5 million parameters per task compared to methods that modify the underlying weights.
Limitations and Future Work
- Inference Speedups: Like all unstructured pruning methods, zeroing out individual weights does not automatically lead to wall-clock inference speedups on standard hardware without specialized sparse-matrix libraries.
- Extension to Structured Pruning: Because the underlying weights are frozen, extending SMP to structured pruning (e.g., removing entire attention heads or channels) is challenging and remains an open direction for future research.
Summary updated