Large Transformer-based models like BERT, GPT-3, and ViT have revolutionized natural language processing and computer vision. However, their massive parameter counts make them computationally expensive to deploy in real-world, high-throughput environments. While pruning—the process of removing redundant weights—is a common solution, existing methods often struggle to maintain model performance at high sparsity levels.
PLATON (Pruning LArge TransfOrmer with uNcertainty) introduces a novel iterative pruning method that significantly improves the performance of compressed Transformer models, particularly when up to 90% of the weights are pruned. By incorporating an "uncertainty" metric inspired by multi-armed bandit algorithms, PLATON avoids prematurely discarding weights that show high variability during training, leading to more stable optimization and better generalization.
The Problem: Pruning Instability
Existing "iterative pruning" methods often suffer from pruning instability. These techniques typically calculate a weight's importance (or sensitivity) based on small mini-batches of data. Because of stochastic sampling and complex training dynamics like dropout, a weight's importance score can fluctuate wildly from one iteration to the next.
Consequently, a weight that is crucial for the final model might appear "unimportant" in a single noisy mini-batch and get permanently deleted. This instability is particularly problematic on small datasets, where standard pruning methods often fail to converge entirely.
The PLATON Methodology
To address this, the authors propose a new importance metric that balances raw sensitivity with estimation uncertainty. The PLATON approach consists of two primary components:
- Sensitivity Smoothing: Instead of relying on the raw gradient-weight product from a single batch, PLATON uses an Exponential Moving Average (EMA) to track importance over time. This mitigates the impact of sudden, noisy drops in a weight's perceived importance.
- Uncertainty Quantification: Uncertainty is quantified as the local temporal variation—the absolute difference between the current batch's sensitivity and the historical average.
The final importance score is the product of the smoothed sensitivity and the smoothed uncertainty:
$$S^{(t)} = \bar{I}^{(t)} \odot \bar{U}^{(t)}$$
This formulation is heavily inspired by the Upper Confidence Bound (UCB) strategy used in reinforcement learning. By treating each weight like an "arm" in a multi-armed bandit problem, PLATON makes a conservative choice: if a weight has a low importance score but high uncertainty, the algorithm retains it. This allows the model to further explore that weight's potential before making a final pruning decision.
Key Insights
- Exploration vs. Exploitation in Pruning: The most novel contribution of PLATON is treating weight importance as an estimation problem with inherent uncertainty. By "exploring" uncertain weights longer, the model discovers a more robust sparsity pattern.
- Stability on Small Data: Standard movement pruning often fails to converge on small datasets (like RTE or CoLA) because importance estimates are too noisy. PLATON’s smoothing and uncertainty tracking act as a stabilizer, enabling successful pruning even when data is scarce.
- Restarting from Zero: When a previously pruned weight is reactivated (unmasked), PLATON restarts its value from zero rather than its pre-pruned value, ensuring the weight integrates naturally back into the current training dynamics.
Experimental Results
The authors validated PLATON across a diverse set of benchmarks, including Natural Language Understanding (GLUE NLU benchmark), Question Answering (SQuAD v1.1), and Image Classification (CIFAR-100 and ImageNet). The models tested included BERT-base, DeBERTaV3-base, and ViT-B16.
PLATON consistently outperformed state-of-the-art baselines like Magnitude Pruning and Movement Pruning, particularly in high-sparsity regimes:
- NLU Performance: On the MNLI dataset at 90% sparsity, PLATON achieved a 1.2% accuracy improvement over the best baseline. On the smaller RTE dataset at 80% sparsity, it outperformed existing methods by more than 5%.
- Computer Vision: Pruning a ViT model on ImageNet to 80% sparsity resulted in 76.3% accuracy, whereas magnitude and movement pruning lagged significantly behind at roughly 66.5%.
Limitations and Future Directions
While highly effective, PLATON does introduce minor computational overhead. Tracking two EMA values for every single parameter increases memory requirements during the training and pruning phase. Additionally, because PLATON primarily focuses on unstructured (weight-by-weight) pruning, the resulting sparse matrices require specialized kernels or hardware (like NVIDIA's Ampere architecture) to realize actual inference speedups.
However, the authors note that the UCB approach can be extended to structured pruning (removing entire columns or blocks), which is more hardware-friendly. Future work may also apply this UCB-based importance metric to other areas of model compression, such as neural architecture search (NAS) or dynamic token pruning in Transformers.
Summary updated