Centripetal SGD for Pruning Very Deep Convolutional Networks with Complicated Structure

TL;DR

Centripetal SGD (C-SGD) merges filters during training, enabling pruning without fine-tuning, reducing FLOPs by 60% with minimal accuracy loss.

cs.LG 🔴 Advanced 2019-04-08 44 views
Xiaohan Ding Guiguang Ding Yuchen Guo Jungong Han
deep learning model compression filter pruning optimization neural network sparsity

Key Findings

Methodology

This paper introduces Centripetal SGD (C-SGD), an optimization technique that enforces filters within the same cluster to converge towards a common center in parameter space. By defining clusters of filters and applying an additional centripetal force during gradient updates, multiple filters are trained to become identical. This process leverages the linear and compositional properties of convolution, allowing the removal of redundant filters post-training without performance degradation. The core mechanism involves: • Partitioning filters into clusters via k-means or even grouping; • Updating filter parameters by averaging gradients within each cluster and adding a centripetal term; • Implementing the method efficiently through matrix reshaping to ensure training speed matches standard SGD. The approach effectively addresses layer-wise pruning constraints in complex CNN architectures.

Key Results

  • Experiments on CIFAR-10 and ImageNet demonstrate that C-SGD achieves approximately 60% FLOPs reduction with negligible accuracy loss. For instance, ResNet-50 on ImageNet shows only a 0.06% decrease in Top-1 accuracy (from 75.33% to 75.27%). In DenseNet-40, the method not only compresses the model but also improves accuracy, validating the redundancy hypothesis. The method effectively handles networks with intricate structures, such as residual and dense connections, by enforcing layer-wise filter similarity.
  • The robustness of C-SGD is confirmed through experiments with randomly generated clusters, which still produce reasonable pruning results. The training of redundant models using C-SGD outperforms traditional training, supporting the idea that redundancy facilitates convergence and enhances model capacity.
  • Post-training, identical filters are merged directly, enabling pruning without fine-tuning. This simplifies the compression pipeline, reduces computational costs, and maintains high accuracy, making the approach practical for real-world deployment.

Significance

This work addresses a critical challenge in deep learning: how to efficiently prune complex, deep CNNs with structural constraints. By enabling layer-wise and inter-layer consistent pruning without fine-tuning, it significantly advances model compression techniques. The method’s ability to leverage redundancy not only reduces computational burden but also enhances training stability, offering a new paradigm for neural network optimization. Its applicability to modern architectures like ResNet and DenseNet broadens its impact across industry and academia, facilitating deployment on resource-constrained devices while maintaining high performance.

Technical Contribution

The primary technical innovation is the formulation of C-SGD, which integrates a centripetal regularization term into the SGD update rule, causing filters within each cluster to converge to a common point. This is achieved via a matrix-based implementation that ensures computational efficiency. The method guarantees convergence of filters to identical parameters, enabling direct filter merging and pruning without fine-tuning. Theoretically, it provides insights into how redundancy can be exploited to improve training convergence and model compression simultaneously. The approach also extends to constrained pruning scenarios, such as in residual networks, by enforcing shared redundancy patterns across layers.

Novelty

This is the first work to introduce a parameter-space centripetal constraint within SGD for filter merging in deep CNNs, especially addressing the challenge of layer-wise pruning constraints. Unlike importance-based or zeroing methods, C-SGD directly trains filters to become identical, eliminating the need for heuristic importance measures or fine-tuning. Its ability to handle complex architectures with inter-layer dependencies marks a significant departure from prior approaches, opening new avenues for efficient network compression.

Limitations

  • The method relies on hyperparameters like centripetal strength, which require manual tuning and may affect convergence. Adaptive strategies are needed for broader applicability.
  • Extreme compression ratios may still cause slight performance drops, especially in highly sensitive layers or tasks.
  • The approach assumes the presence of redundancy; networks with minimal redundancy may not benefit as much, and its effectiveness on non-convolutional architectures remains to be explored.

Future Work

Future directions include developing adaptive schemes for setting the centripetal force, extending the method to other architectures such as transformers, and integrating structural sensitivity analysis for more targeted pruning. Additionally, combining C-SGD with hardware-aware optimization could further enhance deployment efficiency. Exploring theoretical bounds and convergence guarantees in various network settings also remains an open avenue.

AI Executive Summary

