Brain-Inspired Architecture for Spiking Neural Networks

Fengzhen Tang, Jianghe Zhang, Chi Zhang, Lianqing LiuBiomimetics 2024

TL;DR

This paper introduces a novel brain-inspired Spiking Neural Network (SNN) architecture that integrates input encoding directly into the network, eliminating the need for separate preprocessing steps. By mimicking the brain's parallel processing capabilities and self-adaptive nature, their proposed network achieves competitive performance on image classification tasks with improved efficiency and robustness.

What Problem Does This Paper Address?

Traditional Artificial Neural Networks (ANNs) have been incredibly successful, but they often abstract away the complex temporal dynamics of biological neurons. Spiking Neural Networks (SNNs) offer a more biologically plausible alternative by using discrete "spikes" to represent information, similar to how biological neurons communicate. However, a major hurdle for SNNs has been the requirement for a separate, often lossy, preprocessing step to convert real-valued inputs (like image pixels) into spikes. This "dissected" encoding process can lead to degraded performance. Furthermore, the biological nervous system doesn't rely on a single pathway for processing; it utilizes multiple parallel circuits, which enhances robustness. This paper aims to bridge this gap by proposing an SNN that integrates input encoding, processes information in parallel, and thus achieves better performance and robustness.

Methods

The core innovation is a Self-Adaptive Coding Spiking Neural Network (SCSNN) with a parallel architecture.

  • Integrated Input Encoding: Instead of a separate spike-encoding module, the SCSNN incorporates convolutional layers that directly process real-valued inputs. These layers use an Integrate-and-Fire (IF) neuron model to convert input features into spikes. This mimics how sensory receptors in the brain directly translate stimuli into neural signals.
  • Parallel Architecture: Inspired by the brain's ability to process information through multiple pathways, the SCSNN features two identical subnetworks. These subnetworks process the same input independently but with different parameter initializations. The final output is an average of the outputs from these parallel branches, enhancing robustness.
  • Leaky Integrate-and-Fire (LIF) Neurons: While IF neurons are used in the initial convolutional layers for efficient spike generation, LIF neurons are employed in the fully connected layers to allow for temporal accumulation and more complex processing.
  • Surrogate Gradient Backpropagation: To train the SNNs, which are inherently non-differentiable due to the spike generation mechanism, the authors employ a surrogate gradient descent algorithm. They specifically use the derivatives of the arctangent and sigmoid functions as approximations for the spike activation function, finding arctangent to be more effective.

Datasets

The proposed network was evaluated on three standard image classification datasets:

  • MNIST: Grayscale images of handwritten digits (0-9).
  • Fashion-MNIST: Grayscale images of clothing items (10 categories).
  • CIFAR10: Color images of objects (10 categories).

The paper uses standard training/testing splits for these datasets.

Key Insights and Ideas

  • Eliminating the Preprocessing Bottleneck: Integrating spike encoding directly into the network architecture is crucial for SNN performance. It avoids information loss inherent in separate encoding methods like Poisson coding and allows the network to learn optimal spike representations.
  • Parallelism for Robustness and Performance: Mimicking the brain's parallel processing pathways not only improves recognition accuracy but also enhances the network's stability and robustness against potential failures in individual components.
  • Arctangent as a Superior Surrogate Gradient: The arctangent function provides a better approximation of the non-differentiable spike function compared to the sigmoid, leading to faster convergence and improved stability during training.
  • Efficiency in Simulation Time: The self-adaptive encoding strategy significantly reduces the required simulation time steps compared to traditional SNNs using Poisson coding, making them more computationally efficient.

Key Results

  • Competitive Accuracy: The proposed parallel SCSNN achieved state-of-the-art or comparable accuracy on the tested datasets. For MNIST, it reached 99.72%, outperforming existing SNNs by 0.1%. On Fashion-MNIST, it achieved 94.63%, a 2.7% improvement over the best prior SNN. For CIFAR10, it attained 91.43%, comparable to existing deep SNNs.
  • Reduced Simulation Time: The SCSNN required significantly fewer simulation time steps (tens) compared to traditional SNNs (hundreds) using Poisson coding, leading to faster training and inference.
  • Robustness Demonstrated: Lesion experiments, where one branch of the parallel network was disabled, showed a slight decrease in accuracy, confirming the benefit of the parallel architecture for robustness.
  • Optimal Parallelism: While increasing parallelism from two to four branches did not further improve performance and increased computational cost, the two-branch parallel design was found to be an effective balance.

Limitations and Future Work

  • Limited Brain Mechanism Integration: The current SCSNN only partially exploits brain mechanisms. Future work could incorporate more complex biological features like lateral interactions and recurrent connections.
  • Surrogate Gradient Limitations: While effective, surrogate gradient descent is still an approximation. Exploring more biologically plausible learning algorithms is a future direction.
  • Task Generalization: The current study focused on image classification. The authors suggest adapting the SCSNN to more complex tasks like speech recognition and time series analysis.
  • Hyperparameter Tuning: The paper notes that hyperparameters were manually selected. Further research could explore automated hyperparameter optimization.

Summary updated

Abstract

Spiking neural networks (SNNs), using action potentials (spikes) to represent and transmit information, are more biologically plausible than traditional artificial neural networks. However, most of the existing SNNs require a separate preprocessing step to convert the real-valued input into spikes that are then input to the network for processing. The dissected spike-coding process may result in information loss, leading to degenerated performance. However, the biological neuron system does not perform a separate preprocessing step. Moreover, the nervous system may not have a single pathway with which to respond and process external stimuli but allows multiple circuits to perceive the same stimulus. Inspired by these advantageous aspects of the biological neural system, we propose a self-adaptive encoding spike neural network with parallel architecture. The proposed network integrates the input-encoding process into the spiking neural network architecture via convolutional operations such that the network can accept the real-valued input and automatically transform it into spikes for further processing. Meanwhile, the proposed network contains two identical parallel branches, inspired by the biological nervous system that processes information in both serial and parallel. The experimental results on multiple image classification tasks reveal that the proposed network can obtain competitive performance, suggesting the effectiveness of the proposed architecture.
BibTeX
@inproceedings{tang2024brain,
  author = {Fengzhen Tang and Jianghe Zhang and Chi Zhang and Lianqing Liu},
  title = {{Brain-Inspired Architecture for Spiking Neural Networks}},
  booktitle = {Biomimetics},
  year = {2024},
  doi = {10.3390/biomimetics9100646},
}
Figure