Skip to main content
QUICK REVIEW

[Paper Review] Membrane Potential Batch Normalization for Spiking Neural Networks

Yufei Guo, Yuhan Zhang|arXiv (Cornell University)|Aug 16, 2023
Advanced Memory and Neural ComputingEngineering5 citations
TL;DR

This paper proposes Membrane Potential Batch Normalization (MPBN), a novel batch normalization technique for spiking neural networks (SNNs) that normalizes the membrane potential right before the firing function to counteract disturbances from residual potential updates. By re-parameterizing MPBN into learnable firing thresholds, it eliminates inference overhead while enabling both channel-wise and element-wise normalization, achieving state-of-the-art accuracy on CIFAR-10, CIFAR-100, and ImageNet with minimal time steps.

ABSTRACT

As one of the energy-efficient alternatives of conventional neural networks (CNNs), spiking neural networks (SNNs) have gained more and more interest recently. To train the deep models, some effective batch normalization (BN) techniques are proposed in SNNs. All these BNs are suggested to be used after the convolution layer as usually doing in CNNs. However, the spiking neuron is much more complex with the spatio-temporal dynamics. The regulated data flow after the BN layer will be disturbed again by the membrane potential updating operation before the firing function, i.e., the nonlinear activation. Therefore, we advocate adding another BN layer before the firing function to normalize the membrane potential again, called MPBN. To eliminate the induced time cost of MPBN, we also propose a training-inference-decoupled re-parameterization technique to fold the trained MPBN into the firing threshold. With the re-parameterization technique, the MPBN will not introduce any extra time burden in the inference. Furthermore, the MPBN can also adopt the element-wised form, while these BNs after the convolution layer can only use the channel-wised form. Experimental results show that the proposed MPBN performs well on both popular non-spiking static and neuromorphic datasets. Our code is open-sourced at \href{https://github.com/yfguo91/MPBN}{MPBN}.

Motivation & Objective

  • To address the issue of data flow disturbance in SNNs caused by residual membrane potential updates after batch normalization in convolutional layers.
  • To improve training stability and convergence in deep SNNs by introducing a second normalization layer at the membrane potential stage.
  • To eliminate inference-time overhead from additional normalization by re-parameterizing MPBN into the firing threshold.
  • To enable element-wise normalization in SNNs—previously infeasible in CNNs—by leveraging threshold folding.
  • To demonstrate consistent performance gains across static and neuromorphic datasets with minimal time steps.

Proposed method

  • Proposes MPBN: a batch normalization layer applied after membrane potential updating (MPU) and before the firing function in spiking neurons.
  • Designs a training-inference-decoupled re-parameterization technique to fold trained MPBN statistics (mean, variance, scale, shift) into the firing threshold.
  • Derives the re-parameterized threshold as: $ (\tilde{V}_{\text{th}})_{i,j,k} = \frac{(V_{\text{th}} - \beta_{i,j,k}) \sqrt{\sigma_{i,j,k}^2}}{\lambda_{i,j,k}} + \mu_{i,j,k} $, enabling element-wise threshold adaptation.
  • Supports both channel-wise and element-wise MPBN, overcoming the limitation in CNNs where only channel-wise BN can be folded into weights.
  • Applies MPBN in conjunction with standard data augmentation and SGD optimization with cosine decay on CIFAR and ImageNet benchmarks.
  • Employs a two-stage training process: train with MPBN during backpropagation, then re-parameterize to remove MPBN from inference.
Figure 1 : The difference between our SNN with MPBN and the vanilla SNN. We add another BN layer after membrane potential updating (MPU) operation in the training. The MPBN can be folded into the firing threshold and then the homogenous firing threshold will be transformed into different ones.
Figure 1 : The difference between our SNN with MPBN and the vanilla SNN. We add another BN layer after membrane potential updating (MPU) operation in the training. The MPBN can be folded into the firing threshold and then the homogenous firing threshold will be transformed into different ones.

Experimental results

Research questions

  • RQ1Can adding a second batch normalization layer after membrane potential updating improve training stability and convergence in SNNs?
  • RQ2Can the computational overhead of MPBN be eliminated during inference without sacrificing performance?
  • RQ3Is element-wise normalization feasible and beneficial in SNNs, given the re-parameterization into firing thresholds?
  • RQ4How does MPBN compare to existing BN methods in SNNs on both static and dynamic datasets?
  • RQ5Can MPBN achieve state-of-the-art performance with fewer time steps than prior SNN models?

Key findings

  • MPBN achieves 96.47% top-1 accuracy on CIFAR-10 with only 2 time steps, outperforming methods like Real Spike (6 time steps) and RecDis-SNN.
  • On CIFAR-100, MPBN reaches 79.51% top-1 accuracy with 2 time steps, surpassing TEBN, TET, and RecDis-SNN by 1.66% to 3.99% even with more time steps.
  • With 1 time step, MPBN achieves 96.06% accuracy on CIFAR-10 using ResNet19, outperforming other SoTA methods that require 4–6 time steps.
  • The element-wise MPBN variant achieves 94.42% accuracy on CIFAR-10 with 4 time steps, slightly better than the channel-wise version (94.28%), indicating richer representational capacity.
  • On ImageNet, MPBN achieves strong performance, though slightly below SEW ResNet, which uses non-standard, non-event-driven spike patterns that sacrifice SNN advantages.
  • The re-parameterization technique successfully folds MPBN into the firing threshold, eliminating any inference-time cost while preserving training benefits.
(a) CIFAR-10
(a) CIFAR-10

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.