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

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Dong, Peijie, Li, Lujun, Tang, Zhenheng, Liu, Xiang, Pan, Xinglin, Wang, Qiang, Chu, Xiaowen
Format: Preprint
Published: 2024
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866911905147256832
author Dong, Peijie
Li, Lujun
Tang, Zhenheng
Liu, Xiang
Pan, Xinglin
Wang, Qiang
Chu, Xiaowen
author_facet Dong, Peijie
Li, Lujun
Tang, Zhenheng
Liu, Xiang
Pan, Xinglin
Wang, Qiang
Chu, Xiaowen
contents 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}.
format Preprint
id arxiv_https___arxiv_org_abs_2406_02924
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Pruner-Zero: Evolving Symbolic Pruning Metric from scratch for Large Language Models
Dong, Peijie
Li, Lujun
Tang, Zhenheng
Liu, Xiang
Pan, Xinglin
Wang, Qiang
Chu, Xiaowen
Machine Learning
Computation and Language
Neural and Evolutionary Computing
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}.
title Pruner-Zero: Evolving Symbolic Pruning Metric from scratch for Large Language Models
topic Machine Learning
Computation and Language
Neural and Evolutionary Computing
url https://arxiv.org/abs/2406.02924