Enhancing Efficient Continual Learning with Dynamic Structure Development of Spiking Neural Networks

Bing Han, Feifei Zhao, Yi Zeng, Wenxuan Pan, Guobin Shen

Introduction

Artificial intelligence models typically suffer from catastrophic forgetting: when trained on a new task, they tend to overwrite the weights used for previous tasks, causing performance on old data to plummet. While Deep Neural Networks (DNNs) have established several continual learning strategies—such as replaying old data or freezing specific weights—Spiking Neural Networks (SNNs) have lagged behind. SNNs are biologically realistic and energy-efficient, but existing continual learning methods for them are often limited to simple datasets or require complex "task masks" that create massive memory overhead as the number of tasks grows.

This paper introduces the DSD-SNN (Dynamic Structure Development of Spiking Neural Networks) framework. By mimicking biological brain development—specifically the growth and pruning of neurons—DSD-SNN allows energy-efficient spiking networks to learn indefinitely without needing cumbersome masks, achieving state-of-the-art performance on complex benchmarks like CIFAR-100.

Methodology: Dynamic Structure Development

The core of the proposed framework is the Dynamic Structure Development (DSD) cycle, a three-phase process inspired by the maturation of the biological brain:

  1. Random Growth: Upon the arrival of a new task, the model identifies "empty" (untrained) neurons and activates them. These new neurons receive inputs from all previously frozen neurons, facilitating "forward transfer" where the model reuses old knowledge to accelerate new learning.
  2. Adaptive Pruning: During training, the model monitors the importance of these new neurons based on synaptic activity. Neurons contributing little to the output are pruned and reset to "empty" status, maintaining network sparsity and efficiency.
  3. Freezing Neurons: Once a task is mastered, the surviving neurons are frozen. Their weights become immutable to prevent forgetting, yet they remain available as inputs for future growth phases.
The DSD-SNN three-phase cycle: random growth, adaptive pruning, and neuron freezing across sequential tasks.

To address Class Incremental Learning (CIL)—where the model must identify the task ID at test time—the authors incorporate a small auxiliary Task Classifier. This component predicts the task ID, allowing the main SNN to select the appropriate output head for inference.

Experimental Setup and Benchmarks

The model was evaluated across three major benchmarks to test its versatility and scaling capabilities:

  • Permuted MNIST: A standard image classification task with pixel shuffling.
  • Permuted N-MNIST: A neuromorphic, event-based version of MNIST that captures temporal dynamics.
  • Split CIFAR-100: A complex natural image dataset split into 10 or 20 sequential steps. This represents a significantly higher difficulty level for SNNs compared to simple digit recognition.

Key Results and Insights

The DSD-SNN framework demonstrates that structural plasticity (changing topology) is a powerful alternative to simple weight plasticity.

  • Performance Leadership: On the neuromorphic N-MNIST dataset, DSD-SNN achieved 97.06% accuracy, vastly outperforming the previous state-of-the-art SNN method (HMN) at 78.18%. On the difficult Split CIFAR-100 (10-step), it reached 77.92% accuracy, proving competitive with popular DNN-based methods like EWC or MAS.
  • Efficiency and Capacity: Pruning is not merely a power-saving measure; it manages memory capacity. By aggressively removing redundant neurons, the model stabilized at using only 37.48% of its total parameter capacity after learning all tasks, leaving ample room for future learning.
  • Forward Transfer: Newer tasks were found to converge faster than the initial task because they leverage the features already learned and frozen by previous tasks.
Comparative performance of DSD-SNN against state-of-the-art methods on various benchmarks, showing superior stability and accuracy.

Conclusion and Future Work

DSD-SNN successfully eliminates the need for task-specific masks by allowing tasks to share a single, overlapping frozen structure. While the framework marks a significant step forward, some challenges remain. The task classifier currently requires a small amount of data replay (2,000 samples) to maintain accuracy in CIL scenarios. Future research will focus on developing a truly "replay-free" brain-inspired classifier and testing the architecture on web-scale datasets like ImageNet-1K to further explore its capacity limits.

Summary updated

BibTeX
@inproceedings{han2023enhancing,
  author = {Bing Han and Feifei Zhao and Yi Zeng and Wenxuan Pan and Guobin Shen},
  title = {{Enhancing Efficient Continual Learning with Dynamic Structure Development of Spiking Neural Networks}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {2023},
  doi = {10.24963/ijcai.2023/334},
}
Figure