Saved in:
Bibliographic Details
Main Authors: Gao, Shangqian, Lin, Chi-Heng, Hua, Ting, Zheng, Tang, Shen, Yilin, Jin, Hongxia, Hsu, Yen-Chang
Format: Preprint
Published: 2024
Subjects:
Online Access:https://arxiv.org/abs/2410.11988
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866929573653905408
author Gao, Shangqian
Lin, Chi-Heng
Hua, Ting
Zheng, Tang
Shen, Yilin
Jin, Hongxia
Hsu, Yen-Chang
author_facet Gao, Shangqian
Lin, Chi-Heng
Hua, Ting
Zheng, Tang
Shen, Yilin
Jin, Hongxia
Hsu, Yen-Chang
contents Large Language Models (LLMs) have achieved remarkable success in various natural language processing tasks, including language modeling, understanding, and generation. However, the increased memory and computational costs associated with these models pose significant challenges for deployment on resource-limited devices. Structural pruning has emerged as a promising solution to reduce the costs of LLMs without requiring post-processing steps. Prior structural pruning methods either follow the dependence of structures at the cost of limiting flexibility, or introduce non-trivial additional parameters by incorporating different projection matrices. In this work, we propose a novel approach that relaxes the constraint imposed by regular structural pruning methods and eliminates the structural dependence along the embedding dimension. Our dimension-independent structural pruning method offers several benefits. Firstly, our method enables different blocks to utilize different subsets of the feature maps. Secondly, by removing structural dependence, we facilitate each block to possess varying widths along its input and output dimensions, thereby significantly enhancing the flexibility of structural pruning. We evaluate our method on various LLMs, including OPT, LLaMA, LLaMA-2, Phi-1.5, and Phi-2. Experimental results demonstrate that our approach outperforms other state-of-the-art methods, showing for the first time that structural pruning can achieve an accuracy similar to semi-structural pruning.
format Preprint
id arxiv_https___arxiv_org_abs_2410_11988
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle DISP-LLM: Dimension-Independent Structural Pruning for Large Language Models
Gao, Shangqian
Lin, Chi-Heng
Hua, Ting
Zheng, Tang
Shen, Yilin
Jin, Hongxia
Hsu, Yen-Chang
Computation and Language
Machine Learning
Large Language Models (LLMs) have achieved remarkable success in various natural language processing tasks, including language modeling, understanding, and generation. However, the increased memory and computational costs associated with these models pose significant challenges for deployment on resource-limited devices. Structural pruning has emerged as a promising solution to reduce the costs of LLMs without requiring post-processing steps. Prior structural pruning methods either follow the dependence of structures at the cost of limiting flexibility, or introduce non-trivial additional parameters by incorporating different projection matrices. In this work, we propose a novel approach that relaxes the constraint imposed by regular structural pruning methods and eliminates the structural dependence along the embedding dimension. Our dimension-independent structural pruning method offers several benefits. Firstly, our method enables different blocks to utilize different subsets of the feature maps. Secondly, by removing structural dependence, we facilitate each block to possess varying widths along its input and output dimensions, thereby significantly enhancing the flexibility of structural pruning. We evaluate our method on various LLMs, including OPT, LLaMA, LLaMA-2, Phi-1.5, and Phi-2. Experimental results demonstrate that our approach outperforms other state-of-the-art methods, showing for the first time that structural pruning can achieve an accuracy similar to semi-structural pruning.
title DISP-LLM: Dimension-Independent Structural Pruning for Large Language Models
topic Computation and Language
Machine Learning
url https://arxiv.org/abs/2410.11988