SEAP: Training-free Sparse Expert Activation Pruning Unlock the Brainpower of Large Language Models
Xun Liang, Hanyu Wang, Huayi Lai, Simin Niu, Shichao Song, Jiawei Yang, Jihao Zhao, Feiyu Xiong, Bo Tang, Zhiyu Li
TL;DR
SEAP tackles the high inference cost of large language models by introducing a training-free, task-adaptive pruning framework guided by task-specific activation patterns. It computes neuron importance scores $s_i^{(\ell,\tau)}$ from activation statistics and weights, then distributes sparsity across layers via a logistic map with target $G$, enabling Expert-Based or General pruning. Empirically, SEAP on Llama-2-7B/13B achieves substantial speedups with minimal accuracy loss (e.g., ~2.2% at 20% pruning and >20% improvement over baselines at 50% pruning), demonstrating scalable, deployment-ready efficiency improvements. These findings indicate that task-aware activation pruning can meaningfully reduce compute and memory demands for large-scale LLMs while preserving task performance, facilitating real-world, resource-constrained deployment.
Abstract
Large Language Models have achieved remarkable success across various natural language processing tasks, yet their high computational cost during inference remains a major bottleneck. This paper introduces Sparse Expert Activation Pruning (SEAP), a training-free pruning method that selectively retains task-relevant parameters to reduce inference overhead. Inspired by the clustering patterns of hidden states and activations in LLMs, SEAP identifies task-specific expert activation patterns and prunes the model while preserving task performance and enhancing computational efficiency. Experimental results demonstrate that SEAP significantly reduces computational overhead while maintaining competitive accuracy. Notably, at 50% pruning, SEAP surpasses both WandA and FLAP by over 20%, and at 20% pruning, it incurs only a 2.2% performance drop compared to the dense model. These findings highlight SEAP's scalability and effectiveness, making it a promising approach for optimizing large-scale LLMs.
