Adaptive Spiking Neural Networks with Hybrid Coding

Huaxu He
2024-08-22
Abstract:The Spiking Neural Network (SNN), due to its unique spiking-driven nature, is a more energy-efficient and effective neural network compared to Artificial Neural Networks (ANNs). The encoding method directly influences the overall performance of the network, and currently, direct encoding is primarily used for directly trained SNNs. When working with static image datasets, direct encoding inputs the same feature map at every time step, failing to fully exploit the spatiotemporal properties of SNNs. While temporal encoding converts input data into spike trains with spatiotemporal characteristics, traditional SNNs utilize the same neurons when processing input data across different time steps, limiting their ability to integrate and utilize spatiotemporal information <a class="link-external link-http" href="http://effectively.To" rel="external noopener nofollow">this http URL</a> address this, this paper employs temporal encoding and proposes the Adaptive Spiking Neural Network (ASNN), enhancing the utilization of temporal encoding in conventional SNNs. Additionally, temporal encoding is less frequently used because short time steps can lead to significant loss of input data information, often necessitating a higher number of time steps in practical applications. However, training large SNNs with long time steps is challenging due to hardware constraints. To overcome this, this paper introduces a hybrid encoding approach that not only reduces the required time steps for training but also continues to improve the overall network performance.Notably, significant improvements in classification performance are observed on both Spikformer and Spiking ResNet architectures.our code is available at <a class="link-external link-https" href="https://github.com/hhx0320/ASNN" rel="external noopener nofollow">this https URL</a>
Neural and Evolutionary Computing
What problem does this paper attempt to address?
The paper mainly aims to address the following issues: 1. **Enhancing the temporal encoding capability of Spiking Neural Networks (SNNs)**: Traditional SNNs, when processing static image datasets, use a direct encoding method that results in the same feature map being input at each time step, failing to fully utilize the spatio-temporal characteristics of SNNs. This paper proposes an Adaptive Spiking Neural Network (ASNN) that enhances the utilization of temporal information in traditional SNNs by introducing temporal encoding. 2. **Addressing the information loss problem caused by short time steps**: A small number of time steps within a short period leads to significant information loss in the input data, typically requiring an increase in the number of time steps to compensate for this deficiency. However, training SNNs with long time steps in large-scale networks faces hardware limitations. To this end, this paper introduces a hybrid encoding strategy that reduces the required number of time steps while improving the overall network performance. 3. **Optimizing network structure to fully utilize spatio-temporal characteristics**: Traditional SNNs use the same neurons to process data at different time steps, limiting their ability to integrate and utilize spatio-temporal information. ASNN enhances the network's flexibility in processing spatio-temporal information by introducing learnable parameters (such as output weights, membrane potential decay, and current input), thereby improving the performance of SNNs in handling spiking data tasks. In summary, the paper aims to improve the performance of SNNs in processing complex spatio-temporal data by improving encoding methods and network structure, and to demonstrate better performance across various tasks.