[Paper Review] Connectivity Matters: Neural Network Pruning Through the Lens of Effective Sparsity
This paper introduces effective sparsity as a more accurate measure of neural network pruning by accounting for connections that are inactivated due to disconnection from input/output flows, not just those explicitly pruned. It demonstrates that many pruning algorithms appear more effective under direct sparsity but lose their advantage under effective sparsity, especially in high-compression regimes, and proposes a low-cost method to achieve effective sparsity, reconfirming that random pruning with proper layerwise allocation can outperform complex methods.
Neural network pruning is a fruitful area of research with surging interest in high sparsity regimes. Benchmarking in this domain heavily relies on faithful representation of the sparsity of subnetworks, which has been traditionally computed as the fraction of removed connections (direct sparsity). This definition, however, fails to recognize unpruned parameters that detached from input or output layers of underlying subnetworks, potentially underestimating actual effective sparsity: the fraction of inactivated connections. While this effect might be negligible for moderately pruned networks (up to 10-100 compression rates), we find that it plays an increasing role for thinner subnetworks, greatly distorting comparison between different pruning algorithms. For example, we show that effective compression of a randomly pruned LeNet-300-100 can be orders of magnitude larger than its direct counterpart, while no discrepancy is ever observed when using SynFlow for pruning [Tanaka et al., 2020]. In this work, we adopt the lens of effective sparsity to reevaluate several recent pruning algorithms on common benchmark architectures (e.g., LeNet-300-100, VGG-19, ResNet-18) and discover that their absolute and relative performance changes dramatically in this new and more appropriate framework. To aim for effective, rather than direct, sparsity, we develop a low-cost extension to most pruning algorithms. Further, equipped with effective sparsity as a reference frame, we partially reconfirm that random pruning with appropriate sparsity allocation across layers performs as well or better than more sophisticated algorithms for pruning at initialization [Su et al., 2020]. In response to this observation, using a simple analogy of pressure distribution in coupled cylinders from physics, we design novel layerwise sparsity quotas that outperform all existing baselines in the context of random pruning.
Motivation & Objective
- To address the flaw in standard pruning benchmarking that uses direct sparsity, which ignores inactivated connections due to structural disconnection.
- To demonstrate that direct sparsity significantly underestimates actual sparsity in high-compression regimes, distorting comparisons between pruning algorithms.
- To propose a low-cost extension to existing pruning algorithms that enables targeting effective sparsity instead of direct sparsity.
- To reevaluate recent pruning algorithms under the lens of effective sparsity and reveal that performance rankings shift dramatically in this new framework.
- To show that random pruning with optimized layerwise sparsity quotas can outperform more sophisticated algorithms in the effective sparsity regime.
Proposed method
- Define effective sparsity as the fraction of inactivated connections—those not affecting the network output for any input—regardless of whether they were directly pruned or disconnected structurally.
- Propose a simple, low-cost algorithmic extension to most pruning methods that ensures pruned connections are removed only if they do not affect the network's computational flow.
- Use a computational graph analysis to identify and count inactivated edges after pruning, distinguishing them from explicitly removed ones.
- Adopt a thermodynamic analogy of pressure distribution in coupled cylinders to design novel layerwise sparsity quotas that improve performance in random pruning.
- Implement and evaluate multiple pruning algorithms (e.g., SynFlow, SNIP, GraSP, random pruning) on standard benchmarks using both direct and effective sparsity metrics.
- Use a consistent experimental setup across architectures (LeNet, VGG, ResNet) and datasets (MNIST, CIFAR, TinyImageNet, ImageNet) to ensure fair comparison.
Experimental results
Research questions
- RQ1How does the discrepancy between direct and effective sparsity affect the benchmarking of neural network pruning algorithms in high-compression regimes?
- RQ2Do pruning algorithms that perform well under direct sparsity maintain their advantage when evaluated under effective sparsity?
- RQ3Can random pruning with optimized layerwise sparsity quotas outperform more complex pruning algorithms when effective sparsity is used as the evaluation metric?
- RQ4What is the impact of structural disconnection (i.e., inactivated neurons) on the actual compression efficiency of pruned subnetworks?
- RQ5How can existing pruning algorithms be modified to target effective sparsity rather than direct sparsity with minimal computational overhead?
Key findings
- Effective sparsity can be orders of magnitude higher than direct sparsity in randomly pruned networks, especially at extreme compression levels, revealing a major flaw in standard benchmarking.
- SynFlow, which performs best under direct sparsity, loses its advantage under effective sparsity, indicating its performance was overstated in prior evaluations.
- For LeNet-300-100, effective compression of randomly pruned networks can be up to 10× higher than direct compression, while SynFlow shows no such discrepancy.
- The gap between direct and effective sparsity varies significantly across algorithms, with random pruning showing the largest discrepancy, which distorts performance comparisons.
- Layerwise sparsity quotas derived from a thermodynamic analogy outperform all existing baselines in the context of random pruning when evaluated under effective sparsity.
- In high-compression regimes, effective sparsity reveals that random pruning with proper layer allocation performs as well or better than complex, data-dependent methods, challenging prior assumptions about algorithmic superiority.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.