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

SlimLLM: Accurate Structured Pruning for Large Language Models

About

Large language models(LLMs) have garnered significant attention and demonstrated impressive capabilities in a wide range of applications. However, due to their enormous computational costs, the deployment and application of LLMs are often severely limited. To address this issue, structured pruning is an effective solution to compress the parameters of LLMs. Determining the importance of each sub-module in LLMs and minimizing performance loss are critical issues that need to be carefully addressed in structured pruning. In this paper, we propose an effective and fast structured pruning method named SlimLLM for large language models. For channel and attention head pruning, we evaluate the importance based on the entire channel or head, rather than merely aggregating the importance of individual elements within a sub-module. This approach enables a more holistic consideration of the interdependence among elements within the sub-module. In addition, we design a simple linear regression strategy for the output matrix to quickly recover performance. We also propose layer-based importance ratio to determine the pruning ratio for each layer. Based on the LLaMA benchmark results, our SlimLLM outperforms other methods and achieves state-of-the-art performance.

Jialong Guo, Xinghao Chen, Yehui Tang, Yunhe Wang• 2025

Related benchmarks

TaskDatasetResultRank
Language ModelingWikiText-2--
1624
Question AnsweringARC Challenge
Accuracy38.99
906
Question AnsweringARC Easy
Accuracy67.17
597
Question AnsweringPIQA
Accuracy78.02
374
Question AnsweringWinoGrande (WG)
Accuracy64.88
124
Multiple-choice Question AnsweringHellaSwag
Accuracy70.95
93
Zero-shot EvaluationARC-Easy, ARC-Challenge, OpenBookQA, WinoGrande, PIQA, HellaSwag, MathQA, RTE, BoolQ zero-shot
Mean Accuracy64.21
59
Question AnsweringWinoGrande, HellaSwag, ARC-e, ARC-c, PIQA Average
Avg Accuracy64
35
Showing 8 of 8 rows

Other info

Follow for update