Abstract
In deep learning, pruning is a standard technique for reducing the computational footprint of over-parameterized models. Traditionally, a sharp distinction is drawn between unstructured pruning, which induces weight-level sparsity, and structured pruning, which modifies the network architecture. This paper challenges the assumption that unstructured pruning cannot alter model depth. We present Entropy Guided Pruning (EGP), a novel framework that utilizes activation entropy to guide weight removal. By prioritizing the pruning of layers with low information content, EGP forces neurons into static states, allowing entire layers to be mathematically fused or removed. Our results demonstrate that EGP can significantly reduce the depth of ResNet and Swin Transformer architectures while maintaining higher accuracy than models of equivalent depth trained from scratch.
Introduction
Deep Neural Networks (DNNs) are notoriously over-parameterized, leading to significant research into model compression. Pruning techniques generally fall into two categories: unstructured pruning, which removes individual weights to create sparse matrices, and structured pruning, which removes entire structural components like neurons, channels, or layers. While unstructured pruning is highly effective at reducing the number of parameters, it typically leaves the underlying architecture—and thus the depth—intact, offering limited speedup on standard hardware.
Researchers from LTCI, Télécom Paris, investigate whether the flexibility of unstructured pruning can be harnessed to achieve the structural benefits of depth reduction. They propose that by monitoring the information flow through a network, weight-level pruning can be directed to "collapse" redundant layers, effectively shrinking the model's depth without the rigidity of traditional structured pruning methods.
Methodology: Entropy Guided Pruning (EGP)
The core innovation of this research is Entropy Guided Pruning (EGP), which shifts the focus from weight magnitude alone to the functional behavior of neurons.
Measuring Neuron Entropy
In networks utilizing ReLU or GELU activation functions, a neuron acts as a non-linear switch: it is either in a linear region (ON) or a zero region (OFF). EGP calculates the "entropy" of each neuron based on the frequency of these state transitions across a representative dataset. If a neuron is consistently OFF, it contributes nothing to the output. Conversely, if a neuron is consistently ON, it acts as a simple linear transformation. In both scenarios, the neuron's entropy is zero, indicating it provides no non-linear expressive power to the network.
The Pruning Irrelevance Meter
To guide the pruning process, the authors developed a metric, $I_l$, which combines the average entropy of a layer with the magnitude of its weights. This metric identifies layers that are functionally redundant. If every neuron in a layer reaches a state of zero entropy, the entire layer becomes a linear operation that can be mathematically fused into the subsequent layer, reducing the total depth of the network.
Iterative Routing
EGP does not prune all layers uniformly. Instead, it employs a softmax-based distribution to route a higher proportion of pruning toward layers with low entropy and low weight magnitudes. This targeted approach encourages specific layers to reach a "removable" state faster than the critical layers of the network.
Experimental Results
The researchers evaluated EGP using two primary benchmarks: CIFAR-10 and Tiny-ImageNet, applied to ResNet-18 and Swin Transformer (Swin-T) architectures.
Depth Reduction and Accuracy
EGP demonstrated a remarkable ability to prune layers while preserving or even enhancing performance:
- ResNet-18 on CIFAR-10: At 98.4% sparsity, EGP successfully removed 3 out of 17 layers. Notably, the pruned model achieved a Top-1 accuracy of 93.12%, surpassing the baseline accuracy of 92.10%.
- Swin-T on CIFAR-10: The method was even more aggressive with Vision Transformers, removing 7 out of 12 layers while maintaining a 90.10% accuracy rate.
Comparison with Training From Scratch
A critical finding of the study is that EGP-pruned models outperform smaller architectures trained from scratch. For instance, a ResNet-18 pruned by EGP to 5 layers reached 92.18% accuracy, while the same 5-layer architecture trained from scratch only reached 91.10%. This gap was most pronounced in Swin-T on Tiny-ImageNet, where the EGP-pruned model achieved 71.48% accuracy compared to a failing 0.50% for the model trained from scratch. This suggests that starting with an over-parameterized space allows the network to discover superior internal representations that are inaccessible when training small models directly.
Discussion and Insights
The study provides several key insights into the nature of neural network redundancy. First, it highlights the "Always ON" trap: neurons that never switch off are just as redundant as those that never switch on, as they fail to provide the non-linearity required for deep learning. Second, it proves that unstructured pruning can indeed lead to structural changes if guided by information-theoretic metrics.
Limitations
Despite its success, EGP faces practical challenges. Calculating entropy across an entire dataset during each pruning iteration is computationally intensive. Furthermore, the current mathematical derivation is optimized for ReLU and GELU activations; extending this to other functions like Sigmoid or Swish remains a subject for future research. The authors also suggest that future iterations could incorporate an "entropy penalty" directly into the loss function to encourage compressibility during the initial training phase.
Conclusion
Entropy Guided Pruning bridges the gap between weight-level sparsity and architectural depth reduction. By demonstrating that unstructured pruning can effectively delete layers, this research opens new pathways for model compression that combine the precision of weight-level methods with the hardware efficiency of structural reduction.
Summary updated