Dependency-Aware Semi-Structured Sparsity of GLU Variants in Large Language Models

Fuente: arXiv
Salvato in:
Dettagli Bibliografici
Autori principali: Guo, Zhiyu, Kamigaito, Hidetaka, Wanatnabe, Taro
Natura: Preprint
Pubblicazione: 2024
Soggetti:
Accesso online:
Tags: Aggiungi Tag
Nessun Tag, puoi essere il primo ad aggiungerne!!
_version_ 1866910657570406400
author Guo, Zhiyu
Kamigaito, Hidetaka
Wanatnabe, Taro
author_facet Guo, Zhiyu
Kamigaito, Hidetaka
Wanatnabe, Taro
contents The rapid advancement in Large Language Models (LLMs) has markedly enhanced the capabilities of language understanding and generation. However, the substantial model size poses hardware challenges, affecting both memory size for serving and inference latency for token generation. To address those challenges, we propose Dependency-aware Semi-structured Sparsity (DaSS), a novel method for the recent prevalent GLU-based LLMs pruning, which incorporates structural dependency into the weight magnitude-based unstructured pruning. We introduce an MLP-specific pruning metric that evaluates the importance of each weight by jointly considering its magnitude and its corresponding MLP intermediate activation norms. DaSS facilitates a balance between the adaptability offered by unstructured pruning and the structural consistency inherent in dependency-based structured pruning. Empirical evaluations on LLaMA2, Mistral, and Gemma model families demonstrate that DaSS not only outperforms both SparseGPT and Wanda in achieving hardware-friendly N:M sparsity patterns but also maintains the computational efficiency of Wanda.
format Preprint
id arxiv_https___arxiv_org_abs_2405_01943
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Dependency-Aware Semi-Structured Sparsity of GLU Variants in Large Language Models
Guo, Zhiyu
Kamigaito, Hidetaka
Wanatnabe, Taro
Computation and Language
Artificial Intelligence
Machine Learning
The rapid advancement in Large Language Models (LLMs) has markedly enhanced the capabilities of language understanding and generation. However, the substantial model size poses hardware challenges, affecting both memory size for serving and inference latency for token generation. To address those challenges, we propose Dependency-aware Semi-structured Sparsity (DaSS), a novel method for the recent prevalent GLU-based LLMs pruning, which incorporates structural dependency into the weight magnitude-based unstructured pruning. We introduce an MLP-specific pruning metric that evaluates the importance of each weight by jointly considering its magnitude and its corresponding MLP intermediate activation norms. DaSS facilitates a balance between the adaptability offered by unstructured pruning and the structural consistency inherent in dependency-based structured pruning. Empirical evaluations on LLaMA2, Mistral, and Gemma model families demonstrate that DaSS not only outperforms both SparseGPT and Wanda in achieving hardware-friendly N:M sparsity patterns but also maintains the computational efficiency of Wanda.
title Dependency-Aware Semi-Structured Sparsity of GLU Variants in Large Language Models
topic Computation and Language
Artificial Intelligence
Machine Learning
url https://arxiv.org/abs/2405.01943