Saved in:
Bibliographic Details
Main Authors: Xu, Zihuai, Xu, Yang, Xu, Hongli, Liao, Yunming, Yao, Zhiwei, Xie, Zuan
Format: Preprint
Published: 2025
Subjects:
Online Access:https://arxiv.org/abs/2501.15255
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866912205209862144
author Xu, Zihuai
Xu, Yang
Xu, Hongli
Liao, Yunming
Yao, Zhiwei
Xie, Zuan
author_facet Xu, Zihuai
Xu, Yang
Xu, Hongli
Liao, Yunming
Yao, Zhiwei
Xie, Zuan
contents Considering the hardware-friendly characteristics and broad applicability, structured pruning has emerged as an efficient solution to reduce the resource demands of large language models (LLMs) on resource-constrained devices. Traditional structured pruning methods often need fine-tuning to recover performance loss, which incurs high memory overhead and substantial data requirements, rendering them unsuitable for on-device applications. Additionally, post-training structured pruning techniques typically necessitate specific activation functions or architectural modifications, thereby limiting their scope of applications. Herein, we introduce COMP, a lightweight post-training structured pruning method that employs a hybrid-granularity pruning strategy. COMP initially prunes selected model layers based on their importance at a coarse granularity, followed by fine-grained neuron pruning within the dense layers of each remaining model layer. To more accurately evaluate neuron importance, COMP introduces a new matrix condition-based metric. Subsequently, COMP utilizes mask tuning to recover accuracy without the need for fine-tuning, significantly reducing memory consumption. Experimental results demonstrate that COMP improves performance by 6.13\% on the LLaMA-2-7B model with a 20\% pruning ratio compared to LLM-Pruner, while simultaneously reducing memory overhead by 80\%.
format Preprint
id arxiv_https___arxiv_org_abs_2501_15255
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Lightweight and Post-Training Structured Pruning for On-Device Large Lanaguage Models
Xu, Zihuai
Xu, Yang
Xu, Hongli
Liao, Yunming
Yao, Zhiwei
Xie, Zuan
Machine Learning
Artificial Intelligence
Considering the hardware-friendly characteristics and broad applicability, structured pruning has emerged as an efficient solution to reduce the resource demands of large language models (LLMs) on resource-constrained devices. Traditional structured pruning methods often need fine-tuning to recover performance loss, which incurs high memory overhead and substantial data requirements, rendering them unsuitable for on-device applications. Additionally, post-training structured pruning techniques typically necessitate specific activation functions or architectural modifications, thereby limiting their scope of applications. Herein, we introduce COMP, a lightweight post-training structured pruning method that employs a hybrid-granularity pruning strategy. COMP initially prunes selected model layers based on their importance at a coarse granularity, followed by fine-grained neuron pruning within the dense layers of each remaining model layer. To more accurately evaluate neuron importance, COMP introduces a new matrix condition-based metric. Subsequently, COMP utilizes mask tuning to recover accuracy without the need for fine-tuning, significantly reducing memory consumption. Experimental results demonstrate that COMP improves performance by 6.13\% on the LLaMA-2-7B model with a 20\% pruning ratio compared to LLM-Pruner, while simultaneously reducing memory overhead by 80\%.
title Lightweight and Post-Training Structured Pruning for On-Device Large Lanaguage Models
topic Machine Learning
Artificial Intelligence
url https://arxiv.org/abs/2501.15255