arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2503.04377cs.LG
收藏

表征维度如何主导结构化剪枝的LLM?

How can representation dimension dominate structurally pruned LLMs?

Imperial College London(伦敦帝国学院)

Mingxue Xu, Lisa Alazraki, Danilo P. Mandic

AI总结:

本文研究表征维度对结构化剪枝LLM性能的主导作用,通过分析激活流提出无需实际评估即可计算剪枝模型性能的解析关系式,并经实验验证。

摘要:

剪枝假设原始深度神经网络中存在一个子网络,其能以比原始网络更少的计算量达到相当的模型性能。然而,模型性能如何随不同的子网络提取方式而变化尚不清楚。本文选择表征维度(或嵌入维度、模型维度,即相关文献中残差流的维度)作为该问题的切入点。我们研究了LLM transformer块中的线性变换,并考虑一种特定的结构化剪枝方法SliceGPT,以提取不同表征维度的子网络。我们从机制上分析了模型前向传播过程中的激活流,发现表征维度主导了线性变换、模型预测,并最终主导了模型性能。本文给出了明确的解析关系式,用于在无需实际评估的情况下计算剪枝模型的性能(困惑度和准确率),并使用Llama-3-8B-Instruct和Phi-3-mini-4k-Instruct进行了实证验证。

英文摘要:

Pruning assumes a subnetwork exists in the original deep neural network, which can achieve comparative model performance with less computation than the original. However, it is unclear how the model performance varies with the different subnetwork extractions. In this paper, we choose the representation dimension (or embedding dimension, model dimension, the dimension of the residual stream in the relevant literature) as the entry point to this issue. We investigate the linear transformations in the LLM transformer blocks and consider a specific structured pruning approach, SliceGPT, to extract the subnetworks of different representation dimensions. We mechanistically analyse the activation flow during the model forward passes, and find the representation dimension dominates the linear transformations, model predictions, and, finally, the model performance. Explicit analytical relations are given to calculate the pruned model performance (perplexity and accuracy) without actual evaluation, and are empirically validated with Llama-3-8B-Instruct and Phi-3-mini-4k-Instruct.

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

↑