Abstract
The deployment of Large Language Models (LLMs) faces significant challenges due to high computational costs, driving the demand for effective pruning techniques. Existing structured pruning methods employ uniform compression rates across network layers, neglecting the varying importance of different network depths. To address this limitation, we propose a novel optimization framework that directly minimizes global capability loss through layer-adaptive pruning rates. The framework formulates the pruning task as a combinatorial optimization problem constrained by a total parameter budget, and an efficient dynamic programming solution is derived to determine optimal layerwise compression rates. Experiments demonstrate that, when tuning is not included, our approach achieves comparable performance with state-of-the-art methods at high pruning rates (37-50% reduction), and shows significant advantages at low pruning rates (13-25% reduction). When tuning is included, our method achieves the best performance among the compared methods.
Introduction
The deployment of Large Language Models (LLMs) is often hindered by their immense computational and memory requirements. Structured pruning offers a promising solution by removing entire weight blocks, such as channels or layers, enabling faster inference on standard hardware without the need for specialized kernels. However, traditional structured pruning methods typically apply a uniform pruning rate across all layers (e.g., removing 20% of every layer). This "one-size-fits-all" approach is inefficient because it ignores the fact that different layers contribute unequally to a model's overall intelligence; some layers are critical, while others are highly redundant.
Global Adaptive Pruning (GAP)
To address the inefficiencies of uniform pruning, we propose Global Adaptive Pruning (GAP). GAP treats pruning as a combinatorial optimization problem: how to distribute a fixed parameter budget across $N$ layers to minimize global capability loss.
The framework relies on three core pillars:
- Global Loss Objective: Instead of relying on local weight statistics or layer-wise importance metrics, GAP directly minimizes the global capability loss. This is measured via logit differences on a calibration set, ensuring the pruning process respects the end-to-end performance of the model.
- Additivity Assumption: Inspired by quantization techniques like AWQ, we assume that the total loss of the pruned model is approximately the sum of the independent losses of each pruned module. This simplification is critical for transforming a complex, interdependent optimization problem into a tractable one.
- Dynamic Programming (DP) Solution: Finding the optimal combination of pruning rates for dozens of layers would typically involve exponential complexity. By leveraging the additivity assumption, we derive a DP algorithm that identifies optimal layer-wise compression rates in just a few seconds on a standard CPU.
Experimental Setup
We evaluated GAP on several popular open-source model families, including LLaMA2 (7B, 13B), LLaMA3.1-8B, and Qwen2.5 (7B, 14B). Calibration was performed using 128 samples from WikiText-2. Performance was measured using perplexity on the WikiText-2 test set and zero-shot accuracy across seven diverse reasoning tasks, including BoolQ, PIQA, HellaSwag, WinoGrande, ARC-easy, ARC-challenge, and OpenbookQA.
Key Results
Our experiments demonstrate that GAP significantly outperforms existing methods, particularly at lower pruning rates (13-25%).
- Accuracy Preservation: In "no-tuning" scenarios at a 25% pruning rate for LLaMA2-7B, GAP incurred only an 11.7% loss in zero-shot accuracy, compared to a 19.1% loss for the previous best method (FLAP).
- Superior Efficiency: Across 7B and 13B models, GAP’s performance loss was approximately half that of the second-best method when no fine-tuning was applied. This suggests that for developers looking for a "quick win"—making a model 20% faster with minimal quality loss—global adaptive pruning is the superior strategy.
- Best-in-Class with Tuning: When combined with fine-tuning (e.g., on the Alpaca dataset), GAP (referred to as ours* in the paper) achieved the highest performance across all tested models and rates, setting a new benchmark for structured pruning.
Conclusion
GAP demonstrates that accounting for layer-wise sensitivity through global optimization is crucial for effective LLM compression. By moving beyond uniform pruning, GAP preserves model capability more effectively than local or uniform methods. Future work will explore the synergy between GAP and knowledge distillation or quantization to achieve even higher compression ratios with minimal quality loss.
Summary updated