Low Latency of object detection for spikng neural network

Nemin Qiu, Chuang ZhuarXiv 2023 · DOI

Introduction

Spiking Neural Networks (SNNs) represent the "third generation" of neural network architectures. By communicating via binary spikes rather than continuous floating-point values, SNNs offer the potential for extreme energy efficiency, making them ideal candidates for edge AI and battery-powered neuromorphic hardware. However, a significant barrier to their widespread adoption is the accuracy-delay tradeoff. To achieve the high precision of standard Artificial Neural Networks (ANNs), SNNs typically require thousands of simulation time steps to accumulate sufficient spikes. This high latency makes them impractical for real-time tasks like object detection. This paper addresses this gap by identifying and mitigating information loss during the ANN-to-SNN conversion process.

Methodology

The researchers propose a novel conversion framework designed to achieve high accuracy at significantly lower latencies. The strategy focuses on three primary areas: structural optimization, activation alignment, and error centering.

Overview of the proposed ANN-to-SNN conversion pipeline.

Structural Replacement

A key finding of this work is that standard max-pooling layers are inherently "SNN-unfriendly." These layers tend to significantly reduce spike firing rates, leading to massive information loss in the early stages of the network. To maintain a healthy flow of spikes, the authors replaced max-pooling with downsampling (strided) convolutions and transposed convolutions. This structural change ensures that information is preserved even at low time steps.

Quant-ReLU Training

In an SNN with $T$ time steps, a neuron's firing rate is inherently discrete (e.g., $0, 1/T, 2/T, \dots, 1$). Conversely, standard ANNs use continuous ReLU activations. This mismatch is a primary source of conversion error. To bridge this gap, the authors trained their source ANN using Quant-ReLU. This activation function forces the ANN to learn using the same discrete "steps" that the SNN will eventually employ, making the conversion nearly lossless.

The Residual Fix

Even with quantization-aware training, a residual gap remains between the ANN's continuous values and the SNN's discrete firing rates. The authors introduced a "Residual Fix" by initializing the SNN's membrane potential to a specific value (0.5) instead of zero. This simple tweak effectively "centers" the quantization error, cutting the average error in half without adding computational overhead.

Visualization of the Residual Fix reducing quantization error.

Experimental Results

The proposed method was evaluated on MS COCO, PASCAL VOC, and a custom spike dataset captured from neuromorphic sensors.

Performance Benchmarks

The results demonstrate a massive reduction in latency compared to previous state-of-the-art models like Spiking-YOLO:

  • MS COCO: The model achieved 52.0 mAP in just 150 time steps. In contrast, Spiking-YOLO requires 3500 time steps to reach a comparable 51.83 mAP, representing a 23x reduction in inference latency.
  • PASCAL VOC: At 300 time steps, the proposed method reached 36.2 mAP, significantly outperforming the 25.66 mAP achieved by prior work.

Native Spike Processing

The architecture showed a natural affinity for data from spiking cameras (DVS). This suggests that the proposed methods are uniquely suited for next-generation neuromorphic sensors, where processing native spike streams directly can further enhance efficiency.

Conclusion

By addressing the root causes of conversion error—specifically low firing rates and quantization mismatches—this work enables high-performance object detection in SNNs at unprecedentedly low latencies. While future work is needed to validate these gains on physical neuromorphic hardware and explore generalization to other tasks like instance segmentation, the "Residual Fix" and Quant-ReLU training provide a robust foundation for practical, real-time spiking AI.

Summary updated

BibTeX
@misc{qiu2023low,
  author = {Nemin Qiu and Chuang Zhu},
  title = {{Low Latency of object detection for spikng neural network}},
  year = {2023},
  eprint = {2309.15555},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2309.15555},
}
Figure