Abstract
Pruning is a critical technique for deploying large-scale Pre-trained Language Models (PLMs) on resource-constrained devices. However, traditional pruning methods often rely on heuristic rules of thumb that fail to account for complex parameter interactions, leading to significant performance degradation at high sparsity levels. This paper presents PINS (Pruning with principled Importance and Self-regularization), a novel framework that treats pruning as a formal optimization task. By deriving a principled importance score through Integer Linear Programming and utilizing a dynamic self-regularization mechanism, PINS achieves state-of-the-art performance across diverse NLP benchmarks, effectively bridging the generalization gap even at 90% sparsity.
Introduction: The Challenges of Model Pruning
Pre-trained Language Models (PLMs) like BERT and GPT have revolutionized NLP but are computationally expensive and storage-heavy. Pruning—the systematic removal of redundant parameters—is the standard approach to making these models deployable on edge devices. Despite its popularity, current pruning techniques face two primary hurdles:
- Heuristic Criteria: Most methods use "rules of thumb," such as magnitude pruning (removing small weights) or sensitivity pruning (removing weights with low impact on loss in isolation). These heuristics often ignore how parameters interact during holistic model updates.
- The Generalization Gap: At high sparsity levels (e.g., 90%), a model's capacity is so reduced that it struggles to generalize, leading to sharp accuracy drops.
The PINS Framework
The authors introduce PINS to address these issues through a mathematically grounded approach to parameter selection and training.
Principled Importance Scoring
Instead of relying on heuristics, PINS frames the selection of parameters to keep as a formal optimization problem. By analyzing the change in the loss function during a single gradient descent step, the authors prove that finding the optimal parameter subset is equivalent to solving an equality-constrained 0-1 Integer Linear Programming (ILP) problem. This derivation results in an importance score that accounts for both the current weight value and the gradient update, providing a more theoretically sound basis for pruning.
Self-regularization via Dynamic Distillation
To combat the loss of generalization at high sparsity, PINS employs a self-distillation strategy. During the iterative pruning process, the current sparse model is regularized by the predictions of its own latest best-performing checkpoint. This "capacity-aware" teacher provides a tighter, more relevant learning signal than static labels, helping the shrinking model adapt more gracefully.
Experimental Results
PINS was evaluated across a wide range of benchmarks, including GLUE (NLU), SQuAD (QA), and various generation tasks. It consistently outperformed established baselines like Iterative Magnitude Pruning (IMP) and PLATON.
As shown in the results above, PINS achieved an average score of 83.5 at 80% sparsity on GLUE, actually surpassing the original fine-tuned dense model (83.4) on tasks like RTE and MRPC. Even at extreme 90% sparsity, PINS maintained significantly higher accuracy than sensitivity-based methods, which often collapse at such levels.
Key Insights: Structured Sparsity
A notable finding is that PINS produces distinct sparsity patterns compared to traditional methods. While magnitude pruning results in a seemingly random distribution of remaining weights, PINS tends to preserve parameters in specific "rows" of the weight matrices.
This structured pattern suggests that PINS successfully identifies a low-dimensional representation of the task, which likely contributes to its superior performance and efficiency. When combined with quantization and Compressed Sparse Row (CSR) storage, PINS reduced storage footprints by 8.9x and accelerated CPU inference by 2.7x with negligible accuracy loss.
Conclusion and Limitations
PINS represents a significant step forward in principled model compression. However, the method introduces additional computational overhead during the training phase. Because it requires processing data through both the student model and the checkpoint teacher, memory usage increases by approximately 27% and training time by 30%. Future research will focus on approximating these signals to reduce training-time costs while maintaining the high performance of the final pruned model.
Summary updated