Deep convolutional neural networks have revolutionized computer vision, yet their enormous size hampers deployment on resource-limited devices. Traditional pruning techniques, such as importance ranking and zeroing out filters, often require iterative fine-tuning and struggle with networks featuring complex structures like residual or dense connections. To address these challenges, this study introduces Centripetal SGD (C-SGD), a novel optimization algorithm that trains multiple filters to converge into a single point in parameter space. By enforcing a centripetal constraint during training, C-SGD effectively merges filters, enabling direct removal of redundant filters without performance loss. This approach leverages the linearity and compositional properties of convolution, allowing for layer-wise and inter-layer constrained pruning, which was previously difficult. Extensive experiments on CIFAR-10 and ImageNet demonstrate that C-SGD reduces FLOPs by approximately 60% with negligible accuracy degradation, outperforming traditional methods. Notably, in ResNet-50, the Top-1 accuracy drops by only 0.06%, while achieving significant compression. The method also validates the hypothesis that redundancy in neural networks facilitates training convergence, as redundant models trained with C-SGD outperform their normally trained counterparts with equivalent width. The simplicity and efficiency of C-SGD, combined with its ability to handle complex network structures, mark a significant step forward in neural network compression. Future work will focus on adaptive parameter tuning, broader architecture applicability, and hardware-aware optimizations, promising a new era of lightweight yet powerful deep learning models.

Deep Analysis

Background

The rapid development of deep CNNs has led to models with hundreds of millions of parameters, demanding immense computational resources. Early efforts focused on pruning connections or neurons, but these often resulted in sparse models that lacked speedup without specialized hardware. Filter pruning emerged as a practical solution, directly reducing FLOPs by removing entire channels. Techniques like importance ranking based on Taylor expansion, magnitude, or information-theoretic measures have been proposed, but they typically require iterative fine-tuning to recover accuracy. Complex architectures such as ResNet and DenseNet introduce layer interdependencies, making layer-wise pruning difficult. Recent advances include regularization-based zeroing methods and structured pruning, yet they still face limitations in handling constraints across layers. The challenge remains to develop a universal, efficient, and constraint-aware pruning method that preserves performance while significantly reducing model size.

Core Problem

The core problem is how to prune deep, complex CNNs with structural dependencies, such as residual and dense connections, without performance degradation. Existing importance-based methods often fail to handle inter-layer pruning constraints, requiring layer-by-layer approaches that are inefficient and prone to error accumulation. Zeroing methods reduce parameters but necessitate costly fine-tuning, limiting their practicality. The key difficulty lies in achieving layer-wise and inter-layer consistent pruning, especially in networks with intricate connectivity. Moreover, ensuring that the pruned model retains the original representational capacity while being significantly smaller remains an open challenge. Addressing these issues requires a method that can enforce redundancy patterns during training, enabling direct, constraint-aware pruning.

Innovation

The main innovation is the introduction of C-SGD, which enforces a centripetal constraint during training, causing filters within the same cluster to converge to a common point in parameter space. This is achieved by modifying the SGD update rule to include a centripetal force term, which pulls filters together. The algorithm employs a cluster-based approach, where filters are grouped either randomly or via k-means, and updates are performed in a matrix-efficient manner. This process ensures that, after training, filters in each cluster are identical, allowing for direct merging and pruning without fine-tuning. The method also extends to constrained pruning scenarios, such as in residual networks, by enforcing shared redundancy patterns across layers. Theoretically, it demonstrates how redundancy can be exploited to improve convergence and model compression simultaneously.

Methodology

  • �� Cluster formation: Divide filters into groups via k-means or even grouping, based on their flattened parameters. • Loss augmentation: Add a centripetal regularization term to the original loss, encouraging filters within each cluster to converge. • Gradient update: During each iteration, compute the average gradient within each cluster and update filters by combining the original gradient with a centripetal force proportional to the difference between cluster center and filters. • Efficient implementation: Reshape filter tensors into matrices, construct averaging and decay matrices, and perform updates via matrix multiplication to maintain computational efficiency. • Training process: Optimize the combined loss to gradually merge filters within clusters, maintaining performance. • Pruning: Post-training, select one representative filter per cluster, delete others, and merge corresponding input channels in subsequent layers, leveraging convolution's linearity for no performance loss.

Experiments

