[Paper Review] Converting Artificial Neural Networks to Spiking Neural Networks via Parameter Calibration
This paper proposes a layer-wise parameter calibration method to convert pre-trained Artificial Neural Networks (ANNs) into Spiking Neural Networks (SNNs) with minimal activation mismatch, especially in networks with batch normalization. By analyzing error propagation via Hessian-based second-order analysis and calibrating weights, biases, and initial membrane potentials, the method achieves up to 65% top-1 accuracy on ImageNet using only 32 time steps—significantly outperforming prior copy-paste conversion methods.
Spiking Neural Network (SNN), originating from the neural behavior in biology, has been recognized as one of the next-generation neural networks. Conventionally, SNNs can be obtained by converting from pre-trained Artificial Neural Networks (ANNs) by replacing the non-linear activation with spiking neurons without changing the parameters. In this work, we argue that simply copying and pasting the weights of ANN to SNN inevitably results in activation mismatch, especially for ANNs that are trained with batch normalization (BN) layers. To tackle the activation mismatch issue, we first provide a theoretical analysis by decomposing local conversion error to clipping error and flooring error, and then quantitatively measure how this error propagates throughout the layers using the second-order analysis. Motivated by the theoretical results, we propose a set of layer-wise parameter calibration algorithms, which adjusts the parameters to minimize the activation mismatch. Extensive experiments for the proposed algorithms are performed on modern architectures and large-scale tasks including ImageNet classification and MS COCO detection. We demonstrate that our method can handle the SNN conversion with batch normalization layers and effectively preserve the high accuracy even in 32 time steps. For example, our calibration algorithms can increase up to 65% accuracy when converting VGG-16 with BN layers.
Motivation & Objective
- Address the critical challenge of activation mismatch in ANN-to-SNN conversion, particularly in deep networks with batch normalization layers.
- Overcome the limitations of existing copy-paste conversion methods that fail to preserve accuracy under low time-step inference.
- Develop a theoretically grounded, layer-wise calibration framework that optimizes SNN parameters to match ANN activation distributions.
- Enable high-accuracy SNN inference on large-scale tasks like ImageNet classification and MS COCO detection with minimal latency.
Proposed method
- Decompose local conversion error into clipping error and flooring error through theoretical analysis.
- Use second-order Hessian-based perturbation analysis to model how activation errors propagate across layers.
- Propose two calibration pipelines: LCP (layer-wise calibration with only bias adjustment) and ACP (adaptive calibration with weights, bias, and initial membrane potential tuning).
- Calibrate SNN parameters using a small, unlabeled subset (e.g., 1024 images) to minimize statistical divergence between ANN and SNN activations.
- Apply calibration greedily layer by layer, optimizing for activation distribution similarity rather than parameter space proximity.
- Support both real and synthetic (fake) calibration data to enable privacy-preserving conversion when training data is unavailable.
Experimental results
Research questions
- RQ1Why do existing ANN-to-SNN conversion methods fail to preserve accuracy in networks with batch normalization, especially at low time steps?
- RQ2How does activation mismatch propagate through deep networks, and what are the dominant error sources in the conversion process?
- RQ3Can a theoretically grounded, second-order error analysis improve the accuracy of SNN conversion compared to heuristic parameter copying?
- RQ4To what extent can parameter calibration—beyond weight copying—recover performance in SNNs with minimal computational overhead?
- RQ5Can calibration with synthetic data achieve comparable performance to real data, enabling privacy-preserving SNN conversion?
Key findings
- The proposed calibration method increases top-1 accuracy by up to 65% when converting VGG-16 with batch normalization layers on ImageNet using only 32 time steps.
- LCP with 256 calibration images achieves 67.5% accuracy on ResNet-34, demonstrating strong data sample efficiency.
- ACP shows higher robustness to calibration dataset size, with only a 0.8% accuracy gain when increasing from 128 to 1024 images.
- Using synthetic data for calibration results in only a 0.74% accuracy drop compared to real data when using 128 time steps.
- The calibrated SNN achieves 69.36% of the energy consumption of the original ANN, with a maximum firing rate of 0.08 and minimum of 0.025, indicating high sparsity and energy efficiency.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.