Toward Adaptive Large Language Models Structured Pruning via Hybrid-grained Weight Importance Assessment

Jun Liu, Zhenglun Kong, Pu Zhao, Changdi Yang, Hao Tang +7 more
3/16/2024
31 citations
cs.CLcs.AIcs.LG
quantization-pruning

Official code: azuryl/LLM-HWIA (1 star, Python, last commit 2025-11-08).

Abstract

Structured pruning for large language models (LLMs) has garnered significant academic interest due to its ability to efficiently compress and accelerate LLMs by eliminating redundant weight groups at a coarse-grained granularity. Current structured pruning methods for LLMs typically depend on a singular granularity for assessing weight importance, resulting in notable performance degradation in downstream tasks.

Show full abstract

Intriguingly, our empirical investigations reveal that utilizing unstructured pruning, which achieves better performance retention by pruning weights at a finer granularity, \emph{i.e.}, individual weights, yields significantly varied sparse LLM structures when juxtaposed to structured pruning. This suggests that evaluating both holistic and individual assessment for weight importance is essential for LLM pruning. Building on this insight, we introduce the Hybrid-grained Weight Importance Assessment (HyWIA), a novel method that merges fine-grained and coarse-grained evaluations of weight importance for the pruning of LLMs. Leveraging an attention mechanism, HyWIA adaptively determines the optimal blend of granularity in weight importance assessments in an end-to-end pruning manner. Extensive experiments on LLaMA-V1/V2, Vicuna, Baichuan, and Bloom across various benchmarks demonstrate the effectiveness of HyWIA in pruning LLMs. For example, HyWIA surpasses the cutting-edge LLM-Pruner by an average margin of 2.82% in accuracy across seven downstream tasks when pruning LLaMA-7B by 50%. Code:https://github.com/azuryl/LLM-HWIA

View on arXivView PDF

Code Implementations(1)

azuryl/LLM-HWIAOfficial100%

[AAAI 2025] Toward Adaptive Large Language Models Structured Pruning via Hybrid-grained Weight Importance Assessment

10Python, ShellOct 31, 20251 years ago

Similar Papers

Cite this paper

@article{liu2024toward,
  title  = {Toward Adaptive Large Language Models Structured Pruning via Hybrid-grained Weight Importance Assessment},
  author = {Jun Liu and Zhenglun Kong and Pu Zhao and Changdi Yang and Hao Tang and Xuan Shen and Geng Yuan and Wei Niu and Wenbin Zhang and Xue Lin and Dong Huang and Yanzhi Wang},
  year   = {2024},
  eprint = {2403.10799},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2403.10799v6}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2403.10799.svg)](https://codeofpaper.com/paper/2403.10799)

Discussion