Abstract
Deep Neural Networks (DNNs) are computationally intensive, hindering deployment on edge devices. This paper introduces a novel neuron pruning framework that minimizes Nonlinear Reconstruction Error (NRE). Unlike traditional methods that minimize error before activation functions, NRE accounts for the non-linearities (e.g., ReLU), leading to more accurate pruning. Evaluated on VGGNet and AlexNet, the method achieves up to 13.6× compression and 3.7× speedup with negligible accuracy loss.
Introduction
Deep Neural Networks (DNNs) have achieved state-of-the-art performance in various tasks but at the cost of high memory and computational requirements. Pruning techniques aim to reduce this overhead. While weight pruning creates sparse models requiring specialized hardware, neuron pruning removes entire channels, resulting in standard models that are inherently faster on general-purpose hardware.
Most existing neuron pruning methods optimize a layer-wise objective based on Linear Reconstruction Error (LRE), minimizing the difference in feature maps before the activation function. However, activation functions like ReLU zero out negative values, meaning different pre-activation inputs can yield identical post-activation outputs. This paper argues that minimizing error after the nonlinearity—Nonlinear Reconstruction Error (NRE)—is crucial for maintaining network performance.
Methodology: Minimizing Nonlinear Reconstruction Error
The proposed framework focuses on a 3-layer subnetwork to evaluate the impact of pruning neurons in a hidden layer $l$ on the output of the subsequent layer $l+1$.
NRE Framework
The core innovation is the NRE objective function, which measures the discrepancy between the original and pruned network outputs after the nonlinear activation function. By considering the "ReLU effect," the algorithm avoids penalizing changes in values that would ultimately be zeroed out, allowing for more flexible and effective pruning.
Iterative Optimization and Dynamic Recovery
The pruning process involves:
- Sensitivity Analysis: Neurons are ranked by importance based on the product of the quadratic sums of their incoming and outgoing weights.
- Greedy Selection: The most critical neurons are retained.
- Masked Gradient Descent: Weights of the remaining neurons are updated to compensate for the pruned ones. A "weight splicing" technique allows pruned neurons to be restored if gradients indicate they are necessary, making the optimization more robust.
- Global Fine-tuning: A final pass over the entire network recovers any minor accuracy drops.
Experimental Results
The method was benchmarked on MNIST (MLP), CIFAR-10 (VGGNet), and ImageNet (AlexNet).
Performance Comparison
Compared to state-of-the-art methods like ThiNet and Network Slimming, the NRE-based approach consistently showed lower accuracy drops for the same pruning ratios.
Key Findings
- VGGNet (CIFAR-10): Achieved a 13.6× reduction in model size (57MB to 4.2MB) and a 3.7× speedup with only a 0.06% drop in accuracy.
- AlexNet (ImageNet): Reached 54.63% top-1 accuracy at 4.1× compression, outperforming ThiNet (53.67%) at the same rate.
- Layer Redundancy: Analysis revealed that deeper layers in VGGNet are significantly more redundant, permitting more aggressive pruning in the later stages of the network.
Conclusion
By shifting the focus from linear to nonlinear reconstruction error, this research provides a more principled approach to neuron pruning. The resulting framework enables significant model compression and acceleration without sacrificing accuracy. Future work will explore extending this method to complex architectures like ResNet and Recurrent Neural Networks.
Summary updated