Similarity-based context aware continual learning for spiking neural networks

Bing Han, Feifei Zhao, Yang Li, Qingqun Kong, Xianqi Li, Yi Zeng

TL;DR

Researchers have developed SCA-SNN, a new framework that allows Spiking Neural Networks (SNNs) to learn new tasks without forgetting old ones by mimicking the brain's "use it or lose it" principle. By calculating the similarity between tasks, the model adaptively decides how many new neurons to grow and which old ones to reuse, achieving state-of-the-art accuracy with significantly lower energy consumption than traditional deep learning methods.

What Problem Does This Paper Address?

Artificial intelligence often suffers from catastrophic forgetting: when a model learns a new task, it tends to overwrite the knowledge required for previous ones. While biological brains learn continuously throughout life, replicating this in AI is difficult.

Current "continual learning" strategies usually involve either expanding the network (which leads to massive, energy-hungry models) or selecting fixed subnetworks (which often fails to transfer knowledge between similar tasks). Spiking Neural Networks (SNNs)—which communicate via discrete "spikes" like biological neurons—offer a path toward energy efficiency, but existing SNN-based continual learning algorithms are often limited to shallow networks and ignore the potential of task-to-task associations.

Methods

The authors introduce the Similarity-based Context Aware Spiking Neural Network (SCA-SNN). Its architecture relies on three main pillars:

  1. Similarity-based Context Assessment: When a new task arrives, the model calculates its similarity to previous tasks using a "KL scatter" method. It compares the statistical distribution of features without needing an extra, separate evaluation network.
  2. Neuronal Discriminative Expansion: Instead of adding a fixed number of neurons for every task, the model scales its growth based on similarity. If a new task is very similar to an old one, the model expands very little, relying instead on existing knowledge.
  3. Neuronal Selective Reuse (Habituation): Inspired by biological habituation, the model uses a gradient-based relevance assessment. It identifies which old neurons are actually helpful for the new task. Neurons that contribute effectively are "reactivated," while irrelevant or conflicting neurons are pruned (disconnected) to prevent interference.

Datasets

The model was evaluated on several rigorous benchmarks for continual learning:

  • Split CIFAR100: The dataset is split into 10 or 20 sequential steps (5-10 classes per step).
  • Split ImageNet (Mini and Tiny): High-resolution natural images split into 10 steps.
  • Mixed Datasets: To test flexibility, the researchers combined different types of data, such as FMNIST-MNIST (alternating between fashion items and digits) and SVHN-CIFAR100 (alternating between house numbers and natural objects).

Key Insights and Ideas

  • The "More Similar, Less Growth" Rule: The core "aha moment" is the adaptive expansion formula. By making the number of new neurons inversely proportional to task similarity, the model maintains a compact size while maximizing knowledge transfer.
  • Gradient as a Proxy for Habituation: The researchers treated high gradients in old neurons as a sign of "conflict" or "irrelevance" to the new task. By pruning these, they mimic the biological "use it or lose it" developmental process, which stabilizes the network over time.
  • Cross-Domain Stability: Unlike many algorithms that crash when switching from one type of data (like digits) to another (like natural images), SCA-SNN remained stable, proving that its similarity assessment effectively handles "non-smooth" task transitions.

Key Results

  • Superior Accuracy: On CIFAR100 (10 steps), SCA-SNN achieved 85.61% Task Incremental Learning (TIL) accuracy, outperforming established DNN-based methods like DER++ (84.20%) and HAT (84.00%).
  • Tiny-ImageNet Performance: It reached 71.92% accuracy, a significant 3.1% lead over the next best algorithm (RDER).
  • Extreme Energy Efficiency: Because SNNs use sparse, discrete spikes and the SCA-SNN method prunes irrelevant connections (achieving a ~42% pruning rate), it consumed roughly 8.5 times less energy than the DNN-based MAS algorithm. Specifically, it used $3.3 \times 10^9$ pJ compared to $28.1 \times 10^9$ pJ for some expansion-based DNN counterparts.

Limitations and Future Work

While SCA-SNN excels at image classification, the authors note that it does not yet possess "comprehensive recognition" capabilities for more complex cognitive tasks like high-level reasoning or complex decision-making.

Future research directions include:

  • Enhancing the degree of freedom in neuron allocation to allow for even more dynamic structural changes.
  • Applying the framework to real-world, non-traditional environments beyond standard image datasets.
  • Exploring how these bio-inspired mechanisms can be integrated into even more complex, multi-modal AI systems.

Summary updated

BibTeX
@article{han2025similarity,
  author = {Bing Han and Feifei Zhao and Yang Li and Qingqun Kong and Xianqi Li and Yi Zeng},
  title = {{Similarity-based context aware continual learning for spiking neural networks}},
  journal = {Neural Networks},
  year = {2025},
  doi = {10.1016/j.neunet.2024.107037},
}
Figure