Efficient Shapley Value-based Non-Uniform Pruning of Large Language Models
Chuan Sun, Han Yu, Lizhen Cui, Xiaoxiao Li
TL;DR
The paper tackles efficient pruning of large language models by introducing SV-NUP, a Shapley-value-based non-uniform pruning framework that allocates pruning budgets by per-layer importance. To make Shapley-based budgeting scalable, it introduces Sliding Window SV (SWSV) to approximate layer contributions using local neighborhoods, reducing complexity from 2^T to O(T 2^{N-1}). Empirically, SV-NUP yields notable perplexity and zero-shot performance improvements over uniform pruning baselines (e.g., up to 18–19% PPL reduction on large LLaMA models at 70% sparsity) and shows robust performance across LLaMA and OPT families when integrated with methods like Magnitude, Wanda, and SparseGPT. The approach provides a theoretically grounded, practical path to non-uniform sparsity in LLMs, with potential extensions to joint pruning-quantization for further efficiency gains.
Abstract
Pruning large language models (LLMs) is a promising solution for reducing model sizes and computational complexity while preserving performance. Traditional layer-wise pruning methods often adopt a uniform sparsity approach across all layers, which leads to suboptimal performance due to the varying significance of individual transformer layers within the model not being accounted for. To this end, we propose the Shapley Value-based Non-Uniform Pruning (SV-NUP) method for LLMs. This approach quantifies the contribution of each transformer layer to the overall model performance, enabling the assignment of tailored pruning budgets to different layers to retain critical parameters. To further improve efficiency, we design the Sliding Window-based Shapley Value approximation method. It substantially reduces computational overhead compared to exact SV calculation methods. Extensive experiments on various LLMs including LLaMA-v1, LLaMA-v2 and OPT demonstrate the effectiveness of the proposed approach. The results reveal that non-uniform pruning significantly enhances the performance of pruned models. Notably, SV-NUP achieves a reduction in perplexity (PPL) of 18.01% and 19.55% on LLaMA-7B and LLaMA-13B, respectively, compared to SparseGPT at 70% sparsity.
