Skip to main content
QUICK REVIEW

[Paper Review] CUP: Cluster Pruning for Compressing Deep Neural Networks

Rahul Duggal, Cao Xiao|arXiv (Cornell University)|Nov 19, 2019
Advanced Neural Network ApplicationsComputer Science21 references9 citations
TL;DR

CUP (Cluster Pruning) is a channel pruning method that compresses deep neural networks by clustering filters based on weight connectivity features, enabling layerwise non-uniform pruning with a single hyperparameter $ t $. It achieves state-of-the-art compression—2.2× FLOPs reduction on ImageNet with <1% top-5 accuracy drop—while CUP-SS reduces training time by over 14 hours via single-shot pruning during initial training.

ABSTRACT

We propose Cluster Pruning (CUP) for compressing and accelerating deep neural networks. Our approach prunes similar filters by clustering them based on features derived from both the incoming and outgoing weight connections. With CUP, we overcome two limitations of prior work-(1) non-uniform pruning: CUP can efficiently determine the ideal number of filters to prune in each layer of a neural network. This is in contrast to prior methods that either prune all layers uniformly or otherwise use resource-intensive methods such as manual sensitivity analysis or reinforcement learning to determine the ideal number. (2) Single-shot operation: We extend CUP to CUP-SS (for CUP single shot) whereby pruning is integrated into the initial training phase itself. This leads to large savings in training time compared to traditional pruning pipelines. Through extensive evaluation on multiple datasets (MNIST, CIFAR-10, and Imagenet) and models(VGG-16, Resnets-18/34/56) we show that CUP outperforms recent state of the art. Specifically, CUP-SS achieves 2.2x flops reduction for a Resnet-50 model trained on Imagenet while staying within 0.9% top-5 accuracy. It saves over 14 hours in training time with respect to the original Resnet-50. The code to reproduce results is available.

Motivation & Objective

  • Address the challenge of determining optimal layerwise sparsity in channel pruning, which is often intractable with per-layer hyperparameters.
  • Overcome the limitations of uniform pruning and costly sensitivity analysis by enabling automatic, non-uniform filter pruning per layer.
  • Integrate pruning into the initial training phase to eliminate retraining, significantly reducing training time.
  • Achieve state-of-the-art compression efficiency with minimal accuracy degradation across multiple models and datasets.

Proposed method

  • Cluster filters in each layer using features derived from both incoming and outgoing weight connections to group similar filters.
  • Use a single hyperparameter $ t $ to control the pruning threshold, enabling automatic determination of how many filters to prune per layer.
  • Apply hierarchical clustering to group filters and remove entire clusters based on similarity, preserving network performance.
  • Extend CUP to CUP-SS (single-shot) by integrating pruning into the initial training loop, calling CUP before each epoch to progressively prune the model.
  • Use a linear pruning schedule controlled by hyperparameters $ k $ (slope) and $ b $ (offset) to gradually reduce filter count during training.
  • Maintain model accuracy by dynamically adjusting pruning intensity based on filter similarity and training progress.

Experimental results

Research questions

  • RQ1Can a single hyperparameter control layerwise non-uniform pruning while maintaining high model accuracy?
  • RQ2How does cluster-based pruning compare to manual sensitivity analysis in determining optimal filter pruning per layer?
  • RQ3To what extent can pruning integrated into the initial training phase (CUP-SS) reduce training time without sacrificing model performance?
  • RQ4What is the impact of pruning on inference speedup and FLOPs reduction across different models and datasets?
  • RQ5How do hyperparameters $ k $ and $ b $ in the single-shot pruning schedule affect final model accuracy and compression efficiency?

Key findings

  • CUP-SS reduces training time by over 14 hours on ResNet-50 for ImageNet compared to the original model, achieving 2.2× FLOPs reduction with only a 0.88% drop in top-5 accuracy.
  • CUP achieves a 2.2× FLOPs reduction on ImageNet with ResNet-50 while maintaining top-5 accuracy within 0.9% of the original model.
  • On CIFAR-10 with VGG-16, CUP achieves up to 4.6× inference speedup at $ t = 1 $, demonstrating significant efficiency gains.
  • The method correlates highly with manual sensitivity analysis, automatically identifying that later layers (e.g., layers 8–14 in VGG-16) can be pruned more aggressively than earlier layers.
  • Ablation studies show that an intermediate pruning rate ($ k \approx 0.01 $ to $ 0.05 $) in CUP-SS yields the best accuracy, avoiding both over-pruning and under-pruning.
  • CUP achieves a 1.27% top-1 accuracy drop and 2.47× FLOPs reduction on ResNet-50 with a single hyperparameter, outperforming prior state-of-the-art methods in compression efficiency.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.