An Asynchronous Multi-core Accelerator for SNN inference

Zhuo Chen, De Ma, Xiaofei Jin, Qinghui Xing, Ouwen Jin, Xin Du, Shuibing He, Gang PanarXiv 2024 · DOI

Introduction

Spiking Neural Networks (SNNs) represent a promising frontier in neuromorphic computing, mimicking the brain's event-driven communication via discrete spikes. While SNNs offer significant potential for energy efficiency, their implementation on multi-core hardware accelerators is often hampered by rigid synchronization requirements. Traditional architectures rely on a "global barrier" where all cores must complete a specific timestep before any can proceed to the next. This paper introduces DepAsync, an asynchronous multi-core architecture that eliminates these barriers by leveraging local data dependencies.

The Synchronization Bottleneck

The primary challenge in scaling SNN accelerators is the inherent sparsity of spiking activity. In most workloads, neurons do not fire uniformly; some regions of the network are highly active while others remain quiet. In a synchronous system, cores processing sparse regions must wait for "straggler" cores handling dense activity to finish their computations for the current timestep.

SNN workloads exhibit significant time and core imbalance due to inherent sparsity.

As shown in Figure 5, this imbalance occurs both across time and across different neuromorphic cores. This leads to significant hardware under-utilization, as many cores sit idle during the synchronization phase, wasting both time and energy while waiting for the global barrier to clear.

Methodology: The DepAsync Approach

DepAsync addresses the synchronization bottleneck by shifting from global synchronization to local, dependency-driven execution. The system analyzes the network topology at compile time to identify specific core-to-core dependencies rather than assuming a fully connected global state.

DepAsync replaces global synchronization with local dependency-driven execution.

The architecture employs a hardware scheduler within each core that monitors pre-dependencies (incoming spikes) and post-dependencies (available buffer space). As illustrated in Figure 4, a core can advance its local clock independently as long as its specific dependencies are satisfied. This allows cores to "drift" across different timesteps, effectively smoothing out the workload imbalance.

Key components of the DepAsync architecture include:

  • DEP Packages: Modified Network-on-Chip (NoC) packets that act as synchronization heartbeats between dependent cores.
  • Circular Spike Buffers: Memory structures that allow cores to store incoming spikes for future timesteps, preventing data collisions during asynchronous operation.
  • Time-Accurate Execution: Unlike speculative methods that require complex rollback mechanisms, DepAsync ensures exact numerical parity with synchronous baselines.

Evaluation and Results

The researchers evaluated DepAsync across a variety of standard neuromorphic datasets, including MNIST, NMNIST, DVSGesture, and CIFAR10DVS. The results demonstrate a significant leap in performance:

  • Speedup: DepAsync achieved a 1.86x harmonic mean speedup over traditional synchronous designs.
  • Energy Efficiency: By reducing idle time, the architecture improved energy efficiency by 1.55x.
  • Scalability: The benefits of asynchrony scale with the system size; in 256-core synthetic tests, DepAsync reached a 4.99x speedup.
  • Comparison to Speculation: DepAsync outperformed speculative architectures like NeuroSync by 1.46x in speed, without the hardware overhead of recovery logic.

Discussion and Future Work

While DepAsync offers a robust solution for feed-forward and sparse networks, its performance can be limited by cyclic dependencies in the network topology, which may force a fallback to synchronous-like behavior. Additionally, the hardware overhead for the schedulers and buffers accounts for approximately 6.76% of the chip area.

Future research may explore optimized neuron mapping strategies to further reduce communication latency and the potential for "multi-threading" neuromorphic cores to utilize remaining idle cycles for secondary tasks. DepAsync represents a critical step toward truly scalable and efficient neuromorphic hardware.

Summary updated

Abstract

Spiking Neural Networks (SNNs) are extensively utilized in brain-inspired computing and neuroscience research. To enhance the speed and energy efficiency of SNNs, several many-core accelerators have been developed. However, maintaining the accuracy of SNNs often necessitates frequent explicit synchronization among all cores, which presents a challenge to overall efficiency. In this paper, we propose an asynchronous architecture for Spiking Neural Networks (SNNs) that eliminates the need for inter-core synchronization, thus enhancing speed and energy efficiency. This approach leverages the pre-determined dependencies of neuromorphic cores established during compilation. Each core is equipped with a scheduler that monitors the status of its dependencies, allowing it to safely advance to the next timestep without waiting for other cores. This eliminates the necessity for global synchronization and minimizes core waiting time despite inherent workload imbalances. Comprehensive evaluations using five different SNN workloads show that our architecture achieves a 1.86x speedup and a 1.55x increase in energy efficiency compared to state-of-the-art synchronization architectures.
BibTeX
@misc{chen2024asynchronous,
  author = {Zhuo Chen and De Ma and Xiaofei Jin and Qinghui Xing and Ouwen Jin and Xin Du and Shuibing He and Gang Pan},
  title = {{An Asynchronous Multi-core Accelerator for SNN inference}},
  year = {2024},
  eprint = {2407.20947},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2407.20947},
}
Figure