Abstract
Structured pruning is widely used to compress large language models (LLMs), yet its effectiveness depends heavily on neuron importance estimation. Most existing methods estimate neuron importance from activation statistics on a single calibration dataset, which introduces calibration bias and degrades downstream cross-task generalization. We observe that neurons exhibit heterogeneous distribution sensitivity, with distribution-robust neurons maintaining consistent rankings across datasets and distribution-sensitive neurons showing high cross-dataset ranking variance. Based on this, we identify two structural limitations in existing methods. First, ranking all neurons within a shared space causes distribution-sensitive neurons that strongly activate on calibration inputs to dominate, crowding out distribution-robust neurons critical for out-of-distribution tasks. Second, applying activation-based importance metrics uniformly can be unreliable. Distribution-sensitive neurons that infrequently activate on calibration data receive insufficient activation signal for accurate local ranking. To address these limitations, we propose GPrune-LLM, a generalization-aware structured pruning framework that explicitly accounts for neuron differences in cross-distribution behavior. We first partition neurons into behavior-consistent modules to localize ranking competition, then evaluate activation-based metric reliability per module according to distribution sensitivity and score magnitude. For modules where activation-based scoring is unreliable, we switch to an activation-independent metric. Finally, we adaptively learn module-wise sparsity. Extensive experiments across multiple downstream tasks demonstrate GPrune-LLM's consistent improvements in post-compression generalization, particularly at high sparsity, and reduced dependence on importance metric choice.
The Calibration Bias Problem
Structured pruning is essential for making LLMs run efficiently on standard hardware. However, most current methods decide which neurons to cut based on "activation statistics" gathered from a single, small calibration dataset (like WikiText). This approach suffers from two fatal flaws that degrade general-purpose performance.
- Cross-behavior ranking interference: When all neurons are ranked together, "specialist" neurons that fire loudly on the calibration data drown out "generalist" neurons. These generalists are crucial for out-of-distribution tasks but get pruned because they don't dominate the specific calibration set.
- Local ranking distortion: If a neuron is sensitive to data distribution and rarely activates on the specific calibration set provided, the signal used to rank its importance is noisy and unreliable.
The GPrune-LLM Framework
GPrune-LLM introduces a two-stage pipeline to make pruning "generalization-aware" by explicitly accounting for these behavioral differences.
1. Behavior-consistent Modularization
Instead of treating all neurons as a monolithic block, GPrune-LLM partitions them into modules using two primary signals:
- Parameter Similarity: Grouping neurons with similar weight vectors as a data-free proxy for functional similarity.
- Cross-dataset Rank Drift: Measuring how much a neuron’s importance rank changes between two different datasets (e.g., Wikipedia vs. Financial news). Neurons with low drift are "distribution-robust" (generalists), while high-drift neurons are "distribution-sensitive" (specialists).
2. Reliability-Aware Modular Pruning
Once grouped, the framework applies a nuanced pruning strategy:
- Metric Adaptation: For modules that are highly sensitive and "quiet" (low activation) on the calibration data, the system stops trusting activation signals and switches to an activation-independent metric, such as weight-norm.
- Adaptive Sparsity Learning: Rather than a flat pruning rate, the model learns a specific threshold for each module using a differentiable mask and a Straight-Through Estimator (STE). This allows the model to find the optimal budget for each functional group.
Key Results
The improvements are most dramatic at high sparsity levels where standard models typically fail. On LLaMA2-7B at 50% retention, GPrune-LLM reduced WikiText2 perplexity from a staggering 262.32 (base Wanda-sp) to a usable 50.65, while lifting average accuracy across reasoning tasks by over 6.6%.
For larger models like LLaMA2-13B at 30% retention, standard methods like FLAP completely collapsed (2676.82 PPL), whereas GPrune-LLM recovered performance to 113.96 PPL. The method also proved robust for multimodal models like LLaVA1.5-7B, maintaining significantly higher scores on reasoning and perception benchmarks compared to standard pruning.
Conclusion
GPrune-LLM demonstrates that neuron heterogeneity is a critical factor in LLM compression. By localizing ranking competition within behavior-consistent modules and adapting metrics based on distribution sensitivity, the framework prevents the accidental removal of general-purpose neurons, ensuring that pruned models maintain their intelligence across diverse downstream tasks.
Summary updated