Abstract
Neural network pruning typically requires fully trained models as a starting point, followed by iterative pruning and retraining. This paper proposes a novel, architecture-agnostic method that prunes networks in real-time during training based on "Activation Density"—the ratio of non-zero activations in a layer. By identifying optimal layer-wise compression on the fly, we achieve up to $200\times$ reduction in parameters and over $60\times$ reduction in inference compute operations with accuracy comparable to baseline models. Our approach significantly reduces total training time and compute complexity ($1.6\times$ to $3.2\times$ lower) compared to training from scratch.
Introduction
Deep neural networks (DNNs) are computationally expensive to train and deploy, particularly on edge devices. While pruning is a standard solution to reduce model size, the traditional pipeline—training a dense model, pruning based on weight significance, and fine-tuning—is a major bottleneck. Recent findings suggest that the specific weights of a pruned network may be less important than its architecture (layer-wise sizing). This research addresses the challenge of discovering this optimal compressed architecture during the training process, bypassing the need for a fully trained dense model.
Methodology: Activation Energy Driven Pruning
The core of our approach is the use of Activation Density, or Activation Energy (AE), as a metric for architectural redundancy. AE is defined as the number of non-zero post-ReLU activations divided by the total number of activations in a layer.
The pruning algorithm follows an iterative cycle:
- Monitoring: A randomly initialized dense network is trained while monitoring the AE of each layer. As the network learns, AE naturally decreases.
- Saturation and Pruning: Once the overall AE reaches a saturation point (stops decreasing significantly), training is paused.
- Proportional Resizing: Each layer is pruned proportionally to its AE. For instance, a layer with an AE of 0.44 is resized to 44% of its original channel count.
- Re-initialization: The resulting smaller network is randomly re-initialized and the process repeats until AE begins to trend upwards, indicating no further spare redundancy.
This significance-agnostic method prioritizes layer-wise sizing over weight inheritance, allowing for efficient discovery of sparse architectures without wasting compute cycles on a full dense training phase.
Experimental Results
We evaluated the method on CIFAR-10, CIFAR-100, and TinyImageNet using VGG-19 and ResNet18 architectures.
Performance Trade-offs
On CIFAR-10 with ResNet18, our method achieved extreme compression levels. We observed a staggering ~200x reduction in parameters and ~67x reduction in operations (OPS) with a 6.2% accuracy drop. A more balanced configuration yielded a 41.2x parameter and 23.2x OPS reduction with only a 2% accuracy loss.
Training Efficiency
By pruning early in the training cycle, our method avoids the computational overhead of training a full dense network. On ResNet18, this approach outperformed the Lottery Ticket Hypothesis (LTH) in terms of training memory complexity. Furthermore, AE-driven pruning naturally targets computationally intensive early layers, leading to superior inference speedups compared to weight-based pruning methods.
Discussion and Conclusion
Our findings confirm that redundancy in DNNs manifests as "dead neurons" (zero activations). A decreasing AE is a strong indicator of overparameterization. However, there is a theoretical limit: if a network is pruned until AE reaches 100%, it may lose the ability to model non-linearities, as ReLU networks depend on zeroed-out values for complex data modeling.
In conclusion, Activation Density provides a robust, real-time metric for network compression. By focusing on architecture over specific weights, we can achieve massive reductions in both training and inference complexity without sacrificing significant accuracy. Future work will explore combining this approach with LTH for further scaling across diverse architectures and datasets.
Summary updated