Probe Pruning: Accelerating LLMs through Dynamic Pruning via Model-Probing
Qi Le, Enmao Diao, Ziyan Wang, Xinran Wang, Jie Ding, Li Yang, Ali Anwar
TL;DR
Probe Pruning (PP) tackles the heavy compute cost of large language model inference by introducing an online dynamic structured pruning framework that operates batch‑wise without additional modules or fine‑tuning. PP uses a small, batch‑dependent probe of hidden states to guide per‑batch channel pruning through a three‑stage process: probing, history‑informed pruning with fusion, and full inference on the remaining weights. The PPsp pruning metric preserves per‑weight importance and aggregates channel importance via $L^2$ norms to select channels, while an importance‑scaled fusion integrates probe information with historical states to stabilize decisions across batches. Empirically, PP achieves substantial speedups with minimal loss of performance across LLaMA‑2/3 and OPT models, often outperforming calibration‑dataset baselines and matching or exceeding fine‑tuned baselines in zero‑shot tasks such as WikiText2 perplexity and commonsense reasoning, with probing consuming only about $1.5\%$ of the dense FLOPs. system-level results show PP yields a lower PRR than prior methods, indicating more efficient performance degradation trade‑offs for a given runtime reduction, and place PP as a practical tool for accelerating LLM inference in real‑world deployments.
Abstract
We introduce Probe Pruning (PP), a novel framework for online, dynamic, structured pruning of Large Language Models (LLMs) applied in a batch-wise manner. PP leverages the insight that not all samples and tokens contribute equally to the model's output, and probing a small portion of each batch effectively identifies crucial weights, enabling tailored dynamic pruning for different batches. It comprises three main stages: probing, history-informed pruning, and full inference. In the probing stage, PP selects a small yet crucial set of hidden states, based on residual importance, to run a few model layers ahead. During the history-informed pruning stage, PP strategically integrates the probing states with historical states. Subsequently, it structurally prunes weights based on the integrated states and the PP importance score, a metric developed specifically to assess the importance of each weight channel in maintaining performance. In the final stage, full inference is conducted on the remaining weights. A major advantage of PP is its compatibility with existing models, as it operates without requiring additional neural network modules or fine-tuning. Comprehensive evaluations of PP on LLaMA-2/3 and OPT models reveal that even minimal probing-using just 1.5% of FLOPs-can substantially enhance the efficiency of structured pruning of LLMs. For instance, when evaluated on LLaMA-2-7B with WikiText2, PP achieves a 2.56 times lower ratio of performance degradation per unit of runtime reduction compared to the state-of-the-art method at a 40% pruning ratio. Our code is available at https://github.com/Qi-Le1/Probe_Pruning.
