TL;DR
Spiking Neural Networks (SNNs) promise brain-like energy efficiency, but traditional spike coding schemes require either massive inference latencies or complex neuron dynamics. This paper introduces Stepwise Weighted Spike (SWS) coding and a Ternary Self-Amplifying (TSA) neuron model, which dynamically weights early spikes to encode information exponentially faster. Converted from standard quantized artificial networks without fine-tuning, SWS-SNNs achieve state-of-the-art accuracy (e.g., 82.06% on ImageNet with ResNeXt-101) in just 8 time steps.
What Problem Does This Paper Address?
SNNs replace continuous real-valued activations with discrete binary pulses over time. While biologically plausible and energy-efficient on neuromorphic hardware, their real-world utility hinges on neural coding: how real numbers are translated into spike trains.
- Rate coding (counting the total number of spikes over a window) is robust but painfully slow: representing an 8-bit number requires up to 256 time steps, wiping out energy gains.
- Temporal coding (e.g., time-to-first-spike) carries more information per pulse, but resolving precise timings still requires deep clock cycles, high memory bandwidth, and complex training recipes.
When converting deep Artificial Neural Networks (ANNs) to SNNs, deep architectures (like ResNet-50) often suffer steep accuracy degradation unless simulated over hundreds or thousands of steps. The authors seek a coding scheme that achieves near-lossless accuracy in single-digit time steps for very deep networks.
Methods
The authors propose a combination of an algorithmic coding mechanism and a matched neuron model:
- Stepwise Weighted Spike (SWS) Coding: Recent studies show information in SNNs concentrates heavily in early time steps. SWS exploits this by amplifying the neuron’s membrane potential by a factor $\beta > 1$ (typically $\beta = 2$) before integrating new inputs. As a result, an input spike at step $\tau$ naturally carries a weight proportional to $\beta^{T_c - \tau}$. Much like binary positional notation, earlier pulses carry exponentially higher significance.
- Ternary Self-Amplifying (TSA) Neuron:
- Lowered Threshold ($V_{th} = \frac{1}{2}\theta$): Standard resets leave positive residuals that get multiplied each cycle, compounding errors. Lowering the threshold centers residual errors symmetrically around zero ($[-0.5\theta, 0.5\theta]$).
- Negative Spikes (Ternary Spiking): If the membrane potential drops below $-V_{th}$, the neuron emits a negative spike ($-1$) to correct previous overshoots.
- Silent Period ($T_s$): Large burst inputs in a single time step can overwhelm the neuron. To prevent erratic premature firing, neurons undergo an initial "silent period" of $T_s$ steps where they integrate inputs and apply stepwise weighting without firing.
- Quantization-Aware ANN-to-SNN Conversion: Pretrained ANNs are quantized to 8 bits using standard PyTorch Quantization-Aware Training (QAT). The weights and biases are mapped directly to TSA neurons without requiring iterative fine-tuning.
Input Signal ──> [ Silent Period Ts ] ──> [ Stepwise Weighting (x β) ] ──> Emit {-1, 0, +1} Spikes
│
└── Keeps residual error centered near zero
Datasets
The authors evaluate their approach on three standard vision benchmarks:
- MNIST (evaluated on LeNet-5 for operation count and energy studies)
- CIFAR-10 (evaluated on ResNet-18 and VGG-16)
- ImageNet (evaluated across deep architectures: VGG-16, ResNet-34, Inception-v3, ResNet-50, and ResNeXt101_32x8d)
No new datasets were introduced.
Key Insights and Ideas
- Temporal Significance as Positional Value: Instead of treating each spike equally (rate coding) or using time intervals as an analog delay line (temporal coding), SWS turns time steps into significant digits. An 8-step sequence can represent $2^8 = 256$ discrete levels cleanly.
- Error Correction via Signed Spikes: Multiplying residuals by $\beta$ risks exponential divergence. Introducing negative pulses acts as a feedback correction mechanism, keeping post-computation residuals bounded strictly within the quantization noise floor.
- Pipelined Latency: While the silent period $T_s$ adds an initial delay that accumulates with depth ($T_{inf} = T_c + T_s \cdot L_{TSA}$), the processing across layers is pipelined. Consecutive inputs can be processed every $T_c + T_s$ steps.
Key Results
- Near-Lossless Ultra-Low Latency: On ImageNet, SWS achieves:
- ResNet-50: 80.34% top-1 accuracy in only 8 time steps ($T_c = 8, T_s = 2$), a drop of just 0.35% compared to the original ANN.
- ResNeXt101_32x8d: 82.06% top-1 accuracy in 8 time steps (within 0.42% of the ANN).
- CIFAR-10: ResNet-18 achieves 95.67% (+0.22% over the baseline ANN) and VGG-16 reaches 95.86% with 8 steps.
- Latency & Operation Reductions: SWS matches or outperforms rate-coded counterparts that require 256 to 4,096 time steps, cutting latency by 1–2 orders of magnitude while reducing Operations Per Frame (OPF) compared to standard rate and temporal pattern coding.
Limitations and Future Work
- Depth-Dependent Latency: Because the silent period delay accumulates through each layer ($T_s \cdot L_{TSA}$), very deep networks suffer an additive latency penalty for the first frame.
- Ternary Hardware Requirements: Neuromorphic hardware must support signed spikes ($\{-1, 0, +1\}$) and directional membrane subtraction/addition, which is slightly more complex than purely excitatory binary spike routing.
- Direct Training Unexplored: SWS is currently validated strictly via ANN-to-SNN conversion. Extending SWS and TSA neurons to direct surrogate-gradient training remains an open research direction.
Summary updated