Abstract
Most neural networks need to predefine the network architecture empirically, which may cause over-fitting or under-fitting. Besides, a large number of parameters in a fully connected network leads to prohibitively expensive computational cost and storage overhead, making models hard to deploy on mobile devices. Dynamically optimizing the network architecture by pruning unused synapses is a promising technique for solving this problem. In this paper, we propose an effective brain-inspired synaptic pruning (BSP) method to dynamically modulate network architecture and simultaneously improve performance. Biologically inspired by the synaptic pruning rules used during brain development, connections are pruned if they remain inactive or less activated multiple times consecutively. Extensive experiments on MNIST, Fashion MNIST, and CIFAR-10 datasets reveal that even for compact networks, the proposed method can remove up to 59-90% of connections with relative improvements in learning speed and accuracy.
Introduction
Deep Neural Networks (DNNs) are often over-parameterized, requiring massive memory and computational power. This redundancy not only hinders deployment on edge hardware but also leads to over-fitting, where models memorize training data rather than generalizing patterns. While traditional pruning methods often rely on static weight thresholds to remove unnecessary connections, these can inadvertently delete useful synapses that were only temporarily weak. The BSP algorithm addresses this by introducing a dynamic, biologically plausible refinement process that occurs during the learning phase itself.
Methodology: The BSP Algorithm
The core logic of the Brain-Inspired Synaptic Pruning (BSP) algorithm is rooted in the "use it or lose it" principle of the developing human brain. Unlike static pruning, BSP evaluates the persistence of a synapse's weakness over time.
The Pruning Process
The algorithm follows a three-step cycle during training:
- Candidate Selection: In each training epoch, the algorithm identifies a percentage of synapses with the smallest absolute weights as "candidates" for pruning.
- The "Probation" Period: Instead of immediate deletion, the algorithm tracks how many consecutive times a synapse appears in the weak candidate list.
- Selective Elimination: A synapse is permanently pruned only if it remains in the candidate list for a specific number of consecutive iterations ($p_c$).
Crucially, the pruning rate ($p_r$) and the consecutive threshold ($p_c$) are dynamically modulated based on the hidden layer size and dataset complexity. This ensures the pruning adapts to the specific task, preventing "over-pruning" in smaller networks.
Experimental Results
The researchers evaluated BSP on three standard benchmarks: MNIST (handwritten digits), Fashion MNIST (clothing), and CIFAR-10 (color images). The results demonstrated that "less is more":
- Massive Compression: The method successfully removed 59% to 90% of connections across various network configurations.
- Accuracy Improvement: In nearly all tests, the pruned BSP network achieved higher test accuracy than the original dense network. For CIFAR-10, accuracy improved from 51.62% to 53.55% despite discarding nearly 88% of the weights.
- Accelerated Convergence: Pruned networks reached peak accuracy significantly faster than dense networks or those using standard Dropout. In some MNIST configurations, learning speed improved by over 2.7x.
Discussion and Key Insights
The primary innovation of BSP is prioritizing persistence over magnitude. By requiring a synapse to be consistently weak, the model avoids the accidental deletion of temporarily inactive but important connections. Furthermore, because BSP occurs during training, remaining synapses can compensate for lost ones in real-time, leading to a more robust final architecture.
Limitations and Future Work
While effective for fully connected layers, future research should extend this "consecutive weakness" rule to Convolutional Neural Networks (CNNs) and Transformers. Additionally, while the networks are mathematically smaller, further work is needed to optimize standard hardware (like GPUs) to fully realize the wall-clock time savings offered by the resulting irregular sparsity.
Summary updated