PIP: Perturbation-based Iterative Pruning for Large Language Models

Yi Cao, Wei-Jie Xu, Yucheng Shen, Weijie Shi, Chi-Min Chan, Jiajie Xu · DOI

Abstract

Large Language Models (LLMs) face significant deployment challenges due to their immense parameter counts. This paper presents Perturbation-based Iterative Pruning (PIP), a structured pruning framework that identifies redundant layers by evaluating their semantic robustness. Unlike traditional methods that rely on weight magnitude, PIP uses a "double-view" approach, measuring how layers respond to subtle, meaning-altering text perturbations. Experimental results on LLaMA2 and LLaMA3 demonstrate that PIP can reduce model size by approximately 20% while maintaining over 85% of original accuracy without requiring expensive retraining.

Introduction

The rapid scaling of LLMs has led to a "memory wall," where model sizes exceed the capacity of consumer-grade hardware. Pruning—the process of removing redundant network components—is a common solution. However, existing "single-view" pruning strategies often overlook a model's ability to perceive critical semantic nuances. If a layer cannot distinguish between a coherent sentence and one corrupted by a minor character swap, it likely lacks essential reasoning capabilities. PIP addresses this by prioritizing the removal of "semantically blind" layers.

Methodology: The PIP Framework

PIP introduces a structured pruning approach that removes entire layers, ensuring immediate compatibility with standard hardware. The core of the method is the PertImport metric, which evaluates layer importance through a "double-view" lens.

Overview of the PIP iterative pruning process and PertImport metric calculation.

The process involves three key components:

  1. Semantic Perturbation: An auxiliary LLM generates perturbed inputs by performing character-level edits (swaps, replacements, or insertions). These edits are designed to preserve syntax while significantly altering meaning.
  2. PertImport Metric Calculation: PIP calculates gradient differences between the original and perturbed inputs using a first-order Taylor approximation. Layers with minimal gradient variance across these views are considered redundant.
  3. Iterative Pruning with Consistency: To ensure stability, a consistency discriminator filters out layers with volatile importance scores. PIP then employs a greedy iterative strategy, pruning the least sensitive layers and re-evaluating the model's sensitivity in a "curriculum learning" fashion.

Experimental Evaluation

The researchers evaluated PIP across several standard LLM benchmarks, including reasoning (BoolQ, PIQA, HellaSwag), knowledge (ARC, OpenBookQA), and language modeling (PTB). Notably, the pruning process itself is highly data-efficient, requiring fewer than 10 samples from the WikiText2 dataset for calibration.

Key Results and Insights

PIP demonstrates significant advantages over state-of-the-art (SOTA) structured pruning methods like ShortGPT, SliceGPT, and LLM-Pruner.

Performance comparison of PIP across various benchmarks for LLaMA3 and LLaMA2 models.
  • Efficiency and Accuracy: PIP achieved a 20% pruning ratio while retaining over 85% accuracy. On LLaMA3-8B, PIP achieved an average benchmark score of 53.5, outperforming ShortGPT (52.6) and SliceGPT (46.0).
  • Hardware Optimization: For the LLaMA3-70B model, PIP reduced memory requirements from 131.4GiB to 99.5GiB and improved inference speed (TPOT) by approximately 16%.
  • Synergy with Quantization: PIP is orthogonal to quantization. Combining PIP with 8-bit quantization allowed a LLaMA2-13B model to fit within 7.7GiB of memory, down from 24.4GiB.
  • Zero Retraining: By leveraging gradient sensitivity, PIP maintains high performance "out of the box," eliminating the need for the computationally intensive fine-tuning phases required by other methods.

Conclusion and Future Work

PIP offers a robust, semantically-aware approach to LLM compression. By focusing on a layer's ability to discriminate meaning, it identifies redundancies that traditional metrics miss. While currently optimized for text, future iterations of PIP could explore adaptive perturbation strategies or expand into multimodal domains like image and audio processing. Task-specific perturbations also represent a promising avenue for enhancing precision in specialized domains such as medicine or law.

Summary updated

BibTeX
@misc{cao2025pip,
  author = {Yi Cao and Wei-Jie Xu and Yucheng Shen and Weijie Shi and Chi-Min Chan and Jiajie Xu},
  title = {{PIP: Perturbation-based Iterative Pruning for Large Language Models}},
  year = {2025},
  eprint = {2501.15278},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2501.15278},
}
Figure