SwiftPrune: Hessian-Free Weight Pruning for Large Language Models

Fuente: arXiv
Enregistré dans:
Détails bibliographiques
Auteurs principaux: Kang, Yuhan, Shi, Yang, We, Mei, He, Jun, Yang, Jianchao, Xue, Zeyu, Feng, Jing, Liu, Xinwang
Format: Preprint
Publié: 2025
Sujets:
Accès en ligne:
Tags: Ajouter un tag
Pas de tags, Soyez le premier à ajouter un tag!
_version_ 1866908368107470848
author Kang, Yuhan
Shi, Yang
We, Mei
He, Jun
Yang, Jianchao
Xue, Zeyu
Feng, Jing
Liu, Xinwang
author_facet Kang, Yuhan
Shi, Yang
We, Mei
He, Jun
Yang, Jianchao
Xue, Zeyu
Feng, Jing
Liu, Xinwang
contents Post-training pruning, as one of the key techniques for compressing large language models, plays a vital role in lightweight model deployment and model sparsity. However, current mainstream pruning methods dependent on the Hessian matrix face significant limitations in both pruning speed and practical effectiveness due to the computationally intensive nature of second-order derivative calculations. This paper presents SwiftPrune, a novel Hessian-free weight pruning method that achieves hardware-efficient model compression through two key innovations: 1) SwiftPrune eliminates the need for computationally intensive Hessian matrix calculations by introducing a contribution-based weight metric, which evaluates the importance of weights without relying on second-order derivatives. 2) we employ the Exponentially Weighted Moving Average (EWMA) technique to bypass weight sorting, enabling the selection of weights that contribute most to LLM accuracy and further reducing time complexity. Our approach is extended to support structured sparsity pruning, facilitating efficient execution on modern hardware accelerators. We validate the SwiftPrune on three LLMs (namely LLaMA2, LLaMA3, and Pythia), demonstrating that it significantly enhances compression performance. The experimental findings reveal that SwiftPrune completes the pruning process within seconds, achieving an average speedup of 12.29x (up to 56.02x) over existing SOTA approaches.
format Preprint
id arxiv_https___arxiv_org_abs_2501_16376
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle SwiftPrune: Hessian-Free Weight Pruning for Large Language Models
Kang, Yuhan
Shi, Yang
We, Mei
He, Jun
Yang, Jianchao
Xue, Zeyu
Feng, Jing
Liu, Xinwang
Machine Learning
Artificial Intelligence
Post-training pruning, as one of the key techniques for compressing large language models, plays a vital role in lightweight model deployment and model sparsity. However, current mainstream pruning methods dependent on the Hessian matrix face significant limitations in both pruning speed and practical effectiveness due to the computationally intensive nature of second-order derivative calculations. This paper presents SwiftPrune, a novel Hessian-free weight pruning method that achieves hardware-efficient model compression through two key innovations: 1) SwiftPrune eliminates the need for computationally intensive Hessian matrix calculations by introducing a contribution-based weight metric, which evaluates the importance of weights without relying on second-order derivatives. 2) we employ the Exponentially Weighted Moving Average (EWMA) technique to bypass weight sorting, enabling the selection of weights that contribute most to LLM accuracy and further reducing time complexity. Our approach is extended to support structured sparsity pruning, facilitating efficient execution on modern hardware accelerators. We validate the SwiftPrune on three LLMs (namely LLaMA2, LLaMA3, and Pythia), demonstrating that it significantly enhances compression performance. The experimental findings reveal that SwiftPrune completes the pruning process within seconds, achieving an average speedup of 12.29x (up to 56.02x) over existing SOTA approaches.
title SwiftPrune: Hessian-Free Weight Pruning for Large Language Models
topic Machine Learning
Artificial Intelligence
url https://arxiv.org/abs/2501.16376