arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2410.14720cs.LGcs.CV
收藏

SGLP:一种用于压缩大型深度模型的相似度引导快速层分区剪枝方法

SGLP: A Similarity Guided Fast Layer Partition Pruning for Compressing Large Deep Models

Institute of Computing Technology, Chinese Academy of Sciences(中国科学院计算技术研究所);Zhejiang University of Technology(浙江工业大学);Nanyang Technological University(南洋理工大学);Zhejiang University(浙江大学);Southwest University(西南大学);The City College of New York(纽约城市学院);Shenzhen University of Advanced Technology(深圳大学)

Yuqi Li, Yao Lu, Junhao Dong, Zeyu Dong, Chuanguang Yang, Xin Yin, Yihao Chen, Jianping Gou, Yingli Tian, Tingwen Huang

AI总结:

针对现有层剪枝方法忽略层间依赖易损失预训练模型核心特征的问题,提出SGLP相似度引导层分区剪枝框架,结合CKA相似度计算、Fisher最优分割与GradNorm免微调评估,在图像分类和LLM任务上实现了更优的压缩精度与效率。

摘要:

层剪枝已成为移除预训练网络中冗余层、缩减网络规模并提升计算效率的有效手段。然而现有层剪枝方法大多忽略了复杂深度神经网络内部不同层之间的内在关联与相互依赖关系,这一疏漏会导致剪枝后的模型无法达到预期效果,难以保留预训练网络的核心特征。为解决上述局限,本文提出相似度引导层分区(SGLP)剪枝框架,这一新型剪枝框架利用表征相似度来指导高效、有依据的层移除操作,实现大型深度模型压缩。该方法首先采用中心化核对齐(CKA)量化层间的表征相似度,挖掘网络内部的结构模式;随后在相似度矩阵上应用Fisher最优分割法,将网络划分为语义连贯的层分区,该分割方式可让剪枝决策充分考虑层间依赖关系,保留核心知识。在每个分区内,本文引入基于GradNorm的免微调重要性评估方法,以分区块的定向方式识别并移除冗余层。在图像分类任务和大语言模型(LLMs)上的实验结果表明,本文提出的SGLP在准确率和效率上均优于现有最优方法。该方法可在性能损失极小的前提下实现显著的模型压缩,非常适合在资源受限环境中部署。

英文摘要:

Layer pruning has emerged as a potent approach to remove redundant layers in the pre-trained network on the purpose of reducing network size and improve computational efficiency. However, existing layer pruning methods mostly overlook the intrinsic connections and inter-dependencies between different layers within complicated deep neural networks. This oversight can result in pruned models that do not preserve the essential characteristics of the pre-trained network as effectively as desired. To address these limitations, we propose a Similarity-Guided Layer Partition (SGLP) Pruning, a novel pruning framework that exploits representation similarity to guide efficient and informed layer removal for compressing large deep models. Our method begins by employing Centered Kernel Alignment (CKA) to quantify representational similarity between layers, uncovering structural patterns within the network. We then apply Fisher Optimal Segmentation on the similarity matrix to partition the network into semantically coherent layer segments. This segmentation allows pruning decisions to respect layer interdependencies and preserve essential knowledge. Within each segment, we introduce a fine-tuning-free importance evaluation using GradNorm, identifying and removing redundant layers in a targeted, segment-wise manner. Experimental results on both image classification tasks and large language models (LLMs) demonstrate that our proposed SGLP outperforms the state-of-the-art methods in accuracy and efficiency. Our approach achieves significant model compression with minimal performance degradation, making it well-suited for deployment in resource-limited environments.

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

↑