PIP: Perturbation-based Iterative Pruning for Large Language Models
Yi Cao, Wei-Jie Xu, Yucheng Shen, Weijie Shi, Chi-Min Chan, Jianfeng Qu, Jiajie Xu
TL;DR
PIP tackles the deployment challenge of ultra-large language models by introducing a perturbation-based, double-view structured pruning framework. It combines unperturbed and perturbed input views and measures layer importance with a gradient-based PertImport metric, followed by an iterative pruning loop guarded by a consistency discriminator. Empirical results on LLaMA2/LLama3 demonstrate that roughly 20% pruning preserves over 85% of accuracy on diverse benchmarks and often matches dense-model performance within 5%, outperforming existing SOTA methods. The approach enables efficient, robust pruning that is complementary to quantization and can operate with very small calibration data, broadening practical applicability for edge and constrained environments.
Abstract
The rapid increase in the parameter counts of Large Language Models (LLMs), which often reach into the billions or even trillions, presents significant challenges for their practical deployment, particularly in resource-constrained environments. To address this issue, we propose PIP (Perturbation-based Iterative Pruning), a novel double-view structured pruning method to optimize LLMs, which combines information from two different views: the unperturbed view and the perturbed view. With the calculation of gradient differences, PIP iteratively prunes those that struggle to distinguish between these two views. Our experiments show that PIP reduces the parameter count by approximately 20% while retaining over 85% of the original model's accuracy across varied benchmarks. In some cases, the performance of the pruned model is within 5% of the unpruned version, demonstrating PIP's ability to preserve key aspects of model effectiveness. Moreover, PIP consistently outperforms existing state-of-the-art (SOTA) structured pruning methods, establishing it as a leading technique for optimizing LLMs in constrained environments.
