BSNN: Towards faster and better conversion of artificial neural networks to spiking neural networks with bistable neurons

Yang Li, Dongcheng Zhao, Yi Zeng

Abstract

The spiking neural network (SNN) computes and communicates information through discrete binary events. Recent work has achieved essential progress on an excellent performance by converting ANN to SNN. Due to the difference in information processing, the converted deep SNN usually suffers serious performance loss and large time delay. In this paper, we analyze the reasons for the performance loss and propose a novel bistable spiking neural network (BSNN) that addresses the problem of the phase lead and phase lag. Also, we design synchronous neurons (SN) to help efficiently improve performance when ResNet structure-based ANNs are converted. BSNN significantly improves the performance of the converted SNN by enabling more accurate delivery of information to the next layer after one cycle. Experimental results show that the proposed method only needs 1/4-1/10 of the time steps compared to previous work to achieve nearly lossless conversion. We demonstrate better ANN-SNN conversion for VGG16, ResNet20, and ResNet34 on challenging datasets including CIFAR-10 (95.16% top-1), CIFAR-100 (78.12% top-1), and ImageNet (72.64% top-1).

Introduction and Problem Statement

Spiking Neural Networks (SNNs) represent a promising frontier in neuromorphic computing due to their biological plausibility and extreme energy efficiency. By using discrete binary spikes rather than continuous floating-point values, SNNs can theoretically operate with significantly lower power consumption on specialized hardware. However, training deep SNNs directly is challenging because the spiking function is non-differentiable, making standard backpropagation difficult to apply.

The most effective current strategy is ANN-to-SNN conversion: training a standard Artificial Neural Network (ANN) and mapping its weights to an SNN. Despite its success, this approach typically faces a severe "performance-latency tradeoff." To achieve high accuracy, converted networks often require thousands of simulation time steps, negating their speed and energy advantages.

Illustration of the standard ANN-to-SNN conversion process, mapping ReLU activations to Integrate-and-Fire (IF) neurons.

This latency is largely caused by "phase lead" and "phase lag"—phenomena where neurons fire too early or too late relative to the ideal signal. This results in Spikes of Inactivated Neurons (SIN), essentially temporal noise that degrades the signal-to-noise ratio in deep layers.

The BSNN Framework

To address these conversion inefficiencies, the researchers introduced the Bistable Spiking Neural Network (BSNN). This framework relies on two primary architectural innovations designed to stabilize information flow and synchronize deep networks.

1. Bistable IF Neurons (BIF)

In traditional conversion, an Integrate-and-Fire (IF) neuron can fire at any time step. In contrast, the BIF neuron operates in two periodic phases: a non-spike phase for accumulation and a spike phase for transmission. By alternating between these states, the BIF neuron acts as a temporal gatekeeper. This ensures that information is fully gathered before being passed to the next layer, effectively eliminating the noisy premature spikes that cause phase lead errors.

2. Synchronous Neurons (SN)

Modern architectures like ResNet use "shortcut" paths that allow signals to skip layers. In an SNN, signals traveling through these shortcuts often arrive at the destination much faster than those passing through convolutional layers. This temporal mismatch causes synchronization errors. The authors developed Synchronous Neurons to act as buffers, re-aligning the signals from different paths so they reach the subsequent layer simultaneously.

3. Phase Coding

To further reduce latency, BSNN utilizes Phase Coding. Instead of a simple rate-based code where only the number of spikes matters, Phase Coding assigns different weights to spikes based on when they occur within a cycle. This allows the network to represent high-precision values using very few spikes.

Phase coding mechanism where different spike weights are assigned based on the timing within a period, allowing for high-precision information transfer.

Experimental Results

The BSNN was evaluated on standard benchmarks including MNIST, CIFAR-10, CIFAR-100, and ImageNet. The results demonstrate a significant leap in conversion efficiency:

  • ImageNet (ResNet34): The model achieved a 72.64% top-1 accuracy in just 989 time steps. Previous state-of-the-art methods often require over 4,000 steps to reach similar accuracy levels.
  • CIFAR-100: Reached 78.12% accuracy using a ResNet20 backbone, outperforming existing conversion techniques with a fraction of the latency.
  • Efficiency Gain: Across all complex datasets, BSNN achieved nearly lossless conversion while requiring only 1/4 to 1/10 of the simulation time steps compared to prior work.

Conclusion and Future Outlook

BSNN successfully mitigates the performance-latency tradeoff in ANN-to-SNN conversion by introducing bistability and synchronization. By forcing neurons to accumulate information before firing, the network produces a much cleaner signal, allowing deep architectures like ResNet to function efficiently in a spiking format.

While this represents a major step forward, the method still depends on pre-trained ANNs. Future research may focus on implementing these bistable structures directly into neuromorphic hardware to quantify real-world energy savings and exploring native SNN training regimes that incorporate these synchronization principles.

Summary updated

BibTeX
@inproceedings{li2022bsnn,
  author = {Yang Li and Dongcheng Zhao and Yi Zeng},
  title = {{BSNN: Towards faster and better conversion of artificial neural networks to spiking neural networks with bistable neurons}},
  booktitle = {Frontiers in Neuroscience},
  year = {2022},
  doi = {10.3389/fnins.2022.991851},
}
Figure