Experiments conducted on CIFAR-10 and ImageNet validate C-SGD's effectiveness. On CIFAR-10, models like ResNet-56 and DenseNet-40 were trained with approximately 60% FLOPs reduction, with accuracy drops less than 0.3%. On ImageNet, ResNet-50 with C-SGD achieved similar FLOP reduction, with only 0.06% accuracy loss. The experiments compare different clustering strategies, showing robustness to random or k-means clustering. Additional ablation studies analyze the influence of hyperparameters like centripetal strength. The results confirm that C-SGD can produce highly compressed models with minimal performance degradation, outperforming traditional importance-based pruning and zeroing methods.

Results

C-SGD achieves around 60% FLOPs reduction on ResNet-50 with only 0.06% accuracy loss on ImageNet, outperforming importance-based pruning. In DenseNet-40, the method not only compresses the model but also improves accuracy, validating the redundancy hypothesis. The experiments demonstrate that filters trained with C-SGD converge to identical parameters, enabling direct pruning. The robustness across different clustering strategies and network types highlights its practical value. Additionally, training redundant models with C-SGD yields better convergence and generalization than standard training, supporting the idea that redundancy benefits training stability.

Applications

This technique is suitable for deploying deep CNNs on resource-constrained devices such as smartphones, embedded systems, and IoT platforms. It enables automatic, constraint-aware model compression, reducing computational load and memory footprint without sacrificing accuracy. The approach can be integrated into existing training pipelines, facilitating efficient model deployment in real-world applications like autonomous vehicles, surveillance, and medical imaging. Future integration with hardware-aware optimization can further enhance inference speed and energy efficiency.

Limitations & Outlook

The method depends on hyperparameters like centripetal strength, which require tuning for different architectures and tasks. Its effectiveness diminishes if the network has minimal redundancy or highly non-linear filter relationships. Extreme compression ratios may lead to slight accuracy drops, especially in sensitive layers. Additionally, the approach currently focuses on convolutional filters and may need adaptation for other architectures such as transformers or graph neural networks. Further research is needed to automate parameter selection and extend applicability.

Plain Language Accessible to non-experts

想象你在厨房里准备一道菜,里面有许多调料(滤波器),每个调料瓶都装着不同的味道。有些调料味道差不多,甚至可以说几乎一样。你可以用一种特别的方法,让这些味道逐渐变得一样,比如把两个辣椒酱瓶子调到一样的颜色和味道,然后只用一个,剩下的扔掉。这样做可以节省空间和时间,但菜的味道不会变差。这个方法就像让神经网络里的滤波器变得一样,最后只用一支就可以了,不会影响菜的味道。训练的过程就像你不断调色,直到几瓶调料变得一样,然后合并成一瓶。这样既节省空间,又能保持原有的味道,还能让厨房变得更整洁、更快准备菜肴。这就像用一种聪明的办法,让复杂的神经网络变得更轻、更快,同时保持它的能力。

ELI14 Explained like you're 14

想象你在学校的文具盒里,有很多彩色笔(滤波器),平时用的笔很多,但其实很多颜色很相似。你可以把一些颜色相近的笔,逐渐调成一样的颜色,然后只用一支,其他的扔掉。这样,文具盒变得更整齐,也不用带那么多笔了。这个方法就像让神经网络里的滤波器变得一样,最后只用一支就可以了,不会影响画画(模型的表现)。训练的过程就像你不断调色,直到几支笔颜色一样,然后合并成一支。这样既节省空间,又不影响画的效果。用这种办法,模型变得更轻、更快,还能保持原来的性能,就像你的文具盒变得更整齐好用一样。

Abstract

The redundancy is widely recognized in Convolutional Neural Networks (CNNs), which enables to remove unimportant filters from convolutional layers so as to slim the network with acceptable performance drop. Inspired by the linear and combinational properties of convolution, we seek to make some filters increasingly close and eventually identical for network slimming. To this end, we propose Centripetal SGD (C-SGD), a novel optimization method, which can train several filters to collapse into a single point in the parameter hyperspace. When the training is completed, the removal of the identical filters can trim the network with NO performance loss, thus no finetuning is needed. By doing so, we have partly solved an open problem of constrained filter pruning on CNNs with complicated structure, where some layers must be pruned following others. Our experimental results on CIFAR-10 and ImageNet have justified the effectiveness of C-SGD-based filter pruning. Moreover, we have provided empirical evidences for the assumption that the redundancy in deep neural networks helps the convergence of training by showing that a redundant CNN trained using C-SGD outperforms a normally trained counterpart with the equivalent width.

cs.LG cs.CV stat.ML