Share your thoughts, 1 month free Claude Pro on usSee more
WorkDL logo mark

Fluctuation-based Adaptive Structured Pruning for Large Language Models

About

Network Pruning is a promising way to address the huge computing resource demands of the deployment and inference of Large Language Models (LLMs). Retraining-free is important for LLMs' pruning methods. However, almost all of the existing retraining-free pruning approaches for LLMs focus on unstructured pruning, which requires specific hardware support for acceleration. In this paper, we propose a novel retraining-free structured pruning framework for LLMs, named FLAP (FLuctuation-based Adaptive Structured Pruning). It is hardware-friendly by effectively reducing storage and enhancing inference speed. For effective structured pruning of LLMs, we highlight three critical elements that demand the utmost attention: formulating structured importance metrics, adaptively searching the global compressed model, and implementing compensation mechanisms to mitigate performance loss. First, FLAP determines whether the output feature map is easily recoverable when a column of weight is removed, based on the fluctuation pruning metric. Then it standardizes the importance scores to adaptively determine the global compressed model structure. At last, FLAP adds additional bias terms to recover the output feature maps using the baseline values. We thoroughly evaluate our approach on a variety of language benchmarks. Without any retraining, our method significantly outperforms the state-of-the-art methods, including LLM-Pruner and the extension of Wanda in structured pruning. The code is released at https://github.com/CASIA-IVA-Lab/FLAP.

Yongqi An, Xu Zhao, Tao Yu, Ming Tang, Jinqiao Wang• 2023

Related benchmarks

TaskDatasetResultRank
Language ModelingWikiText2
Perplexity6.01
2839
Language ModelingWikiText-2 (test)
PPL47.3
1949
Commonsense ReasoningHellaSwag
Accuracy76.01
1891
Language ModelingWikiText-2
Perplexity (PPL)13.66
1624
Commonsense ReasoningWinoGrande
Accuracy69.24
1085
Language ModelingC4
Perplexity8.35
1071
Language ModelingPTB
Perplexity22.38
1034
Question AnsweringARC Challenge
Accuracy50.85
906
Multi-task Language UnderstandingMMLU
Accuracy29
876
Commonsense ReasoningPIQA
Accuracy77.59
751
Showing 10 of 98 rows
...

Other info

Follow for update