Abstract
Static Model Pruning (SMP) is a novel approach that adapts pre-trained language models (PLMs) to downstream tasks by learning only a binary mask while keeping the original weights completely frozen. This method achieves state-of-the-art performance across various sparsity levels, demonstrating that weight fine-tuning is often redundant for task adaptation in overparameterized models. SMP is significantly more parameter-efficient than traditional pruning methods, requiring only the storage of a binary mask per task.
Introduction
Pre-trained Language Models (PLMs) like BERT have revolutionized NLP but come with the cost of extreme overparameterization. Deploying these models for multiple downstream tasks is expensive in terms of both storage and computation. Traditional compression techniques like Magnitude Pruning (zero-order) and Movement Pruning (first-order) typically require fine-tuning the remaining weights to recover performance lost during pruning.
The authors of this paper challenge the necessity of weight fine-tuning. They propose that high-performance, task-specific sparse models can be obtained by simply "selecting" the right subnetwork from frozen pre-trained weights. This leads to the development of Static Model Pruning (SMP), a method that relies solely on first-order information to identify critical weights without ever modifying them.
Methodology: Static Model Pruning (SMP)
The core innovation of SMP is keeping pre-trained weights ($W$) static while learning an importance score ($S$) to generate a binary mask ($M$). The final task-specific weights are the element-wise product of the frozen weights and the learned mask ($W \odot M$).
Key Innovations
- Static Weighting: Unlike Movement Pruning, which updates weights based on gradients, SMP calculates importance scores based on the "movement trend" weights would have if they were allowed to change. The actual weights remain frozen throughout the process.
- Global Masking Function (SMP-S): Traditional "local" pruning applies the same sparsity ratio to every weight matrix. SMP-S introduces a global masking function that assigns different sparsity levels to different layers based on their relative importance scores, better preserving the model's architectural integrity.
- Frozen Task-Specific Head: To further reduce trainable parameters, SMP initializes the classification head using BERT’s own token embeddings (e.g., using the embedding for "great" to represent a positive label) and keeps it frozen.
- Training Objective: The method employs a cubic sparsity scheduler to reach target sparsity levels gradually and uses a regularization term to ensure importance scores converge effectively, even at extreme sparsity.
Experimental Results
The researchers evaluated SMP on standard NLP benchmarks, including MNLI, QQP, SQuAD v1.1, and the broader GLUE benchmark.
Performance at High and Low Sparsity
SMP consistently outperformed both zero-order and first-order baselines across all tested sparsity levels. At extreme sparsity (only 3% remaining weights), SMP-S achieved an accuracy of 80.9% on MNLI, significantly higher than the 76.1% achieved by Movement Pruning.
Interestingly, at low sparsity (80% remaining weights), SMP actually outperformed the full fine-tuned BERT model on several GLUE tasks, such as CoLA (61.5 vs 58.1). This suggests that the pruning process acts as a beneficial regularizer, preventing overfitting and improving generalization.
Knowledge Distillation
When combined with Knowledge Distillation (KD)—where a teacher model guides the sparse student—SMP reached even higher performance. In many cases, it matched or exceeded the full BERT model's performance while utilizing only 10% of the original weights.
Key Insights
- Fine-tuning is Redundant: The most significant finding is that first-order gradient information is sufficient to adapt a model to a task. Nudging weights is unnecessary if you can identify the correct subnetwork.
- Parameter Efficiency: Since weights are frozen, only a binary mask needs to be stored for each new task. This effectively halves the number of trainable parameters compared to methods that update weights.
- The "Winning Ticket" Exists Early: These results provide strong evidence for the Lottery Ticket Hypothesis, showing that dense PLMs contain sparse subnetworks capable of matching full-model performance without weight modification.
- Global vs. Local Sparsity: The superiority of SMP-S over SMP-L highlights that layer-wise importance varies significantly. A global approach to sparsity allows the model to retain more critical information.
Limitations and Future Work
Despite its performance, SMP currently performs unstructured pruning, which removes individual weights. Without specialized hardware or software kernels, this does not translate directly to significant inference speedups on standard GPUs (observed speedups were between 1.37x and 1.76x). Additionally, while storage is reduced, the resulting sparse matrices are computationally "messy."
Future research aims to design more sophisticated loss functions to achieve even smaller model sizes and better inference speedups. The authors also plan to investigate the applicability of this static approach to massive models like GPT-3 or Llama.
Summary updated