Adaptive Pruning of Pretrained Transformer via Differential Inclusions

Yizhuo Ding, Ke Fan, Yikai Wang, Xinwei Sun, Yanwei Fu

Introduction

Large-scale transformer models have revolutionized natural language processing and computer vision but present significant deployment challenges due to their immense parameter counts and computational requirements. Pruning—the process of removing redundant weights—is a standard technique to mitigate these costs. However, conventional pruning methods suffer from a fundamental efficiency bottleneck: they are typically optimized for a single, predefined sparsity target. If a different compression ratio is required for a new hardware constraint, the entire computationally intensive search and fine-tuning process must be restarted.

This paper introduces Solution Path Pruning (SPP), a framework that leverages differential inclusions to generate a continuous "family" of pruned models across a wide range of sparsity levels in a single training run. This approach significantly reduces the overhead of model compression while maintaining or exceeding the accuracy of state-of-the-art methods.

Methodology

Solution Path via Differential Inclusions

At the core of SPP is the shift from static penalty-based pruning to a dynamic "solution path" approach. The authors utilize the Bregman Inverse Scale Space (BISS) dynamic, a mathematical framework where the model evolves from a highly sparse state toward a dense state. Due to the properties of differential inclusions, the most salient features and weights are activated first. By tracking this evolution, the algorithm naturally produces a sequence of structural masks with increasing density. Engineers can then select the optimal checkpoint from this "Transformer Weight Family" that matches their specific hardware budget.

Comparison of the proposed SPP method (a) versus the traditional Lasso-based approach (b). SPP generates a sequence of masks in a single update stage, whereas Lasso requires separate runs for each target.

Structural and Pair-wise Shared Masks

To ensure that pruning translates into actual hardware acceleration, SPP employs structural pruning. However, standard structural pruning often imposes rigid constraints that can degrade performance. SPP introduces Pair-wise Shared Masks, which group functionally related matrices (e.g., Query-Key pairs or Value-Output Projection pairs). This allows for asymmetric pruning—where the Query/Key dimensions can differ from the Value dimensions—preserving more representational power than traditional symmetric approaches.

Experimental Results

Vision Transformers

SPP was evaluated on standard vision benchmarks including ImageNet-1k and CIFAR-10 using DeiT and Swin Transformer architectures. As shown in the table below, SPP consistently achieves competitive or superior Top-1 accuracy compared to uncompressed models and existing pruning baselines like ViT-Slim and WDPruning, often with significantly lower FLOPs and parameter counts.

Performance comparison of SPP against other pruning methods on Swin and DeiT models. SPP maintains high accuracy while achieving significant reductions in FLOPs and parameters.

On DeiT-Small, SPP maintained 80.2% accuracy with a 29.5% reduction in parameters, notably outperforming WDPruning, which dropped to 78.6% at a similar compression ratio.

Multimodal and Large Language Models

Beyond vision, SPP demonstrated high robustness in multimodal tasks. Using the CLIP architecture for Image-to-Text retrieval on MS COCO, SPP reduced FLOPs to 60% of the original model with only a 1% performance decline. In the realm of Large Language Models (LLMs), SPP was applied to Llama2-7B and OPT-6.7B. Even at 50% sparsity, the models achieved zero-shot accuracy comparable to specialized LLM pruning methods like RIA and Wanda, proving the versatility of the solution path approach.

Conclusion

Solution Path Pruning (SPP) addresses the prohibitive cost of multi-target model compression. By framing pruning as a continuous dynamic process rather than a discrete search, SPP enables the efficient generation of a diverse family of sparse models. Its success across vision, multimodal, and language domains suggests that differential inclusions provide a powerful mathematical foundation for the next generation of adaptive model compression techniques.

Summary updated

BibTeX
@inproceedings{ding2025adaptive,
  author = {Yizhuo Ding and Ke Fan and Yikai Wang and Xinwei Sun and Yanwei Fu},
  title = {{Adaptive Pruning of Pretrained Transformer via Differential Inclusions}},
  booktitle = {International Conference on Learning Representations},
  year = {2025},
  url = {https://openreview.net/forum?id=WA84oMWHaH},
}
Figure