Pruning as a Cooperative Game: Surrogate-Assisted Layer Contribution Estimation for Large Language Models
Xuan Ding, Pengyu Tong, Ranjie Duan, Yunjian Zhang, Rui Sun, Yao Zhu
TL;DR
Pruning as a Cooperative Game reframes layer pruning for large language models as a cooperative game among Transformer layers, with model performance as the utility. To overcome the intractability of exact Shapley values, the authors introduce a two-stage approximation: stratified Monte Carlo mask sampling to gather supervision signals and a lightweight surrogate network to predict performance drops for unseen masks, enabling efficient estimation of marginal contributions. This approach preserves inter-layer dependencies, adaptively identifies critical layers, and demonstrates superior perplexity and zero-shot accuracy across Transformer and non-Transformer backbones, while remaining compatible with post-training quantization. The work offers a scalable, principled framework for practical deployment of compressed LLMs with favorable efficiency-accuracy trade-offs.
Abstract
While large language models (LLMs) demonstrate impressive performance across various tasks, their deployment in real-world scenarios is still constrained by high computational demands. Layer-wise pruning, a commonly employed strategy to mitigate inference costs, can partially address this challenge. However, existing approaches generally depend on static heuristic rules and fail to account for the interdependencies among layers, thereby limiting the effectiveness of the pruning process. To this end, this paper proposes a game-theoretic framework that formulates layer pruning as a cooperative game in which each layer acts as a player and model performance serves as the utility. As computing exact Shapley values is computationally infeasible for large language models (LLMs), we propose using a lightweight surrogate network to estimate layer-wise marginal contributions. This network can predict LLM performance for arbitrary layer combinations at a low computational cost. Additionally, we employ stratified Monte Carlo mask sampling to further reduce the cost of Sharpley value estimation. This approach captures inter-layer dependencies and dynamically identifies critical layers for pruning. Extensive experiments demonstrate the consistent superiority of our method in terms of perplexity and zero-shot accuracy, achieving more efficient and effective layer-wise pruning for large language models.
