NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Spike Calibration: Fast and Accurate Conversion of Spiking Neural Network for Object Detection and Segmentation

Yang Li, Xiang He, Yiting Dong, Qingqun Kong, Yi ZengarXiv 2022

Abstract

Spiking neural network (SNN) has been attached to great importance due to the properties of high biological plausibility and low energy consumption on neuromorphic hardware. As an efficient method to obtain deep SNN, the conversion method has exhibited high performance on various large-scale datasets. However, it typically suffers from severe performance degradation and high time delays. In particular, most of the previous work focuses on simple classification tasks while ignoring the precise approximation to ANN output. In this paper, we first theoretically analyze the conversion errors and derive the harmful effects of time-varying extremes on synaptic currents. We propose the Spike Calibration (SpiCalib) to eliminate the damage of discrete spikes to the output distribution and modify the LIPooling to allow conversion of the arbitrary MaxPooling layer losslessly. Moreover, Bayesian optimization for optimal normalization parameters is proposed to avoid empirical settings. The experimental results demonstrate the state-of-the-art performance on classification, object detection, and segmentation tasks. To the best of our knowledge, this is the first time to obtain SNN comparable to ANN on these tasks simultaneously. Moreover, we only need 1/50 inference time of the previous work on the detection task and can achieve the same performance under 0.492× energy consumption of ANN on the segmentation task.

Introduction

While traditional Artificial Neural Networks (ANNs) dominate the AI landscape, their high power consumption presents a significant barrier for deployment on battery-constrained edge devices. Spiking Neural Networks (SNNs) offer a biologically inspired alternative, processing information via discrete spikes to achieve massive energy savings on specialized neuromorphic hardware.

However, training deep SNNs from scratch remains challenging. ANN-to-SNN conversion—mapping pre-trained ANN weights to an SNN—is a popular workaround but has historically faced two major hurdles: high latency (requiring thousands of time steps) and significant accuracy loss in complex spatial tasks like object detection and semantic segmentation. These tasks require far more precise output distributions than simple image classification.

Theoretical Analysis and Methodology

The researchers identified the Spikes of Inactivated Neurons (SIN) error as a primary driver of performance degradation. In an SNN, temporal fluctuations in synaptic current can cause a neuron to fire even when its ANN counterpart remains silent. This paper demonstrates that the SNN firing rate is determined by the time-varying maximum of the received current rather than just the final value.

Analysis of conversion errors (Clipping and SIN) and the impact of Spike Calibration on output correlation.

To address these issues, the framework introduces three core innovations:

  1. Spike Calibration (SpiCalib): An online monitor tracks the Interspike Interval (ISI). If a neuron fires prematurely due to a SIN error, "twin synapses" with negative weights are used to cancel the erroneous spikes, restoring the intended output distribution.
  2. Modified LIPooling (MLIPooling): By incorporating zero-padding and duplicating spike regions, the authors adapted LIPooling to ensure that MaxPooling layers can be converted losslessly, regardless of kernel size or stride.
  3. Bayesian Optimization (BOA): To avoid suboptimal empirical settings, Bayesian Optimization is used to find the mathematically optimal weight normalization parameters, minimizing the KL Divergence between ANN and SNN outputs.

Experimental Results

The SpiCalib framework was evaluated across classification (CIFAR, ImageNet), object detection (PASCAL VOC, MS COCO), and semantic segmentation (PASCAL VOC) benchmarks.

Visual comparison of object detection (YOLO) and semantic segmentation (FCN) using Spike Calibration versus baseline methods.

The results represent a significant leap for SNNs:

  • Detection Performance: On PASCAL VOC, the SNN achieved a 67.54% mAP (VGG16) within 256 time steps, nearly matching the original ANN (67.48%). Crucially, this was achieved in just 1/50th of the inference time required by previous state-of-the-art methods.
  • Energy Efficiency: In semantic segmentation tasks, the SNN reached ANN-equivalent performance while consuming only 0.492× the energy of the baseline ANN.
  • Precision: As shown in the visual results, SpiCalib significantly reduces noise and improves bounding box/mask accuracy compared to standard spiking versions of YOLO and FCN.

Conclusion

This work provides the first demonstration of an SNN achieving comparable performance to an ANN across classification, detection, and segmentation tasks simultaneously. By addressing the SIN error through temporal monitoring and optimization, the authors have significantly narrowed the gap between biological plausibility and practical utility. Future work will explore combining SpiCalib with quantization techniques to further enhance robustness for real-world neuromorphic deployment.

Summary updated

BibTeX
@misc{li2022spike,
  author = {Yang Li and Xiang He and Yiting Dong and Qingqun Kong and Yi Zeng},
  title = {{Spike Calibration: Fast and Accurate Conversion of Spiking Neural Network for Object Detection and Segmentation}},
  year = {2022},
  eprint = {2207.02702},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2207.02702},
}
Figure