Goto

Collaborating Authors

 pruner-zero


$D^2Prune$: Sparsifying Large Language Models via Dual Taylor Expansion and Attention Distribution Awareness

arXiv.org Artificial Intelligence

Whileenhances both memory and computational efficiency and has pruning offers a promising compression solution, existingproven effective in LLMs. Nonetheless, traditional trainingmethods suffer from two critical limitations: (1) They neglectbased model pruning generally requires substantial compuactivation distribution shifts between calibration data and testtational resources due to processes such as retraining (Liu data, resulting in inaccurate error estimations; (2) Overlook-et al. 2018; Blalock et al. 2020), training from scratch (Hoang ing the long-tail distribution characteristics of activations inand Liu 2023; Sreenivasan et al. 2022), or extensive iterathe attention module. To address these limitations, this paper proposes a novel pruning method, D2Prune.


Pruner-Zero: Evolving Symbolic Pruning Metric from scratch for Large Language Models

arXiv.org Artificial Intelligence

Despite the remarkable capabilities, Large Language Models (LLMs) face deployment challenges due to their extensive size. Pruning methods drop a subset of weights to accelerate, but many of them require retraining, which is prohibitively expensive and computationally demanding. Recently, post-training pruning approaches introduced novel metrics, enabling the pruning of LLMs without retraining. However, these metrics require the involvement of human experts and tedious trial and error. To efficiently identify superior pruning metrics, we develop an automatic framework for searching symbolic pruning metrics using genetic programming. In particular, we devise an elaborate search space encompassing the existing pruning metrics to discover the potential symbolic pruning metric. We propose an opposing operation simplification strategy to increase the diversity of the population. In this way, Pruner-Zero allows auto-generation of symbolic pruning metrics. Based on the searched results, we explore the correlation between pruning metrics and performance after pruning and summarize some principles. Extensive experiments on LLaMA and LLaMA-2 on language modeling and zero-shot tasks demonstrate that our Pruner-Zero obtains superior performance than SOTA post-training pruning methods. Code at: \url{https://github.com/pprp/Pruner-Zero}.