paper-with-me

홈 › Papers

BlockPruner: Fine-grained Pruning for Large Language Models

2024-06-15 · Longguang Zhong, Fanqi Wan, Ruijun Chen, Xiaojun Quan, Liangzhi Li

With the rapid growth in the size and complexity of large language models (LLMs), the costs associated with their training and inference have escalated significantly. Research indicates that certain layers in LLMs harbor substantial redundancy, and pruning these layers has minimal impact on the overall performance. While various layer pruning methods have been developed based on this insight, they generally overlook the finer-grained redundancies within the layers themselves. In this paper, we delve deeper into the architecture of LLMs and demonstrate that finer-grained pruning can be achieved by targeting redundancies in multi-head attention (MHA) and multi-layer perceptron (MLP) blocks. We propose a novel, training-free structured pruning approach called BlockPruner. Unlike existing layer pruning methods, BlockPruner segments each Transformer layer into MHA and MLP blocks. It then assesses the importance of these blocks using perplexity measures and applies a heuristic search for iterative pruning. We applied BlockPruner to LLMs of various sizes and architectures and validated its performance across a wide range of downstream tasks. Experimental results show that BlockPruner achieves more granular and effective pruning compared to state-of-the-art baselines.

📄 PDF Abstract BibTeX arXiv:2406.10594

Code (1)

MrGGLS/BlockPruner 공식 구현 pytorch

Tasks

Heuristic Search

Methods 이 논문이 사용한 방법론

Residual Connection 설명 없음
Softmax The Softmax output function transforms a previous layer's output into a vector of probabilities. It is commonly used for multiclass classification. Given an input vector $x$…
Layer Normalization Unlike batch normalization, Layer Normalization directly estimates the normalization statistics from the summed inputs…
BPE Byte Pair Encoding, or BPE, is a subword segmentation algorithm that encodes rare and unknown words as sequences of subword units. The intuition is that various word…
Label Smoothing Label Smoothing is a regularization technique that introduces noise for the labels. This accounts for the fact that datasets may have mistakes in them, so maximizing the…
Adam 설명 없음
Attention 설명 없음
Linear Layer A Linear Layer is a projection $\mathbf{XW + b}$.

Similar Papers 제목 키워드 기반

FTP: A Fine-grained Token-wise Pruner for Large Language Models via Token Routing

2024-12-16 · Zekai Li, Jintu Zheng, Ji Liu, Han Liu 외

Recently, large language models (LLMs) have demonstrated superior performance across various tasks by adhering to scaling laws, which significantly increase model size. However, the huge computation overhead during infer…

MultiPruner: Balanced Structure Removal in Foundation Models

2025-01-17 · J. Pablo Muñoz, Jinjie Yuan, Nilesh Jain

Recently, state-of-the-art approaches for pruning large pre-trained models (LPMs) have demonstrated that the training-free removal of non-critical residual blocks in Transformers is viable for reducing model size, achiev…

Model Compression

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

2024-03-16 · Jun Liu, Zhenglun Kong, Pu Zhao, Changdi Yang 외

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 gra…

DecoderLanguage ModellingLarge Language Model

Sink-Token-Aware Pruning for Fine-Grained Video Understanding in Efficient Video LLMs

2026-04-22 · Kibum Kim, Jiwan Kim, Kyle Min, Yueqi Wang 외 arxiv

Video Large Language Models (Video LLMs) incur high inference latency due to a large number of visual tokens provided to LLMs. To address this, training-free visual token pruning has emerged as a solution to reduce compu…

Question AnsweringVisual Grounding

FinerCut: Finer-grained Interpretable Layer Pruning for Large Language Models

2024-05-28 · Yang Zhang, Yawei Li, Xinpeng Wang, Qianli Shen 외

Overparametrized transformer networks are the state-of-the-art architecture for Large Language Models (LLMs). However, such models contain billions of parameters making large compute a necessity, while raising environmen…

Decoder