Beyond One-Size-Fits-All Pruning via Evolutionary Metric Search for Large Language Models
Shuqi Liu, Bowei He, Han Wu, Linqi Song
TL;DR
This work addresses the fragility of fixed pruning metrics for large language models by introducing OptiShear, a global evolutionary framework that automatically discovers adaptive pruning metrics tailored to specific model-task pairs. It defines a meta pruning metric that adaptively balances weights and activations via normalization and nonlinear transforms, coupled with a global divergence objective $\mathcal{L}_{\text{div}}$ and an NSGA-II search to optimize metric configurations. Through extensive experiments on 16 LLMs (across OPT, Mistral, LLaMA-1/2/3) and 10 tasks, OptiShear achieves superior compression performance without weight updates, demonstrates cross-task generalization and cross-model transferability of learned metrics, and markedly improves weight-activation alignment. The results suggest that adaptive, activation-aware pruning policies can provide robust, cost-effective model compression with practical deployment benefits, while highlighting opportunities for further universal metric design and improved structured pruning for highly knowledge-dense models.
Abstract
Post-training pruning has emerged as a crucial optimization technique as large language models (LLMs) continue to grow rapidly. However, the significant variations in weight distributions across different LLMs make fixed pruning strategies inadequate for multiple models. In this paper, we introduce \textbf{\textsc{OptiShear}}, an efficient evolutionary optimization framework for adaptive LLM pruning. Our framework features two key innovations: an effective search space built on our Meta pruning metric to handle diverse weight distributions, and a model-wise reconstruction error for rapid evaluation during search trials. We employ Non-dominated Sorting Genetic Algorithm III (NSGA-III) to optimize both pruning metrics and layerwise sparsity ratios. Through extensive evaluation on LLaMA-1/2/3 and Mistral models (7B-70B) across multiple benchmarks, we demonstrate that our adaptive pruning metrics consistently outperform existing methods. Additionally, our discovered layerwise sparsity ratios enhance the effectiveness of other pruning metrics. The framework exhibits strong cross-task and cross-model generalizability, providing a cost-effective solution for model compression.
