[Paper Review] SGLP: A Similarity Guided Fast Layer Partition Pruning for Compressing Large Deep Models
SGLP proposes a similarity-guided layer pruning method that uses Centered Kernel Alignment (CKA) to measure representation similarity across layers, partitions the network into segments via Fisher Optimal Segmentation, and applies GradNorm for efficient layer importance evaluation to prune redundant layers. It achieves state-of-the-art accuracy and efficiency in compressing deep networks, including ResNet and large language models.
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.
Motivation & Objective
- Address the challenge of deploying large deep neural networks on resource-constrained devices due to high computational and parameter demands.
- Overcome the limitation of existing layer pruning methods that ignore intrinsic inter-layer dependencies and connections in deep networks.
- Develop a pruning framework that preserves essential network characteristics by leveraging representation similarity across layers.
- Enable efficient, segment-wise layer pruning without requiring extensive fine-tuning, improving both model compactness and inference speed.
Proposed method
- Utilizes Centered Kernel Alignment (CKA) to compute representation similarity between layers in a pre-trained network, forming a similarity matrix.
- Applies Fisher Optimal Segmentation to partition the network into coherent segments based on the CKA similarity matrix, enabling group-wise pruning.
- Employs GradNorm for segment-wise layer importance evaluation, eliminating the need for costly fine-tuning during pruning.
- Prunes less important layers within each segment to produce a compact, efficient model while maintaining high accuracy.
- Extends the framework to filter/channel pruning by applying similarity-based segmentation to channels, demonstrating generalization across pruning paradigms.
- Integrates a regularization effect by removing redundant layers, reducing overfitting and improving generalization.
Experimental results
Research questions
- RQ1Can representation similarity across layers be effectively leveraged to guide structured layer pruning in deep neural networks?
- RQ2How does segmenting the network based on CKA-based similarity improve pruning efficiency and model performance compared to random or heuristic pruning?
- RQ3Can GradNorm provide an accurate, efficient, and fine-tuning-free measure of layer importance for pruning?
- RQ4To what extent can the proposed SGLP framework be generalized to other pruning paradigms, such as filter or channel pruning?
- RQ5Does the proposed method achieve better accuracy and computational efficiency than state-of-the-art layer pruning techniques on image classification and large language models?
Key findings
- SGLP achieves a 50.0% reduction in FLOPs and 42.1% reduction in parameters on ResNet-56 with a Top-1 accuracy of 94.21% on CIFAR-10, outperforming SOTA methods.
- The method maintains high accuracy even after significant pruning, demonstrating its effectiveness in preserving essential network features.
- Pruning tends to target shallower layers, while deeper layers are preserved, indicating that deeper layers contribute more to feature representation.
- The proposed method reduces overfitting through regularization, as evidenced by improved generalization in pruned models.
- When applied to channel pruning, SGLP achieves 94.21% Top-1 accuracy with 47.4% FLOPs reduction and 42.8% parameter reduction, surpassing existing methods.
- The framework shows strong generalization potential, as it can be effectively adapted to filter and channel pruning with consistent performance gains.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.