TL;DR
Probe Pruning (PP) is a dynamic, structured pruning framework that accelerates Large Language Model (LLM) inference by tailoring the pruning strategy to each specific batch of data. By running a tiny "probe"—consuming only 1.5% of total FLOPs—the system identifies which weight channels are crucial for the current input, achieving significantly better performance-to-speedup ratios than static pruning methods without requiring any fine-tuning.
What Problem Does This Paper Address?
Large Language Models are computationally expensive and suffer from high latency during inference. Structured pruning—the process of removing entire weight channels or attention heads—is a hardware-friendly way to speed them up. However, standard structured pruning is "static": it uses a fixed calibration dataset to decide which parts of the model to cut, and those parts stay gone for every subsequent input.
The authors identify a major flaw in this approach: LLMs exhibit "batch-dependent outliers." Certain tokens or samples trigger massive activations in specific channels that might be dormant for other inputs. Static pruning often accidentally cuts these "dynamic outliers," leading to a significant drop in model accuracy. The challenge is to decide what to prune on-the-fly during inference without adding so much overhead that the speed gains are lost.
Methods
Probe Pruning introduces a three-stage "online" workflow to dynamically adapt to incoming batches:
- Probing: Instead of processing the whole batch through the entire layer, PP selects a small but "crucial" subset of the batch (e.g., 5% of samples and 50% of tokens) based on residual importance (the $L^2$ norm of the hidden states). It runs this small "probe" a few layers ahead to see which channels are being activated.
- History-Informed Pruning: To avoid making erratic decisions based on a tiny probe, PP uses importance-scaled fusion. It merges the information from the current probe with "historical states" (collected during a one-time calibration) using an exponential moving average.
- Full Inference: Using a new metric called PPsp (a structured version of the popular "Wanda" metric), the system prunes the least important channels for the current batch and then executes full inference on the remaining weights.
Crucially, this method requires no fine-tuning and no additional neural network modules, making it a "plug-and-play" solution for existing models.
Datasets
The authors evaluated Probe Pruning across several popular model families and benchmarks:
- Models: LLaMA-2 (7B, 13B), LLaMA-3 (8B), and OPT-13B.
- Calibration: The C4 dataset was used to establish initial historical states.
- Evaluation:
- Text Generation: WikiText2 (measured by perplexity).
- Commonsense Reasoning: A suite of zero-shot tasks including BoolQ, PIQA, HellaSwag, WinoGrande, ARC (Easy and Challenge), and OpenbookQA.
Key Insights and Ideas
- The 1.5% Solution: The most striking insight is that you don't need to see the whole computation to know what's important. Probing just 1.5% of the FLOPs provides enough "signal" to make pruning decisions that are nearly as good as if you had processed the entire batch (a theoretical upper bound they call "Full-Batch Probing").
- Outliers are Input-Dependent: The paper confirms that "massive activations" (outliers) are not just a property of the model, but a property of the interaction between the model and specific tokens. Dynamic pruning is the only way to preserve these critical features.
- Squaring the Metric: In developing the PPsp metric, the authors found that squaring the importance scores (rather than just taking the absolute value) was essential for structured pruning. This preserves the "inherent importance" of individual weights when aggregating them across a whole channel.
Key Results
- Superior Accuracy: On LLaMA-2-7B at a 40% pruning ratio, PP achieved a perplexity of 16.8 on WikiText2. For comparison, the state-of-the-art static method (FLAP) lagged far behind at 38.9.
- Efficiency Gains: PP demonstrated a 2.56× lower ratio of performance degradation per unit of runtime reduction compared to previous methods.
- Real-World Speedup: The method achieved an inference speedup of approximately 1.46× in attention blocks and 1.30× in MLP blocks on NVIDIA A100 GPUs.
- Beating Fine-Tuning: Surprisingly, PP (which requires no training) often outperformed methods like LoRAPrune and LLM-Pruner even after those methods had been fine-tuned on 20,000 samples.
Limitations and Future Work
- Sequential Overhead: Currently, the probe must run before the full inference. While the probe is tiny, this sequential nature adds a small amount of "system cost." The authors suggest that "Parallel Probing" (running the probe for future layers while the current layer finishes) is a promising but hardware-dependent next step.
- System Integration: The slight delay in MLP blocks (due to weight extraction) suggests that deeper integration with low-level inference kernels (like those in DeepSpeed or vLLM) could further improve the actual wall-clock speedups.
- Adversarial Robustness: Future work is needed to determine if dynamic pruning makes models more or less susceptible to "jailbreaking" or adversarial prompts that might try to trigger inefficient pruning paths.
Summary updated