arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2405.01943cs.CLcs.AIcs.LG
收藏

大语言模型中GLU变体的依赖感知半结构化稀疏性

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

Nara Institute of Science and Technology(奈良科学技术大学)

Zhiyu Guo, Hidetaka Kamigaito, Taro Wanatnabe

AI总结:

本文提出依赖感知半结构化稀疏性方法DaSS,通过结合权重幅值与MLP中间激活范数的剪枝度量,在GLU类大语言模型上实现硬件友好的N:M稀疏,性能优于SparseGPT和Wanda并保持Wanda的计算效率。

摘要:

大语言模型(LLMs)的快速发展显著提升了语言理解与生成能力。然而,庞大的模型规模带来了硬件挑战,既影响推理服务的内存占用,也影响token生成的推理延迟。为应对这些挑战,我们提出了依赖感知半结构化稀疏性(DaSS),这是一种针对近期流行的基于GLU的LLMs剪枝的新方法,它将结构依赖融入基于权重幅值的非结构化剪枝中。我们引入了一种MLP特定的剪枝度量,通过联合考虑每个权重的幅值及其对应的MLP中间激活范数来评估其重要性。DaSS促进了非结构化剪枝所提供的适应性与基于依赖的结构化剪枝所固有的结构一致性之间的平衡。在LLaMA2、Mistral和Gemma模型家族上的实证评估表明,DaSS不仅在实现硬件友好的N:M稀疏模式方面优于SparseGPT和Wanda,而且保持了Wanda的计算效率。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