[Paper Review] Pruning as a Cooperative Game: Surrogate-Assisted Layer Contribution Estimation for Large Language Models
The paper treats LLM pruning as a cooperative game among Transformer layers, uses a lightweight surrogate to estimate Shapley-like layer contributions via stratified Monte Carlo masks, and shows consistent improvements over baselines in perplexity and zero-shot accuracy while enabling efficient pruning.
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.
Motivation & Objective
- Motivate pruning of large language models by accounting for inter-layer dependencies rather than static heuristics.
- Propose a scalable two-stage approximation to estimate layer contributions with a surrogate network.
- Preserve inter-layer interactions to identify critical layers for efficient pruning.
- Demonstrate improved language modeling performance and zero-shot capability across multiple models and tasks.
- Show compatibility with quantization and applicability beyond Transformer architectures.
Proposed method
- Formulate layer pruning as a cooperative game where each Transformer layer is a player and model performance is the utility.
- Introduce stratified Monte Carlo mask sampling to generate diverse pruning masks with controlled Hamming weights.
- Train a lightweight surrogate network to predict performance drops of unseen masks and approximate Shapley values.
- Estimate layer marginal contributions using the surrogate and aggregated masked evaluations to rank layers by Shapley values.
- Prune by removing layers with the lowest estimated contributions to meet a target compression ratio.
- Optionally combine pruning with post-training quantization to enhance efficiency.
Experimental results
Research questions
- RQ1Can inter-layer dependencies be effectively captured to guide layer pruning in LLMs?
- RQ2Can a surrogate model provide accurate, scalable estimates of layer contributions to leverage Shapley-value based pruning?
- RQ3Do game-theoretic, context-aware pruning strategies outperform static heuristics and existing baselines across architectures and tasks?
Key findings
- The proposed method yields lower perplexity and higher zero-shot accuracy compared to depth-wise and width-wise pruning baselines across multiple models and pruning levels.
- The approach maintains generative quality under aggressive pruning, especially on larger Meta-LLaMA-3-8B and LLaMA-2-13B-hf models.
- Pruning decisions that consider inter-layer dependencies improve robustness on adversarial reasoning tasks (ANLI).
- The method generalizes to non-Transformer architectures (RWKV, Mamba) and remains compatible with post-training quantization, enabling further memory and throughput gains.
- Experiments show the approach achieves favorable speed/throughput/latency trade-offs without added memory overhead.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.