Skip to main content
QUICK REVIEW

[论文解读] SGLP: A Similarity Guided Fast Layer Partition Pruning for Compressing Large Deep Models

Yuqi Li, Yao Lu|arXiv (Cornell University)|Oct 14, 2024
Video Analysis and SummarizationComputer Science被引用 3
一句话总结

SGLP 提出了一种基于相似性的分层剪枝方法,利用中心化核对齐(CKA)度量各层之间的表征相似性,通过费雪最优分割法将网络划分为多个模块,并采用 GradNorm 实现高效分层重要性评估,以剪除冗余层。该方法在压缩深度神经网络(包括 ResNet 和大语言模型)方面实现了最先进的精度与效率。

ABSTRACT

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.

研究动机与目标

  • 解决因高计算与参数需求,导致大型深度神经网络难以在资源受限设备上部署的挑战。
  • 克服现有分层剪枝方法忽略深层网络内在层间依赖与连接关系的局限性。
  • 通过利用层间表征相似性,构建保留关键网络特性的剪枝框架。
  • 实现无需大量微调的高效、分段式分层剪枝,同时提升模型紧凑性与推理速度。

提出的方法

  • 利用中心化核对齐(CKA)计算预训练网络中各层之间的表征相似性,形成相似性矩阵。
  • 应用费雪最优分割法,基于 CKA 相似性矩阵将网络划分为结构一致的模块,支持分组剪枝。
  • 采用 GradNorm 进行分段式分层重要性评估,避免剪枝过程中昂贵的微调操作。
  • 剪除每段中重要性较低的层,生成紧凑且高效的模型,同时保持高精度。
  • 通过将基于相似性的分割方法应用于通道,将框架扩展至滤波器/通道剪枝,证明其在不同剪枝范式中的泛化能力。
  • 通过移除冗余层引入正则化效应,降低过拟合风险,提升泛化性能。

实验结果

研究问题

  • RQ1能否有效利用层间表征相似性,指导深度神经网络中的结构化分层剪枝?
  • RQ2基于 CKA 相似性的网络分段是否相比随机或启发式剪枝,能更显著提升剪枝效率与模型性能?
  • RQ3GradNorm 是否能提供一种准确、高效且无需微调的分层重要性度量方法?
  • RQ4所提出的 SGLP 框架在多大程度上可泛化至其他剪枝范式(如滤波器或通道剪枝)?
  • RQ5与当前最先进的分层剪枝技术相比,该方法在图像分类与大语言模型上是否实现了更高的精度与计算效率?

主要发现

  • 在 ResNet-56 上,SGLP 实现了 50.0% 的 FLOPs 减少与 42.1% 的参数减少,CIFAR-10 上 Top-1 准确率达到 94.21%,优于 SOTA 方法。
  • 即使在大幅剪枝后,该方法仍保持高精度,表明其在保留关键网络特征方面的有效性。
  • 剪枝倾向于作用于浅层,而深层则被保留,表明深层在特征表征中贡献更大。
  • 通过正则化效应减少过拟合,剪枝模型的泛化能力得到提升,证据充分。
  • 应用于通道剪枝时,SGLP 实现 94.21% 的 Top-1 准确率,FLOPs 减少 47.4%,参数减少 42.8%,超越现有方法。
  • 该框架展现出强大的泛化潜力,可有效适配滤波器与通道剪枝,且性能提升稳定一致。

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。