paper-with-me

홈 › Papers

Determining Layer-wise Sparsity for Large Language Models Through a Theoretical Perspective

2025-02-20 · Weizhong Huang, Yuxin Zhang, Xiawu Zheng, Fei Chao, Rongrong Ji

In this paper, we address the challenge of determining the layer-wise sparsity rates of large language models (LLMs) through a theoretical perspective. Specifically, we identify a critical issue of ''$\textbf{reconstruction error explosion}$'' in existing LLMs sparsification methods. This refers to the cumulative effect of reconstruction errors throughout the sparsification process, where errors from earlier layers propagate and amplify in subsequent layers. As a result, the overall reconstruction error increases significantly, leading to a substantial degradation in model performance. Through theoretical analysis, we derive a simple yet effective approach to layer-wise sparsity allocation that mitigates this issue. Our method uses a monotonically increasing arithmetic progression, reducing the process of determining sparsity rates for multiple layers to the determination of a single common difference hyperparameter. Remarkably, this allows for the optimal layer-wise sparsity rates to be identified with just a few trials. Both our theoretical analysis and experimental results demonstrate that this sparsity allocation scheme is near optimal. Extensive experiments show that our method significantly improves the performance of sparse LLMs across various architectures, outperforming existing layer-wise sparsity methods. Furthermore, it enhances the performance of various compression techniques and is applicable to vision and multimodal models. Notably, our method achieves a reduction of 52.10 in perplexity for the 70$\%$ sparse LLaMA2-7B model obtained via Wanda, improves average zero-shot accuracy by 10.50$\%$, and delivers speedups of 2.63$\times$ and 2.23$\times$ on CPU and GPU, respectively.

📄 PDF Abstract BibTeX arXiv:2502.14770

Code (0)

등록된 구현이 없습니다.

Tasks

CPUGPU

Similar Papers 제목 키워드 기반

Dynamic Low-Rank Sparse Adaptation for Large Language Models

2025-02-20 · Weizhong Huang, Yuxin Zhang, Xiawu Zheng, Yang Liu 외

Despite the efficacy of network sparsity in alleviating the deployment strain of Large Language Models (LLMs), it endures significant performance degradation. Applying Low-Rank Adaptation (LoRA) to fine-tune the sparse L…

CPUGPU

SPDY: Accurate Pruning with Speedup Guarantees

2022-01-31 · Elias Frantar, Dan Alistarh

The recent focus on the efficiency of deep neural networks (DNNs) has led to significant work on model compression approaches, of which weight pruning is one of the most popular. At the same time, there is rapidly-growin…

GPUModel CompressionSensitivity

TRIM: Achieving Extreme Sparsity with Targeted Row-wise Iterative Metric-driven Pruning

2025-05-22 · Florentin Beck, William Rudman, Carsten Eickhoff

Large Language Models (LLMs) present significant computational and memory challenges due to their extensive size, making pruning essential for their efficient deployment. Existing one-shot pruning methods often apply uni…

Maximum Redundancy Pruning: A Principle-Driven Layerwise Sparsity Allocation for LLMs

2025-03-24 · Chang Gao, Kang Zhao, Jianfei Chen, Liping Jing

Large language models (LLMs) have demonstrated impressive capabilities, but their enormous size poses significant challenges for deployment in real-world applications. To address this issue, researchers have sought to ap…

Network Pruning

Outlier Weighed Layerwise Sparsity (OWL): A Missing Secret Sauce for Pruning LLMs to High Sparsity

2023-10-08 · Lu Yin, You Wu, Zhenyu Zhang, Cheng-Yu Hsieh 외

Large Language Models (LLMs), renowned for their remarkable performance across diverse domains, present a challenge when it comes to practical deployment due to their colossal model size. In response to this challenge, e…

Network Pruning