Abstract
Sparse Structure Selection (SSS) is a framework that automatically prunes deep neural networks during a single, end-to-end training pass. By introducing learnable "scaling factors" to specific network structures—such as neurons, groups, or residual blocks—and applying sparsity regularization, the method allows a model to "self-size." This approach significantly reduces computational complexity and memory footprint with minimal impact on accuracy, avoiding the need for complex multi-stage pruning pipelines.
Introduction
While Deep Convolutional Neural Networks (CNNs) have revolutionized computer vision, their massive computational and storage requirements make them difficult to deploy on resource-constrained devices like smartphones, self-driving cars, or AR glasses.
Existing solutions typically fall into two categories: unstructured pruning and structured pruning. Unstructured pruning removes individual weights, creating irregular sparsity that standard hardware cannot easily accelerate. Structured pruning removes entire neurons or layers, which is hardware-friendly but usually requires a tedious process involving pre-training, heuristic pruning, and iterative fine-tuning. SSS addresses these issues with a data-driven approach that learns the optimal width and depth of a network automatically during normal training.
Methods: Scaling Factors and Sparsity Regularization
The core innovation of SSS is the introduction of Scaling Factors ($\lambda$). These scalar values are attached to the output of specific structures, whether it be a single neuron (channel), a group in a ResNeXt block, or an entire residual block.
During training, an $l_1$-norm penalty is applied to these scaling factors, encouraging the optimization process to push unimportant factors exactly to zero. If a factor becomes zero, the entire associated structure can be permanently removed without changing the network's output. To handle the non-differentiable nature of $l_1$ penalties, the authors use a modified Accelerated Proximal Gradient (APG) method. This method is reformulated into a momentum-based update rule that fits seamlessly into modern deep learning frameworks without requiring expensive extra forward-backward passes, allowing the network to optimize its weights and its structure simultaneously.
Key Results and Insights
The authors evaluated SSS across standard benchmarks including CIFAR-10, CIFAR-100, and ImageNet (ILSVRC 2012). The results demonstrate significant "wall-clock" speedups and parameter savings across various architectures.
Key Findings:
- Unified Pruning: SSS is highly flexible. By adjusting where scaling factors are placed, it can perform neuron selection (width), block selection (depth), or group selection (cardinality).
- Efficiency Gains: For ResNet-164 on CIFAR, SSS achieved a 2.5x speedup with only a ~2% performance loss. On ImageNet, a pruned ResNet-50 variant (ResNet-41) achieved a 15% FLOPs reduction with only a 0.7% top-1 accuracy drop.
- Pruning as Regularization: Interestingly, pruning sometimes improved accuracy. For ResNeXt-164 on CIFAR-10, the pruned model achieved 1% higher accuracy despite using 60% fewer FLOPs, indicating that the sparsity penalty acts as a powerful regularizer.
- Structural Insights: When pruning ResNet-164, early-stage blocks were pruned first. This suggests that networks benefit from being "thinner" early on and "thicker" in later stages as the receptive field increases.
Conclusion
SSS provides a robust, end-to-end framework for automatic network pruning. While effective, the method currently requires manual tuning of the sparsity penalty hyperparameter. Future work may involve adjusting penalties based on actual hardware costs—such as penalizing high-resolution early layers more heavily—and exploring advanced non-convex regularizers to achieve even better sparsity patterns.
Summary updated