Abstract
We investigate filter level sparsity that emerges in convolutional neural networks (CNNs) which employ Batch Normalization and ReLU activation, and are trained with adaptive gradient descent techniques and L2 regularization or weight decay. We conduct an extensive experimental study casting our initial findings into hypotheses and conclusions about the mechanisms underlying the emergent filter level sparsity. This study allows new insight into the performance gap observed between adaptive and non-adaptive gradient descent methods in practice. Further, analysis of the effect of training strategies and hyperparameters on the sparsity leads to practical suggestions in designing CNN training strategies enabling us to explore the tradeoffs between feature selectivity, network capacity, and generalization performance. Lastly, we show that the implicit sparsity can be harnessed for neural network speedup at par or better than explicit sparsification / pruning approaches, with no modifications to the typical training pipeline required.
Introduction
Modern Convolutional Neural Networks (CNNs) are notoriously over-parameterized, possessing significantly more filters than necessary for their target tasks. To enhance efficiency for deployment on resource-constrained devices, researchers typically employ explicit pruning—a multi-stage process involving training, filter identification, removal, and fine-tuning. This paper investigates "implicit sparsity," a phenomenon where standard CNNs naturally prune themselves during training when using adaptive optimizers and regularization, potentially eliminating the need for complex pruning workflows.
Methods
The researchers conducted an extensive experimental study using standard architectures like VGG and a custom 7-layer CNN called BasicNet. The study systematically varied training components, including optimizers (SGD vs. adaptive methods like Adam), regularization techniques (L2 vs. Weight Decay), and mini-batch sizes.
Sparsity was measured through two primary metrics:
- Activation Sparsity: Identifying filters that never produce a non-zero value across the training set.
- Scale Sparsity: Monitoring the "gamma" ($\gamma$) parameter in Batch Normalization layers; values near zero indicate effectively deactivated filters.
Experiments were performed across diverse datasets, including CIFAR-10/100, TinyImageNet, ImageNet, and synthetic datasets from ObjectNet3D to assess the impact of task complexity.
Key Insights: The Mechanism of Sparsity
The core finding is the Feature Selectivity Hypothesis. Adaptive optimizers like Adam tend to learn features with negative biases, making them highly selective—they only activate for specific, rare inputs. Because these features rarely fire, they receive infrequent gradients from the training objective. Consequently, the L2 regularizer, which constantly pulls weights toward zero, eventually suppresses these filters entirely.
This "tug-of-war" between the optimizer and the regularizer is most pronounced in adaptive methods. In contrast, SGD shows minimal sparsity unless regularization is extremely high. Furthermore, smaller mini-batches were found to increase sparsity by introducing more frequent updates and noise, which aids Adam in suppressing redundant filters.
Key Results
The study demonstrates that implicit sparsity can be as effective as state-of-the-art pruning methods. For instance, a VGG-16 model on CIFAR-10 achieved 83% filter sparsity using Adam and L2 regularization, actually improving test error from 7.2% to 6.5%.
As shown in the data above, Adam with L2 regularization (1e-4) achieves significant sparsity (47% total filters, 74% parameters) while maintaining or improving test error. The ridge plots illustrate how biases and scales shift toward zero over the course of training (from 2,000 to 42,000 iterations), visually confirming the suppression of filters.
Conclusion
Implicit filter level sparsity offers a "free" alternative to specialized pruning algorithms. By leveraging the natural interaction between adaptive optimizers and regularization, practitioners can achieve significant model compression without modifying the standard training pipeline. Future work remains to fully explain why Adam prefers selective representations and to explore these effects in modern architectures like Transformers.
Summary updated