Abstract
Spiking Neural Networks (SNNs) are brain-inspired models known for their energy efficiency in processing temporal data. However, their deployment on edge devices is hindered by significant computational requirements and susceptibility to adversarial attacks. Existing pruning techniques often struggle to balance model size with robustness, typically requiring labor-intensive manual tuning. We present CCSRP (Robust Pruning through Cooperative Coevolution), an automated framework that treats SNN pruning as a tri-objective optimization problem. CCSRP optimizes for accuracy, robustness, and compactness simultaneously. By employing a "divide and conquer" strategy through layer-wise cooperative coevolution and an efficient robustness evaluation mechanism using a shared adversarial dataset, CCSRP identifies highly efficient and resilient sub-networks. Our evaluations on CIFAR-10 and SVHN benchmarks demonstrate that CCSRP achieves over 70% reduction in FLOPs while maintaining superior robust accuracy compared to state-of-the-art methods.
Introduction
Spiking Neural Networks (SNNs) represent a promising frontier in neuromorphic computing, utilizing discrete spikes to process information in a manner similar to biological brains. Despite their efficiency for dynamic tasks, SNNs face two critical challenges: computational bloat and fragility. Converting standard deep neural networks to SNNs often results in oversized models unsuitable for resource-constrained edge hardware. Furthermore, like their continuous counterparts, SNNs are vulnerable to adversarial attacks—small, intentional perturbations that can lead to catastrophic failures.
Pruning is a common technique to reduce model size, but it frequently exacerbates fragility. Conversely, enhancing robustness often leads to increased computational costs. Most current approaches rely on human experts to manually determine pruning ratios for each layer, a process that is both inefficient and unlikely to yield optimal results. CCSRP addresses these issues by automating the search for robust, compact SNN architectures.
Methodology: The CCSRP Framework
The core of CCSRP is an automated evolutionary search strategy designed to navigate the complex trade-offs between performance and efficiency.
Tri-Objective Optimization
CCSRP moves beyond simple accuracy-based pruning by simultaneously optimizing three objectives:
- Accuracy: Performance on clean, unperturbed data.
- Robustness: Accuracy maintained under adversarial attacks.
- Compactness: Measured by the reduction in Floating Point Operations (FLOPs).
Cooperative Coevolution (CC)
To handle the high dimensionality of modern networks, CCSRP adopts a "divide and conquer" approach. The network is partitioned by layer, and a dedicated Evolutionary Algorithm (EA) optimizes each layer's pruning configuration independently. This cooperative coevolution allows the system to efficiently explore the vast search space of possible sub-networks.
Efficient Robustness Evaluation
A major bottleneck in robust pruning is the computational cost of generating adversarial attacks for every candidate model during evolution. CCSRP introduces a "shared adversarial dataset" ($D_a$). At the start of each iteration, a diverse set of attacks is generated based on various sub-networks. This shared pool is used to evaluate the fitness of all candidates in the population, significantly accelerating the evolutionary process.
Structured Pruning
Unlike unstructured pruning, which removes individual connections and creates sparse matrices that are difficult for hardware to accelerate, CCSRP performs structured pruning. By removing entire filters or channels, the resulting models achieve tangible speedups on standard hardware.
Experimental Setup
The researchers evaluated CCSRP on two standard image classification benchmarks: CIFAR-10 and SVHN (Street View House Numbers). These datasets were tested using spiking versions of popular architectures, including VGG-16, ResNet-56, and WideResNet (WRN-28-4).
Key Results and Insights
CCSRP consistently matched or outperformed state-of-the-art (SOTA) methods across multiple metrics:
- Efficiency vs. Robustness: On VGG-16 with CIFAR-10, CCSRP achieved a 77.84% reduction in FLOPs while maintaining a robust accuracy of 61.61%, surpassing the baseline CCRP method.
- Inference Speed: Due to its structured pruning approach, CCSRP models demonstrated significantly higher inference speeds (images per second) compared to unstructured robust pruning methods like HYDRA or ADV-LWM.
- Stability: The evolutionary approach proved stable across different architectures, consistently finding sub-networks that retained 80-90% of their original clean accuracy even after aggressive pruning.
The automation provided by EAs allowed the discovery of pruning configurations that human experts might overlook, effectively proving that robustness and compactness are not mutually exclusive.
Conclusion and Future Work
CCSRP represents a significant advancement in making SNNs practical for real-world deployment. While successful, future research could explore more advanced multi-objective optimization algorithms like NSGA-II to further refine the trade-offs. Additionally, scaling the evolutionary approach to larger datasets like ImageNet and developing a deeper theoretical understanding of sub-network robustness in SNNs remain important directions for future work.
Summary updated